/* ============================================================
   VerifyEat — design system aligned with the macOS app
   Brand gold: #E8C040  ·  Cream: #F8F0DB  ·  Ink: #0B0E0C
   ============================================================ */

:root {
  color-scheme: light dark;

  /* Brand */
  --gold: #E8C040;
  --gold-soft: #F2D77A;
  --gold-deep: #B89422;
  --gold-tint: rgba(232, 192, 64, 0.14);
  --cream: #F8F0DB;
  --cream-2: #FBF6E8;

  /* Neutrals */
  --ink: #0B0E0C;
  --ink-2: #1F2421;
  --ink-fixed: #0B0E0C; /* never flips in dark mode — for sections meant to stay dark */
  --paper-fixed: #FBFCF8; /* never flips — for text on dark sections */
  --muted: #5C6661;
  --muted-2: #8A9089;
  --line: #E5E7E0;
  --line-strong: #CED2C7;
  --paper: #FBFCF8;
  --surface: #FFFFFF;
  --surface-elev: #FAFBF6;

  /* Semantic */
  --success: #2FAE39;
  --warning: #B88708;
  --warning-bg: #FFF9E5;
  --warning-border: rgba(232, 192, 64, 0.4);
  --danger: #D9342B;

  /* Category colors from app */
  --veg: #8CC24A;
  --vegan: #5AC8FA;
  --bestseller: #FF9500;
  --spicy: #FF3B30;
  --new: #34C759;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(11, 14, 12, 0.04), 0 1px 1px rgba(11, 14, 12, 0.03);
  --shadow-2: 0 4px 12px rgba(11, 14, 12, 0.06), 0 2px 4px rgba(11, 14, 12, 0.04);
  --shadow-3: 0 12px 32px rgba(11, 14, 12, 0.10), 0 4px 12px rgba(11, 14, 12, 0.06);
  --shadow-4: 0 28px 64px rgba(11, 14, 12, 0.16), 0 8px 24px rgba(11, 14, 12, 0.08);
  --shadow-gold: 0 12px 28px rgba(232, 192, 64, 0.32);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 140px);
}

@supports (font-variation-settings: normal) {
  :root {
    --font-display: 'InterVariable', 'Inter', -apple-system, sans-serif;
    --font-body: 'InterVariable', 'Inter', -apple-system, sans-serif;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv02', 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, p { margin: 0; }

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

::selection { background: var(--gold); color: var(--ink); }

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 100;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px var(--gutter);
  background: rgba(251, 252, 248, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(11, 14, 12, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.05rem;
}
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-text span { color: var(--gold-deep); }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 8px 2px;
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: var(--r-md); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-soft);
  box-shadow: 0 16px 36px rgba(232, 192, 64, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface-elev);
}

.btn-link {
  background: transparent;
  color: var(--gold-deep);
  padding: 6px 0;
  font-weight: 600;
}
.btn-link:hover { color: var(--ink); }

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============ Hero ============ */
.hero {
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 112px);
  background:
    radial-gradient(circle at 85% -10%, rgba(232, 192, 64, 0.18), transparent 50%),
    radial-gradient(circle at -10% 110%, rgba(248, 240, 219, 0.6), transparent 50%),
    var(--paper);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--gold-tint);
  border: 1px solid var(--warning-border);
  border-radius: var(--r-pill);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

.hero-copy h1 {
  margin: 22px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mobile-break {
  display: none;
}

.lead {
  max-width: min(560px, 100%);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* ============ Hero visual: Mac window + phone ============ */
.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 520px;
}

.mac-window {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-4);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transform-origin: center;
}

.mac-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f6f7f1, #ecede7);
  border-bottom: 1px solid var(--line);
}
.traffic { display: flex; gap: 6px; }
.traffic i {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
}
.tl-red { background: #FF5F57; }
.tl-yellow { background: #FEBC2E; }
.tl-green { background: #28C840; }
.mac-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.mac-toolbar-stub { width: 36px; }

.mac-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.mac-sidebar {
  padding: 12px;
  background: #F4F5EE;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  color: var(--muted);
}
.search-input span { flex: 1; }
.search-input kbd {
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-2);
}

.cat-section { display: flex; flex-direction: column; gap: 4px; }
.cat-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding: 0 8px;
  margin-top: 6px;
}
.prod {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  color: var(--ink);
}
.prod.active {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.prod-name { font-weight: 600; }
.prod-price {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1px;
}
.prod.active .prod-price { color: var(--ink-2); opacity: 0.75; }

.sidebar-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.mac-detail {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
}

.form-block {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  background: var(--surface-elev);
}
.form-block.tight { padding-top: 10px; }
.form-block-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.form-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.form-block-row .form-block-title { margin: 0; }

.form-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.form-row label {
  font-size: 0.78rem;
  color: var(--muted);
}
.form-input {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--ink);
}
.form-input.gold {
  color: var(--gold-deep);
  font-weight: 700;
  background: var(--gold-tint);
  border-color: var(--warning-border);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.form-grid label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pill-gold {
  background: var(--gold-tint);
  color: var(--gold-deep);
  border: 1px solid var(--warning-border);
}

.ing-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.ing-row:last-child { border-bottom: none; }
.ing-row span:last-child { font-weight: 600; color: var(--gold-deep); }

/* ============ Phone mockup ============ */
.phone-mock {
  position: absolute;
  right: -10px;
  bottom: -32px;
  width: 240px;
  z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(11, 14, 12, 0.18));
  animation: phoneFloat 6s ease-in-out infinite;
}
.phone-mock-large {
  position: relative;
  right: 0; bottom: 0;
  width: 320px;
  margin: 0 auto;
  animation: none;
  filter: drop-shadow(0 30px 60px rgba(11, 14, 12, 0.18));
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-bezel {
  background: #0a0a0a;
  border-radius: 36px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.phone-screen {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}
.status-icons { display: flex; gap: 4px; align-items: center; }

.phone-langs {
  display: flex;
  gap: 4px;
  padding: 6px 12px 4px;
  justify-content: center;
}
.lang {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(11, 14, 12, 0.06);
  color: var(--muted);
  border: none;
  letter-spacing: 0.04em;
  transition: background .18s, color .18s;
}
.lang.active {
  background: var(--gold);
  color: var(--ink);
}

.phone-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 28px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--surface) 100%);
  margin: 0 12px;
  border-radius: 22px;
  margin-bottom: -22px;
  z-index: 1;
}
.dish { width: 75%; height: auto; }

.phone-card {
  position: relative;
  margin: 0 10px 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(11, 14, 12, 0.08);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.phone-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.phone-price {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-deep);
  white-space: nowrap;
}

.phone-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
  padding: 2px 7px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--r-pill);
  color: white;
}
.badge.veg { background: var(--veg); }
.badge.vegan { background: var(--vegan); }
.badge.new { background: var(--new); }
.badge.bestseller { background: var(--bestseller); }
.badge.spicy { background: var(--spicy); }

.phone-allergen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--r-md);
  color: var(--warning);
}
.allergen-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}
.allergen-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.allergen-tags span {
  padding: 3px 8px;
  background: var(--surface);
  border: 1px solid var(--warning-border);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--warning);
}

.phone-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(11, 14, 12, 0.03);
  border: 1px solid rgba(11, 14, 12, 0.05);
  border-radius: var(--r-md);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.phone-disclosure[data-open="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phone-disclosure-body {
  margin-top: -12px;
  padding: 14px 12px 12px;
  background: rgba(11, 14, 12, 0.03);
  border: 1px solid rgba(11, 14, 12, 0.05);
  border-top: none;
  border-bottom-left-radius: var(--r-md);
  border-bottom-right-radius: var(--r-md);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.phone-foot {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

/* ============ Trust strip ============ */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-elev);
  padding: 18px var(--gutter);
}
.trust-strip ul {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  justify-content: space-between;
  align-items: center;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-strip svg { color: var(--gold-deep); flex: none; }

/* ============ Section base ============ */
.section {
  padding: var(--section-y) var(--gutter);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head h2 {
  margin-top: 18px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 800;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============ Demo section ============ */
.demo {
  background: linear-gradient(180deg, var(--paper) 0%, #F2F4EC 100%);
}
.demo-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.demo-phone-wrap {
  display: flex;
  justify-content: center;
}

.demo-controls {
  display: grid;
  gap: 16px;
  align-content: center;
}
.control-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.control-card.alt {
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  border-color: transparent;
}
.control-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.control-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.control-card.alt p { color: rgba(251, 252, 248, 0.7); }

.toggle-list { display: grid; gap: 4px; }
.toggle {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s;
}
.toggle:hover { background: var(--surface-elev); }
.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-track {
  width: 36px;
  height: 22px;
  background: rgba(11, 14, 12, 0.18);
  border-radius: var(--r-pill);
  position: relative;
  transition: background .2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform .22s ease;
}
.toggle input:checked + .toggle-track { background: var(--gold); }
.toggle input:checked + .toggle-track::after { transform: translateX(14px); }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 3px var(--gold-tint); }
.toggle-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  color: var(--paper-fixed);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.lang-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(232, 192, 64, 0.18);
  color: var(--gold);
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 800;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.lang-btn.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.lang-btn.active span {
  background: var(--ink);
  color: var(--gold);
}

/* ============ Features ============ */
.feature-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--line-strong);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--gold-tint);
  border-radius: var(--r-md);
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ============ Workflow ============ */
.workflow {
  background: var(--ink-fixed);
  color: var(--paper-fixed);
}
.workflow .eyebrow {
  background: rgba(232, 192, 64, 0.15);
  border-color: rgba(232, 192, 64, 0.3);
  color: var(--gold);
}
.workflow .eyebrow .dot { box-shadow: 0 0 0 3px rgba(232, 192, 64, 0.2); }
.workflow .section-head h2 { color: var(--paper-fixed); }

.steps {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps li {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-xl);
  position: relative;
  transition: background .2s, border-color .2s;
}
.steps li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 192, 64, 0.2);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--paper-fixed);
}
.steps p {
  color: rgba(251, 252, 248, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============ Pricing ============ */
.pricing-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform .2s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }

.price-card-featured {
  background: linear-gradient(180deg, #FBF9EE 0%, var(--surface) 50%);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.price-card-featured:hover { box-shadow: 0 16px 40px rgba(232, 192, 64, 0.4); }

.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 11px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-card header { margin-bottom: 20px; }
.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.price-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1;
}
.price-num span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0;
}
.price-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 28px;
  flex: 1;
}
.price-card li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px; height: 14px;
  background: var(--gold-tint);
  border-radius: 50%;
}
.price-card li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}

.hosted-note {
  max-width: var(--container);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: var(--gold-tint);
  border: 1px solid var(--warning-border);
  border-radius: var(--r-xl);
}
.hosted-note strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.hosted-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-list details[open] {
  border-color: var(--gold);
  box-shadow: var(--shadow-2);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--gold-tint);
  border-radius: 50%;
  color: var(--gold-deep);
  transition: transform .25s ease;
  flex: none;
}
.faq-list details[open] .chev { transform: rotate(180deg); }
.faq-list p {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ============ CTA Final ============ */
.cta-final { padding-top: 0; }
.cta-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  border-radius: var(--r-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 60%);
  pointer-events: none;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 14px;
  position: relative;
}
.cta-card p {
  color: var(--ink-2);
  font-size: 1.05rem;
  position: relative;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 16px;
  position: relative;
}
.cta-card .btn-primary {
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  box-shadow: 0 12px 30px rgba(11, 14, 12, 0.3);
}
.cta-card .btn-primary:hover { background: #1F2421; }
.cta-card .btn-ghost {
  background: rgba(255,255,255,0.7);
  border-color: rgba(11,14,12,0.15);
}
.cta-card .btn-ghost:hover {
  background: white;
  border-color: var(--ink);
}
.cta-fine {
  font-size: 0.84rem !important;
  color: var(--ink-2) !important;
  opacity: 0.7;
  margin-top: 8px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink-fixed);
  color: rgba(251, 252, 248, 0.7);
  padding: 64px var(--gutter) 24px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand { color: var(--paper-fixed); margin-bottom: 14px; }
.footer-brand .brand-text span { color: var(--gold); }
.footer-brand p { font-size: 0.92rem; max-width: 320px; line-height: 1.6; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer-cols > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-cols span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-fixed);
  margin-bottom: 6px;
}
.footer-cols a {
  color: rgba(251, 252, 248, 0.6);
  font-size: 0.92rem;
  transition: color .15s;
}
.footer-cols a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(251, 252, 248, 0.45);
  text-align: center;
}

/* ============ Dark mode ============ */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1110;
    --surface: #161A18;
    --surface-elev: #1B201D;
    --ink: #F2F3EE;
    --ink-2: #D6D8D2;
    --muted: #909992;
    --muted-2: #6B736D;
    --line: #262C29;
    --line-strong: #353D38;
    --warning-bg: rgba(232, 192, 64, 0.1);
    --gold-tint: rgba(232, 192, 64, 0.18);
    --cream: #2C2820;
    --cream-2: #25221C;
  }
  .site-header {
    background: rgba(14, 17, 16, 0.85);
    border-bottom-color: rgba(255,255,255,0.06);
  }
  .hero {
    background:
      radial-gradient(circle at 85% -10%, rgba(232, 192, 64, 0.15), transparent 55%),
      radial-gradient(circle at -10% 110%, rgba(232, 192, 64, 0.06), transparent 50%),
      var(--paper);
  }
  .mac-titlebar {
    background: linear-gradient(180deg, #232927, #1A1F1D);
    border-bottom-color: var(--line);
  }
  .mac-sidebar { background: #1A1F1D; }
  .feature {
    background: var(--surface);
    border-color: rgba(255,255,255,0.05);
  }
  .feature:hover { border-color: var(--gold); box-shadow: 0 16px 40px rgba(232, 192, 64, 0.12); }
  .price-card { background: var(--surface); border-color: rgba(255,255,255,0.06); }
  .faq-list details { background: var(--surface); border-color: rgba(255,255,255,0.06); }
  .faq-list details[open] { border-color: var(--gold); }
  .form-input { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: var(--paper-fixed); }
  .form-input.gold { background: rgba(232, 192, 64, 0.15); color: var(--gold); border-color: rgba(232, 192, 64, 0.3); }
  .form-block { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }
  .ing-row { border-bottom-color: rgba(255,255,255,0.06); }
  .ing-row span:last-child { color: var(--gold); }
  .pill-gold { color: var(--gold); }
  .prod { color: var(--paper-fixed); }
  .prod.active { color: var(--ink-fixed); }
  .prod-price { color: rgba(255,255,255,0.5); }
  .search-input { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: var(--paper-fixed); }
  .search-input span { color: rgba(255,255,255,0.5); }
  .mac-detail { background: #0F1311; }
  .trust-strip { background: #0E1110; border-color: rgba(255,255,255,0.06); }
  .trust-strip li { color: rgba(255,255,255,0.6); }
  .control-card { background: #161A18; border-color: rgba(255,255,255,0.08); }
  .control-card h3 { color: var(--paper-fixed); }
  .toggle-label { color: var(--paper-fixed); }
  .toggle:hover { background: rgba(255,255,255,0.04); }
  .toggle-track { background: rgba(255,255,255,0.18); }
  .section-head h2 { color: var(--paper-fixed); }
  .feature h3 { color: var(--paper-fixed); }
  .price-card h3 { color: rgba(255,255,255,0.55); }
  .price-num { color: var(--paper-fixed); }
  .price-card li { color: rgba(255,255,255,0.78); }
  .faq-list summary { color: var(--paper-fixed); }
  .nav-links a { color: rgba(255,255,255,0.65); }
  .nav-links a:hover { color: var(--paper-fixed); }
  .brand-text { color: var(--paper-fixed); }
  .lead { color: rgba(255,255,255,0.7); }
  .hero-meta { color: rgba(255,255,255,0.6); }
  .hero-meta strong { color: var(--paper-fixed); }
  .search-input kbd { background: #0e1110; }
  .lang { background: rgba(255,255,255,0.08); color: var(--muted); }
  .phone-card { background: var(--surface); }
  .phone-disclosure, .phone-disclosure-body {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
  }
  .price-card-featured {
    background: linear-gradient(180deg, rgba(232, 192, 64, 0.08), var(--surface) 60%);
  }
  .feature-icon { background: rgba(232, 192, 64, 0.15); }
  .demo { background: linear-gradient(180deg, var(--paper) 0%, #0A0D0C 100%); }
  .cta-card .btn-ghost {
    background: rgba(255,255,255,0.85);
    color: var(--ink);
  }
  .footer-cols a { color: rgba(255,255,255,0.5); }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 600px; margin-top: 24px; }
  .mac-window { transform: none; max-width: 580px; margin: 0 auto; }
  .phone-mock { right: 12px; bottom: -40px; }

  .demo-grid { grid-template-columns: 1fr; }
  .demo-controls { max-width: 480px; margin: 0 auto; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { overflow-x: hidden; }
  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 8.2vw, 2.45rem);
    line-height: 1.08;
    text-wrap: balance;
  }
  .mobile-break {
    display: block;
  }
  .site-header {
    grid-template-columns: auto auto;
    gap: 12px;
  }
  .nav-links {
    display: none;
  }
  .header-cta { padding: 8px 14px; font-size: 0.86rem; }

  .hero-visual { min-height: 540px; }
  .mac-window { max-width: 100%; }
  .mac-body { grid-template-columns: 160px 1fr; min-height: 320px; }
  .mac-sidebar { padding: 8px; gap: 8px; }
  .form-row { grid-template-columns: 70px 1fr; }
  .form-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  .phone-mock { width: 200px; right: -8px; bottom: -50px; }

  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .trust-strip ul { justify-content: flex-start; gap: 12px 24px; }
  .hosted-note { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 460px) {
  .phone-mock { display: none; }
  .hero-visual { min-height: auto; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
