/* ==========================================================================
   Pocket Friendly Digital — Design System v2
   Modern-classic editorial. Palette sampled from the PFD coin logo:
   cocoa #603000 · bronze #905010 / #B07020 · gold #F0B050 · pale gold #F0D070
   Type: Fraunces (display serif) + Manrope (text sans)
   Mobile-first: base → 640 → 900 → 1200
   ========================================================================== */

:root {
  /* Brand */
  --cocoa-950: #1c0e04;
  --cocoa-900: #2a1608;
  --cocoa-800: #3d1f09;
  --cocoa-700: #603000;
  --cocoa-600: #7a3f0b;
  --bronze-500: #94551a;
  --bronze-400: #b07020;
  --gold-500: #d9982b;
  --gold-400: #f0b050;
  --gold-300: #f5c97a;
  --gold-200: #f9e0ae;
  --gold-100: #fcf1db;

  /* Neutrals (warm) */
  --paper: #fffcf6;
  --cream: #fbf6ec;
  --cream-2: #f5ecdc;
  --line: #eadcc5;
  --line-strong: #d6c09c;
  --ink: #22140a;
  --ink-2: #4a3523;
  --muted: #76614d;

  /* Status */
  --ok: #2f7a4b;   --ok-bg: #e6f2ea;
  --warn: #9a6100; --warn-bg: #fbf0d9;
  --bad: #a3372b;  --bad-bg: #f8e5e1;
  --info: #2c5d86; --info-bg: #e4eef6;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape & depth */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(60, 30, 0, .06), 0 1px 1px rgba(60, 30, 0, .04);
  --shadow-2: 0 2px 4px rgba(60, 30, 0, .05), 0 14px 34px -14px rgba(60, 30, 0, .22);
  --shadow-3: 0 30px 70px -24px rgba(40, 18, 0, .38);
  --ring: 0 0 0 3px rgba(240, 176, 80, .45);

  --gold-sheen: linear-gradient(135deg, #f7d488 0%, #f0b050 38%, #d9982b 72%, #b07020 100%);
  --cocoa-deep: radial-gradient(1200px 600px at 85% -10%, rgba(240, 176, 80, .18), transparent 60%),
                radial-gradient(800px 500px at -10% 110%, rgba(176, 112, 32, .22), transparent 60%),
                linear-gradient(180deg, #2c1708 0%, #1f0f05 100%);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Safety net: nothing may widen the page on phones. clip (not hidden) keeps the sticky header working. */
html, body { overflow-x: clip; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cocoa-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze-500); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--gold-200); color: var(--cocoa-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button { font: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--cocoa-900); margin: 0 0 .5em; font-variation-settings: "SOFT" 30, "WONK" 0; }
h1 { font-size: clamp(2.3rem, 4.6vw + 1rem, 4.5rem); line-height: 1.03; letter-spacing: -.025em; font-optical-sizing: auto; }
h2 { font-size: clamp(1.85rem, 2.4vw + 1rem, 2.95rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 1.28rem; line-height: 1.25; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; line-height: 1.3; font-family: var(--font-text); font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, .4vw + 1rem, 1.22rem); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
em.gold, .gold-italic { font-style: italic; color: var(--gold-400); font-weight: 400; }
.serif { font-family: var(--font-display); }
.nowrap { white-space: nowrap; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cocoa-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Eyebrow — echoes the logo's "— THE FUTURE AWAITS YOU —" lockup */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-text); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-500);
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow.both::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.on-dark { color: var(--gold-300); }
.center .eyebrow { justify-content: center; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--cocoa-deep); color: #f3e7d3; }
.section.dark h2, .section.dark h3 { color: #fff7ea; }
.section.dark .lead, .section.dark .muted { color: #d9c6a8; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3rem; }
  .section-head.split .lead { margin: 0; }
}
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cocoa-700); --fg: #fff8ec; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.3rem;
  font-family: var(--font-text); font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow-2); background: var(--cocoa-600); }
.btn:active { transform: translateY(0); }
.btn .bi { font-size: 1.05em; }
.btn-gold { --fg: var(--cocoa-900); background: var(--gold-sheen); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 0 rgba(96,48,0,.25); }
.btn-gold:hover { background: var(--gold-sheen); filter: brightness(1.04) saturate(1.05); }
.btn-outline { --bg: transparent; --fg: var(--cocoa-700); --bd: var(--line-strong); }
.btn-outline:hover { background: var(--paper); border-color: var(--cocoa-700); }
.btn-ghost-light { --bg: rgba(255, 247, 234, .06); --fg: #fff3df; --bd: rgba(245, 201, 122, .35); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255, 247, 234, .14); border-color: var(--gold-300); }
.btn-link { --bg: transparent; --fg: var(--cocoa-700); padding-inline: 0; min-height: auto; border-radius: 0; }
.btn-link:hover { background: transparent; box-shadow: none; color: var(--bronze-500); }
.btn-sm { min-height: 36px; padding: .45rem .95rem; font-size: .85rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.65rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { --bg: var(--bad); }
.btn-danger:hover { background: #8c2c22; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow .bi { transition: transform .2s var(--ease); }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- Chips, pills, labels ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--paper); white-space: nowrap;
}
.chip--type { color: var(--cocoa-700); background: var(--gold-100); border-color: var(--gold-200); }
.chip--verified { color: var(--ok); background: var(--ok-bg); border-color: #bfdcc9; }
.chip--pfd { color: var(--cocoa-700); background: var(--gold-100); border-color: var(--gold-300); }
.chip--partner { color: var(--info); background: var(--info-bg); border-color: #bcd2e5; }
.chip--referral { color: #6b4aa0; background: #efe9f8; border-color: #d6c9ec; }
.chip--sponsored { color: #7a5a00; background: #fbf3d5; border-color: #ecd99a; }
.chip--demo { color: #8a2f6d; background: #f9e7f2; border-color: #ebc3dc; border-style: dashed; }
.chip--free { color: var(--ok); background: var(--ok-bg); border-color: #bfdcc9; }
.chip--loan { color: var(--warn); background: var(--warn-bg); border-color: #eed39f; }
.chip--paid { color: var(--cocoa-700); background: var(--cream-2); }
.chip--partner-fund { color: var(--info); background: var(--info-bg); }
.pill { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--muted { background: var(--cream-2); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(60, 30, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cocoa-900); flex-shrink: 0; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 2px 4px rgba(96, 48, 0, .25)); }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }
.brand-sub { font-size: .6rem; font-weight: 800; letter-spacing: .32em; color: var(--bronze-500); margin-top: 4px; }
.main-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.header-actions .hide-sm { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--cocoa-900); cursor: pointer; font-size: 1.3rem;
}
@media (min-width: 640px) { .header-actions .hide-sm { display: inline-flex; } }
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
  .main-nav > a, .nav-drop > button {
    display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .7rem; border-radius: 10px;
    font-weight: 600; font-size: .9rem; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  }
  .main-nav > a:hover, .nav-drop > button:hover, .nav-drop.is-open > button { color: var(--cocoa-900); background: var(--cream-2); }
  .main-nav > a.is-active { color: var(--cocoa-900); box-shadow: inset 0 -2px 0 var(--gold-400); border-radius: 0; }
}
.nav-drop { position: relative; }
.nav-drop .bi-chevron-down { font-size: .7rem; transition: transform .2s; }
.nav-drop.is-open .bi-chevron-down { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: -20px; width: min(760px, 90vw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px;
  padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav-drop.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega h6 { margin: 0 0 6px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-500); }
.mega a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.mega a .bi { color: var(--bronze-400); width: 18px; }
.mega a:hover { background: var(--cream); color: var(--cocoa-900); }
.mega .mega-foot { grid-column: 1 / -1; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; overflow: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(28, 14, 4, .5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--paper);
  transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-body { padding: 8px var(--gutter) 24px; }
.drawer-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-group h6 { margin: 0 0 6px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-500); }
.drawer-group a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.drawer-group a .bi { color: var(--bronze-400); width: 20px; }
.drawer-cta { display: grid; gap: 10px; padding-top: 18px; }

/* ---------- Flash ---------- */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid; margin: 16px 0; font-weight: 500; }
.flash .bi { font-size: 1.15rem; margin-top: 1px; }
.flash--success { background: var(--ok-bg); color: #20573a; border-color: #bfdcc9; }
.flash--error { background: var(--bad-bg); color: #7c2a20; border-color: #ecc3bc; }
.flash--info { background: var(--gold-100); color: var(--cocoa-700); border-color: var(--gold-200); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cocoa-deep); color: #f3e7d3; padding: clamp(48px, 7vw, 96px) 0 clamp(120px, 12vw, 160px); isolation: isolate; }
.hero::before { /* isometric lattice echoing the logo's stacked blocks */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image:
    linear-gradient(30deg, #f0b050 1px, transparent 1px),
    linear-gradient(150deg, #f0b050 1px, transparent 1px),
    linear-gradient(90deg, #f0b050 1px, transparent 1px);
  background-size: 56px 32px, 56px 32px, 56px 32px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.35fr .9fr; gap: 56px; } }
.hero h1 { color: #fff7ea; margin-bottom: 1.25rem; max-width: 15ch; }
.hero h1 .gold-italic { color: var(--gold-400); }
.hero .lead { color: #e2d0b2; font-size: clamp(1.08rem, .6vw + 1rem, 1.3rem); }
.hero-ctas { display: grid; gap: 10px; margin-top: 2rem; }
@media (min-width: 560px) { .hero-ctas { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; } }
.hero-ctas .btn { justify-content: flex-start; white-space: normal; text-align: left; }
.hero-ctas .btn .bi:last-child { margin-left: auto; opacity: .6; }
.hero-seal { position: relative; justify-self: center; width: min(400px, 78vw); display: none; }
@media (min-width: 1000px) { .hero-seal { display: block; } }
.hero-seal img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); animation: float 9s ease-in-out infinite; }
.hero-seal::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(240, 176, 80, .45), transparent 65%); filter: blur(30px); z-index: -1; }
.hero-seal .disc { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffdf8, #f6ead6 70%); z-index: 0; animation: float 9s ease-in-out infinite; }
.hero-seal img { position: relative; z-index: 1; }
.hero-seal .orbit { position: absolute; inset: -6%; border: 1px dashed rgba(245, 201, 122, .25); border-radius: 50%; animation: spin 80s linear infinite; }
.hero-tagline { display: flex; align-items: center; gap: 14px; margin-top: 2.25rem; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }
.hero-tagline::before, .hero-tagline::after { content: ""; height: 1px; width: 40px; background: currentColor; opacity: .6; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Search panel overlapping the hero */
.search-panel {
  position: relative; z-index: 5; margin-top: calc(clamp(120px, 12vw, 160px) * -1 + 40px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: 18px;
}
@media (min-width: 900px) { .search-panel { padding: 26px 28px; } }
.search-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tabs label { flex-shrink: 0; position: relative; } /* contains the hidden radio inside the scroller */
.search-tabs input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.search-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: .45rem .9rem; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--ink-2); cursor: pointer; border: 1px solid transparent; transition: .15s; }
.search-tabs span:hover { background: var(--cream); }
.search-tabs input:checked + span { background: var(--cocoa-700); color: #fff8ec; }
.search-tabs input:focus-visible + span { box-shadow: var(--ring); }
.search-fields { display: grid; gap: 10px; }
@media (min-width: 760px) { .search-fields { grid-template-columns: 1.6fr 1fr auto; } }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bronze-400); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.search-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .84rem; color: var(--muted); }
.search-meta a { color: var(--ink-2); font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error { font-size: .82rem; color: var(--bad); font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: .75rem 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2394551a' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:hover { border-color: var(--bronze-400); }
.input:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--ring); }
.input.is-invalid { border-color: var(--bad); }
.input-sm { min-height: 40px; padding: .45rem .8rem; font-size: .9rem; border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cocoa-700); flex-shrink: 0; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-grid.g2 { grid-template-columns: 1fr 1fr; } .form-grid.g3 { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 0; }
.fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--paper); margin-bottom: 20px; }
.fieldset legend { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--cocoa-900); padding: 0 6px; margin-left: -6px; }
.fieldset .legend-hint { margin: -2px 0 14px; color: var(--muted); font-size: .88rem; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.card.lift { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.card.flex { display: flex; flex-direction: column; }
.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-100); color: var(--cocoa-700); font-size: 1.35rem; border: 1px solid var(--gold-200); flex-shrink: 0; }
.icon-badge.dark { background: var(--cocoa-800); color: var(--gold-300); border-color: var(--cocoa-700); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 150px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden;
}
.cat-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--gold-100), transparent 70%); transition: transform .4s var(--ease); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-300); color: var(--ink); }
.cat-tile:hover::after { transform: scale(1.6); }
.cat-tile .bi { font-size: 1.5rem; color: var(--bronze-400); position: relative; z-index: 1; }
.cat-tile strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; color: var(--cocoa-900); position: relative; z-index: 1; }
.cat-tile small { color: var(--muted); font-size: .8rem; line-height: 1.4; position: relative; z-index: 1; margin-top: auto; }
.cat-tile .count { position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 800; color: var(--cocoa-700); background: var(--gold-100); padding: 2px 8px; border-radius: 999px; z-index: 1; }

/* Journey */
.journey { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; counter-reset: step; }
.journey li { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.journey li + li::before { content: "→"; color: rgba(245, 201, 122, .45); margin-right: 4px; letter-spacing: 0; }
.journey ol { padding: 0; margin: 0; display: contents; }

/* Opportunity cards */
.opp-card { display: flex; flex-direction: column; gap: 10px; }
.opp-card .opp-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opp-card h3 { font-size: 1.16rem; margin: 2px 0 0; }
.opp-card .org { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.opp-card .summary { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.opp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.opp-meta .soon { color: var(--bad); font-weight: 700; }
.save-btn { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--cocoa-700); cursor: pointer; transition: .15s; }
.save-btn:hover { background: var(--gold-100); border-color: var(--gold-300); }
.save-btn.is-saved { background: var(--cocoa-700); color: var(--gold-300); border-color: var(--cocoa-700); }

/* Service cards */
.svc-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-300); }
.svc-card .svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-card h3 { margin: 0; font-size: 1.22rem; }
.svc-card .solves { margin: 0; color: var(--ink-2); font-size: .94rem; }
.svc-card .solves strong { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-500); margin-bottom: 4px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .9rem; color: var(--ink-2); }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.ticks li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--bronze-400); font-size: 1rem; line-height: 1.4; }
.svc-card .svc-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--cocoa-900); font-weight: 600; line-height: 1.1; }
.price small { display: block; font-family: var(--font-text); font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.price.on-request { font-size: 1.05rem; color: var(--ink-2); }

/* Free vs paid panel */
.value-split { display: grid; gap: 18px; }
@media (min-width: 900px) { .value-split { grid-template-columns: 1fr 1fr; } }
.value-col { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.value-col.paid { background: var(--cocoa-900); color: #f0e2cb; border-color: var(--cocoa-800); }
.value-col.paid h3 { color: #fff7ea; }
.value-col.paid .ticks { color: #e2d0b2; }
.value-col.paid .ticks li::before { color: var(--gold-400); }

/* Feature bands */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: 1fr 1fr; gap: 72px; } .feature.reverse > :first-child { order: 2; } }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-list .bi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-100); color: var(--cocoa-700); }
.feature-list strong { display: block; color: var(--cocoa-900); }
.feature-list span { color: var(--muted); font-size: .92rem; }
.section.dark .feature-list .bi { background: rgba(240, 176, 80, .14); color: var(--gold-300); }
.section.dark .feature-list strong { color: #fff3df; }
.section.dark .feature-list span { color: #cdb796; }

/* CV visual */
.cv-visual { position: relative; padding: 20px 10px 30px; }
.cv-sheet { background: #fff; border-radius: 6px; box-shadow: var(--shadow-3); padding: 28px 26px; font-size: .7rem; color: #3a2a1d; border-top: 4px solid var(--cocoa-700); position: relative; z-index: 2; max-width: 420px; margin-inline: auto; }
.cv-sheet .cv-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--cocoa-900); line-height: 1.1; }
.cv-sheet .cv-role { color: var(--bronze-500); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .62rem; margin: 4px 0 14px; }
.cv-sheet .cv-h { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .58rem; color: var(--cocoa-700); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin: 14px 0 8px; }
.cv-line { height: 7px; border-radius: 4px; background: var(--cream-2); margin: 6px 0; }
.cv-line.w90 { width: 90%; } .cv-line.w75 { width: 75%; } .cv-line.w60 { width: 60%; } .cv-line.w40 { width: 40%; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-skills i { display: inline-block; height: 16px; border-radius: 999px; background: var(--gold-100); border: 1px solid var(--gold-200); }
.cv-tabs { position: absolute; z-index: 3; display: grid; gap: 8px; right: 0; top: 30px; }
.cv-tabs span { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-2); border-radius: 999px; padding: 6px 12px; font-size: .74rem; font-weight: 800; color: var(--cocoa-700); display: inline-flex; gap: 6px; align-items: center; }
.cv-tabs span .bi { color: var(--ok); }
.cv-sheet-back { position: absolute; z-index: 1; inset: 40px 30px 0 50px; background: var(--gold-100); border: 1px solid var(--gold-200); border-radius: 6px; transform: rotate(4deg); }
@media (max-width: 520px) { .cv-tabs { position: static; display: flex; flex-wrap: wrap; justify-content: center; margin-top: 16px; } }

/* AI preview */
.ai-preview { background: rgba(255, 247, 234, .04); border: 1px solid rgba(245, 201, 122, .2); border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(6px); }
.ai-preview .ai-row { display: flex; gap: 10px; margin-bottom: 12px; }
.ai-preview .ai-bubble { padding: 12px 14px; border-radius: 16px; font-size: .92rem; max-width: 88%; }
.ai-preview .from-user { justify-content: flex-end; }
.ai-preview .from-user .ai-bubble { background: var(--gold-400); color: var(--cocoa-900); border-bottom-right-radius: 4px; font-weight: 600; }
.ai-preview .from-ai .ai-bubble { background: rgba(255, 247, 234, .08); color: #f0e2cb; border-bottom-left-radius: 4px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chips a, .ai-chips button { display: inline-flex; align-items: center; gap: 6px; padding: .45rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid rgba(245, 201, 122, .3); color: #f3e2c4; background: transparent; transition: .15s; }
.ai-chips a:hover, .ai-chips button:hover { background: rgba(245, 201, 122, .12); color: #fff; }
.ai-chips.light a, .ai-chips.light button { color: var(--cocoa-700); border-color: var(--line-strong); background: var(--paper); }
.ai-chips.light a:hover, .ai-chips.light button:hover { background: var(--gold-100); }

/* Course cards */
.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-thumb { aspect-ratio: 16 / 9; background: var(--cocoa-deep); display: grid; place-items: center; color: var(--gold-300); font-size: 2rem; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-body h3 { font-size: 1.08rem; margin: 0; }

/* Hub tiles (study / travel / business) */
.hub-card { position: relative; border-radius: var(--r-lg); padding: 28px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; color: #f0e2cb; text-decoration: none; background: var(--cocoa-deep); border: 1px solid var(--cocoa-800); transition: transform .3s var(--ease), box-shadow .3s; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); color: #fff; }
.hub-card .bi-hub { font-size: 2.2rem; color: var(--gold-400); }
.hub-card h3 { color: #fff7ea; margin-top: 18px; font-size: 1.55rem; }
.hub-card p { color: #d4c0a0; font-size: .94rem; }
.hub-card .link-arrow { margin-top: auto; color: var(--gold-300); }
.hub-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(245, 201, 122, .18); box-shadow: 0 0 0 30px rgba(245, 201, 122, .03), 0 0 0 60px rgba(245, 201, 122, .02); }
.hub-card.light { background: var(--paper); border-color: var(--line); color: var(--ink-2); }
.hub-card.light h3 { color: var(--cocoa-900); }
.hub-card.light p { color: var(--muted); }
.hub-card.light .bi-hub { color: var(--bronze-400); }
.hub-card.light .link-arrow { color: var(--cocoa-700); }
.hub-card.light::after { border-color: var(--line); box-shadow: 0 0 0 30px rgba(240, 176, 80, .05), 0 0 0 60px rgba(240, 176, 80, .03); }

/* Professionals split */
.pro-split { display: grid; gap: 18px; }
@media (min-width: 900px) { .pro-split { grid-template-columns: 1.15fr 1fr; } }
.pro-split .card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); }
.pro-split .card.dark { background: var(--cocoa-900); border-color: var(--cocoa-800); color: #e9d8bb; }
.pro-split .card.dark h2, .pro-split .card.dark h3 { color: #fff7ea; }

/* Trust band */
.trust-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: .2s; }
.trust-item:hover { border-color: var(--gold-300); color: var(--ink-2); box-shadow: var(--shadow-2); }
.trust-item strong { color: var(--cocoa-900); font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; }
.trust-item span { font-size: .9rem; color: var(--muted); }
.label-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .86rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); background: var(--cocoa-deep); color: #f0e2cb; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff7ea; margin: 0; }
.cta-band .row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .row { justify-content: flex-end; } }
.brand img, .footer-brand img, .msg.ai .avatar img { background: radial-gradient(circle, #fffdf8 62%, transparent 63%); border-radius: 50%; }
.cta-band .seal-bg { position: absolute; right: -80px; bottom: -120px; width: 340px; opacity: .08; pointer-events: none; }

/* Empty state */
.empty { text-align: center; padding: clamp(32px, 5vw, 56px) 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(240, 176, 80, .04) 14px 28px), var(--paper); }
.empty .bi { font-size: 2.1rem; color: var(--bronze-400); }
.empty h3 { margin: 12px 0 6px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }

/* Page hero (inner pages) */
.page-hero { background: var(--cocoa-deep); color: #e8d6b8; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff7ea; font-size: clamp(2.1rem, 3.4vw + 1rem, 3.6rem); max-width: 20ch; }
.page-hero .lead { color: #dcc8a8; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(245, 201, 122, .15); box-shadow: 0 0 0 50px rgba(245, 201, 122, .025), 0 0 0 100px rgba(245, 201, 122, .02); pointer-events: none; }
.page-hero.light { background: var(--paper); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.page-hero.light h1 { color: var(--cocoa-900); }
.page-hero.light .lead { color: var(--ink-2); }
.page-hero.light::after { border-color: var(--line); box-shadow: 0 0 0 50px rgba(240, 176, 80, .05), 0 0 0 100px rgba(240, 176, 80, .03); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; margin-bottom: 1.25rem; color: #c9b08b; }
.crumbs a { color: var(--gold-300); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.page-hero.light .crumbs { color: var(--muted); }
.page-hero.light .crumbs a { color: var(--bronze-500); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.hero-pills a { padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(245, 201, 122, .3); color: #f3e2c4; text-decoration: none; font-size: .85rem; font-weight: 600; }
.hero-pills a:hover, .hero-pills a.is-active { background: var(--gold-400); color: var(--cocoa-900); border-color: var(--gold-400); }

/* Listing layout with filters */
.listing { display: grid; gap: 24px; }
@media (min-width: 1000px) { .listing { grid-template-columns: 280px 1fr; gap: 36px; align-items: start; } .filters { position: sticky; top: calc(var(--header-h) + 20px); } }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.filters h4 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-500); }
.filters .field { margin-bottom: 18px; }
.filters .check { padding: 4px 0; font-size: .9rem; }
.filters .check .count { margin-left: auto; color: var(--muted); font-size: .78rem; }
details.filters-mobile > summary { list-style: none; }
details.filters-mobile > summary::-webkit-details-marker { display: none; }
@media (min-width: 1000px) { details.filters-mobile > summary { display: none; } }
.results-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.results-bar .count { font-weight: 700; color: var(--ink-2); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 700; color: var(--ink-2); }
.pager a:hover { border-color: var(--gold-300); }
.pager .is-current { background: var(--cocoa-700); color: #fff; border-color: var(--cocoa-700); }

/* Detail layout */
.detail { display: grid; gap: 28px; }
@media (min-width: 1000px) { .detail { grid-template-columns: 1fr 340px; gap: 44px; align-items: start; } .detail aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.55rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose p, .prose li { color: var(--ink-2); }
.facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .92rem; }
.facts .bi { color: var(--bronze-400); margin-top: 2px; }
.facts b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--gold-100); border: 1px solid var(--gold-200); font-size: .88rem; color: var(--cocoa-800); }
.notice .bi { color: var(--bronze-500); font-size: 1.1rem; }
.notice.warn { background: var(--warn-bg); border-color: #eed39f; }
.notice.info { background: var(--info-bg); border-color: #bcd2e5; color: #1f425f; }
.notice.info .bi { color: var(--info); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--cream); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fffaf0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cocoa-950); color: #c8b393; padding: clamp(48px, 6vw, 80px) 0 28px; margin-top: 0; font-size: .92rem; }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; } }
.footer-brand img { width: 74px; margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff3df; font-size: 1.35rem; }
.footer-brand p { margin-top: 10px; max-width: 34ch; }
.site-footer h6 { color: var(--gold-300); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #e3d0b1; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(245, 201, 122, .14); font-size: .82rem; color: #9b876b; }
.footer-tagline { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .3em; text-transform: uppercase; font-size: .66rem; color: var(--gold-400); font-weight: 700; }
.footer-tagline::before, .footer-tagline::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(245, 201, 122, .25); }

/* Floating AI button */
.ai-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--cocoa-900); color: #fff3df; text-decoration: none; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-3); border: 1px solid var(--cocoa-700); }
.ai-fab .bi { color: var(--gold-400); font-size: 1.1rem; }
.ai-fab:hover { color: #fff; background: var(--cocoa-800); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth-wrap { grid-template-columns: 1fr 1.05fr; } }
.auth-side { display: none; position: relative; overflow: hidden; background: var(--cocoa-deep); color: #e8d6b8; padding: 48px; }
@media (min-width: 960px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-side h2 { color: #fff7ea; max-width: 16ch; }
.auth-side .seal { width: 280px; align-self: center; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 32px var(--gutter); background: var(--cream); }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card h1 { font-size: clamp(2rem, 2vw + 1.2rem, 2.6rem); }

/* ---------- Account layout ---------- */
.acct { display: grid; gap: 24px; padding: 28px 0 64px; }
@media (min-width: 1000px) { .acct { grid-template-columns: 250px 1fr; gap: 36px; padding-top: 40px; } }
.acct-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.acct-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .acct-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 20px); overflow: visible; } }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.acct-nav a .bi { color: var(--bronze-400); }
.acct-nav a:hover { background: var(--cream); color: var(--cocoa-900); }
.acct-nav a.is-active { background: var(--cocoa-700); color: #fff8ec; }
.acct-nav a.is-active .bi { color: var(--gold-300); }
.acct-nav .sep { display: none; }
@media (min-width: 1000px) { .acct-nav .sep { display: block; height: 1px; background: var(--line); margin: 6px 8px; } }
.acct-nav .badge { margin-left: auto; background: var(--gold-400); color: var(--cocoa-900); border-radius: 999px; padding: 0 7px; font-size: .72rem; font-weight: 800; }
.acct-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.acct-head h1 { font-size: clamp(1.8rem, 1.6vw + 1.2rem, 2.5rem); margin: 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat .v { font-family: var(--font-display); font-size: 1.9rem; color: var(--cocoa-900); line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: .82rem; color: var(--muted); }
.progress { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold-sheen); border-radius: inherit; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-plain > li:last-child { border-bottom: 0; }
.welcome { position: relative; overflow: hidden; background: var(--cocoa-deep); color: #e8d6b8; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); margin-bottom: 22px; }
.welcome h1 { color: #fff7ea; font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.3rem); margin-bottom: .3em; }
.welcome .progress { background: rgba(255, 255, 255, .12); max-width: 360px; }

/* Repeater rows (profile editor) */
.repeater-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; margin-bottom: 12px; background: #fff; position: relative; }
.repeater-item .remove { position: absolute; top: 10px; right: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 4px; }
.repeater-item .remove:hover { color: var(--bad); }
.kind-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kind-option input { position: absolute; opacity: 0; }
.kind-option span { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; font-size: .9rem; height: 100%; }
.kind-option span small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.kind-option input:checked + span { border-color: var(--cocoa-700); box-shadow: inset 0 0 0 1px var(--cocoa-700); background: var(--gold-100); }
.kind-option input:focus-visible + span { box-shadow: var(--ring); }

/* AI chat page */
.chat { display: grid; grid-template-rows: 1fr auto; min-height: 62vh; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.chat-log { padding: 22px; overflow-y: auto; max-height: 64vh; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.msg { display: flex; gap: 12px; max-width: 100%; }
.msg .avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.msg.ai .avatar { background: var(--cocoa-900); }
.msg.ai .avatar img { width: 30px; }
.msg.user { flex-direction: row-reverse; }
.msg.user .avatar { background: var(--gold-200); color: var(--cocoa-800); }
.msg .bubble { padding: 14px 16px; border-radius: 18px; font-size: .95rem; max-width: min(640px, 85%); }
.msg.ai .bubble { background: var(--cream); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--cocoa-700); color: #fff8ec; border-top-right-radius: 4px; }
.msg .bubble p:last-child { margin-bottom: 0; }
.ai-results { display: grid; gap: 8px; margin: 12px 0; }
.ai-result { display: block; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: .15s; }
.ai-result:hover { border-color: var(--gold-300); box-shadow: var(--shadow-1); color: var(--ink); }
.ai-result .k { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-500); font-weight: 800; }
.ai-result strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--cocoa-900); }
.ai-result small { color: var(--muted); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-note { margin-top: 10px; font-size: .8rem; color: var(--muted); display: flex; gap: 6px; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--cream); }
.chat-form .input { min-height: 52px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze-400); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Receipt */
.receipt { max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); position: relative; }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-sheen); border-radius: var(--r) var(--r) 0 0; }
.receipt-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: .92rem; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Print */
@media print {
  .site-header, .site-footer, .ai-fab, .no-print, .acct-nav { display: none !important; }
  body { background: #fff; }
  .acct { display: block; padding: 0; }
}
