/* YUMNAN marketing site, Brand Identity 2.0.
   Palette: Deep Olive #414735, Warm Clay #C47D63, Oat Milk #F4EFE5, plus tonal variations.
   No inline styles or scripts: the Content-Security-Policy in _headers depends on this. */
/* Brand 2.0 tokens.
       Core: Deep Olive #414735, Warm Clay #C47D63, Oat Milk #F4EFE5.
       Tonal variations are derived from the core colours. No competing brand colours. */

/* Self-hosted fonts (SIL Open Font License). Latin subsets with the variable axes kept. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
      --olive: #414735;
      --olive-hover: #353B2A;
      --olive-muted: #5C6248;
      --clay: #C47D63;
      --clay-deep: #8A4B33;
      --clay-tint: #F3E6DD;
      --oat: #F4EFE5;
      --oat-strip: #EDE6D8;
      --surface: #FBF8F2;
      --line: rgba(65, 71, 53, 0.16);
      --on-dark-muted: #DDD8CA;
      --radius-xl: 28px;
      --radius-lg: 20px;
      --radius-md: 14px;
      --container: 1180px;
      --gutter: 20px;
      --font-display: "Fraunces", Georgia, "Times New Roman", serif;
      --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }
    @media (min-width: 900px) { :root { --gutter: 40px; } }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 88px; }
    body {
      margin: 0;
      background: var(--oat);
      color: var(--olive);
      font-family: var(--font-ui);
      font-size: 17px;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }
    img { display: block; max-width: 100%; height: auto; }
    h1, h2, h3, p, figure { margin: 0; }

    .container {
      width: 100%;
      max-width: var(--container);
      margin: 0 auto;
      padding-left: max(var(--gutter), env(safe-area-inset-left));
      padding-right: max(var(--gutter), env(safe-area-inset-right));
    }

    .skip-link { position: absolute; left: 16px; top: -60px; padding: 10px 16px; border-radius: 8px; background: var(--oat); color: var(--olive); font-weight: 600; z-index: 100; }
    .skip-link:focus { top: 12px; }

    :focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
    .is-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--oat); }

    /* Display type: Fraunces, used for headlines only */
    .display {
      font-family: var(--font-display);
      font-weight: 500;
      font-variation-settings: "SOFT" 50, "WONK" 0;
      font-optical-sizing: auto;
      letter-spacing: -0.012em;
      color: var(--olive);
    }
    .display em {
      font-style: italic;
      font-weight: 400;
      color: var(--clay-deep);
    }
    .is-dark .display { color: var(--oat); }
    .is-dark .display em { color: var(--oat); opacity: 0.92; }

    h1.display { font-size: clamp(2.7rem, 6.2vw, 4.6rem); line-height: 1.04; }
    h2.display { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--olive-muted);
    }
    .eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--clay); }
    .is-dark .eyebrow { color: var(--on-dark-muted); }

    .section { padding: clamp(68px, 10vw, 120px) 0; }
    .section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
    .section-head p.lede-sm { margin-top: 16px; color: var(--olive-muted); font-size: 1.05rem; }

    /* Buttons. Deep Olive fill with Oat Milk text is the primary action (8.4:1). */
    .btn {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 0 26px;
      border-radius: 999px;
      border: 1px solid transparent;
      font: inherit;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
      transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease;
    }
    .btn:active { transform: translateY(1px); }
    .btn-primary { background: var(--olive); color: var(--oat); }
    .btn-primary:hover { background: var(--olive-hover); }
    .btn-secondary { background: transparent; color: var(--olive); border-color: var(--line); }
    .btn-secondary:hover { background: rgba(65, 71, 53, 0.06); border-color: var(--olive); }
    .btn-on-dark { background: transparent; color: var(--oat); border-color: rgba(244, 239, 229, 0.4); }
    .btn-on-dark:hover { background: rgba(244, 239, 229, 0.1); border-color: var(--oat); }
    .btn-on-dark-primary { background: var(--oat); color: var(--olive); }
    .btn-on-dark-primary:hover { background: #FFFFFF; }
    .btn-lg { min-height: 58px; padding: 0 34px; font-size: 1.05rem; }
    .btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

    .note { margin-top: 16px; font-size: 0.9rem; color: var(--olive-muted); }
    .is-dark .note { color: var(--on-dark-muted); }

    /* Header */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: var(--oat);
      border-bottom: 1px solid var(--line);
    }
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
    .brand { display: inline-flex; border-radius: 12px; }
    .brand img { height: 46px; width: auto; }
    .primary-nav ul, .footer-links ul, .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
    .primary-nav ul { display: flex; gap: 30px; }
    .primary-nav a, .mobile-panel a { color: var(--olive); text-decoration: none; font-size: 0.98rem; font-weight: 500; }
    .primary-nav a { position: relative; padding: 6px 0; }
    .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; }
    .primary-nav a:hover::after { transform: scaleX(1); }
    .header-actions { display: flex; align-items: center; gap: 12px; }
    .header-actions .btn { min-height: 44px; padding: 0 20px; font-size: 0.98rem; }
    .header-actions .btn-signin { display: none; }
    .header-actions .btn-header-get { display: none; }
    .mobile-menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--olive); font-weight: 600; cursor: pointer; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-panel {
      position: absolute; right: 0; top: calc(100% + 10px); width: min(90vw, 340px); padding: 22px;
      border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
      box-shadow: 0 24px 50px rgba(65, 71, 53, 0.18); display: grid; gap: 16px;
    }
    .mobile-panel ul { display: grid; gap: 14px; }
    .mobile-panel .btn { width: 100%; }
    @media (min-width: 560px) { .header-actions .btn-header-get { display: inline-flex; } }
    @media (max-width: 899px) { .primary-nav { display: none; } }
    @media (min-width: 900px) {
      .primary-nav { display: block; }
      .header-actions .btn-signin { display: inline-flex; }
      .mobile-menu { display: none; }
    }

    /* Hero (light, with a restrained clay glow) */
    .hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 10vw, 120px); isolation: isolate; }
    .hero::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: url("../Asset/yumnan-flow-artwork.svg") center / cover no-repeat;
      opacity: 0.85;
    }
    .hero-grid { display: grid; gap: 56px; align-items: center; }
    .hero-copy { max-width: 560px; }
    .lede { margin-top: 22px; color: var(--olive-muted); font-size: clamp(1.08rem, 1.5vw, 1.2rem); line-height: 1.6; }
    .hero .btn-group { margin-top: 36px; }
    .hero .note { margin-top: 18px; }

    /* Dashboard preview */
    .dashboard {
      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
      padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 60px rgba(65, 71, 53, 0.14); font-size: 0.95rem;
    }
    .dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .dash-head h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 600; }
    .badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--clay-tint); color: var(--clay-deep); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
    .dash-stats { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
    .stat { background: var(--oat); border-radius: var(--radius-md); padding: 14px 16px; }
    .stat-label { display: block; font-size: 0.8rem; color: var(--olive-muted); }
    .stat-value { display: block; margin-top: 2px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
    .stat--wide .stat-value { font-size: 2rem; }
    .dash-grid { display: grid; gap: 18px; }
    .dash-block h4 { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; }
    .bar-row { display: grid; gap: 6px; margin-bottom: 10px; }
    .bar-row > span { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--olive-muted); font-variant-numeric: tabular-nums; }
    progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: rgba(65, 71, 53, 0.12); overflow: hidden; }
    progress::-webkit-progress-bar { background: rgba(65, 71, 53, 0.12); border-radius: 999px; }
    progress::-webkit-progress-value { background: var(--clay); border-radius: 999px; }
    progress::-moz-progress-bar { background: var(--clay); border-radius: 999px; }
    .progress-olive::-webkit-progress-value { background: var(--olive); }
    .progress-olive::-moz-progress-bar { background: var(--olive); }
    .tx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
    .tx-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
    .tx-list li:last-child { border-bottom: 0; padding-bottom: 0; }
    .tx-name { font-weight: 600; }
    .tx-meta { grid-column: 1; font-size: 0.8rem; color: var(--olive-muted); }
    .tx-amount { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; }
    .dashboard figcaption { margin-top: 16px; font-size: 0.8rem; color: var(--olive-muted); }

    /* Trust strip */
    .trust { background: var(--oat-strip); border-bottom: 1px solid var(--line); }
    .trust-grid { display: grid; gap: 18px; padding: 30px 0; }
    .trust-item { display: flex; gap: 14px; align-items: flex-start; }
    .trust-item::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--clay); }
    .trust-item strong { display: block; font-weight: 600; }
    .trust-item span { color: var(--olive-muted); font-size: 0.95rem; }

    /* Feature cards */
    .section-surface { background: var(--surface); }
    .card-grid { display: grid; gap: 20px; }
    .card {
      background: var(--oat); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
      transition: transform 200ms ease, box-shadow 200ms ease;
    }
    .card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(65, 71, 53, 0.1); }
    .card-icon {
      display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px;
      background: var(--clay-tint); color: var(--clay-deep); margin-bottom: 20px;
    }
    .card-icon svg { width: 24px; height: 24px; }
    .card-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-muted); }
    .card h3 { margin-top: 8px; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
    .card p.desc { margin-top: 10px; color: var(--olive-muted); font-size: 0.98rem; }
    .card .badge { margin-top: 18px; }

    /* How it works */
    .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
    .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; }
    .step-number {
      display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
      background: var(--olive); color: var(--oat); font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 18px;
    }
    .step h3 { font-size: 1.2rem; font-weight: 600; }
    .step p { margin-top: 10px; color: var(--olive-muted); }
    .step .badge { margin-top: 16px; }

    /* Household first: the central positioning, on a Deep Olive band */
    .household-feature { background: var(--olive); color: var(--oat); position: relative; overflow: hidden; }
    .household-feature::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: url("../Asset/yumnan-flow-artwork.svg") center / cover no-repeat;
      opacity: 0.5;
    }
    .household-grid { display: grid; gap: 52px; align-items: center; }
    .household-copy p.body-dark { margin-top: 20px; color: var(--on-dark-muted); font-size: 1.08rem; }
    .household-copy h2.display { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; }
    .household-copy .badge { margin-top: 24px; background: rgba(244, 239, 229, 0.12); color: var(--oat); }
    .member-panel { background: var(--surface); color: var(--olive); border-radius: var(--radius-xl); padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22); }
    .member-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
    .member-panel > p { margin-top: 4px; font-size: 0.85rem; color: var(--olive-muted); }
    .member-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
    .member-list li { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-md); background: var(--oat); }
    .avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--olive); color: var(--oat); font-weight: 600; }
    .member-panel .badge { background: var(--clay-tint); color: var(--clay-deep); }

    /* Privacy and security */
    .security-grid { display: grid; gap: 48px; align-items: start; }
    .security-copy p.body { margin-top: 20px; color: var(--olive-muted); font-size: 1.05rem; }
    .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
    .check-list li {
      display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
      padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
    }
    .check-list strong { display: block; font-weight: 600; }
    .check-list span { color: var(--olive-muted); font-size: 0.95rem; }
    .check-list svg { width: 22px; height: 22px; color: var(--clay-deep); margin-top: 2px; }

    /* Get Started band: clay tint surface, not a dark block */
    .cta-band { background: var(--clay-tint); text-align: center; }
    .cta-band h2.display { margin: 0 auto; max-width: 680px; }
    .cta-band p.body { max-width: 560px; margin: 18px auto 0; color: var(--olive-muted); font-size: 1.1rem; }
    .cta-band .btn-group { justify-content: center; margin-top: 34px; }
    .cta-band .note { color: var(--olive-muted); }

    /* FAQ */
    .faq-list { display: grid; gap: 14px; max-width: 820px; }
    .faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
    .faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 18px 22px; font-weight: 600; cursor: pointer; }
    .faq-list summary::-webkit-details-marker { display: none; }
    .faq-list summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--clay-deep); }
    .faq-list details[open] summary::after { content: "\2212"; }
    .faq-list details p { padding: 0 22px 20px; color: var(--olive-muted); }

    /* Footer */
    .site-footer { background: var(--olive); color: var(--on-dark-muted); padding: clamp(56px, 8vw, 88px) 0 32px; font-size: 0.95rem; }
    .footer-grid { display: grid; gap: 40px; }
    /* The approved logo has navy lettering, so it sits on an Oat Milk plate on the Deep Olive footer. */
    .footer-logo-plate { display: inline-block; background: var(--oat); border-radius: 16px; padding: 8px 14px; }
    .footer-brand img { height: 44px; width: auto; }
    .footer-brand p { margin-top: 18px; max-width: 320px; color: var(--on-dark-muted); }
    .footer-links h3 { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oat); margin-bottom: 14px; }
    .footer-links li + li { margin-top: 10px; }
    .footer-links a { color: var(--on-dark-muted); text-decoration: none; }
    .footer-links a:hover { color: var(--oat); text-decoration: underline; }
    .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(244, 239, 229, 0.16); font-size: 0.85rem; }

    /* Animation (CSS only) */
    @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .hero-copy, .dashboard { animation: fade-up 700ms ease both; }
    .dashboard { animation-delay: 120ms; }

    /* Breakpoints */
    @media (min-width: 560px) {
      .dash-stats { grid-template-columns: repeat(3, 1fr); }
      .stat--wide { grid-column: auto; }
    }
    @media (min-width: 640px) {
      .card-grid { grid-template-columns: repeat(2, 1fr); }
      .steps { grid-template-columns: repeat(3, 1fr); }
      .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
      .trust-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 900px) {
      .hero-grid { grid-template-columns: 1.05fr 1fr; }
      .dash-grid { grid-template-columns: 1fr 1fr; }
      .dash-stats { grid-template-columns: repeat(3, 1fr); }
      .stat--wide { grid-column: 1 / -1; }
      .trust-grid { grid-template-columns: repeat(4, 1fr); }
      .card-grid { grid-template-columns: repeat(3, 1fr); }
      .household-grid { grid-template-columns: 1fr 1fr; }
      .security-grid { grid-template-columns: 1fr 1.1fr; }
      .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; }
      .card:hover { transform: none; }
    }
