/* VANTAGE — vantage.associates
   Palette mirrors mobile/src/theme/tokens.ts so the site and app read as one brand. */

:root {
  --ink: #0b0b0d;
  --ink-2: #141417;
  --ink-3: #1d1d21;
  --gold: #caa764;
  --gold-dark: #6f5424;
  --gold-pale: #f0e6d3;
  --paper: #fbfaf6;
  --white: #ffffff;
  --text: #19191b;
  --muted: #6d6b67;
  --muted-on-ink: #a9a6a0;
  --line: #dfddd6;
  --line-on-ink: rgba(202, 167, 100, 0.22);
  --error: #a7463c;
  --error-pale: #f8e8e5;
  --success: #2f684f;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-ink .eyebrow { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.2vw, 78px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; }
.on-ink .lede { color: var(--muted-on-ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8b878; }
.btn-ghost { border-color: var(--line-on-ink); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(11, 11, 13, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-on-ink);
}
/* The header spans the full window width, wider than the page content. */
.site-header .container { max-width: none; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold);
  font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.32em;
}
.wordmark svg { width: 38px; height: 38px; }
.wordmark-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark-tagline {
  margin-top: 6px; color: rgba(255, 255, 255, 0.78); font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(6px, 1.6vw, 28px); }
.nav a {
  position: relative; padding: 10px 16px; color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: var(--gold);
}
.nav .nav-login {
  margin-left: 10px; border: 1px solid var(--line-on-ink); border-radius: 999px; padding: 9px 20px; color: var(--gold);
}
.nav .nav-login:hover { border-color: var(--gold); }
.nav .nav-login[aria-current="page"]::after { display: none; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-on-ink); border-radius: 999px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle .menu-bars, .menu-toggle .menu-bars::before, .menu-toggle .menu-bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--gold); position: relative;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.menu-toggle .menu-bars::before, .menu-toggle .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .menu-bars::before { top: -6px; }
.menu-toggle .menu-bars::after { top: 6px; }
.site-header.is-open .menu-toggle .menu-bars { background: transparent; }
.site-header.is-open .menu-toggle .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-toggle .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    /* An explicit height, not bottom: 0. The open header's backdrop-filter makes
       it the containing block, which would collapse the panel to nothing. */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter);
    background: var(--ink); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-header.is-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a {
    padding: 20px 0; border-bottom: 1px solid var(--line-on-ink);
    font-family: var(--serif); font-size: 30px; letter-spacing: 0.02em; text-transform: none;
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-login { margin: 28px 0 0; text-align: center; font-family: var(--sans); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; padding: 16px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: min(100svh, 920px); display: flex; align-items: center;
  background: var(--ink); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; filter: saturate(0.85); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,13,0.96) 0%, rgba(11,11,13,0.86) 38%, rgba(11,11,13,0.45) 70%, rgba(11,11,13,0.6) 100%),
    linear-gradient(0deg, rgba(11,11,13,0.9) 0%, rgba(11,11,13,0) 40%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 28px; font-size: 13px; color: var(--muted-on-ink); letter-spacing: 0.04em; }
.hero-note strong { color: var(--gold); font-weight: 600; }

.page-hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + 88px) 0 88px;
}
.page-hero .hero-media::after { background: linear-gradient(90deg, rgba(11,11,13,0.95), rgba(11,11,13,0.72)); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin: 20px 0 18px; max-width: 18ch; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media img { object-position: 62% 20%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(11,11,13,0.78) 0%, rgba(11,11,13,0.9) 55%, rgba(11,11,13,0.98) 100%); }
}

/* ---------- Phone mockup (pure CSS; shows the real app layout) ---------- */

.device {
  --w: 300px;
  justify-self: center; width: var(--w); aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2b2b30, #0d0d10 55%, #26262a);
  box-shadow: 0 0 0 1px rgba(202,167,100,0.25), 0 40px 80px rgba(0,0,0,0.55), 0 12px 24px rgba(0,0,0,0.35);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .device { animation: none; } }

.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper);
  display: flex; flex-direction: column; font-family: var(--sans); color: var(--text);
}
.screen-bar { height: 34px; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.screen-bar::after { content: ""; width: 88px; height: 22px; border-radius: 99px; background: #000; }
.app-head {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px;
  background: var(--ink); color: var(--white);
}
.app-head .logo { font-family: var(--serif); font-weight: 600; letter-spacing: 0.28em; color: var(--gold); font-size: 15px; }
.app-head .who { text-align: right; line-height: 1.25; }
.app-head .who small { display: block; font-size: 8px; color: var(--muted-on-ink); letter-spacing: 0.04em; }
.app-head .who b { display: block; font-size: 9.5px; font-weight: 600; }
.app-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.app-title { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 2px 2px 0; }
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.app-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-card b { font-size: 10.5px; font-weight: 650; }
.app-card p { margin: 3px 0 0; font-size: 9px; color: var(--muted); line-height: 1.4; }
.chip { font-size: 7.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: var(--gold-pale); color: var(--gold-dark); white-space: nowrap; }
.chip-ok { background: #e3eee8; color: var(--success); }
.app-card.ai { background: var(--ink); border-color: var(--ink); color: var(--white); }
.app-card.ai p { color: var(--muted-on-ink); }
.app-card.ai .approve { margin-top: 7px; display: inline-block; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 4px 10px; border-radius: 99px; }
.app-tabs { display: grid; grid-template-columns: repeat(6, 1fr); padding: 8px 6px 14px; background: var(--white); border-top: 1px solid var(--line); }
.app-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 6.5px; color: var(--muted); }
.app-tabs span::before { content: ""; width: 14px; height: 14px; border: 1.3px solid currentColor; border-radius: 4px; }
.app-tabs span.on { color: var(--gold-dark); font-weight: 700; }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-ink { background: var(--ink); color: var(--white); }
.section-tint { background: #f4f1ea; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { margin: 18px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.statement { text-align: center; padding: clamp(72px, 9vw, 120px) 0; }
.statement h2 { max-width: 22ch; margin: 22px auto 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-on-ink); }
.fact { padding: 32px 20px 0; border-left: 1px solid var(--line-on-ink); text-align: left; }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; color: var(--gold); line-height: 1.1; }
.fact span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted-on-ink); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact { padding-bottom: 28px; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { background: var(--paper); padding: clamp(28px, 3vw, 40px); transition: background 0.3s var(--ease); }
.pillar:hover { background: var(--white); }
.pillar .icon { width: 44px; height: 44px; color: var(--gold-dark); margin-bottom: 26px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pillar ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text); }
.pillar li { padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--line); }
.pillar li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 1px; background: var(--gold-dark); }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); filter: saturate(0.9); }
.split-media .frame { position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.split.reverse .split-media .frame { inset: 22px 22px -22px -22px; }
.split-media .badge-float {
  position: absolute; left: -28px; bottom: 36px; max-width: 260px;
  background: var(--ink); color: var(--white); border: 1px solid var(--line-on-ink); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 24px 48px rgba(0,0,0,0.25); font-size: 13px; line-height: 1.5;
}
.split.reverse .split-media .badge-float { left: auto; right: -28px; }
.badge-float b { display: block; color: var(--gold); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.split-copy h2 { margin: 18px 0 20px; }
.split-copy p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checks li svg { width: 22px; height: 22px; color: var(--gold-dark); margin-top: 2px; }
.checks li b { display: block; font-weight: 600; }
.checks li span { color: var(--muted); font-size: 15px; }
.section-ink .checks li span, .section-ink .split-copy p { color: var(--muted-on-ink); }
.section-ink .checks li svg { color: var(--gold); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { margin: 0 22px 22px 0; }
  .split.reverse .split-media { margin: 0 0 22px 22px; }
  .split-media img { aspect-ratio: 4 / 3; }
  .split-media .badge-float, .split.reverse .split-media .badge-float { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-card { border: 1px solid var(--line-on-ink); border-radius: var(--radius-lg); padding: 30px; background: linear-gradient(180deg, rgba(202,167,100,0.05), rgba(202,167,100,0)); }
.sec-card .icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 22px; }
.sec-card h3 { font-size: 24px; margin-bottom: 10px; }
.sec-card p { margin: 0; color: var(--muted-on-ink); font-size: 15px; }
@media (max-width: 980px) { .security-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .security-grid { grid-template-columns: 1fr; } }

.about-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
.about-block .prose p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.about-block .prose p:first-child { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; color: var(--text); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.principles div { border-top: 1px solid var(--gold); padding-top: 16px; }
.principles b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.principles span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .about-block { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--white); text-align: center; padding: clamp(88px, 10vw, 140px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(202,167,100,0.18), rgba(202,167,100,0));
}
.cta-band .container { position: relative; }
.cta-band h2 { max-width: 20ch; margin: 20px auto 18px; }
.cta-band .lede { margin: 0 auto; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white); padding: 38px 32px 32px;
}
.plan.featured { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 0 30px 60px rgba(11,11,13,0.25); }
.plan .ribbon {
  position: absolute; top: -13px; left: 32px; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px;
}
.plan h3 { font-size: 32px; }
.plan .for { margin: 6px 0 26px; color: var(--muted); font-size: 15px; min-height: 48px; }
.plan.featured .for, .plan.featured .terms, .plan.featured li { color: var(--muted-on-ink); }
.plan .price { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); }
.plan .price strong { font-size: 58px; font-weight: 500; line-height: 1; }
.plan.featured .price strong { color: var(--gold); }
.plan .price span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.plan.featured .price span { color: var(--muted-on-ink); }
.plan .terms { margin: 8px 0 28px; font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; font-size: 15px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.plan li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--gold-dark); }
.plan.featured li svg { color: var(--gold); }
.plan.featured li { color: var(--white); }
.plan .btn { width: 100%; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .plan .for { min-height: 0; } }

.included { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.included div { padding: 26px 22px 0 0; }
.included b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.included span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 860px) { .included { grid-template-columns: 1fr 1fr; gap: 0 20px; } }
@media (max-width: 520px) { .included { grid-template-columns: 1fr; } }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: 23px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--gold-dark); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 68ch; }

/* ---------- Forms (contact, login) ---------- */

.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-aside h2 { margin: 18px 0 18px; }
.contact-aside p { color: var(--muted); }
.contact-lines { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-lines li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.contact-lines .icon { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-dark); }
.contact-lines .icon svg { width: 18px; height: 18px; }
.contact-lines small { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-lines a { text-decoration: none; font-weight: 600; }
.contact-lines a:hover { color: var(--gold-dark); }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 60px rgba(11,11,13,0.06);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); font-size: 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-dark) 50%), linear-gradient(135deg, var(--gold-dark) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); background: var(--white); box-shadow: 0 0 0 3px rgba(202,167,100,0.22); }
.field [aria-invalid="true"] { border-color: var(--error); background: var(--error-pale); }
.field .error { display: block; min-height: 0; margin-top: 6px; font-size: 13px; color: var(--error); }
.field .error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 40ch; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; margin-bottom: 20px; }
.alert[hidden] { display: none; }
.alert-error { background: var(--error-pale); color: var(--error); border: 1px solid rgba(167,70,60,0.35); }
.alert-ok { background: #e7f0eb; color: var(--success); border: 1px solid rgba(47,104,79,0.3); }

.success-panel { text-align: center; padding: 28px 8px; }
.success-panel .seal { width: 64px; height: 64px; margin: 0 auto 22px; color: var(--gold-dark); }
.success-panel h3 { margin-bottom: 12px; }
.success-panel p { color: var(--muted); margin: 0 auto; max-width: 42ch; }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.auth-page { min-height: 100svh; display: grid; place-items: center; position: relative; background: var(--ink); padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.auth-page .hero-media::after { background: radial-gradient(ellipse at center, rgba(11,11,13,0.78), rgba(11,11,13,0.96) 70%); }
.auth-card { position: relative; width: 100%; max-width: 460px; }
.auth-card .card { padding: clamp(28px, 5vw, 44px); }
.auth-card h1 { font-size: clamp(34px, 4vw, 42px); margin: 14px 0 8px; }
.auth-card .sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 14px; }
.auth-links button, .linklike { background: none; border: 0; padding: 0; color: var(--gold-dark); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted-on-ink); font-size: 13px; }
.auth-foot svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--gold); }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 22px !important; font-variant-numeric: tabular-nums; }
.account-rows { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--line); }
.account-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.account-rows li span { color: var(--muted); }
.account-rows li b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 22px; }

/* ---------- Store badges ---------- */

.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px; height: 58px; padding: 0 20px 0 16px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid #a6a6a6;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--gold); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.store-badge b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge[aria-disabled="true"] { cursor: default; opacity: 0.85; }
.store-badge[aria-disabled="true"]:hover { transform: none; border-color: #a6a6a6; }

/* Delete account (member page) */
.danger-zone { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.danger-zone summary { cursor: pointer; color: var(--error); font-weight: 600; font-size: 14.5px; list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone p { color: var(--muted); font-size: 14px; margin: 14px 0 18px; }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #8e3a31; }

/* ---------- Legal pages ---------- */

.legal-head { background: var(--ink); color: var(--white); padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(48px, 6vw, 72px); }
.legal-head h1 { font-size: clamp(38px, 5vw, 60px); margin: 18px 0 12px; }
.legal-head p { margin: 0; color: var(--muted-on-ink); font-size: 14px; }
.legal { max-width: 780px; padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.legal h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--sans); font-size: 16px; font-weight: 650; margin: 26px 0 8px; }
.legal p, .legal li { color: #3b3a37; font-size: 16px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--gold-dark); font-weight: 600; text-underline-offset: 3px; }
.legal .summary { background: var(--gold-pale); border-left: 3px solid var(--gold-dark); border-radius: var(--radius-sm); padding: 18px 22px; margin: 0 0 8px; }
.legal .summary p { margin: 0; color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.legal .toc { columns: 2 240px; column-gap: 32px; margin: 24px 0 0; padding: 20px 22px 20px 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal .toc li { margin: 4px 0; font-size: 14.5px; break-inside: avoid; }
.legal .toc a { font-weight: 500; text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: 0.01em; font-weight: 600; color: var(--text); }
.legal .notice { border: 1px solid var(--gold-dark); border-radius: var(--radius-sm); padding: 16px 20px; margin: 16px 0; }
.legal .notice p { margin: 0; }
.legal h2[id], .legal h3[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal .steps { counter-reset: step; list-style: none; padding: 0; }
.legal .steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.legal .steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 99px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
@media (max-width: 600px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } .legal td:first-child { font-weight: 650; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--line-on-ink); padding: 72px 0 36px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-on-ink); }
.footer-top p { max-width: 40ch; margin: 18px 0 0; }
.footer-top h4 { margin: 0 0 16px; color: var(--white); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 12.5px; }
.footer-bottom p { margin: 0; max-width: 80ch; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
