:root {
    --primary:      #48755F;
    --primary-dark: #214E47;
    --accent:       #A85F43;
    --dark:         #0C3530;
    --light:        #F5F6EF;
    --muted:        #596260;
    --white:        #FFFFFF;
    --serif: 'Domine', Georgia, serif;
    --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

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

  html { scroll-behavior: smooth; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  [id] { scroll-margin-top: 115px; }
  button { font-family: inherit; }

  body {
    font-family: var(--sans);
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
  }

  img, svg { max-width: 100%; }

  .container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  section { padding: 88px 0; }

  h1, h2, h3 { font-family: var(--serif); line-height: 1.25; }
  h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }

  .kicker {
    display: inline-block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 12px;
  }

  .lede { font-size: 19px; color: var(--muted); max-width: 640px; }

  .center { text-align: center; }
  .center .lede { margin-left: auto; margin-right: auto; }

  .icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }
  .btn .icon { width: 18px; height: 18px; }
  .btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(72,117,95,0.35); }
  .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
  .btn-secondary { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
  .btn-secondary:hover { background: rgba(72,117,95,0.08); }
  .btn-large { font-size: 17px; padding: 16px 34px; }

  /* ---- Nav ---- */
  .nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(12,53,48,0.08);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  }
  .nav.is-scrolled { background: rgba(8,40,36,0.97); border-bottom-color: rgba(179,206,164,0.18); box-shadow: 0 4px 20px rgba(0,0,0,0.14); }
  .nav :focus-visible { outline-color: var(--accent); }
  .nav.is-scrolled :focus-visible { outline-color: #EAC2AB; }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; gap: 24px; max-width: 1240px; margin: 0 auto; transition: padding 0.35s ease; }
  .nav.is-scrolled .nav-inner { padding-top: 2px; padding-bottom: 2px; }
  .wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark); flex-shrink: 0; }
  .brand-logo { display: block; width: 320px; height: auto; }
  .nav .wordmark { display: grid; gap: 0; }
  .nav .brand-logo { grid-area: 1 / 1; width: 220px; transition: opacity 0.35s ease, width 0.35s ease; }
  .nav.is-scrolled .brand-logo { width: 156px; }
  .nav-logo-dark { opacity: 0; }
  .nav-logo-light { opacity: 1; }
  .nav.is-scrolled .nav-logo-dark { opacity: 1; }
  .nav.is-scrolled .nav-logo-light { opacity: 0; }
  .nav-links { display: flex; align-items: center; gap: 24px; padding: 5px; border: 1px solid #E0E6DB; border-radius: 999px; background: var(--light); transition: background-color 0.35s ease, border-color 0.35s ease, padding 0.35s ease; }
  .nav.is-scrolled .nav-links { padding: 2px; background: rgba(179,206,164,0.05); border-color: rgba(179,206,164,0.18); }
  .nav-links a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; color: var(--dark); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, min-height 0.35s ease, padding 0.35s ease; }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn):focus-visible { color: var(--primary-dark); background: #E5EDE1; border-color: #CAD8C8; }
  .nav.is-scrolled .nav-links a:not(.btn) { min-height: 30px; padding-top: 3px; padding-bottom: 3px; color: var(--light); }
  .nav.is-scrolled .nav-links a:not(.btn):hover, .nav.is-scrolled .nav-links a:not(.btn):focus-visible { color: #B3CEA4; background: rgba(179,206,164,0.12); border-color: rgba(179,206,164,0.22); }
  .nav .btn { padding: 9px 18px; border-radius: 999px; font-size: 13px; background: var(--primary); color: var(--white); box-shadow: 0 2px 7px rgba(0,0,0,0.1); transition: background-color 0.35s ease, color 0.35s ease, padding 0.35s ease, transform 0.15s ease; }
  .nav .btn:hover { background: var(--primary-dark); }
  .nav.is-scrolled .btn { padding: 4px 14px; background: #B3CEA4; color: var(--dark); }
  .nav.is-scrolled .btn:hover { background: #C4DAB9; }
  .nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid rgba(12,53,48,0.16); border-radius: 10px; background: transparent; color: var(--dark); cursor: pointer; flex-shrink: 0; transition: color 0.35s ease, border-color 0.35s ease, width 0.35s ease, height 0.35s ease; }
  .nav.is-scrolled .nav-toggle { width: 36px; height: 36px; color: var(--light); border-color: rgba(179,206,164,0.5); }
  .nav-toggle span { width: 20px; height: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @media (max-width: 1024px) {
    .nav-inner { flex-wrap: wrap; gap: 0; }
    .nav .brand-logo { width: 200px; }
    .nav.is-scrolled .brand-logo { width: 156px; }
    .nav-toggle:not([hidden]) { display: flex; }
    .nav-links, .nav.is-scrolled .nav-links { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; margin: 8px 0 10px; border-radius: 18px; }
    .nav-links a:not(.btn), .nav.is-scrolled .nav-links a:not(.btn) { justify-content: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
    .nav-links .btn { justify-content: center; min-height: 44px; margin-top: 8px; }
  }
  @media (max-width: 520px) {
    .nav-inner { padding-left: 16px; padding-right: 16px; }
    .container { padding-left: 20px; padding-right: 20px; }
  }
  .nav .nav-links a[aria-current="location"]:not(.btn) { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
  .nav.is-scrolled .nav-links a[aria-current="location"]:not(.btn) { background: #B3CEA4; color: var(--dark); border-color: #B3CEA4; }
  .nav .btn[aria-current="location"] { box-shadow: 0 0 0 3px rgba(72,117,95,0.25); }
  .nav.is-scrolled .btn[aria-current="location"] { box-shadow: 0 0 0 3px rgba(179,206,164,0.4); }

  /* ---- Hero ---- */
  .hero {
    --hero-accent: #EAC2AB;
    background: radial-gradient(ellipse at 50% 68%, var(--primary-dark) 0%, var(--dark) 52%, #082824 100%);
    color: var(--light);
    padding: 28px 0 56px;
    overflow: hidden;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(34px, 4.5vw, 52px);
    margin-bottom: 20px;
    text-wrap: balance;
  }
  .hero-brand-icon { display: block; width: 180px; height: auto; margin: 0 auto 16px; }
  .hero-copy { width: 100%; max-width: 1032px; margin: 0 auto; text-align: center; }
  .hero-title-line { display: block; }
  .hero-title-line:last-child { color: var(--hero-accent); font-size: 0.88em; }
  .hero-remember { display: inline-block; padding: 0 0.06em; margin: 0 -0.06em; color: var(--hero-accent); }
  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .hero-remember {
      background-image: linear-gradient(110deg, #EAC2AB 35%, #F6DDC8 44%, #FFFFFF 50%, #F6DDC8 56%, #EAC2AB 65%);
      background-size: 300% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: remember-shimmer 6s ease-in-out infinite;
    }
  }
  @keyframes remember-shimmer {
    0%, 18% { background-position: 100% 0; }
    55%, 100% { background-position: 0% 0; }
  }
  @media (prefers-reduced-motion: reduce), (forced-colors: active) {
    .hero-remember { background: none; color: inherit; -webkit-text-fill-color: currentColor; animation: none; }
  }
  .hero-subtitle { margin: 0 auto; max-width: 640px; font-size: clamp(16px, 2vw, 19px); color: #C5D4C8; text-wrap: balance; }
  @media (min-width: 861px) {
    .hero-title-line:first-child { white-space: nowrap; }
  }
  .hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 0; }
  .hero-ctas .btn { padding: 14px 22px; font-size: 15px; }
  .hero-ctas .btn-primary { background: #B3CEA4; color: var(--dark); box-shadow: 0 4px 18px rgba(0,0,0,0.18); }
  .hero-ctas .btn-primary:hover { background: #C4DAB9; }
  .hero-ctas .btn-secondary { color: var(--light); border-color: rgba(179,206,164,0.6); }
  .hero-ctas .btn-secondary:hover { background: rgba(255,255,255,0.08); }
  .hero-ctas .btn:focus-visible { outline-color: var(--hero-accent); }
  @media (max-width: 860px) {
    .hero-copy { max-width: 640px; }
    .hero { padding-top: 28px; }
  }

  /* ---- Animated app preview ---- */
  .product-preview {
    background: radial-gradient(ellipse at 50% 60%, #DDE8D7 0%, var(--light) 64%);
    padding: 64px 0 56px;
    border-bottom: 1px solid #DDE5D7;
  }
  .preview-heading { max-width: 620px; margin: 0 auto 36px; text-align: center; }
  .preview-heading h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 12px; }
  .preview-heading p { font-size: 16px; color: var(--muted); text-wrap: balance; }
  .app-tour { width: 100%; max-width: 760px; min-width: 0; margin: 0 auto; }
  .tablet {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: #082824;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 24px 54px rgba(12,53,48,0.18), 0 0 0 1px rgba(12,53,48,0.14);
    transition: max-width 0.9s cubic-bezier(0.22,1,0.36,1), border-radius 0.9s ease;
  }
  .tablet-screen {
    background: var(--light);
    color: var(--dark);
    border-radius: 21px;
    overflow: hidden;
    height: 590px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.5;
    transition: border-radius 0.9s ease;
  }
  .device-header { background: linear-gradient(135deg, var(--dark), var(--primary)); color: var(--white); padding: 5px 18px; }
  .device-header .p-logo { display: block; width: 170px; height: auto; margin: 0; }
  .tablet-workspace { display: grid; grid-template-columns: 168px minmax(0, 1fr); flex: 1; min-height: 0; transition: grid-template-columns 0.9s cubic-bezier(0.22,1,0.36,1); }
  .tablet-sidebar { display: flex; flex-direction: column; width: 168px; min-width: 0; overflow: hidden; gap: 8px; padding: 22px 12px; background: #E9EEE3; border-right: 1px solid #D7E1D3; transition: opacity 0.25s ease, visibility 0.25s ease; }
  .tablet-sidebar .p-eyebrow { padding: 0 9px; margin-bottom: 6px; }
  .tablet-sidebar button { display: flex; align-items: center; gap: 8px; padding: 11px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; font-weight: 600; cursor: pointer; }
  .tablet-sidebar button .icon { width: 16px; height: 16px; }
  .tablet-sidebar button:hover { background: #DDE7D7; }
  .tablet-sidebar button[aria-pressed="true"] { color: var(--white); background: var(--primary); }
  .tablet-sidebar-note { margin-top: auto; padding: 16px 9px 0; border-top: 1px solid #CAD8C8; color: var(--muted); font-size: 12px; }
  .tablet-sidebar-note strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }
  .tablet-body { position: relative; grid-column: 2; min-width: 0; }
  .tablet .tour-scene { inset: 20px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #CAD8C8 transparent; }
  .app-tour.is-phone .tablet { max-width: 380px; border-radius: 38px; }
  .app-tour.is-phone .tablet-screen { border-radius: 29px; }
  .app-tour.is-phone .tablet-workspace { grid-template-columns: 0px minmax(0, 1fr); }
  .app-tour.is-phone .tablet-sidebar { opacity: 0; visibility: hidden; pointer-events: none; }
  .app-tour.is-phone .tour-scene { inset: 16px; }
  .tour-scene { position: absolute; inset: 16px; animation: scene-in 0.38s ease both; }
  .tour-scene h3 { font-size: 21px; margin: 4px 0 14px; }
  .p-eyebrow { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary-dark); }
  .p-muted { color: var(--muted); font-size: 13px; }
  .p-progress-card { background: var(--white); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
  .p-bar { height: 5px; background: rgba(12,53,48,0.10); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
  .p-bar-fill { height: 100%; background: var(--primary); border-radius: 3px; }
  .p-progress-card span { font-size: 12px; color: var(--muted); }
  .p-card {
    width: 100%; background: var(--white); border: 0; border-left: 3px solid #d7dfd6;
    border-radius: 10px; padding: 12px 10px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px; color: var(--dark); text-align: left;
  }
  button.p-card { cursor: pointer; }
  button.p-card:hover { background: #E9EFE4; }
  .p-card.done { border-left-color: var(--primary); }
  .p-card.active { border-left-color: var(--accent); box-shadow: 0 2px 8px rgba(12,53,48,0.06); }
  .p-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); background: var(--primary); flex-shrink: 0; }
  .p-icon .icon { width: 15px; height: 15px; }
  .p-card.active .p-icon { background: var(--accent); }
  .p-card-body { flex: 1; min-width: 0; }
  .p-card-title { display: block; font-weight: 700; font-size: 14px; }
  .p-card-meta { display: block; font-size: 12px; color: var(--muted); }
  .p-action { font-size: 12px; font-weight: 700; color: var(--primary-dark); }
  .p-questions {
    width: 100%; background: var(--dark); color: var(--white); border: 0; border-radius: 10px;
    padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .p-questions .icon { width: 15px; height: 15px; color: #EAC2AB; }
  .p-chapter { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 9px; background: var(--white); margin-bottom: 7px; }
  .p-chapter.active { background: #E5EDE1; }
  .p-chapter-number { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: var(--light); font-size: 12px; font-weight: 700; flex-shrink: 0; }
  .p-chapter.active .p-chapter-number { background: var(--primary); color: var(--white); }
  .p-primary { width: 100%; padding: 11px; margin-top: 10px; border: 0; border-radius: 9px; background: var(--primary); color: var(--white); font-weight: 700; font-size: 13px; cursor: pointer; }
  .p-primary:hover { background: var(--primary-dark); }
  .p-back { min-height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 0 6px; }
  .p-tabs { display: flex; gap: 3px; background: #E5EAE1; border-radius: 8px; padding: 4px; margin: 0 0 12px; }
  .p-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 6px; padding: 7px 3px; background: transparent; color: var(--muted); font-weight: 700; font-size: 12px; cursor: pointer; }
  .p-tabs button[aria-pressed="true"] { background: var(--white); color: var(--primary-dark); box-shadow: 0 1px 4px rgba(12,53,48,0.08); }
  .p-reading, .p-audio, .p-video, .p-question-card { background: var(--white); padding: 14px; border-radius: 12px; margin-bottom: 12px; }
  .p-reading h4 { font-family: var(--serif); font-size: 15px; margin-bottom: 8px; }
  .p-reading p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
  .p-highlight { background: linear-gradient(90deg, #E5EDE1 50%, transparent 50%); background-size: 200% 100%; animation: highlight-in 3s ease both; }
  .p-takeaway { padding: 10px; border-radius: 7px; border-left: 2px solid var(--primary); background: var(--light); font-size: 12px; }
  .p-takeaway strong { display: block; margin-bottom: 4px; }
  .p-audio { text-align: center; }
  .p-audio .p-icon { width: 36px; height: 36px; margin: 0 auto 5px; }
  .p-audio strong { display: block; font-size: 12px; }
  .p-wave { height: 38px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 8px 0; }
  .p-wave span { width: 4px; border-radius: 5px; height: var(--bar-height); background: var(--primary); animation: waveform 0.8s ease-in-out var(--delay) infinite alternate; }
  .p-time { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 7px; }
  .p-transcript { color: var(--muted); font-size: 12px; margin-top: 10px; text-align: left; padding: 8px; background: var(--light); border-radius: 6px; }
  .p-video { padding: 0; overflow: hidden; }
  .p-video-art { position: relative; background: #E5EDE1; padding: 10px 12px 8px; text-align: center; }
  .p-video-art svg { display: block; width: 100%; height: 117px; }
  .p-video-art .cell { transform-box: fill-box; transform-origin: center; animation: cell-breathe 2.4s ease-in-out infinite alternate; }
  .p-video-art .cell:nth-of-type(2) { animation-delay: -0.8s; }
  .p-video-art .cell:nth-of-type(3) { animation-delay: -1.6s; }
  .p-video-caption { display: block; font-size: 12px; color: var(--primary-dark); margin-top: 2px; }
  .p-video-controls { padding: 11px 12px; }
  .p-video-controls .p-time { margin-bottom: 7px; }
  .p-question-context { background: #E5EDE1; color: var(--primary-dark); border-radius: 6px; font-size: 12px; padding: 8px 10px; margin-bottom: 10px; }
  .p-question-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
  .p-question-draft { border: 1px solid #CAD8C8; background: var(--white); border-radius: 8px; min-height: 84px; padding: 12px; font-size: 14px; color: var(--dark); }
  .p-caret { display: inline-block; width: 1px; height: 13px; margin-left: 2px; background: var(--primary); vertical-align: -2px; animation: cursor-blink 0.7s steps(1) infinite; }
  .p-success { text-align: center; padding: 10px 0 14px; }
  .p-success-icon { margin: 0 auto 12px; width: 58px; height: 58px; display: grid; place-items: center; color: var(--primary); background: #E5EDE1; border-radius: 50%; }
  .p-success-icon .icon { width: 29px; height: 29px; }
  .p-success h3 { margin-bottom: 7px; }
  .p-question-card p { margin-top: 7px; font-size: 12px; }
  .p-saved-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary-dark); margin-top: 12px; }
  .p-saved-label .icon { width: 14px; height: 14px; }
  .tour-controls { margin: 0 auto 28px; max-width: 660px; }
  .tour-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .tour-steps button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 1px solid #CCD9C6; border-radius: 999px; background: rgba(255,255,255,0.6); color: var(--primary-dark); font-size: 13px; font-weight: 600; cursor: pointer; transition: color 0.2s, background-color 0.2s; }
  .tour-steps button .icon { width: 16px; height: 16px; }
  .tour-steps button:hover { background: #E5EDE1; }
  .tour-steps button[aria-current="step"] { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
  .app-tour.is-paused .p-wave span, .app-tour.is-paused .cell, .app-tour.is-paused .p-highlight, .app-tour.is-paused .p-caret { animation-play-state: paused; }
  @media (min-width: 601px) {
    .app-tour:not(.is-phone) .tour-scene h3 { font-size: 24px; }
    .app-tour:not(.is-phone) .p-reading h4 { font-size: 18px; }
    .app-tour:not(.is-phone) .p-reading p { font-size: 14px; }
    .app-tour:not(.is-phone) .p-takeaway { font-size: 13px; }
    .app-tour:not(.is-phone) .p-card-title { font-size: 14px; }
    .app-tour:not(.is-phone) .p-video-art svg { height: 175px; }
  }
  @media (max-width: 600px) {
    .product-preview { padding-top: 48px; }
    .tablet-workspace { grid-template-columns: 0px minmax(0, 1fr); }
    .tablet-sidebar { display: none; }
    .tablet .tour-scene { inset: 16px; }
    .tour-steps { gap: 6px; }
    .tour-steps button { padding: 9px 12px; font-size: 12px; }
    .hero-brand-icon { width: 120px; }
  }
  @keyframes scene-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes waveform { to { transform: scaleY(0.35); } }
  @keyframes cell-breathe { to { transform: scale(1.12); } }
  @keyframes highlight-in { from { background-position: 100% 0; } to { background-position: 0 0; } }
  @keyframes cursor-blink { 50% { opacity: 0; } }

  @media (max-width: 520px) {
    .hero h1 { font-size: clamp(28px, 7.7vw, 38px); }
    .hero-ctas { gap: 10px; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

  /* ---- How it works ---- */
  .steps { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; text-align: left; }
  .step { position: relative; }
  .step-preview { min-height: 280px; padding: 24px; margin-bottom: 26px; background: #EDF2E7; border: 1px solid #DDE6D6; border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; }
  .step:not(:last-child) .step-preview::after { content: "→"; position: absolute; z-index: 1; right: -26px; top: 50%; transform: translateY(-50%); width: 24px; text-align: center; color: #B3CEA4; font-size: 23px; }
  .step:nth-child(2) .step-preview { background: #F7EEE7; border-color: #EBDDD1; }
  .step:nth-child(3) .step-preview { background: #E7EFEB; }
  .step-mini { width: 100%; max-width: 320px; min-height: 200px; display: flex; flex-direction: column; justify-content: center; background: var(--white); border: 1px solid rgba(12,53,48,0.08); border-radius: 12px; padding: 18px; box-shadow: 0 8px 20px rgba(12,53,48,0.05); font-size: 12px; }
  .step-mini .mini-title { font-size: 14px; line-height: 1.45; font-weight: 700; margin-bottom: 14px; }
  .mini-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #D7E1D3; border-radius: 6px; padding: 10px; color: var(--muted); background: var(--light); }
  .mini-link .icon { width: 14px; height: 14px; }
  .mini-send { margin-top: 12px; padding: 8px; border-radius: 5px; color: var(--white); background: var(--primary); font-size: 11px; text-align: center; font-weight: 600; }
  .mini-options { display: flex; gap: 6px; }
  .mini-options span { flex: 1; display: flex; align-items: center; flex-direction: column; gap: 10px; background: var(--light); padding: 16px 2px; border-radius: 7px; font-size: 11px; }
  .mini-options span:first-child { background: #E5EDE1; color: var(--primary-dark); }
  .mini-options .icon { width: 24px; height: 24px; }
  .mini-question { border-bottom: 1px solid #E2E8DC; padding: 10px 0; color: var(--muted); }
  .mini-ready { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 11px; color: var(--primary-dark); }
  .mini-ready .icon { width: 14px; height: 14px; }
  .step-num { display: block; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 10px; }
  .step h4 { font-family: var(--serif); line-height: 1.4; font-size: 20px; margin-bottom: 12px; }
  .step p { color: var(--muted); font-size: 15px; }
  @media (max-width: 820px) {
    .steps { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; gap: 36px; }
    .step-preview { margin-bottom: 20px; }
    .step:not(:last-child) .step-preview::after { display: none; }
  }

  /* ---- Clinic story and patient portal ---- */
  .clinic { background: linear-gradient(160deg, var(--dark), #092A26 70%); color: var(--white); }
  .clinic .kicker, .step-num { color: #B3CEA4; }
  .clinic .lede { color: #D0DDD1; font-size: 17px; }
  .clinic-intro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
  .clinic-outcome { color: #EAC2AB; font-size: clamp(18px, 1.8vw, 20px); font-weight: 600; line-height: 1.55; margin-top: 26px; padding-left: 18px; border-left: 3px solid #B3CEA4; }
  .clinic-outcome span { display: block; }
  .clinic-outcome span + span { margin-top: 4px; }
  .clinic-visual { max-width: 360px; padding: 8px 20px 24px; border-radius: 22px; background: var(--light); justify-self: end; }
  .clinic-visual img { display: block; width: 100%; height: auto; }
  .clinic-visual figcaption { color: var(--primary-dark); font-size: 17px; font-weight: 600; line-height: 1.5; text-align: center; margin-top: 12px; }
  .clinic-visual figcaption strong { display: block; font-size: 20px; margin-bottom: 4px; }
  .clinic-visual figcaption span { display: block; }
  .clinic-workflow { padding-top: 48px; margin-top: 48px; border-top: 1px solid rgba(179,206,164,0.2); }
  .workflow-heading h3 { font-size: clamp(24px, 3vw, 30px); }
  .clinic .step p { color: #D0DDD1; }
  .clinic .step-mini { color: var(--dark); }
  .clinic-portal { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; padding-top: 48px; margin-top: 48px; border-top: 1px solid rgba(179,206,164,0.2); }
  .clinic-portal h3 { font-size: clamp(25px, 3.2vw, 32px); margin-bottom: 16px; }
  .clinic-plan-link { display: inline-flex; align-items: center; gap: 10px; color: #B3CEA4; margin-top: 22px; font-size: 16px; font-weight: 700; text-underline-offset: 5px; }
  .clinic-plan-link .icon { width: 18px; height: 18px; }
  .clinic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .clinic-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 22px; }
  .clinic-card .icon { width: 26px; height: 26px; color: #B3CEA4; margin-bottom: 10px; }
  .clinic-card h4 { font-family: var(--serif); font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
  .clinic-card p { font-size: 15px; color: #D0DDD1; }
  @media (max-width: 900px) {
    .clinic-intro, .clinic-portal { grid-template-columns: 1fr; gap: 32px; }
    .clinic-visual { width: 100%; justify-self: center; }
  }
  @media (max-width: 600px) { .clinic-grid { grid-template-columns: 1fr; } }

  /* ---- Privacy ---- */
  .privacy-box {
    background: var(--light);
    border-radius: 20px;
    padding: 44px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
  }
  @media (max-width: 700px) { .privacy-box { grid-template-columns: 1fr; } }
  .privacy-shield {
    width: 68px; height: 68px;
    border-radius: 18px;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
  }
  .privacy-shield .icon { width: 34px; height: 34px; }
  .privacy-box h2 { font-size: 28px; }
  .privacy-box p { color: var(--muted); margin-top: 10px; max-width: 640px; }
  .privacy-box a { color: var(--primary-dark); text-underline-offset: 3px; }

  /* ---- Pricing ---- */
  .pricing { background: #082824; color: var(--light); }
  .pricing-intro { text-align: center; }
  .pricing-intro .kicker { text-transform: none; letter-spacing: 0.04em; color: #B3CEA4; }
  .pricing-intro .lede { margin: 0 auto; color: #C5D4C8; }
  .pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 44px auto 0; }
  .pricing-card { display: flex; flex-direction: column; background: #103A33; border: 1px solid rgba(179,206,164,0.24); border-radius: 20px; padding: 32px; }
  .pricing-card h3 { font-size: 26px; margin-bottom: 12px; }
  .pricing-plan-type { color: #B3CEA4; font-size: 15px; font-weight: 700; margin: -4px 0 12px; }
  .pricing-description { color: #C5D4C8; font-size: 16px; }
  .pricing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 24px 0; }
  .pricing-price strong { font-family: var(--serif); font-size: 48px; line-height: 1.1; letter-spacing: -0.04em; }
  .pricing-price span { font-size: 16px; color: #C5D4C8; white-space: nowrap; }
  .pricing-includes { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #B3CEA4; }
  .pricing-features { display: grid; gap: 14px; list-style: none; margin-bottom: 28px; }
  .pricing-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
  .pricing-features .icon { width: 19px; height: 19px; margin-top: 3px; color: #B3CEA4; }
  .pricing-card .btn { justify-content: center; gap: 10px; min-height: 48px; margin-top: auto; padding: 11px 20px; border-width: 1px; border-radius: 999px; font-size: 15px; line-height: 1.4; font-weight: 600; box-shadow: none; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
  .pricing-card .btn .icon { width: 16px; height: 16px; stroke-width: 1.75; transition: transform 0.2s ease; }
  .pricing-card .btn:hover, .pricing-card .btn:focus-visible { transform: none; }
  .pricing-card .btn:hover .icon, .pricing-card .btn:focus-visible .icon { transform: translateX(3px); }
  .pricing-card .btn-secondary { color: #DCE6D8; border-color: #81988B; }
  .pricing-card .btn-secondary:hover { background: rgba(179,206,164,0.08); border-color: #B3CEA4; }
  .pricing-card.portal { background: var(--primary-dark); border-color: #81988B; }
  .pricing-card.portal .btn { background: #345D50; color: var(--light); border-color: #9DB695; }
  .pricing-card.portal .btn:hover { background: #416C5A; border-color: #B3CEA4; }
  .pricing-card .btn:focus-visible { outline-color: #EAC2AB; }
  @media (max-width: 760px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
    .pricing-card { padding: 28px 24px; }
  }

  /* ---- FAQ ---- */
  .faq { background: var(--light); }
  .faq-list { max-width: 760px; margin: 40px auto 0; display: grid; gap: 12px; }
  details {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 0;
    overflow: hidden;
  }
  summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 16.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after {
    content: "+";
    font-size: 22px;
    color: var(--primary-dark);
    font-weight: 400;
    transition: transform 0.2s ease;
  }
  details[open] summary::after { transform: rotate(45deg); }
  details p { padding: 0 24px 20px; color: var(--muted); font-size: 16px; }

  /* ---- Final CTA ---- */
  .final { background: var(--primary-dark); color: var(--white); }
  .final-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .final .kicker { color: #B3CEA4; }
  .final h2 { color: var(--white); font-size: clamp(28px, 4vw, 40px); }
  .final .lede { color: #DCE6D8; margin-bottom: 30px; font-size: 17px; }
  .final .btn-primary { background: #B3CEA4; color: var(--dark); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
  .final .btn-primary:hover { background: #C4DAB9; }
  .final .btn:focus-visible { outline-color: #EAC2AB; }
  .final-visual { width: 280px; max-width: 100%; margin: 20px 0 0; }
  .final-visual img { display: block; width: 100%; height: auto; }
  .final-visual figcaption { text-align: center; color: #DCE6D8; font-size: 16px; font-weight: 600; line-height: 1.5; }
  @media (max-width: 820px) {
    .final-layout { grid-template-columns: 1fr; text-align: center; }
    .final .lede { margin-left: auto; margin-right: auto; }
    .final-visual { max-width: 430px; width: 100%; margin: 0 auto; }
  }

  .demo-card { padding: 32px; border-radius: 24px; background: var(--light); color: var(--dark); box-shadow: 0 16px 40px rgba(0,0,0,0.12); text-align: left; }
  .demo-card h3 { font-size: 25px; margin-bottom: 10px; }
  .demo-intro { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
  .demo-fields { display: grid; gap: 16px; }
  .form-field { display: grid; gap: 6px; min-width: 0; }
  .form-field label { font-size: 13px; font-weight: 700; }
  .form-field input, .form-field select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #B7C8B2; border-radius: 8px; background: var(--white); color: var(--dark); font-family: var(--sans); font-size: 16px; }
  .demo-card .btn { width: 100%; justify-content: center; margin-top: 24px; background: var(--primary-dark); color: var(--white); box-shadow: none; }
  .demo-card .btn:hover { background: var(--dark); }
  .demo-card .btn:disabled { background: #DFE5DB; color: #596260; cursor: not-allowed; transform: none; }
  .demo-card :focus-visible { outline-color: var(--accent); }
  .demo-status { font-size: 13px; font-weight: 600; margin-top: 12px; color: #8E4A30; }
  .demo-status:empty { display: none; }
  .demo-privacy { font-size: 12px; margin-top: 12px; color: var(--muted); }
  .demo-privacy a { color: var(--primary-dark); text-underline-offset: 3px; }
  .form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .demo-success { text-align: center; padding: 12px 0 4px; }
  .demo-success:focus { outline: none; }
  .demo-success-icon { width: 58px; height: 58px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); background: #E5EDE1; }
  .demo-success-icon .icon { width: 29px; height: 29px; }
  .demo-success p { color: var(--muted); font-size: 15px; }
  .demo-contact { font-size: 13px; color: var(--muted); margin-top: 18px; }
  .demo-contact a { color: var(--primary-dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
  .booking-page { background: var(--primary-dark); }
  .booking-main { padding: 72px 0; min-height: calc(100svh - 160px); }
  .booking-main h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 20px; }
  .booking-back { font-size: 14px; color: var(--primary-dark); text-decoration: none; padding: 12px 0; }
  .booking-back:hover { text-decoration: underline; }
  .booking-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
  .booking-footer a { margin: 0; }
  @media (max-width: 520px) {
    .booking-main { padding: 44px 0; }
    .booking-nav { gap: 8px; }
    .booking-back { font-size: 12px; }
  }
  @media (max-width: 820px) { .final-visual { width: 220px; margin-left: auto; margin-right: auto; } }
  @media (max-width: 520px) { .demo-card { padding: 24px 20px; } }

  /* ---- Legal pages ---- */
  .legal-page { background: var(--white); }
  .legal { padding: 64px 0 88px; }
  .legal .container { max-width: 780px; }
  .legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
  .legal-meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
  .legal-summary { background: var(--light); border-radius: 16px; padding: 24px 26px; margin-bottom: 8px; }
  .legal-summary p:last-child, .legal-summary ul:last-child { margin-bottom: 0; }
  .legal h2 { font-size: 24px; margin: 44px 0 12px; }
  .legal h3 { font-size: 18px; margin: 24px 0 8px; }
  .legal p, .legal li { font-size: 16px; }
  .legal p { margin-bottom: 14px; }
  .legal ul { display: grid; gap: 6px; padding-left: 22px; margin-bottom: 16px; }
  .legal a { color: var(--primary-dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
  @media (max-width: 520px) { .legal { padding: 44px 0 64px; } }

  /* ---- Footer ---- */
  footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 36px 0;
    font-size: 14px;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  footer .wordmark { color: var(--white); }
  footer .brand-logo { width: 230px; }
  footer .wordmark { margin-left: 0; }
  .footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { margin-left: 0; }
  footer a { color: rgba(255,255,255,0.7); text-decoration: none; margin-left: 20px; }
  footer a:hover { color: var(--white); }
