/* ============================================================
   Contexion — Shared stylesheet
   Light, modern, warm: cream + amber + sage palette.
   No dark backgrounds, no blue tones.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700;1,900&family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ----- DESIGN TOKENS ----- */
:root {
  /* Surfaces — cream-white, clean and minimal */
  --bg:           #FBF9F4;   /* page background — cream white */
  --bg-alt:       #F5F1E8;   /* subtle banded sections */
  --card-bg:      #FFFFFF;   /* card surface — pure white for crisp contrast */
  --card-bg-soft: #FAF6EC;   /* secondary card tone */

  /* Text — refined for modern editorial contrast */
  --cream:        #1A1714;   /* primary heading — near-black, warm */
  --text-p:       #514C45;   /* paragraph — sophisticated warm gray */
  --text-dim:     #8A857C;   /* secondary / monospace labels */

  /* CTA primary — warm near-black (same hex as headings).
     Editorial-modern; ages well; doesn't compete with logo blue or amber accents. */
  --cta:          #1A1714;   /* primary CTA — warm near-black */
  --cta-hover:    #2D2622;   /* lifted hover state */
  --cta-deep:     #0F0D0B;   /* deepest tone (used in subtle gradient) */

  /* Logo-blue accent kept available if needed in icons/links */
  --brand:        #0098C8;
  --brand-lt:     #1AB0DC;
  --brand-dk:     #007AA8;
  --brand-soft:   #DCF1F8;

  /* Warm complementary accent (kept for editorial warmth) */
  --amber:        #E8900A;   /* secondary accent */
  --amber-lt:     #B36A02;   /* deeper amber for text on light bg */
  --amber-dk:     #C57A04;   /* button hover */
  --amber-soft:   #FDEFD3;   /* tinted bg */
  --sage:         #5E8466;   /* deeper sage for better contrast */
  --sage-lt:      #88AC8E;
  --rose-gold:    #B4735A;
  --teal:         #DC7E66;   /* coral (no blue) */

  /* Wood / deep tones for accent text */
  --espresso:     #1A1714;
  --walnut:       #5F4636;
  --mahogany:     #7A3F26;

  /* Lines & borders */
  --border:       #ECE5D6;
  --border-h:     #D5C8A8;

  /* Shadows — sharper, modern, ready-to-launch */
  --shadow-card:  0 1px 2px rgba(26,23,20,0.04),
                  0 4px 12px rgba(26,23,20,0.05);
  --shadow-hover: 0 2px 4px rgba(26,23,20,0.06),
                  0 12px 28px rgba(26,23,20,0.10);
  --shadow-float: 0 8px 16px rgba(26,23,20,0.08),
                  0 24px 48px rgba(26,23,20,0.10);

  /* Button shadows — warm-dark cast, crisp and intentional */
  --shadow-btn:       0 1px 2px rgba(26,23,20,0.18),
                      0 4px 12px rgba(26,23,20,0.20);
  --shadow-btn-hover: 0 2px 4px rgba(26,23,20,0.24),
                      0 10px 24px rgba(26,23,20,0.26);

  /* Focus ring — amber for high contrast against the dark CTA */
  --ring: 0 0 0 4px rgba(232,144,10,0.32);

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;

  /* Layout */
  --nav-h: 72px;
  --container-w: 1200px;
}

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17.5px;          /* +9% over the 16px baseline — gentler on the eyes */
  line-height: 1.65;          /* looser leading for paragraph comfort */
  color: var(--text-p);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;         /* blurred radial decorations bleed past the viewport on small screens */
}

/* Decorative full-bleed backgrounds (hero, cta-box, section-pad) should never
   force the viewport to scroll horizontally on phones. */
.hero, .page-hero, .cta-box, .section { max-width: 100%; }
.hero-bg, .page-hero-bg, .hero-lines { max-width: 100vw; }

/* ----- READING-COMFORT OVERRIDES -----
   The original page-specific styles used 0.85–0.9rem for body copy and 0.8rem
   for card descriptions; at 17.5px base that's still ~14–15px. Bump everything
   that's actually paragraph text up to a 16–18px reading band site-wide. */
p, li, .feat-desc, .testi-text, .hero-sub, .lead, .fd-desc,
.faq-a, .plan-desc, .footer-brand-desc, .er-desc {
  font-size: 1rem;            /* ~17.5px — the comfortable reading minimum */
  line-height: 1.7;
}
.hero-sub, .lead, .fd-desc {
  font-size: 1.125rem;        /* ~19.7px — hero/section intros, even easier */
  line-height: 1.65;
}
.plan-features li {
  font-size: 0.98rem;         /* pricing rows — keep slightly tighter for scan */
}

a { color: inherit; text-decoration: none; }

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

ul { list-style: none; padding: 0; margin: 0; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--amber-soft); color: var(--espresso); }

/* ----- LAYOUT PRIMITIVES ----- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.section { position: relative; }
.section-pad { padding: 120px 0; }

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 72px 0; }
}

@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .section-pad { padding: 56px 0; }
}

/* ----- TYPOGRAPHY ----- */
/* Section eyebrows hidden site-wide for a cleaner look.
   To restore, delete this rule and uncomment the original
   `.eyebrow { display: inline-flex; … }` block below. */
.eyebrow { display: none !important; }

/* Original eyebrow styles kept for reference / easy revert:
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-lt);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--amber);
}
*/

.h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 16px;
}

.h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 16px;
}

.italic-amber {
  font-style: italic;
  color: var(--amber-lt);
  font-weight: 700;
}

/* ----- NAV ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(250, 246, 238, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
  background: rgba(250, 246, 238, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(74,55,38,0.05);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;                          /* wordmark is built into the logo image */
  font-size: 0;                     /* prevents any stray whitespace next to the img */
  color: var(--cream);
  text-decoration: none;
}

/* Brand mark — applied directly to an <img class="logo-mark">.
   Wordmark is wider than tall (~2.7:1), so we lock the height and let
   the width follow the natural aspect ratio. */
.logo-mark {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.footer .logo-mark { height: 56px; }   /* footer can breathe a bit more */

.nav-links {
  display: flex;
  gap: 36px;
}
/* Drawer-only CTAs — hidden on desktop, revealed inside the mobile panel below 860px.
   `!important` defends against later media-query rules accidentally re-showing it. */
.nav .nav-links .mobile-ctas { display: none !important; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-p);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--amber-lt); }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content:'';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ----- MOBILE NAV TOGGLE -----
   The hamburger button is hidden on desktop and revealed under 860px.
   When .nav.open is set on the parent, the .nav-links panel slides
   into view as a full-width drawer below the nav bar. Markup contract:

     <nav class="nav" id="nav">
       <a class="nav-logo">…</a>
       <button class="nav-toggle" aria-label="Menu"
               aria-controls="nav-links" aria-expanded="false">
         <span></span><span></span><span></span>
       </button>
       <ul class="nav-links" id="nav-links">…</ul>
       <div class="nav-ctas">…</div>
     </nav>
*/
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: auto;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: rgba(26,23,20,0.04); border-color: var(--border-h); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav.open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  /* Hide the desktop CTA group on mobile — its actions live in the drawer. */
  .nav .nav-ctas { display: none; }

  /* Drawer panel */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(74,55,38,0.12);
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .nav.open .nav-links {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
  }
  .nav-links a.active::after { display: none; }

  /* Mirror the CTAs at the bottom of the drawer.
     Override the desktop !important hide above with an equally-specific !important. */
  .nav .nav-links .mobile-ctas {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    border-bottom: none;
  }
  .nav-links .mobile-ctas .btn { width: 100%; padding: 13px 22px; font-size: 0.95rem; }
}

/* Lock body scroll while drawer is open */
body.nav-open { overflow: hidden; }

@media (max-width: 540px) {
  .nav { padding: 0 16px; }
  .logo-mark { height: 40px; }
}

/* ----- BUTTONS — modern, launch-ready ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.005em;
  position: relative;
  isolation: isolate;
  transition: transform 0.18s cubic-bezier(.2,.7,.3,1),
              box-shadow 0.25s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active { transform: translateY(0); transition-duration: 0.05s; }

.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 26px; font-size: 0.95rem; }
.btn-xl { padding: 17px 32px; font-size: 1rem; }

@media (max-width: 540px) {
  .btn-xl { padding: 14px 24px; font-size: 0.95rem; }
  .btn-lg { padding: 12px 22px; font-size: 0.9rem; }
}

/* Primary — warm near-black solid (Linear/Vercel pattern).
   Class name stays `.btn-amber` for backwards compatibility — only the
   color treatment changes. White text, subtle inset highlight on the top
   edge, crisp two-layer shadow. */
.btn-amber {
  background: var(--cta);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn),
              inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-amber:hover {
  background: var(--cta-hover);
  box-shadow: var(--shadow-btn-hover),
              inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.btn-amber:focus-visible {
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255,255,255,0.08), var(--ring);
}

/* Sage — calm secondary */
.btn-sage {
  background: linear-gradient(180deg, #6E957A 0%, var(--sage) 50%, #527659 100%);
  color: #FFFDF7;
  box-shadow: 0 1px 2px rgba(40,70,46,0.18),
              0 4px 12px rgba(94,132,102,0.30),
              inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-sage:hover {
  background: linear-gradient(180deg, #659072 0%, #547B5C 50%, #466D4E 100%);
  box-shadow: 0 2px 4px rgba(40,70,46,0.22),
              0 10px 22px rgba(94,132,102,0.38),
              inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* Outline — modern hairline */
.btn-outline {
  background: var(--card-bg);
  color: var(--cream);
  border-color: var(--border-h);
  box-shadow: 0 1px 2px rgba(26,23,20,0.03);
}
.btn-outline:hover {
  border-color: var(--cream);
  color: var(--cream);
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(26,23,20,0.06),
              0 8px 20px rgba(26,23,20,0.07);
  transform: translateY(-1px);
}

/* Ghost — quiet text-only */
.btn-ghost {
  background: transparent;
  color: var(--text-p);
}
.btn-ghost:hover { color: var(--cream); background: rgba(26,23,20,0.04); }

/* ----- REVEAL ANIMATION ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ----- CARD ICON CHIPS -----
   Two modes:
   • Emoji / glyph (fallback) — small tinted chip background, helps unify monochrome glyphs
   • Real image (preferred) — chip styling is stripped so the icon art reads on its own */
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.icon-amber { background: rgba(232,144,10,0.12); color: var(--amber-lt); border-color: rgba(232,144,10,0.25); }
.icon-sage  { background: rgba(110,148,116,0.14); color: var(--sage); border-color: rgba(110,148,116,0.28); }
.icon-rose  { background: rgba(196,133,106,0.14); color: var(--rose-gold); border-color: rgba(196,133,106,0.28); }
.icon-teal  { background: rgba(232,145,122,0.14); color: var(--teal); border-color: rgba(232,145,122,0.28); }

/* ----- IMAGE-AWARE ICON & AVATAR CONTAINERS -----
   The HTML uses purpose-specific chip classes (card-icon, tl-icon, ci-icon,
   int-logo, value-icon, uc-icon, face, t-face, cand-av, bc-avatar). When
   any of them wraps a real <img>, we want to:
   • drop the original tinted chip background so the art reads cleanly
   • normalize sizing so icons look consistent across pages
   • cover-crop avatars to a clean circle
   The :has(img) selector adds enough specificity to beat the original chip
   styles and even inline `style="background:..."` overrides on int-logo /
   cand-av — no markup edits needed. */

/* --- DECORATIVE ICON CHIPS (square, contain-fit) --- */
.card-icon:has(img),
.tl-icon:has(img),
.ci-icon:has(img),
.int-logo:has(img),
.value-icon:has(img),
.uc-icon:has(img) {
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

/* Per-container sizing — picks the right scale for where the chip lives */
.card-icon:has(img)  { width: 64px;  height: 64px;  margin-bottom: 20px; }
.value-icon:has(img) { width: 72px;  height: 72px;  margin-bottom: 18px; display: inline-flex; }
.uc-icon:has(img)    { width: 64px;  height: 64px;  margin-bottom: 18px; display: inline-flex; }
.ci-icon:has(img)    { width: 48px;  height: 48px; }
.int-logo:has(img)   { width: 40px;  height: 40px; }
.tl-icon:has(img)    { width: 40px;  height: 40px; }

.card-icon img, .tl-icon img, .ci-icon img,
.int-logo img, .value-icon img, .uc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* --- ROUND AVATARS (cover-fit, circular crop) --- */
.face:has(img),
.t-face:has(img),
.cand-av:has(img),
.bc-avatar:has(img) {
  background: transparent !important;
  overflow: hidden;
  border-radius: 50%;
}
.bc-avatar:has(img)::after { display: none; }   /* hide gradient ring when photo present */

.face img,
.t-face img,
.cand-av img,
.bc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- FOOTER ----- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-p);
  line-height: 1.65;
  margin: 14px 0 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-p);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.social-link:hover {
  color: var(--amber-lt);
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(232,144,10,0.18);
}

.footer-col-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-p);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber-lt); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links {
  display: flex;
  gap: 22px;
}
.footer-bottom-links a { color: var(--text-dim); }
.footer-bottom-links a:hover { color: var(--amber-lt); }

@media (max-width: 900px) {
  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand-desc { max-width: none; }
}
@media (max-width: 540px) {
  .footer { padding: 44px 0 20px; margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }
}

/* ----- UTILITY: text + image helpers used across pages ----- */
.text-amber  { color: var(--amber-lt); }
.text-sage   { color: var(--sage); }
.text-dim    { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   PER-PAGE SHARED HELPERS
   (These classes appear in inline page styles; this provides
   a sensible base so unstyled instances still render well.)
   ============================================================ */

/* Generic cards used on subpages */
.card-mockup {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* Form primitives */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}
.form-input, .form-select, .form-textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: #FFFDF7;
  box-shadow: 0 0 0 4px rgba(232,144,10,0.12);
}
.form-textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cta);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255,255,255,0.08);
}
.form-submit:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover), inset 0 1px 0 rgba(255,255,255,0.10);
}

/* ============================================================
   LEGAL / POLICY PAGES
   Shared layout for privacy, terms, security, cookies.
   ============================================================ */
.legal-hero {
  padding: calc(var(--nav-h) + 56px) 0 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.legal-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.legal-meta::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
}

.legal-body { padding: 64px 0 96px; }
.legal-body > .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal-toc-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 700;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  font-size: 0.9rem;
  color: var(--text-p);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.45;
  display: block;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.legal-toc a:hover { color: var(--cream); }

.legal-content { max-width: 720px; font-size: 1rem; line-height: 1.7; color: var(--text-p); }
.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin: 48px 0 18px;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin: 28px 0 10px;
}
.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 0 0 20px; padding-left: 22px; }
.legal-content ul li { margin-bottom: 8px; list-style: disc; line-height: 1.65; }
.legal-content a { color: var(--amber-lt); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--cream); }
.legal-content strong { color: var(--cream); font-weight: 700; }
.legal-content code {
  font-family: 'Space Mono', monospace;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

@media (max-width: 900px) {
  .legal-hero { padding-top: calc(var(--nav-h) + 36px); }
  .legal-body { padding: 40px 0 64px; }
  .legal-body > .container { grid-template-columns: 1fr; gap: 24px; }

  /* Collapse the on-page TOC into a compact, scroll-friendly card so it
     doesn't dominate the top of the article on phones. */
  .legal-toc {
    position: static;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 18px;
  }
  .legal-toc-title { margin-bottom: 10px; }
  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    max-height: 160px;
    overflow-y: auto;
  }
}
@media (max-width: 540px) {
  .legal-content h2 { font-size: 1.35rem; margin: 36px 0 14px; }
  .legal-content h3 { font-size: 1rem; }
}
