@layer reset, base, components, home, pages, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; }
  button, input, textarea { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --paper: #f4f0e7;
    --paper-light: #fbf9f4;
    --paper-dark: #e8dfcf;
    --ink: #171612;
    --ink-soft: #57534b;
    --muted: #7a756c;
    --gold: #aa813c;
    --gold-light: #d7bd83;
    --gold-pale: #eee0bf;
    --green: #687a58;
    --line: rgba(23, 22, 18, .13);
    --white-line: rgba(255, 255, 255, .15);
    --max: 1180px;
    --radius-lg: 2.5rem;
    --shadow: 0 24px 70px rgba(48, 39, 25, .15);
  }

  html { font-size: 16px; }
  body {
    min-width: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { color: var(--ink); background: var(--gold-light); }
  :focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
  h1, h2, h3 {
    font-family: "SF Pro Display", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 720;
    line-height: .98;
    letter-spacing: -.055em;
  }
  p { color: var(--ink-soft); }
}

@layer components {
  .skip-link {
    position: fixed;
    top: -6rem;
    left: 1rem;
    z-index: 100;
    padding: .8rem 1rem;
    border-radius: .75rem;
    background: var(--ink);
    color: white;
  }
  .skip-link:focus { top: 1rem; }
  .shell { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }

  .site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 240, 231, .92);
    backdrop-filter: blur(18px);
  }
  .header-inner {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    flex: none;
    overflow: hidden;
    background: var(--ink) url("/assets/kairos-charcoal-logo.png") center / cover no-repeat;
    color: transparent;
    font-size: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  }
  .brand-word { font-size: 1.18rem; font-weight: 750; letter-spacing: -.04em; }
  .site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 1.7rem; }
  .site-nav a {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 560;
    text-decoration: none;
    transition: color .2s ease;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
  }
  .header-cta:hover { transform: translateY(-2px); background: #302d27; }

  .kicker {
    color: var(--gold);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .app-store-button {
    min-width: 11.2rem;
    min-height: 3.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .62rem 1rem;
    border: 1px solid var(--ink);
    border-radius: 1rem;
    background: var(--ink);
    color: white;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(23,22,18,.15);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .app-store-button:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(23,22,18,.2); }
  .app-store-button svg { width: 1.55rem; height: 1.85rem; fill: currentColor; flex: none; }
  .app-store-button span { display: grid; line-height: 1.02; }
  .app-store-button small { font-size: .62rem; letter-spacing: .01em; }
  .app-store-button strong { margin-top: .12rem; font-size: 1.18rem; letter-spacing: -.04em; }
  .app-store-button.light { border-color: white; background: white; color: var(--ink); box-shadow: none; }

  .button {
    min-height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.15rem;
    border: 1px solid var(--ink);
    border-radius: .8rem;
    background: var(--ink);
    color: white;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
  }
  .button:hover { transform: translateY(-2px); background: #302d27; }
  .button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
  .button-outline:hover { background: var(--paper-dark); }

  .site-footer { border-top: 1px solid var(--line); }
  .footer-inner {
    min-height: 5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
  .footer-inner p { font-size: .84rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; }
  .footer-links a { color: var(--ink-soft); font-size: .84rem; text-underline-offset: .25em; }
  .footer-links a:hover { color: var(--ink); }
}

@layer home {
  .home-header {
    position: sticky;
    top: 0;
    border-bottom-color: transparent;
    background: rgba(244,240,231,.8);
  }

  .launch-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(4rem, 8vw, 7.5rem);
    background:
      radial-gradient(circle at 50% 8%, rgba(214,187,126,.35), transparent 31rem),
      linear-gradient(180deg, var(--paper-light), var(--paper));
  }
  .hero-glow {
    position: absolute;
    top: 13rem;
    left: 50%;
    width: min(84vw, 62rem);
    aspect-ratio: 1.45;
    border: 1px solid rgba(170,129,60,.13);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 5rem rgba(170,129,60,.025), 0 0 0 10rem rgba(170,129,60,.018);
    pointer-events: none;
  }
  .hero-content { position: relative; z-index: 2; text-align: center; }
  .launch-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .72rem;
    border: 1px solid rgba(170,129,60,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    color: var(--ink-soft);
    font-size: .72rem;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(80,65,35,.06);
  }
  .launch-pill span {
    padding: .18rem .4rem;
    border-radius: 999px;
    background: var(--gold);
    color: white;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .launch-pill strong { color: var(--ink); font-weight: 700; }
  .launch-hero h1 {
    max-width: 10.5ch;
    margin: 1.7rem auto 0;
    font-size: clamp(4rem, 10vw, 8.7rem);
  }
  .launch-hero h1 span { color: var(--gold); }
  .hero-lead {
    max-width: 43rem;
    margin: 1.8rem auto 0;
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    line-height: 1.65;
  }
  .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.35rem;
    margin-top: 2rem;
  }
  .text-link {
    color: var(--ink);
    font-size: .92rem;
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: .35em;
  }
  .hero-note { margin-top: 1.1rem; font-size: .76rem; color: var(--muted); }

  .phone-stage {
    position: relative;
    z-index: 2;
    height: clamp(38rem, 63vw, 47rem);
    margin-top: clamp(3rem, 7vw, 5.5rem);
  }
  .phone {
    position: absolute;
    left: 50%;
    bottom: -7rem;
    width: clamp(15rem, 25vw, 20rem);
    padding: .5rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: clamp(2.4rem, 4vw, 3.5rem);
    background: #0b0b0a;
    box-shadow: 0 35px 90px rgba(44,35,19,.24);
    overflow: hidden;
  }
  .phone img { width: 100%; border-radius: calc(clamp(2.4rem, 4vw, 3.5rem) - .55rem); }
  .phone-main { z-index: 4; transform: translateX(-50%); }
  .phone-side { z-index: 2; width: clamp(13rem, 22vw, 18rem); opacity: .96; }
  .phone-left { transform: translateX(calc(-50% - clamp(13rem, 25vw, 19rem))) rotate(-8deg); bottom: -3rem; }
  .phone-right { transform: translateX(calc(-50% + clamp(13rem, 25vw, 19rem))) rotate(8deg); bottom: -3rem; }
  .stage-chip {
    position: absolute;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(23,22,18,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: var(--ink);
    font-size: .76rem;
    font-weight: 700;
    box-shadow: 0 16px 35px rgba(59,47,26,.12);
    backdrop-filter: blur(12px);
  }
  .stage-chip span { width: .48rem; height: .48rem; border-radius: 50%; background: var(--green); }
  .chip-left { left: 7%; top: 26%; }
  .chip-right { right: 5%; top: 39%; }

  .proof-strip { position: relative; z-index: 5; background: var(--ink); color: white; }
  .proof-inner { padding-block: 2rem; }
  .proof-inner > p { color: white; font-weight: 750; text-align: center; }
  .proof-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .8rem 2.5rem;
    margin-top: 1rem;
  }
  .proof-items span { color: rgba(255,255,255,.58); font-size: .82rem; }

  .experience-section { padding-block: clamp(5.5rem, 10vw, 9rem); background: var(--paper-light); }
  .section-intro { text-align: center; }
  .section-intro h2 {
    margin-top: 1rem;
    font-size: clamp(3rem, 7vw, 6.5rem);
  }
  .section-intro h2 span { color: var(--gold); }
  .section-intro > p:last-child {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    font-size: 1.07rem;
    line-height: 1.7;
  }
  .story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: clamp(3rem, 6vw, 5rem);
  }
  .story-card {
    position: relative;
    min-height: 47rem;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
  }
  .story-planning { grid-row: span 2; min-height: 63rem; background: #ded4c2; }
  .story-recovery { min-height: 37rem; background: var(--ink); color: white; }
  .story-progress { min-height: 37rem; background: #d7c08d; }
  .story-copy { position: relative; z-index: 3; padding: clamp(1.75rem, 4vw, 3.1rem); }
  .story-label {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .story-copy h3 {
    max-width: 13ch;
    margin-top: 1rem;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1.02;
  }
  .story-copy p { max-width: 33rem; margin-top: 1.2rem; line-height: 1.7; }
  .story-recovery .story-copy p { color: rgba(255,255,255,.64); }
  .story-recovery .story-label { color: var(--gold-light); }
  .story-screen {
    position: relative;
    z-index: 2;
    width: min(72%, 21rem);
    align-self: end;
    justify-self: center;
    padding: .45rem;
    border-radius: 2.8rem 2.8rem 0 0;
    background: #111;
    box-shadow: 0 24px 60px rgba(32,25,16,.2);
    overflow: hidden;
  }
  .story-screen img { width: 100%; border-radius: 2.4rem 2.4rem 0 0; }
  .story-planning .story-screen { width: min(78%, 24rem); transform: translateY(5rem); }
  .story-progress .story-screen { width: min(58%, 18rem); transform: translateY(8rem); }
  .recovery-visual { position: relative; display: grid; place-items: end center; overflow: hidden; }
  .story-recovery .story-screen { width: min(54%, 17rem); transform: translateY(6rem); }
  .recovery-orbit { position: absolute; border: 1px solid rgba(215,189,131,.17); border-radius: 50%; }
  .orbit-one { width: 26rem; height: 26rem; bottom: -10rem; }
  .orbit-two { width: 18rem; height: 18rem; bottom: -6rem; }

  .feature-section { padding-block: clamp(5.5rem, 10vw, 9rem); background: #d9d0c2; }
  .feature-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
  .feature-heading { position: sticky; top: 8rem; }
  .feature-heading h2 { margin-top: 1rem; font-size: clamp(3rem, 5vw, 5rem); }
  .feature-heading > p:last-child { max-width: 30rem; margin-top: 1.3rem; font-size: 1rem; line-height: 1.7; }
  .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .feature-tile {
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 1.8rem;
    background: var(--paper-light);
  }
  .feature-tile:nth-child(even) { transform: translateY(2rem); }
  .tile-dark { background: var(--ink); color: white; }
  .tile-gold { background: #b58c45; color: #17130c; }
  .tile-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: .8rem;
    font-weight: 800;
    opacity: .75;
  }
  .tile-lock::before {
    content: "";
    width: .7rem;
    height: .65rem;
    border: 2px solid currentColor;
    border-radius: .18rem;
    box-shadow: 0 -.35rem 0 -.1rem var(--paper-light);
  }
  .feature-tile h3 { margin-top: auto; font-size: 1.55rem; line-height: 1.08; }
  .feature-tile p { margin-top: .85rem; font-size: .91rem; line-height: 1.65; }
  .tile-dark p { color: rgba(255,255,255,.62); }
  .tile-gold p { color: rgba(23,19,12,.72); }

  .launch-cta { padding-block: clamp(4rem, 8vw, 7rem); background: var(--paper-light); }
  .cta-panel {
    min-height: 23rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: white;
    overflow: hidden;
  }
  .cta-preview {
    width: clamp(16rem, 25vw, 19rem);
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 1.6rem;
    background: linear-gradient(145deg, #faf7ef, #e8dfcf);
    color: var(--ink);
    box-shadow: 0 25px 55px rgba(0,0,0,.24);
    transform: rotate(-2deg);
  }
  .cta-preview-head, .cta-preview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
  }
  .cta-preview-head span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .cta-preview-head strong { font-size: .78rem; }
  .cta-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .3rem;
    margin-top: 1rem;
  }
  .cta-week span {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: .22rem;
    padding: .5rem .15rem .55rem;
    border: 1px solid rgba(23,22,18,.1);
    border-radius: .65rem;
    background: rgba(255,255,255,.56);
  }
  .cta-week small { color: var(--muted); font-size: .55rem; font-weight: 750; }
  .cta-week b { font-size: .72rem; }
  .cta-week .is-planned {
    border-color: rgba(170,129,60,.4);
    background: var(--gold-pale);
  }
  .cta-week .is-planned::after {
    content: "";
    width: .3rem;
    height: .3rem;
    border-radius: 50%;
    background: var(--gold);
  }
  .cta-preview-foot {
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(23,22,18,.1);
    font-size: .68rem;
  }
  .cta-preview-foot span { display: inline-flex; align-items: center; gap: .38rem; color: var(--ink-soft); }
  .cta-preview-foot i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--green); }
  .cta-preview-foot strong { color: var(--green); }
  .cta-copy .kicker { color: var(--gold-light); }
  .cta-copy h2 { max-width: 12ch; margin-top: .8rem; font-size: clamp(2.6rem, 5vw, 4.7rem); }
  .cta-copy > p:last-child { max-width: 33rem; margin-top: 1.1rem; color: rgba(255,255,255,.62); }

  .home-footer { background: var(--paper); }
  .footer-top {
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .footer-top > p { font-size: 1.05rem; font-weight: 650; color: var(--ink); }
  .home-footer .footer-inner { border-top: 1px solid var(--line); }
}

@layer pages {
  .page-intro { padding-block: clamp(4rem, 8vw, 7rem) 3rem; border-bottom: 1px solid var(--line); }
  .page-intro .eyebrow, .effective {
    color: var(--gold);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .page-intro h1 { max-width: 12ch; margin-top: .9rem; font-size: clamp(3.5rem, 8vw, 6.8rem); }
  .page-intro p { max-width: 43rem; margin-top: 1.25rem; font-size: 1.08rem; line-height: 1.7; }
  .effective { margin-top: 1.6rem; }
  .document-layout {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 7rem);
    padding-block: 3rem 7rem;
  }
  .doc-nav { position: sticky; top: 7rem; align-self: start; }
  .doc-nav p {
    margin-bottom: .8rem;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .doc-nav a { display: block; padding: .48rem 0; color: var(--muted); font-size: .88rem; text-decoration: none; }
  .doc-nav a:hover { color: var(--ink); }
  .document { max-width: 47rem; }
  .document section { padding: 1.9rem 0 2.2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
  .document section:first-child { padding-top: 0; }
  .document h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.04em; }
  .document p, .document li { color: var(--ink-soft); font-size: 1rem; line-height: 1.78; }
  .document p + p { margin-top: 1rem; }
  .document a, .support-section a:not(.button) { color: #78581f; text-underline-offset: .23em; }
  .document ul { padding-left: 1.3rem; }
  .document li + li { margin-top: .45rem; }

  .support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, .9fr);
    gap: 1.2rem;
    padding-block: 3rem 6rem;
  }
  .support-card {
    padding: clamp(1.6rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1.6rem;
    background: var(--paper-light);
  }
  .support-card .eyebrow {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .support-card h2 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
  .support-card p { margin-top: 1rem; max-width: 37rem; line-height: 1.7; }
  .support-card .button { margin-top: 2rem; }
  .support-card.secondary { background: var(--paper-dark); }
  .support-card.secondary h2 { margin-top: 0; font-size: 1.85rem; }
  .support-section { padding-bottom: 6rem; }
  .support-section > h2 { margin-bottom: 1.1rem; font-size: 2.2rem; }
  .support-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .support-links article { padding: 1.7rem 1.5rem 1.7rem 0; }
  .support-links article + article { border-left: 1px solid var(--line); padding-left: 1.5rem; }
  .support-links h3 { font-size: 1.4rem; letter-spacing: -.035em; }
  .support-links p { margin-top: .75rem; line-height: 1.7; }
  .support-links a { display: inline-block; margin-top: .9rem; font-weight: 650; }
}

@layer utilities {
  @media (max-width: 900px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-planning { grid-row: auto; min-height: 50rem; }
    .story-recovery, .story-progress { min-height: 42rem; }
    .feature-layout { grid-template-columns: 1fr; }
    .feature-heading { position: static; }
    .cta-panel { grid-template-columns: auto 1fr; }
    .cta-preview { width: 15rem; }
    .cta-panel .app-store-button { grid-column: 2; justify-self: start; }
    .document-layout { grid-template-columns: 1fr; }
    .doc-nav {
      position: static;
      display: flex;
      flex-wrap: wrap;
      gap: .1rem 1.2rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--line);
    }
    .doc-nav p { flex-basis: 100%; margin-bottom: .2rem; }
  }

  @media (max-width: 720px) {
    .shell { width: min(calc(100% - 2rem), var(--max)); }
    .header-inner { min-height: 4.25rem; gap: .8rem; }
    .home-nav { display: none; }
    .header-cta { min-height: 2.5rem; padding-inline: .85rem; font-size: .75rem; }
    .site-nav { gap: .8rem 1rem; flex-wrap: wrap; }
    .site-nav a { font-size: .82rem; }
    .launch-hero { padding-top: 3rem; }
    .launch-hero h1 { font-size: clamp(3.55rem, 18vw, 5.6rem); }
    .hero-lead { font-size: 1rem; }
    .phone-stage { height: 35rem; margin-top: 2.5rem; }
    .phone { bottom: -4.5rem; width: min(68vw, 17rem); }
    .phone-side, .stage-chip { display: none; }
    .proof-inner { padding-block: 1.5rem; }
    .proof-items { gap: .5rem 1.3rem; }
    .proof-items span { font-size: .72rem; }
    .section-intro h2 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
    .story-card, .story-planning, .story-recovery, .story-progress { min-height: 43rem; border-radius: 1.8rem; }
    .story-copy { padding: 1.6rem; }
    .story-copy h3 { font-size: clamp(2.2rem, 10vw, 3.25rem); }
    .story-planning .story-screen { width: min(78%, 21rem); }
    .story-progress .story-screen, .story-recovery .story-screen { width: min(66%, 18rem); }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-tile:nth-child(even) { transform: none; }
    .feature-tile { min-height: 15rem; }
    .cta-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; border-radius: 1.8rem; }
    .cta-preview { width: min(100%, 18rem); transform: none; }
    .cta-copy h2 { margin-inline: auto; }
    .cta-panel .app-store-button { grid-column: auto; justify-self: center; }
    .footer-top { min-height: 7rem; align-items: flex-start; justify-content: center; flex-direction: column; }
    .footer-inner { padding-block: 1.4rem; align-items: flex-start; flex-direction: column; }
    .support-grid { grid-template-columns: 1fr; padding-block: 2rem 4rem; }
    .support-links { grid-template-columns: 1fr; }
    .support-links article, .support-links article + article { padding: 1.5rem 0; border-left: 0; }
    .support-links article + article { border-top: 1px solid var(--line); }
  }

  @media (max-width: 500px) {
    .site-header:not(.home-header) .header-inner {
      align-items: flex-start;
      flex-direction: column;
      padding-block: 1rem;
    }
    .launch-pill { gap: .3rem; }
    .hero-actions { flex-direction: column; }
    .story-card, .story-planning, .story-recovery, .story-progress { min-height: 40rem; }
    .page-intro { padding-top: 3rem; }
    .page-intro h1 { font-size: clamp(3.2rem, 16vw, 4.3rem); }
    .document-layout { padding-block: 2rem 5rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .header-cta, .app-store-button, .button { transition: none; }
    .header-cta:hover, .app-store-button:hover, .button:hover { transform: none; }
  }
}
