/* ==========================================================================
   MYHONMAGOLF.INFO — Design tokens & styles
   Palette: Fairway green + champagne gold · Type: Playfair Display / Inter
   ========================================================================== */

:root {
  /* Primitive greens */
  --g-950: #06190f;
  --g-900: #0a2618;
  --g-800: #0f3a25;
  --g-700: #14532d;
  --g-600: #166534;
  --g-500: #1f8a4c;
  --g-400: #4ade80;
  --g-200: #bbf7d0;
  --g-100: #dcfce7;
  --g-50:  #f2f8f3;

  /* Semantic */
  --color-bg: #f6faf6;
  --color-surface: #ffffff;
  --color-fg: #0c1f15;
  --color-muted-fg: #46584d;
  --color-border: #dbe7de;
  --color-primary: var(--g-600);
  --color-primary-hover: var(--g-700);
  --color-on-primary: #ffffff;
  --color-accent: #d4b25a;          /* gold on dark */
  --color-accent-strong: #8a6a12;   /* gold text on light (AA) */
  --color-dark: var(--g-900);
  --color-on-dark: #eef6f0;
  --color-on-dark-muted: #b5cbbc;
  --color-error: #b91c1c;
  --color-ring: #22c55e;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing (spacious) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(6, 25, 15, .06), 0 1px 3px rgba(6, 25, 15, .08);
  --shadow: 0 10px 30px -12px rgba(6, 25, 15, .25);
  --shadow-lg: 0 30px 60px -20px rgba(6, 25, 15, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--space-4); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--space-4); }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--g-200); color: var(--g-950); }

.container { width: min(100% - 2 * var(--space-5), var(--container)); margin-inline: auto; }
.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: var(--space-4); top: -60px; z-index: 100;
  background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .975rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 8px 20px -10px rgba(22, 101, 52, .8); }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-gold { background: var(--color-accent); color: var(--g-950); }
.btn-gold:hover { background: #e2c26e; color: var(--g-950); }
.btn-ghost-light { border-color: rgba(238, 246, 240, .35); color: var(--color-on-dark); }
.btn-ghost-light:hover { border-color: var(--color-on-dark); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--color-border); color: var(--color-fg); background: var(--color-surface); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 38, 24, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--color-on-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .06em; font-size: .95rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-weight: 500; letter-spacing: .02em; font-size: .72rem; color: var(--color-on-dark-muted); }
.nav-links { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  color: var(--color-on-dark-muted); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 8px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: #fff; }
.nav-cta { margin-left: var(--space-3); }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: var(--g-950); padding: 0 var(--space-5); border-radius: 999px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2);
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; background: var(--g-900);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: var(--space-4) var(--space-5) var(--space-6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
  }
  .nav-menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { font-size: 1.05rem; padding: 0 var(--space-2); }
  .nav-cta { margin: var(--space-4) 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(74, 222, 128, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(212, 178, 90, .14), transparent 60%),
    linear-gradient(180deg, var(--g-900), var(--g-950));
  color: var(--color-on-dark);
  padding: var(--space-9) 0 var(--space-8);
}
.hero::after { /* fairway stripes */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 80px, rgba(255, 255, 255, .018) 80px 160px);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--space-8); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.on-light { color: var(--color-accent-strong); }
.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero h1 em { font-style: italic; color: var(--color-accent); font-weight: 500; }
.hero-lead { font-size: 1.15rem; color: var(--color-on-dark-muted); max-width: 54ch; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0; padding: var(--space-5) 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-points strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; font-weight: 600; }
.hero-points span { font-size: .875rem; color: var(--color-on-dark-muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.05; }
.hero-card {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}
.hero-card svg { width: 100%; height: 100%; }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: 14px;
  background: rgba(6, 25, 15, .72); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .85rem; color: var(--color-on-dark); box-shadow: var(--shadow);
}
.hero-badge svg { width: 22px; height: 22px; color: var(--color-accent); flex: none; }
.hero-badge strong { display: block; color: #fff; font-size: .9rem; }
.hero-badge.b1 { left: -24px; top: 14%; }
.hero-badge.b2 { right: -18px; bottom: 12%; }

@media (max-width: 960px) {
  .hero { padding-top: var(--space-8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .hero-badge.b1 { left: 0; }
  .hero-badge.b2 { right: 0; }
}
@media (max-width: 520px) {
  .hero-points { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; }
.section-alt { background: var(--g-50); border-block: 1px solid var(--color-border); }
.section-head { max-width: 680px; margin-bottom: var(--space-7); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--color-muted-fg); font-size: 1.08rem; }

/* ---------- Trust strip ---------- */
.strip { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); list-style: none; margin: 0 auto; padding: var(--space-5) 0; }
.strip li { display: flex; align-items: center; gap: var(--space-3); font-size: .925rem; color: var(--color-muted-fg); }
.strip li svg { width: 22px; height: 22px; color: var(--color-primary); flex: none; }
.strip li strong { color: var(--color-fg); }
@media (max-width: 860px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .strip ul { grid-template-columns: 1fr; } }

/* ---------- Bento categories ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: var(--space-5); }
.tile {
  position: relative; display: flex; flex-direction: column;
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c4d9ca; }
.tile-icon {
  position: relative; margin-bottom: auto; flex: none;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--g-100); color: var(--g-700);
}
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { margin: var(--space-6) 0 var(--space-2); }
.tile p { color: var(--color-muted-fg); margin: 0; font-size: .96rem; }
.tile-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); padding: 0; list-style: none; }
.tile-tags li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--g-50); color: var(--g-700); border: 1px solid var(--color-border); white-space: nowrap; }
.tile.feature {
  grid-column: span 2; grid-row: span 2; min-height: 520px;
  background: linear-gradient(165deg, var(--g-800), var(--g-950)); color: var(--color-on-dark); border-color: transparent;
}
.tile.feature h3 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.tile.feature p { color: var(--color-on-dark-muted); font-size: 1.02rem; max-width: 46ch; }
.tile.feature .tile-icon { background: rgba(212, 178, 90, .16); color: var(--color-accent); }
.tile.feature .tile-tags li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--color-on-dark); }
.tile-art { position: absolute; right: 8px; top: 18px; width: 48%; max-width: 300px; opacity: .95; pointer-events: none; }
.tile.wide { grid-column: span 2; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.feature { grid-column: span 2; grid-row: span 1; min-height: 440px; }
  .tile-art { width: 40%; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile.feature, .tile.wide { grid-column: span 1; }
  .tile.feature { min-height: 480px; }
  .tile-art { width: 58%; right: 0; top: 12px; }
}

/* ---------- Bag finder (tabs) ---------- */
.finder { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-6); align-items: start; }
.tablist { display: flex; flex-direction: column; gap: var(--space-2); }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 60px; padding: var(--space-3) var(--space-5); text-align: left;
  border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-surface);
  cursor: pointer; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.tab small { display: block; font-size: .82rem; color: var(--color-muted-fg); font-weight: 500; }
.tab svg { width: 18px; height: 18px; color: var(--color-muted-fg); transition: transform .2s var(--ease-out); }
.tab:hover { border-color: #b7d1bf; }
.tab[aria-selected="true"] { background: var(--g-700); color: #fff; border-color: var(--g-700); box-shadow: var(--shadow); }
.tab[aria-selected="true"] small, .tab[aria-selected="true"] svg { color: var(--g-200); }
.tab[aria-selected="true"] svg { transform: translateX(3px); }
.panel {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-7); box-shadow: var(--shadow-sm); min-height: 420px;
}
.panel[hidden] { display: none; }
.panel.is-entering { animation: panelIn .35s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-5); flex-wrap: wrap; }
.panel h3 { font-size: 1.9rem; }
.panel-lead { color: var(--color-muted-fg); max-width: 60ch; }
.best-for { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 14px; border-radius: 999px; background: #fbf5e4; color: var(--color-accent-strong); font-weight: 600; font-size: .85rem; border: 1px solid #efe0b4; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin: var(--space-6) 0; }
.spec { padding: var(--space-4); border-radius: var(--radius); background: var(--g-50); border: 1px solid var(--color-border); }
.spec dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted-fg); font-weight: 600; }
.spec dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--g-800); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.proscons h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: var(--space-3); }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.proscons li { display: flex; gap: var(--space-2); font-size: .95rem; color: var(--color-muted-fg); }
.proscons li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.pros svg { color: var(--g-500); }
.cons svg { color: #9a7b2a; }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); }
  .tab { flex: none; scroll-snap-align: start; }
  .tab svg { display: none; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: var(--space-6) var(--space-5); }
}
@media (max-width: 560px) { .proscons { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1;
  color: var(--g-500); margin-bottom: var(--space-4);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--color-muted-fg); margin: 0; font-size: .96rem; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split (care) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split-visual {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4;
  background: linear-gradient(160deg, var(--g-700), var(--g-950)); box-shadow: var(--shadow-lg);
}
.split-visual svg { width: 100%; height: 100%; }
.checklist { list-style: none; margin: var(--space-5) 0 var(--space-6); padding: 0; display: grid; gap: var(--space-4); }
.checklist li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: start; }
.checklist .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--g-100); color: var(--g-700); }
.checklist .ci svg { width: 20px; height: 20px; }
.checklist strong { display: block; margin-bottom: 2px; }
.checklist p { margin: 0; color: var(--color-muted-fg); font-size: .96rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-7); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #b7d1bf; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--color-primary); transition: transform .25s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--space-5) var(--space-5); color: var(--color-muted-fg); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA / Form ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(74, 222, 128, .18), transparent 60%),
    linear-gradient(160deg, var(--g-800), var(--g-950));
  color: var(--color-on-dark); padding: var(--space-8);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start;
}
.cta h2 { color: #fff; }
.cta-lead { color: var(--color-on-dark-muted); font-size: 1.08rem; }
.cta-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.cta-list li { display: flex; gap: var(--space-3); align-items: center; color: var(--color-on-dark); }
.cta-list svg { width: 20px; height: 20px; color: var(--color-accent); flex: none; }
.form { background: var(--color-surface); color: var(--color-fg); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: 6px; margin-bottom: var(--space-4); }
.field label { font-weight: 600; font-size: .9rem; }
.field .opt { font-weight: 400; color: var(--color-muted-fg); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--color-border); background: #fbfdfb; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field-error { color: var(--color-error); font-size: .85rem; min-height: 0; }
.field-error:empty { display: none; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); align-items: start; font-size: .88rem; color: var(--color-muted-fg); margin-bottom: var(--space-4); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--g-600); cursor: pointer; }
.form .btn { width: 100%; }
.form-note { font-size: .8rem; color: var(--color-muted-fg); margin: var(--space-3) 0 0; text-align: center; }
.form-success { display: none; text-align: center; padding: var(--space-6) var(--space-3); }
.form-success svg { width: 56px; height: 56px; color: var(--g-600); margin: 0 auto var(--space-4); }
.form.is-sent .form-body { display: none; }
.form.is-sent .form-success { display: block; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: var(--space-7) var(--space-5); } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .form { padding: var(--space-5); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--g-950); color: var(--color-on-dark-muted); padding: var(--space-8) 0 var(--space-6); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-7); }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer a { color: var(--color-on-dark-muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { max-width: 36ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer-disclaimer { font-size: .8rem; color: #8ea597; max-width: 90ch; margin-top: var(--space-4); }
.linklike { background: none; border: 0; padding: 0; color: var(--color-on-dark-muted); cursor: pointer; text-decoration: underline; min-height: 32px; }
.linklike:hover { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 80; left: var(--space-4); right: var(--space-4); bottom: var(--space-4);
  max-width: 560px; margin-left: auto;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--space-5);
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), visibility 0s .35s;
}
.cookie.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.cookie h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.cookie p { font-size: .9rem; color: var(--color-muted-fg); margin-bottom: var(--space-4); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cookie-actions .btn { min-height: 44px; padding: 0 var(--space-4); font-size: .9rem; flex: 1 1 auto; }
.cookie-prefs { display: none; border-top: 1px solid var(--color-border); margin-top: var(--space-4); padding-top: var(--space-4); }
.cookie.show-prefs .cookie-prefs { display: block; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-2) 0; font-size: .9rem; }
.pref small { display: block; color: var(--color-muted-fg); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9d6cd; transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out); }
.switch input:checked + span { background: var(--g-600); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid var(--color-ring); outline-offset: 2px; }

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

/* ---------- Legal pages ---------- */
.legal-hero { background: linear-gradient(180deg, var(--g-900), var(--g-950)); color: var(--color-on-dark); padding: var(--space-8) 0 var(--space-7); }
.legal-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: var(--space-3); }
.legal-hero p { color: var(--color-on-dark-muted); margin: 0; }
.breadcrumbs { font-size: .88rem; margin-bottom: var(--space-4); }
.breadcrumbs a { color: var(--color-on-dark-muted); }
.breadcrumbs a:hover { color: #fff; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); padding: var(--space-8) 0 var(--space-9); align-items: start; }
.toc { position: sticky; top: 96px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); font-size: .9rem; }
.toc h2 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-muted-fg); margin-bottom: var(--space-3); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--color-fg); text-decoration: none; }
.toc a:hover { color: var(--color-primary); text-decoration: underline; }
.legal-nav { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border); display: grid; gap: 4px; }
.legal-nav a { color: var(--color-primary); }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.6rem; margin-top: var(--space-7); scroll-margin-top: 96px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-top: var(--space-5); }
.legal-content p, .legal-content li { color: #2d3e34; }
.legal-content ul, .legal-content ol { padding-left: 1.3rem; margin: 0 0 var(--space-4); display: grid; gap: 6px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0 var(--space-5); font-size: .92rem; }
.legal-content th, .legal-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.legal-content th { background: var(--g-50); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: var(--space-5); }
.table-wrap table { margin: 0; }
.callout { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); background: var(--g-50); border: 1px solid var(--color-border); border-left: 4px solid var(--g-600); margin: var(--space-4) 0 var(--space-5); }
.callout p:last-child { margin: 0; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-6); }
  .toc { position: static; }
}

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