/* ============================================================
   Luckee Listing — Design tokens + shared components
   Luckee 2.0 VI: forest green + oat cream · Instrument Serif × Montserrat
   "Rational productivity + 亲和力" — calm, warm, organic SaaS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Montserrat:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Brand greens ---- */
  --forest-900: #1C2B1D;
  --forest-800: #233324;
  --forest-700: #324933;
  --forest-600: #3E5B3F;   /* primary */
  --forest-500: #4d704e;
  --forest-300: #9cbf9d;
  --forest-100: #D9E8DA;   /* accent / hover */
  --forest-050: #EDF4ED;

  /* ---- Oat / neutrals ---- */
  --oat-100: #FAF8F5;      /* page canvas */
  --oat-200: #F5F1EA;      /* secondary surface */
  --oat-250: #EEEBE7;      /* rails */
  --oat-400: #E4DED4;
  --card: #FFFFFF;
  --neutral-900: #2E2E2E;  /* text */
  --neutral-700: #4a4a4a;
  --muted: #6b6b66;
  --border: #E0E0E0;
  --border-soft: #ebe7e0;

  /* ---- Status ---- */
  --success-600: #059467;
  --success-bg: #E8F6EF;
  --warning-600: #DB7706; --warning-bg: #FCF1E2;
  --error-600:  #DC2828;  --error-bg:  #FBEAEA;
  --info-600:   #2563EB;  --info-bg:   #EAF1FE;
  --neutral-bg: #F0EEE9;
  --premium-gold: #C9A84C;
  --premium-gold-light: #E8C96A;

  /* ---- Type ---- */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---- Radius ---- */
  --r-input: 16px;
  --r-card: 20px;
  --r-sheet: 28px;
  --r-pill: 9999px;
  --r-sm: 10px;

  /* ---- Shadow ---- */
  --sh-sm: 0 2px 8px rgba(0,0,0,.04);
  --sh-md: 0 4px 24px rgba(0,0,0,.06);
  --sh-lg: 0 8px 40px rgba(0,0,0,.10);
  --sh-brand: 0 8px 28px rgba(61,90,62,.22);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.4,0,.2,1);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--neutral-900);
  background: var(--oat-100);
  line-height: 1.55;
  letter-spacing: .002em;
}

/* Organic atmosphere on the light canvas — extremely subtle green wash */
body.has-atmos {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(61,90,62,.05), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(201,168,76,.045), transparent 50%),
    var(--oat-100);
  background-repeat: no-repeat;
}

/* Grain overlay utility (for dark hero blocks) */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; line-height: 1.08; margin: 0; color: var(--neutral-900); }
h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--forest-600);
}
.eyebrow.on-dark { color: var(--forest-300); }
.lede { font-size: 1.15rem; color: var(--neutral-700); line-height: 1.6; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1320px; }
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid { display: grid; gap: 20px; }
.wrap { flex-wrap: wrap; }

/* ---- Buttons (always pill) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 16px; font-size: .84rem; }
.btn-primary { background: var(--forest-600); color: var(--oat-100); box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--forest-700); }
.btn-outline { background: transparent; border-color: rgba(61,90,62,.3); color: var(--forest-700); }
.btn-outline:hover { background: var(--forest-050); border-color: var(--forest-600); }
.btn-ghost { background: transparent; color: var(--neutral-700); }
.btn-ghost:hover { background: var(--oat-250); }
.btn-gold { background: var(--premium-gold); color: var(--forest-900); }
.btn-on-dark { background: var(--oat-100); color: var(--forest-800); }
.btn-on-dark:hover { background: #fff; }
.btn-block { width: 100%; }

/* ---- Cards ---- */
.card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--r-card); box-shadow: var(--sh-md); }
.card-flat { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
.card-pad { padding: 28px; }
.card-pad-lg { padding: 36px; }

/* ---- Chips / labels ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  font-family: var(--sans); line-height: 1; white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-clear   { background: var(--success-bg); color: var(--success-600); }
.chip-partial { background: var(--warning-bg); color: var(--warning-600); }
.chip-unknown { background: var(--neutral-bg); color: var(--muted); }
.chip-conflict{ background: var(--error-bg);   color: var(--error-600); }
.risk-high { background: var(--error-bg);   color: var(--error-600); }
.risk-med  { background: var(--warning-bg); color: var(--warning-600); }
.risk-low  { background: var(--success-bg); color: var(--success-600); }
.prio { font-family: var(--mono); font-weight: 600; }
.prio-p0 { background: var(--error-bg);   color: var(--error-600); }
.prio-p1 { background: var(--warning-bg); color: var(--warning-600); }
.prio-p2 { background: var(--forest-050); color: var(--forest-600); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 7px;
  font-size: .72rem; font-weight: 500; font-family: var(--mono);
  background: var(--oat-200); color: var(--neutral-700); border: 1px solid var(--border-soft);
}
.tag-kw { background: var(--forest-050); color: var(--forest-700); border-color: var(--forest-100); }
.tag-scn { background: #eef4fb; color: #2f5e96; border-color: #dbe8f6; }
.tag-usp { background: #f6f0e2; color: #8a6d23; border-color: #ecdfc0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 600; background: var(--forest-050); color: var(--forest-700);
  border: 1px solid var(--forest-100);
}
.badge-trust { background: rgba(255,255,255,.08); color: var(--forest-100); border-color: rgba(217,232,218,.25); }

/* ---- Funnel / credit prototype components ---- */
.funnel-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 15px 18px; border-radius: var(--r-input);
  background: linear-gradient(135deg, var(--forest-050), var(--card));
  border: 1px solid var(--forest-100);
  box-shadow: 0 1px 2px rgba(28,43,29,.04), 0 10px 28px -22px rgba(28,43,29,.26);
}
.funnel-main { display: flex; flex-direction: column; gap: 3px; min-width: 260px; flex: 1; }
.funnel-main strong { color: var(--forest-800); font-size: .98rem; line-height: 1.35; }
.funnel-main span:last-child { color: var(--neutral-700); font-size: .84rem; line-height: 1.45; }
.funnel-kicker {
  font-family: var(--sans); font-weight: 700; font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--forest-600);
}
.funnel-ledger { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ledger-pill {
  display: inline-flex; align-items: center; min-height: 30px; padding: 6px 11px;
  border-radius: var(--r-pill); font-size: .76rem; font-weight: 600;
  background: var(--oat-100); color: var(--neutral-700); border: 1px solid var(--border-soft);
  white-space: nowrap;
}
.ledger-pill.available { background: var(--success-bg); color: var(--success-600); border-color: color-mix(in srgb, var(--success-600) 22%, white); }
.ledger-pill.spent { background: var(--neutral-bg); color: var(--muted); border-color: var(--border-soft); }
.funnel-modal-overlay {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  padding: 22px; background: rgba(28,43,29,.38); backdrop-filter: blur(9px);
}
.funnel-modal-overlay.open { display: flex; animation: fadeUp .24s var(--ease); }
.funnel-modal { width: min(520px, 100%); position: relative; box-shadow: var(--sh-lg); }
.funnel-modal h2 { margin: 12px 0 0; font-size: 2rem; }
.funnel-modal p { margin: 10px 0 0; color: var(--neutral-700); font-size: .94rem; line-height: 1.55; }
.funnel-modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: var(--r-pill);
  background: var(--oat-200); color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.funnel-modal-close:hover { background: var(--oat-250); color: var(--neutral-900); }
.credit-cost {
  display: flex; align-items: center; justify-content: space-between; margin-top: 18px;
  padding: 14px 16px; border-radius: var(--r-input);
  background: var(--warning-bg); border: 1px solid color-mix(in srgb, var(--warning-600) 28%, white);
  color: #8a5108; font-weight: 700;
}
.credit-foot { font-size: .82rem !important; color: var(--muted) !important; }
.funnel-modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.ledger-action {
  min-height: 30px; padding: 6px 11px; border-radius: var(--r-pill); border: 1px solid var(--forest-600);
  background: var(--forest-600); color: var(--oat-100); font: 600 .76rem var(--sans); cursor: pointer;
}
.ledger-action.ghost { background: var(--card); color: var(--forest-700); border-color: var(--forest-100); }
.nav-actions, .app-actions { display: flex; align-items: center; gap: 10px; }
.account-auth { display: flex; align-items: center; gap: 6px; }
.account-pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 4px 9px 4px 5px;
  border-radius: var(--r-pill); background: var(--forest-050); border: 1px solid var(--forest-100); color: var(--forest-800);
}
.account-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest-600); color: var(--oat-100); font: 600 .78rem var(--serif);
}
.account-copy { display: flex; flex-direction: column; line-height: 1.05; }
.account-copy b { font-size: .78rem; font-weight: 700; color: var(--forest-800); }
.account-copy em { font-size: .64rem; font-style: normal; color: var(--muted); margin-top: 3px; }
.account-signout {
  border: 0; background: transparent; color: var(--muted); font: 600 .68rem var(--sans); cursor: pointer; padding: 0 4px;
}
.account-signout:hover { color: var(--forest-700); }
.auth-modal {
  box-sizing: border-box;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: var(--sh-lg);
}
.auth-modal.card-pad-lg { padding: 24px 28px 22px; }
.auth-logo {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 10px;
  background: var(--forest-600); color: var(--oat-100); font: 1.45rem var(--serif); box-shadow: var(--sh-brand);
}
.auth-modal h2 { font-size: 1.55rem; margin: 0; }
.auth-modal > p { margin: 6px auto 0; color: var(--muted); font-size: .78rem; }
.auth-google {
  width: 100%; height: 40px; margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--card); color: var(--neutral-900);
  font: 700 .84rem var(--sans); cursor: pointer;
  box-shadow: 0 1px 2px rgba(28,43,29,.04);
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.auth-google:hover {
  transform: translateY(-1px);
  border-color: var(--forest-100);
  box-shadow: 0 10px 28px -20px rgba(28,43,29,.34);
}
.auth-google:active { transform: scale(.985); }
.google-mark {
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.auth-divider {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  color: var(--muted); font-size: .64rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: ""; height: 1px; flex: 1; background: var(--border-soft);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 10px;
  border-radius: var(--r-pill); background: var(--oat-200); border: 1px solid var(--border-soft);
}
.auth-tabs button {
  height: 32px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--neutral-700);
  font: 700 .8rem var(--sans); cursor: pointer;
}
.auth-tabs button.is-active { background: var(--forest-600); color: var(--oat-100); box-shadow: var(--sh-brand); }
.auth-panel { margin-top: 12px; text-align: left; }
.auth-panel label { display: block; margin-top: 9px; color: var(--neutral-700); font-size: .72rem; font-weight: 700; }
.auth-panel .input { margin-top: 5px; height: 38px; padding: 8px 12px; font-size: .82rem; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 0; }
.auth-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 6px; }
.auth-inline .input { margin-top: 0; }
.auth-row { display: flex; justify-content: flex-end; margin: 8px 0 12px; }
.auth-row a { color: var(--forest-600); font-size: .72rem; font-weight: 600; }
.auth-panel .btn-block { height: 40px; margin-top: 12px; }
.auth-legal { margin-top: 10px !important; font-size: .68rem !important; color: var(--muted) !important; line-height: 1.35 !important; text-align: center; }

/* ---- Top navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,248,245,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; color: var(--forest-800); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--forest-600); color: var(--oat-100);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; box-shadow: var(--sh-brand);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--neutral-700); transition: color .15s; }
.nav-links a:hover { color: var(--forest-600); }

/* app header (report / workspace) */
.appbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.steps { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.steps .step.active { color: var(--forest-600); font-weight: 600; }
.steps .step.done { color: var(--neutral-700); }
.steps .sep { color: var(--border); }

/* ---- Tables ---- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.table th {
  text-align: left; font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--forest-700); padding: 12px 14px;
  background: color-mix(in srgb, var(--forest-600) 9%, white); border-bottom: 1px solid var(--border);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--oat-200); }
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }

/* ---- Inputs ---- */
.input, .select, .textarea {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--neutral-900);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-input);
  padding: 13px 16px; transition: border-color .15s, box-shadow .15s; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(61,90,62,.14); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.label { display: block; font-size: .82rem; font-weight: 600; color: var(--neutral-700); margin-bottom: 7px; }
.field + .field { margin-top: 18px; }

.upload-dropzone {
  border: 2px dashed var(--border); border-radius: var(--r-input); background: var(--oat-200);
  padding: 30px; text-align: center; color: var(--muted); transition: .15s var(--ease); cursor: pointer;
}
.upload-dropzone:hover { border-color: var(--forest-600); background: var(--forest-050); color: var(--forest-700); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 6px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; color: var(--neutral-700);
  background: transparent; border: 1px solid transparent; cursor: pointer; transition: .15s var(--ease);
}
.tab:hover { background: var(--oat-250); }
.tab-active { background: var(--forest-600); color: var(--oat-100); box-shadow: var(--sh-brand); }
.tab-active .chip { background: rgba(255,255,255,.16); color: var(--oat-100); }

/* ---- Diff ---- */
.diff-add { background: rgba(5,148,103,.16); color: #04603f; border-radius: 4px; padding: .5px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.diff-del { background: rgba(220,40,40,.12); color: var(--error-600); text-decoration: line-through; border-radius: 4px; padding: .5px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pdp-pane { background: var(--oat-100); border: 1px solid var(--border); border-radius: var(--r-input); padding: 20px; }
.pdp-pane.optimized { background: var(--forest-050); border-color: var(--forest-100); }
.pane-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* ---- Score ring ---- */
.score-ring { --p: 60; width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(var(--forest-600) calc(var(--p)*1%), var(--oat-250) 0);
  display: grid; place-items: center; }
.score-ring .inner { width: 72px; height: 72px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; }
.score-ring .num { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--forest-700); }
.score-ring .den { font-size: .62rem; color: var(--muted); }

/* ---- Divider / misc ---- */
.hr { height: 1px; background: var(--border-soft); border: 0; margin: 0; }
.dot-sep { color: var(--border); }
.kicker-num { font-family: var(--mono); font-size: .8rem; color: var(--forest-600); font-weight: 600; }

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.reveal { opacity: 0; animation: fadeUp .7s var(--ease) forwards; }
.skeleton { background: linear-gradient(90deg, var(--oat-200) 25%, var(--oat-250) 37%, var(--oat-200) 63%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-600); animation: pulseDot 1.2s infinite var(--ease); }

/* ---- Accessibility: screen-reader only ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Accessibility: focus ---- */
:focus-visible { outline: 2px solid var(--forest-600); outline-offset: 2px; border-radius: 6px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
.btn:focus-visible, .tab:focus-visible { outline-offset: 3px; }
/* on the dark hero, use a light ring for contrast */
.hero :focus-visible, .footer :focus-visible, .cta-bar :focus-visible { outline-color: var(--oat-100); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- Responsive nav CTA label (prevents 320px overflow) ---- */
.cta-short { display: none; }
@media (max-width: 520px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-inner .btn { padding: 0 14px; }
  .container { padding: 0 18px; }
  .funnel-strip { align-items: stretch; }
  .funnel-ledger { justify-content: flex-start; }
  .funnel-modal-actions .btn { width: 100%; }
  .account-copy, .account-signout, .account-auth .btn-outline { display: none; }
  .nav-actions, .app-actions { gap: 7px; }
  .auth-modal { padding: 30px 22px !important; }
}

/* ---- Footer ---- */
.footer {
  background: var(--forest-900);
  color: var(--oat-200);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(217,232,218,.12);
}
.footer-compact {
  position: relative;
  z-index: 1;
  padding: 30px 28px 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 170px;
  gap: 42px;
  align-items: start;
}
.footer-brand { color: var(--oat-100); }
.footer-lede { max-width: 440px; }
.footer-lede h2 {
  color: var(--oat-100);
  margin: 14px 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  max-width: 18ch;
}
.footer-lede p {
  color: var(--forest-300);
  margin: 0;
  max-width: 44ch;
  font-size: .86rem;
  line-height: 1.5;
}
.footer-nav {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: .84rem;
  line-height: 1.25;
}
.footer-nav strong {
  color: var(--oat-100);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer a { color: var(--forest-100); }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--forest-300);
  font-size: .76rem;
}
@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .34fr) minmax(132px, .42fr);
    gap: 24px;
  }
  .footer-lede h2 { max-width: 16ch; }
  .footer-nav { font-size: .8rem; }
  .footer-bottom { margin-top: 22px; }
}
@media (max-width: 680px) {
  .footer-compact { padding: 34px 18px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-lede { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: 8px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .hide-sm { display: none !important; }
}
