/* ──────────────────────────────────────────────────────────────────────
   EZKanban — marketing site stylesheet
   Blinken's editorial system (warm paper, Fraunces, Switzer), with the
   app's capture-bar glow in place of the lamp.
   ────────────────────────────────────────────────────────────────────── */

:root {
    /* Colour */
    --paper:        #FAF7EE;
    --paper-deep:   #F2EDDF;
    --ink:          #1A1916;
    --ink-soft:     #3A372F;
    --subdued:      #65615A;
    --rule:         #E8E4D9;
    --rule-strong:  #D4CDB8;

    /* The app's sheen palette (Apple Intelligence–style) */
    --blue:   #0894FF;
    --purple: #C959DD;
    --pink:   #FF2E54;
    --orange: #FF9004;
    --accent: #A24BC0;   /* link hovers: the purple, darkened for contrast on paper */
    --sheen:  var(--blue), var(--purple), var(--pink), var(--orange), var(--blue);

    /* Type */
    --display: "Fraunces", "Times New Roman", Georgia, serif;
    --body:    "Switzer", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Scale & rhythm */
    --max-width: 1080px;
    --gutter: clamp(20px, 4vw, 56px);
    --section-y: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11", "cv02";
    overflow-x: hidden;
}

/* Subtle paper grain via a tiny noise SVG overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
a:hover { text-decoration-color: var(--accent); }

/* ───── Navigation ───── */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

.nav-cta {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid var(--rule-strong);
    border-radius: 100px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nav-cta:hover {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
}

/* ───── Hero ───── */

.hero {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(40px, 8vw, 88px) var(--gutter) clamp(60px, 10vw, 130px);
    text-align: center;
    overflow: visible;
}

.kicker {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--subdued);
    margin-bottom: 24px;
}
/* (kicker stands alone; no decorative dashes) */

.hero h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(48px, 8.4vw, 108px);
    line-height: 0.96;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    max-width: 18ch;
    margin: 0 auto;
}

.hero h1 .it {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
}

.hero .lede {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 28px auto 0;
}

.cta-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 44px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--body);
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: -0.005em;
    color: var(--paper);
    background: var(--ink);
    padding: 14px 26px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease, box-shadow .25s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 30px -12px rgba(26, 25, 22, 0.5);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 18px 40px -14px rgba(26, 25, 22, 0.6); }
.btn-primary:active { transform: translateY(0); }

.btn-primary .arrow,
.btn-link .arrow {
    width: 18px; height: 18px; display: inline-block;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path fill='none' stroke='currentColor' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M3 9h12M10 4l5 5-5 5'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path fill='none' stroke='currentColor' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M3 9h12M10 4l5 5-5 5'/></svg>") center/contain no-repeat;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: -0.005em;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 4px 0;
    transition: color .2s ease;
}
.btn-link:hover {
    color: var(--ink);
    text-decoration: none;
}
.btn-link .arrow {
    transition: transform .15s ease;
}
.btn-link:hover .arrow {
    transform: translateX(2px);
}

.cta-meta {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--subdued);
    white-space: nowrap;
}

/* Version + why-there's-no-update-checker. Deliberately quiet: it's an answer for
   the person who goes looking, not a pitch. Sits below the CTA meta line so it
   never competes with the download button. */
.version-note {
    /* .cta-row is a wrapping flex container; claim a full line so this never rides
       up beside .cta-meta. The row's 22px gap supplies the spacing above. */
    flex-basis: 100%;
    max-width: 46ch;
    margin: 0 auto;
    font-size: 12.5px;
    line-height: 1.65;
    text-align: center;
    color: var(--subdued);
    opacity: 0.72;
}
.version-note .version-tag {
    font-family: var(--mono);
    letter-spacing: 0.06em;
    /* faint chip so the number is scannable without a heading */
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0.1em 0.4em;
    margin-right: 0.15em;
    white-space: nowrap;
}
.version-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.version-note a:hover { opacity: 0.75; }

/* hero entry animation */
.hero .kicker  { opacity: 0; animation: rise .9s ease .15s forwards; }
.capture-stage { opacity: 0; animation: rise 1.1s ease .35s forwards; }
.hero h1       { opacity: 0; animation: rise 1.0s ease .55s forwards; }
.hero .lede    { opacity: 0; animation: rise .9s  ease .75s forwards; }
.cta-row       { opacity: 0; animation: rise .8s  ease .95s forwards; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero .kicker, .capture-stage, .hero h1, .hero .lede, .cta-row { opacity: 1; animation: none; transform: none; }
}

/* ───── Section: features ───── */

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
    border-top: 1px solid var(--rule);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: clamp(48px, 7vw, 80px);
    max-width: 720px;
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--subdued);
}

.section h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "opsz" 80, "SOFT" 40;
}

.section h2 em { font-style: italic; font-weight: 400; color: var(--ink-soft); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 48px;
}

.feature {
    display: grid;
    gap: 14px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.feature h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.feature p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 36ch;
}

/* ───── Privacy note ───── */

.privacy-band {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
    border-top: 1px solid var(--rule);
    text-align: center;
}

.privacy-band h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 80, "SOFT" 40;
    margin-bottom: 28px;
}

.privacy-band p {
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto;
}

.privacy-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 36px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--subdued);
    text-transform: uppercase;
}

.privacy-meta span { position: relative; }
.privacy-meta span + span::before {
    content: "·";
    margin-right: 22px;
    color: var(--rule-strong);
}

/* ───── Byline ───── */

.byline {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
    border-top: 1px solid var(--rule);
    text-align: center;
}

.byline p {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.45;
    color: var(--ink);
    font-variation-settings: "opsz" 60, "SOFT" 30;
}

.byline a { text-decoration-color: var(--rule-strong); }
.byline a:hover { text-decoration-color: var(--accent); }

.byline .heart { color: var(--accent); display: inline-block; }

/* ───── Footer ───── */

footer {
    border-top: 1px solid var(--rule);
    margin-top: 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--gutter) 56px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--subdued);
}

.footer-inner a {
    text-decoration: none;
    color: var(--subdued);
    transition: color .15s ease;
}
.footer-inner a:hover { color: var(--ink); }

.footer-links { display: inline-flex; gap: 24px; }

/* ───── Document pages (privacy / terms) ───── */

.doc {
    max-width: 740px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--gutter) var(--section-y);
}

.doc .doc-eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--subdued);
    margin-bottom: 18px;
}

.doc h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.022em;
    font-variation-settings: "opsz" 120, "SOFT" 30;
    margin-bottom: 12px;
}

.doc .doc-updated {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--subdued);
    letter-spacing: 0.04em;
    margin-bottom: 56px;
}

.doc h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 36, "SOFT" 30;
    margin: 56px 0 16px;
    color: var(--ink);
}

.doc p, .doc li {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.doc p { margin-bottom: 18px; }

.doc ul { padding-left: 22px; margin-bottom: 18px; }
.doc li { margin-bottom: 8px; }

.doc strong { color: var(--ink); font-weight: 600; }

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--subdued);
    text-decoration: none;
}
.doc-back:hover { color: var(--ink); }
.doc-back::before { content: "←"; font-size: 14px; }

/* ───── Mobile ───── */

@media (max-width: 820px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 500px) {
    .nav-cta { display: none; }
    .privacy-meta { gap: 12px; }
    .privacy-meta span + span::before { margin-right: 12px; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ──────────────────────────────────────────────────────────────────────
   EZKanban-specific
   ────────────────────────────────────────────────────────────────────── */

/* Mini board mark beside the wordmark: three lanes, 3 / 2 / 1 cards' worth. */
.wordmark .mark-mini { display: inline-flex; align-items: flex-start; gap: 2.5px; height: 16px; }
.wordmark .mark-mini i { width: 5px; border-radius: 1.5px; display: block; }
.wordmark .mark-mini i:nth-child(1) { height: 16px; background: var(--blue); }
.wordmark .mark-mini i:nth-child(2) { height: 11px; background: var(--purple); }
.wordmark .mark-mini i:nth-child(3) { height: 6px;  background: var(--orange); }

/* Faint wash of the sheen palette behind the hero, like the board's background. */
.hero::before {
    content: "";
    position: absolute;
    top: 8%;
    left: 50%;
    width: 1100px;
    height: 700px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 30% 40% at 30% 35%, rgba(8, 148, 255, 0.07), rgba(8, 148, 255, 0) 100%),
        radial-gradient(ellipse 30% 40% at 50% 30%, rgba(201, 89, 221, 0.07), rgba(201, 89, 221, 0) 100%),
        radial-gradient(ellipse 30% 40% at 70% 35%, rgba(255, 144, 4, 0.07), rgba(255, 144, 4, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

/* The capture bar: the app's quick-capture panel, with its rotating colour glow. */
@property --spin {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.capture-stage {
    /* The glow (z-index: -1) must paint in this context, behind the bar's background.
       If the bar itself were the stacking context, the glow would paint over it. */
    isolation: isolate;
    display: flex;
    justify-content: center;
    padding: 36px 0;
    margin: 0 auto clamp(36px, 5vw, 56px);
}

.capture-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 560px;
    max-width: 100%;
    height: 64px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    text-align: left;
}

/* soft outer glow */
.capture-bar::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: conic-gradient(from var(--spin), var(--sheen));
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    animation: spin 9s linear infinite, breathe 4s ease-in-out infinite;
}

/* crisp gradient rim */
.capture-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1.5px;
    background: conic-gradient(from var(--spin), var(--sheen));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: spin 9s linear infinite;
    pointer-events: none;
}

@keyframes spin    { to { --spin: 360deg; } }
@keyframes breathe { 50% { opacity: 0.85; } }

.capture-icon {
    flex: none;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--blue), var(--purple) 55%, var(--orange));
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v11M7.5 9.5 12 14l4.5-4.5'/><path d='M4 13v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v11M7.5 9.5 12 14l4.5-4.5'/><path d='M4 13v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/></svg>") center/contain no-repeat;
}

.capture-text {
    flex: 1;
    min-width: 0;   /* let the text shrink instead of widening the bar on phones */
    font-size: 21px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
}

.capture-text .caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -0.15em;
    background: var(--ink);
    animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.capture-text.is-typing .caret { animation: none; }   /* a caret holds still while you type */

.capture-typed { display: inline-block; transition: opacity .22s ease, transform .22s ease; }
.capture-typed.is-sent { opacity: 0; transform: translateY(-8px); }

.capture-keys { display: inline-flex; gap: 4px; flex: none; }

kbd {
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1;
    color: var(--subdued);
    padding: 5px 7px;
    border: 1px solid var(--rule-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
    .capture-bar::before, .capture-bar::after, .capture-text .caret { animation: none; }
}

/* Feature glyphs */
.feature-icon .keys { display: inline-flex; gap: 3px; }
.feature-icon .keys kbd { padding: 4px 5px; font-size: 11px; }

.feature-icon .board { display: flex; gap: 3px; align-items: flex-start; height: 26px; }
.feature-icon .board i { width: 9px; border-radius: 2.5px; display: block; }
.feature-icon .board i:nth-child(1) { height: 26px; background: var(--blue); }
.feature-icon .board i:nth-child(2) { height: 17px; background: var(--purple); }
.feature-icon .board i:nth-child(3) { height: 8px;  background: var(--orange); }

.feature-icon .braces {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 500;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.feature code, .privacy-band code {
    font-family: var(--mono);
    font-size: 0.88em;
}

/* Product shot of the open board, between the hero and the features. */
.showcase {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
    display: flex;
    justify-content: center;
}

.showcase img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 14px;
    box-shadow:
        0 30px 70px -30px rgba(26, 25, 22, 0.45),
        0 0 0 1px rgba(26, 25, 22, 0.06);
}
