/* ============================================================
   USAGEWALL — Premium dark, editorial, dev-first
   Brand DNA inherited from Baku Premium Silent:
   - dark warm background (not pure black)
   - serif display (Fraunces) + sans body (Switzer) + mono (JetBrains)
   - generous spacing, no flashy gradients
   - subtle warm accents
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #0A0A0B;
  --bg-elev:      #111113;
  --bg-elev-2:    #16161A;
  --line:         rgba(255,255,255,0.07);
  --line-strong:  rgba(255,255,255,0.12);

  /* Text — all four pass WCAG AA on var(--bg) */
  --text:         #F5F4F0;   /* contrast 17.4:1 ✓ AAA */
  --text-2:       #B8B5AC;   /* contrast  9.6:1 ✓ AAA */
  --text-3:       #908D85;   /* contrast  5.4:1 ✓ AA  (was #6F6C66 = 3.78:1, failed) */
  --text-mute:    #5A5852;   /* decorative only, not for prose */

  /* Accents - warm, never saturated */
  --accent:       #E8DFC7;       /* warm cream — primary */
  --accent-soft:  #C9B894;       /* warm beige */
  --accent-dim:   rgba(232,223,199,0.08);
  --accent-line:  rgba(232,223,199,0.18);

  /* Code colors - subtle, editorial */
  --c-bg:         #0E0E10;
  --c-key:        #E8DFC7;       /* warm cream */
  --c-fn:         #C9B894;
  --c-str:        #9CA38E;       /* sage */
  --c-num:        #C9B894;
  --c-com:        #5A5852;

  /* Type */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body:    'Switzer', 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 920px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
}

/* Subtle warm grain on bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(800px 400px at 80% -10%, rgba(232,223,199,0.04), transparent 60%),
    radial-gradient(600px 300px at -10% 50%, rgba(201,184,148,0.03), transparent 60%);
}

main { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* Skip-to-content — appears on focus, key for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  font-size: 14px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Honeypot — visible to bots, invisible to humans + AT */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
  opacity: 0;
}

/* Focus-visible — keyboard users get a clear ring, mouse users don't */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.hero-form:focus-within,
.big-form input:focus-visible {
  outline-offset: 0;
}

/* Reduced motion — kill smooth scroll for users who asked for it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Status message variants (already used by JS via classList.add) */
.hero-meta.ok, .form-status.ok { color: var(--accent); }
.hero-meta.err, .form-status.err { color: #E89999; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(32px, env(safe-area-inset-right)) 22px max(32px, env(safe-area-inset-left));
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-style: italic;
}
.brand-mark {
  color: var(--accent);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}
.brand-name { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.18s var(--ease);
  padding: 8px 0;             /* enlarges click target without changing visual */
  display: inline-block;
}
.nav-links a:hover { color: var(--text); }

/* Hamburger toggle — hidden by default, only shown <720px */
.nav-toggle {
  display: none;
  width: 44px;                /* 44×44 — Apple HIG minimum touch target */
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--accent-line); }
.nav-toggle-bar {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.cta-link {
  padding: 9px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent) !important;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.cta-link:hover {
  background: var(--accent);
  color: var(--bg) !important;
  border-color: var(--accent);
}

/* "Live demo" nav link — subtle live indicator */
.nav-demo {
  position: relative;
  padding-left: 14px;
}
.nav-demo::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232,223,199,0.6);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,223,199,0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(232,223,199,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-demo::before { animation: none; }
}

/* ============================================================
   CONTAINERS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 88px 32px 80px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-mono);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  background: var(--accent-dim);
}

.hero-h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 880px;
  margin: 0 auto 22px;
  color: var(--text);
}
.hero-h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   FORMS
   ============================================================ */
.hero-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease);
}
.hero-form:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px rgba(232,223,199,0.06);
}
.hero-form input {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.hero-form input::placeholder { color: var(--text-3); }

.hero-form button {
  padding: 12px 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.hero-form button:hover { background: var(--accent-soft); transform: translateY(-1px); }
.hero-form button:active { transform: translateY(0); }
.hero-form button[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-arrow { transition: transform 0.18s var(--ease); }
.hero-form button:hover .btn-arrow { transform: translateX(2px); }

.hero-meta {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
  font-family: var(--f-mono);
}

.hero-demo-link {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--f-mono);
  text-align: center;
}
.hero-demo-link a {
  color: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  transition: all 0.18s var(--ease);
}
.hero-demo-link a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Supported langs row */
.hero-langs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 24px auto 0;
  max-width: 720px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}
.hero-langs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.hl-ready { background: #99E8B0; }
.hl-soon  { background: var(--accent-soft); }
.hl-todo  { background: var(--text-3); }
.hl-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-left: 2px;
}

/* ============================================================
   HERO SHOT — dashboard preview card replacing the old code block
   ============================================================ */
.hero-shot {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.6);
}

.hs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hs-row-header { margin-bottom: 14px; }

.hs-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}

.hs-cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
}
.hs-cap-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232,223,199,0.6);
  animation: pulse-dot 2s ease-out infinite;
}

.hs-meter {
  position: relative;
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.hs-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: 999px;
  transition: width 0.6s var(--ease-out);
}
.hs-meter-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: var(--text-2);
  opacity: 0.4;
}

.hs-row-stats {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hs-stat {
  flex: 1;
  text-align: center;
}
.hs-stat-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.hs-stat-value {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hs-providers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}
.hs-providers li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hs-pdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.hs-p-openai { background: #99E8B0; }
.hs-p-anth   { background: #E8C99B; }
.hs-p-deep   { background: var(--accent-soft); }
.hs-pval {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

/* ============================================================
   WORKS WITH grid
   ============================================================ */
.works-with-section { padding-top: 90px; padding-bottom: 90px; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.work-card {
  padding: 28px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.work-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}
.work-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-card li {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.work-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-family: var(--f-body);
}
.work-card code {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 3px;
}
.works-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}
.works-foot code {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}
.faq-item {
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  list-style: none;        /* remove default disclosure marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}
.faq-item p code {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 3px;
}
.faq-item p em { color: var(--text); font-style: italic; }
.faq-item p strong { color: var(--text); font-weight: 500; }

/* Pricing footnote */
.pricing-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  font-family: var(--f-mono);
  color: var(--text-3);
}
.pricing-foot a {
  color: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
}
.pricing-foot a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   HERO CODE BLOCK (legacy, kept for backwards compat with /demo)
   ============================================================ */
.hero-code {
  max-width: 760px;
  margin: 0 auto;
  background: var(--c-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.6);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--text-mute);
}
.code-file {
  margin-left: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.code {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.7;
  padding: 24px 28px;
  color: var(--text);
  overflow-x: auto;
}
.c-key { color: var(--c-key); }
.c-fn  { color: var(--c-fn); }
.c-str { color: var(--c-str); }
.c-num { color: var(--c-num); }
.c-com { color: var(--c-com); font-style: italic; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 110px 32px;
  position: relative;
}
.dark-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
  max-width: 760px;
}
.h2 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 56px;
}
.lede em { font-style: italic; color: var(--text); }
.lede code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 1px 6px;
  border-radius: 4px;
}
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   PROBLEM GRID
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.problem-card {
  padding: 32px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.problem-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.card-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 400;
}
.problem-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.problem-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.problem-card em { font-style: italic; color: var(--text); }

/* ============================================================
   HOW IT WORKS GRID
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 12px;
}
.how-step {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.step-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent-soft);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.how-step h3 {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.how-step code {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   WHY GRID
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-card {
  padding: 36px 32px;
  background: var(--bg);
  transition: background 0.25s var(--ease);
}
.why-card:hover { background: var(--bg-elev); }
.why-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section { padding-top: 110px; padding-bottom: 110px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

/* Tablet: stack to 1 column so 3 cards don't break into 2+1 awkward row */
@media (max-width: 980px) and (min-width: 721px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  padding: 36px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.25s var(--ease);
}
.price-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.price-card.featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
}
.price-tag {
  position: absolute;
  top: -10px; left: 24px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-style: italic;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.price-amount {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 28px;
  color: var(--text);
}
.price-amount span {
  font-size: 16px;
  color: var(--text-3);
  font-weight: 400;
  font-family: var(--f-body);
  font-style: normal;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.price-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-soft);
}

/* ============================================================
   WAITLIST CTA
   ============================================================ */
.waitlist-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #0F0E0C 100%);
  border-top: 1px solid var(--line);
}
.waitlist-section .h2 { margin-left: auto; margin-right: auto; }
.waitlist-section .lede { margin-left: auto; margin-right: auto; text-align: center; }

.big-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 14px;
}
.big-form input {
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.big-form input::placeholder { color: var(--text-3); }
.big-form input:focus {
  border-color: var(--accent-line);
  background: var(--bg-elev-2);
}
.big-form button {
  padding: 16px 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.18s var(--ease);
}
.big-form button:hover { background: var(--accent-soft); transform: translateY(-1px); }
.big-form button[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--f-mono);
  margin-top: 8px;
}
.form-status.ok { color: var(--accent); }
.form-status.err { color: #E89999; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px max(32px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-brand {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--accent-soft);
}
.foot-meta {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--f-mono);
}
.foot-meta a {
  color: var(--accent-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  /* WCAG 2.5.5: comfortable tap target on touch without bloating desktop layout. */
  display: inline-block;
  padding: 8px 4px;
  margin: -8px -4px;
  min-height: 32px;
  line-height: 16px;
}
.foot-meta a:hover { border-bottom-color: var(--accent-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; }

  /* Drawer: hidden by default, slides in when aria-expanded="true" on the toggle */
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: rgba(10,10,11,0.96);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .nav-toggle[aria-expanded="true"] ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  /* The toggle is rendered AFTER nav-links in the DOM, so use a different selector via :has() with fallback */
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav-links li {
    border-top: 1px solid var(--line);
  }
  .nav-links li:first-child { border-top: none; }
  .nav-links a {
    display: block;
    padding: 16px 8px;
    font-size: 15px;
    min-height: 44px;        /* HIG touch target */
    box-sizing: border-box;
  }
  .nav-links .cta-link {
    margin-top: 12px;
    padding: 14px 18px;
    text-align: center;
  }

  .hero { padding: 80px 20px 70px; }
  .hero-h1 { font-size: clamp(36px, 9vw, 52px); }

  .hero-form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 8px;
    gap: 8px;
  }
  .hero-form input {
    padding: 14px 16px;
    min-height: 44px;
  }
  .hero-form button {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;       /* taller for HIG */
    min-height: 44px;
  }

  .big-form button {
    padding: 14px 22px;
    min-height: 48px;
  }

  .section { padding: 70px 20px; }
  .pricing-section { padding: 70px 20px; }

  .code { font-size: 12.5px; padding: 18px 20px; }

  .foot-row { flex-direction: column; align-items: flex-start; }
}
