/* ──────────────────────────────────────────────────────────────────────────
   Larder & List — Landing page
   Editorial test-kitchen aesthetic. Warm paper, sage accent, hairline rules.

   Fonts: Alegreya (display, serif), Onest (body, sans), ui-monospace (labels).
   Tokens mirror the in-app PantryDesignSystem where applicable.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
    /* Palette — OKLCH, tinted toward the brand's sage hue (~115°) */
    --paper:        oklch(97.2% 0.004 87);   /* page background */
    --paper-soft:   oklch(94.5% 0.005 87);   /* card surface */
    --paper-edge:   oklch(89% 0.006 87);     /* hairline */
    --paper-deep:   oklch(83% 0.007 87);     /* divider */

    --ink:          oklch(17% 0.006 87);     /* primary text */
    --ink-2:        oklch(35% 0.005 87);     /* secondary text */
    --ink-3:        oklch(52% 0.006 87);     /* tertiary labels */
    --ink-4:        oklch(70% 0.006 87);     /* subtle / disabled */

    --sage:         oklch(47% 0.07 118);     /* accent — the ampersand */
    --sage-soft:    oklch(78% 0.06 118);
    --sage-bg:      oklch(93% 0.03 118);

    /* Spacing — 4pt scale */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  24px;
    --space-6:  32px;
    --space-7:  48px;
    --space-8:  64px;
    --space-9:  96px;
    --space-10: 128px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    /* Strokes */
    --stroke-hairline: 0.5px;
    --stroke-thin:     1px;

    /* Content column — body text caps around 72ch for readability */
    --column-text:  min(72ch, 100%);
    --column-full:  min(1240px, 92vw);

    /* Typography scale — fluid display, fixed body */
    --font-serif: 'Alegreya', 'Iowan Old Style', 'Palatino Linotype', 'Palatino', Georgia, serif;
    --font-sans:  'Onest', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-mono:  ui-monospace, 'SF Mono', SFMono-Regular, 'Menlo', 'Monaco', monospace;

    --size-xxl: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
    --size-xl:  clamp(2.25rem, 1.5rem + 3vw, 4rem);
    --size-lg:  clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
    --size-md:  clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    --size-base: 1.0625rem; /* 17px */
    --size-sm:  0.875rem;   /* 14px */
    --size-xs:  0.75rem;    /* 12px */
    --size-2xs: 0.6875rem;  /* 11px */

    --leading-tight: 1.12;
    --leading-snug:  1.35;
    --leading-body:  1.55;
    --leading-loose: 1.65;

    /* ── Motion tokens ─────────────────────────────────────────── */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

    --dur-fast:   180ms;
    --dur-base:   320ms;
    --dur-slow:   520ms;
    --dur-xslow:  800ms;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--size-base);
    line-height: var(--leading-body);
    font-feature-settings: "kern", "liga", "ss01";
    min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sage); }

::selection { background: var(--sage-bg); color: var(--ink); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--ink);
    color: var(--paper);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--size-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Typography utility classes ─────────────────────────────────────────── */

.display--xxl {
    font-family: var(--font-serif);
    font-size: var(--size-xxl);
    line-height: var(--leading-tight);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin: 0;
    max-width: 24ch; /* controls wrap for the hero */
    text-wrap: balance;
}
.display--xl {
    font-family: var(--font-serif);
    font-size: var(--size-xl);
    line-height: var(--leading-tight);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}
.display--lg {
    font-family: var(--font-serif);
    font-size: var(--size-lg);
    line-height: var(--leading-snug);
    font-weight: 500;
    margin: 0;
}
.display--sm {
    font-family: var(--font-serif);
    font-size: var(--size-md);
    line-height: var(--leading-snug);
    font-weight: 400;
    color: var(--ink-2);
    margin: 0;
    max-width: 52ch;
}

.overline {
    font-family: var(--font-mono);
    font-size: var(--size-2xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 var(--space-5);
}

.lede {
    font-family: var(--font-serif);
    font-size: var(--size-md);
    line-height: var(--leading-loose);
    color: var(--ink-2);
    max-width: 42ch;
    margin: var(--space-5) 0 0;
    font-weight: 400;
}

em, .italic { font-style: italic; }

.amp {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--sage);
}

.rule {
    border: 0;
    height: var(--stroke-hairline);
    background: var(--paper-deep);
    margin: 0;
}
.rule--wide { width: 100%; }
.rule--short { width: 48px; background: var(--paper-deep); }

/* ── Masthead ───────────────────────────────────────────────────────────── */

.masthead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in oklab, var(--paper) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: var(--stroke-hairline) solid var(--paper-edge);
}

.masthead__inner {
    max-width: var(--column-full);
    margin: 0 auto;
    padding: var(--space-4) var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.wordmark {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25em;
    line-height: 1;
}
.wordmark .amp {
    font-size: 1.1em;
    margin: 0 0.05em;
}
.wordmark:hover { color: var(--ink); }
.wordmark--sm { font-size: 1.125rem; }

.masthead__nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-2);
}
.masthead__nav a {
    text-decoration: none;
    color: var(--ink-2);
    transition: color 180ms ease-out;
}
.masthead__nav a:hover { color: var(--ink); }

.masthead__cta {
    color: var(--ink) !important;
    border-bottom: var(--stroke-thin) solid var(--sage);
    padding-bottom: 2px;
}

@media (max-width: 680px) {
    .masthead__nav a:not(.masthead__cta) { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
    padding: clamp(var(--space-7), 10vw, var(--space-10)) 0;
}

.hero__grid {
    max-width: var(--column-full);
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 900px) {
    .hero__grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-9);
    }
}

.hero__cta {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}

.cta-note {
    font-family: var(--font-mono);
    font-size: var(--size-2xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-sans);
    font-size: var(--size-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    border: var(--stroke-thin) solid transparent;
    cursor: pointer;
    transition: transform 180ms cubic-bezier(.2,.6,.2,1), background-color 180ms ease-out, color 180ms ease-out;
    will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--ink);
    color: var(--paper);
}
.btn--primary:hover { background: oklch(25% 0.006 87); color: var(--paper); }

.btn--large {
    padding: var(--space-4) var(--space-6);
    font-size: var(--size-base);
}

.btn__icon {
    width: 1.1em;
    height: 1.1em;
}

/* Hero mockup — the actual app icon. No recipe-card collage, no CSS stand-in:
   the real icon carries the identity better than anything drawn in the page. */

.hero__mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
}

.hero__icon {
    width: clamp(220px, 32vw, 360px);
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 22%;
    transform: rotate(-3deg);
    box-shadow:
        0 2px 0 0 oklch(0% 0 0 / 0.04),
        0 40px 60px -30px oklch(20% 0.01 87 / 0.22),
        0 12px 24px -12px oklch(20% 0.01 87 / 0.18);
    transition: transform var(--dur-slow) var(--ease-out-expo);
}
.hero__icon:hover {
    transform: rotate(-1deg) translateY(-2px);
}

@media (prefers-color-scheme: dark) {
    .hero__icon {
        box-shadow:
            0 2px 0 0 oklch(100% 0 0 / 0.04),
            0 40px 60px -30px oklch(0% 0 0 / 0.5);
    }
}

@media (max-width: 899px) {
    .hero__mockup { margin-top: var(--space-6); }
    .hero__icon { transform: rotate(-2deg); }
}

/* ── Section masthead ───────────────────────────────────────────────────── */

.section__masthead {
    max-width: var(--column-full);
    margin: 0 auto;
    padding: 0 var(--space-3);
    margin-bottom: var(--space-7);
    display: flex;
    align-items: baseline;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.section__label {
    font-family: var(--font-mono);
    font-size: var(--size-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0;
    font-weight: 500;
    position: relative;
    padding-bottom: var(--space-2);
}
.section__label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: var(--stroke-hairline);
    background: var(--sage);
}

.section__dek {
    max-width: 42ch;
    color: var(--ink-2);
}

/* ── Features ───────────────────────────────────────────────────────────── */

.features {
    padding: var(--space-9) 0;
}

.features__grid {
    max-width: var(--column-full);
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* Vertical hairlines between columns, via gap + a subtle negative-space trick */
    gap: 0;
}

.feature {
    padding: var(--space-6) var(--space-5);
    border-top: var(--stroke-hairline) solid var(--paper-edge);
    border-right: var(--stroke-hairline) solid var(--paper-edge);
}
.feature:nth-child(n+4) { border-top: 0; }
/* Remove the right border on the last item in each row. Using first:last as fallback for varying column counts. */
.feature:last-child { border-right: 0; }

@media (max-width: 820px) {
    .feature { border-right: 0; }
    .feature + .feature { border-top: var(--stroke-hairline) solid var(--paper-edge); }
}

.feature__number {
    font-family: var(--font-mono);
    font-size: var(--size-2xs);
    letter-spacing: 0.2em;
    color: var(--sage);
    margin: 0 0 var(--space-4);
}

.feature__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 var(--space-3);
    color: var(--ink);
    max-width: 18ch;
}

.feature__body {
    font-size: var(--size-base);
    line-height: var(--leading-body);
    color: var(--ink-2);
    margin: 0;
    max-width: 36ch;
}

/* ── Manifesto / pull quote ─────────────────────────────────────────────── */

.manifesto {
    padding: var(--space-8) var(--space-3);
    max-width: var(--column-full);
    margin: 0 auto;
}

/* Magazine-style pull quote: left-aligned, generous column, small byline
   below. The previous centered-32ch treatment felt like a sermon. */
.manifesto__quote {
    margin: var(--space-7) 0;
    text-align: left;
    max-width: 58ch;
    padding-left: clamp(0px, 4vw, var(--space-8));
}

.manifesto__quote p {
    font-family: var(--font-serif);
    font-style: italic;
    /* Calmer scale — was up to 2.25rem / 36px which shouted */
    font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem);
    line-height: 1.45;
    font-weight: 400;
    color: var(--ink-2);
    margin: 0;
    text-wrap: pretty;
}

/* Drop the giant decorative quote marks — they're doing the shouting.
   The italic + indent + byline read as a pull quote without them. */
.manifesto__mark {
    display: none;
}

.manifesto__byline {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--size-2xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-style: normal;
}

/* ── How it works ───────────────────────────────────────────────────────── */

.how {
    padding: var(--space-9) 0;
}

.steps {
    list-style: none;
    margin: 0 auto;
    padding: 0 var(--space-3);
    max-width: var(--column-full);
    display: flex;
    flex-direction: column;
}

.step {
    display: grid;
    grid-template-columns: minmax(90px, 140px) 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    align-items: start;
    border-bottom: var(--stroke-hairline) solid var(--paper-edge);
}
.step:last-child { border-bottom: 0; }

.step__num {
    font-family: var(--font-serif);
    color: var(--sage);
    font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
    line-height: 1;
    font-weight: 400;
}
.step__num em {
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.step__body h3 {
    font-family: var(--font-serif);
    font-size: var(--size-lg);
    line-height: 1.2;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 var(--space-3);
    max-width: 24ch;
}
.step__body p {
    font-size: var(--size-base);
    line-height: var(--leading-loose);
    color: var(--ink-2);
    margin: 0;
    max-width: 54ch;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
    padding: var(--space-9) 0;
    background: oklch(96% 0.005 87); /* slightly darker paper — sets off the list */
}

.faq__list {
    max-width: var(--column-full);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.faq__item {
    display: grid;
    grid-template-columns: 1fr;
    padding: var(--space-5) 0;
    border-bottom: var(--stroke-hairline) solid var(--paper-edge);
}
.faq__item:last-child { border-bottom: 0; }

@media (min-width: 700px) {
    .faq__item {
        grid-template-columns: minmax(220px, 0.8fr) 1.6fr;
        gap: var(--space-6);
    }
}

.faq__item dt {
    font-family: var(--font-serif);
    font-size: var(--size-md);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 var(--space-2);
    max-width: 28ch;
}

.faq__item dd {
    margin: 0;
    color: var(--ink-2);
    line-height: var(--leading-loose);
    max-width: 54ch;
    font-size: var(--size-base);
}

/* ── CTA ────────────────────────────────────────────────────────────────── */

.cta {
    padding: var(--space-9) var(--space-3);
    max-width: var(--column-full);
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    margin: var(--space-8) auto var(--space-4);
    max-width: 18ch;
}

.cta__sub {
    font-family: var(--font-serif);
    font-size: var(--size-md);
    font-style: italic;
    color: var(--ink-2);
    margin: 0 0 var(--space-6);
}

/* ── Long-form pages (Privacy, Terms, etc.) ─────────────────────────────── */

.page {
    max-width: var(--column-full);
    margin: 0 auto;
    padding: clamp(var(--space-7), 8vw, var(--space-9)) var(--space-3);
}

.page__header {
    max-width: 32ch;
    margin-bottom: var(--space-7);
}
.page__header .overline { margin-bottom: var(--space-4); }
.page__header .lede {
    max-width: 52ch;
    font-size: var(--size-md);
}

.prose {
    max-width: 64ch;
    margin-top: var(--space-7);
    font-size: var(--size-base);
    line-height: var(--leading-loose);
    color: var(--ink-2);
}
.prose h2 {
    font-family: var(--font-serif);
    font-size: var(--size-lg);
    line-height: 1.25;
    font-weight: 500;
    color: var(--ink);
    margin: var(--space-7) 0 var(--space-3);
    letter-spacing: -0.005em;
}
.prose h2:first-child { margin-top: 0; }

.prose p { margin: 0 0 var(--space-4); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--sage); }
.prose a:hover { color: var(--sage); }

.prose ul {
    padding-left: 0;
    list-style: none;
    margin: 0 0 var(--space-5);
}
.prose ul li {
    position: relative;
    padding: var(--space-3) 0 var(--space-3) var(--space-5);
    border-bottom: var(--stroke-hairline) solid var(--paper-edge);
}
.prose ul li:last-child { border-bottom: 0; }
.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: var(--space-4);
    width: 12px;
    height: var(--stroke-hairline);
    background: var(--sage);
}

.prose__emphasis {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--size-lg);
    color: var(--ink);
    margin: var(--space-3) 0 var(--space-5);
}

.prose__dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3) var(--space-5);
    margin: var(--space-5) 0;
}
@media (min-width: 640px) {
    .prose__dl { grid-template-columns: 140px 1fr; }
}
.prose__dl dt {
    font-family: var(--font-mono);
    font-size: var(--size-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 4px;
}
.prose__dl dd {
    margin: 0 0 var(--space-3);
    color: var(--ink-2);
}
@media (min-width: 640px) {
    .prose__dl dd { margin: 0; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
    border-top: var(--stroke-hairline) solid var(--paper-edge);
    padding: var(--space-8) 0;
    color: var(--ink-2);
}

.footer__inner {
    max-width: var(--column-full);
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-6);
}

.footer__col { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__col a {
    text-decoration: none;
    color: var(--ink-2);
    font-size: var(--size-sm);
}
.footer__col a:hover { color: var(--ink); }

.footer__label {
    font-family: var(--font-mono);
    font-size: var(--size-2xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 var(--space-2);
}

.footer__copy { font-size: var(--size-sm); color: var(--ink-3); margin: 0; }

.footer__mono {
    font-family: var(--font-mono);
    font-size: var(--size-2xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0;
}

.footer__col--sign {
    text-align: right;
    align-items: flex-end;
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .footer__col--sign { text-align: left; align-items: flex-start; }
}

/* ── Dark mode ──────────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
    :root {
        --paper:        oklch(15% 0.006 87);
        --paper-soft:   oklch(19% 0.007 87);
        --paper-edge:   oklch(26% 0.007 87);
        --paper-deep:   oklch(34% 0.007 87);

        --ink:          oklch(95% 0.005 87);
        --ink-2:        oklch(78% 0.005 87);
        --ink-3:        oklch(58% 0.006 87);
        --ink-4:        oklch(42% 0.006 87);

        --sage:         oklch(74% 0.08 118);
        --sage-soft:    oklch(60% 0.07 118);
        --sage-bg:      oklch(28% 0.04 118);
    }
    .faq { background: oklch(17% 0.006 87); }
    .btn--primary { background: var(--ink); color: var(--paper); }
    .btn--primary:hover { background: oklch(88% 0.005 87); }

    .app-icon__tile--produce { background: oklch(28% 0.04 125); color: oklch(78% 0.08 125); }
    .app-icon__tile--dairy   { background: oklch(28% 0.02 85);  color: oklch(78% 0.06 85);  }
    .app-icon__tile--meat    { background: oklch(28% 0.03 45);  color: oklch(78% 0.09 45);  }
    .app-icon__tile--pantry  { background: oklch(28% 0.02 70);  color: oklch(78% 0.06 70);  }
}

/* ── Motion ─────────────────────────────────────────────────────────────────
   One orchestrated entrance: hero staggers in on page load. Every other
   section waits to be scrolled into view, then reveals with a short fade +
   translate. Hairline rules draw in from the left like a typewriter
   carriage. Nothing bounces, nothing loops — the brand is quiet.
   ────────────────────────────────────────────────────────────────────────── */

/* Hero staggered entrance — triggered by simply loading the page.
   Each child animates its own opacity + translateY with a unique delay. */

.hero__copy > * {
    opacity: 0;
    transform: translateY(12px);
    animation: rise var(--dur-slow) var(--ease-out-expo) forwards;
}
.hero__copy > .overline   { animation-delay: 40ms; }
.hero__copy > .display--xxl { animation-delay: 160ms; }
.hero__copy > .lede       { animation-delay: 320ms; }
.hero__copy > .hero__cta  { animation-delay: 480ms; }

/* The hero mockup fades + scales in slightly after the copy begins */
.hero__mockup {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    animation: rise-scale var(--dur-xslow) var(--ease-out-expo) 240ms forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise-scale {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scroll reveals — sections start slightly lowered/faded and rise when their
   section.reveal element crosses into view. The IntersectionObserver in
   index.html adds .is-visible. No JS = no animation, which is a fine
   fallback (all content remains visible). */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity var(--dur-slow) var(--ease-out-quart),
        transform var(--dur-slow) var(--ease-out-quart);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hairline rules: draw from left to right as the containing reveal arrives.
   We scale along X from the left origin. 0 → 1 feels like a pen stroke.
   For rules that aren't inside .reveal sections, the non-js fallback
   leaves them at their natural full width. */

.rule--wide {
    transform-origin: left center;
    transition: transform var(--dur-xslow) var(--ease-out-expo);
}
.reveal:not(.is-visible) .rule--wide {
    transform: scaleX(0);
}

/* Button feedback — slightly enlarged on hover with a softer lift, compressed
   on active for tactile ack. Replaces the previous translateY(1px). */

.btn {
    transition:
        transform var(--dur-fast) var(--ease-out-quart),
        background-color var(--dur-fast) var(--ease-out-quart),
        color var(--dur-fast) var(--ease-out-quart),
        box-shadow var(--dur-fast) var(--ease-out-quart);
}
.btn--primary {
    box-shadow: 0 1px 0 0 oklch(0% 0 0 / 0.06);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px oklch(15% 0.006 87 / 0.28);
}
.btn--primary:active {
    transform: scale(0.97);
    transition-duration: 80ms;
}

/* Wordmark hover — the italic sage & gives a tiny nudge.
   The brand mnemonic should feel alive under a pointer without being cute. */

.wordmark .amp {
    display: inline-block;
    transition: transform var(--dur-base) var(--ease-out-expo);
    transform-origin: 50% 60%;
}
.wordmark:hover .amp {
    transform: rotate(-3deg);
}

/* Respect users who opted out of motion — collapse everything to an instant. */

@media (prefers-reduced-motion: reduce) {
    .hero__copy > *,
    .hero__mockup {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .reveal,
    .reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
    }
    .reveal:not(.is-visible) .rule--wide,
    .rule--wide {
        transform: none !important;
    }
    .btn:hover,
    .btn:active,
    .wordmark:hover .amp {
        transform: none !important;
    }
}
