/* ================================================================
   ZEPHYRIN — main.css
   Palette: Rosewood · Brass · Cream · Amber (from app design tokens)
   Typography: Poiret One (display) + system-ui (body)
   Mobile-first
   ================================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================================================
   DESIGN TOKENS — exact values from Zephyrin iOS app
   ================================================================ */
:root {
  /* Core palette */
  --rosewood: #2e1f14; /* bg of HUD panels */
  --brass: #b8945c; /* primary accent */
  --cream: #f2e1b8; /* primary text */

  /* Wood grain scale */
  --grain-dark: #140a05; /* deepest bg — near-black warm brown */
  --grain-light: #422b1a; /* elevated surfaces */

  /* Tracking dot / highlight */
  --dot-glow: #e6b34d; /* amber glow */
  --dot-core: #f2c759; /* bright amber */

  /* Status */
  --connected: #66cc4d;
  --disconnected: #cc3326;

  /* Fret wire (decorative lines) */
  --fret: #bfb8a6;

  /* ── Semantic aliases ─────────────────────────────────────── */
  --bg: var(--grain-dark);
  --bg-card: var(--rosewood);
  --bg-elevated: var(--grain-light);
  --bg-input: #1a0e08;

  --text-primary: var(--cream);
  --text-secondary: #c4a87a; /* warm muted cream */
  --text-muted: #6b4e2e; /* dark muted brass */

  --accent: var(--brass);
  --accent-light: #cfa870; /* lighter brass */
  --accent-bright: var(--dot-core);
  --accent-dim: rgba(184, 148, 92, 0.14);
  --accent-border: rgba(184, 148, 92, 0.4);
  --accent-glow: 0 0 60px rgba(242, 199, 89, 0.18), 0 0 120px rgba(184, 148, 92, 0.1);

  --border: rgba(191, 184, 166, 0.08); /* fret-wire tint */
  --border-mid: rgba(191, 184, 166, 0.15);
  --border-strong: rgba(191, 184, 166, 0.28);

  /* Layout */
  --container: min(100% - 2.5rem, 1200px);
  --section-pad: clamp(5rem, 10vw, 9rem);
  --nav-height: 70px;

  /* Shape */
  --radius: 12px;
  --radius-lg: 22px;

  /* Typography */
  --font-display: "Poiret One", -apple-system, BlinkMacSystemFont, sans-serif;
  --font:
    -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 220ms;

  /* Wood grain — horizontal stripes matching the app's rosewood background */
  --wood-grain: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 6px,
    rgba(0, 0, 0, 0.065) 6px,
    rgba(0, 0, 0, 0.065) 7px,
    transparent 7px,
    transparent 14px,
    rgba(0, 0, 0, 0.038) 14px,
    rgba(0, 0, 0, 0.038) 15px,
    transparent 15px,
    transparent 21px,
    rgba(0, 0, 0, 0.11) 21px,
    rgba(0, 0, 0, 0.11) 23px,
    transparent 23px,
    transparent 31px,
    rgba(0, 0, 0, 0.05) 31px,
    rgba(0, 0, 0, 0.05) 32px,
    transparent 32px,
    transparent 39px,
    rgba(0, 0, 0, 0.08) 39px,
    rgba(0, 0, 0, 0.08) 40px,
    transparent 40px
  );
}

/* ---------- Base ---------- */
/* Custom cursor (amber tracking dot) — kept for demo/presentation use:
html {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='6' fill='%23F2C759'/%3E%3Ccircle cx='14' cy='14' r='12' fill='none' stroke='%23E6B34D' stroke-width='1.5' opacity='.45'/%3E%3C/svg%3E") 14 14, auto;
}
a, button, [role="button"], label, input[type="submit"], input[type="button"], select {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='6' fill='%23F2C759'/%3E%3Ccircle cx='14' cy='14' r='12' fill='none' stroke='%23E6B34D' stroke-width='1.5' opacity='.45'/%3E%3C/svg%3E") 14 14, pointer;
}
*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover {
  color: var(--cream);
}

/* ---------- Utility ---------- */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400; /* Poiret One is naturally thin */
  line-height: 1.12;
  letter-spacing: 0.04em; /* wide tracking suits the art-deco face */
}
p {
  max-width: 68ch;
}

/* ---------- Section helpers ---------- */
.section {
  padding-block: var(--section-pad);
}

.section-dark {
  background-color: var(--bg-card);
  background-image: var(--wood-grain);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.8rem;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: all var(--dur) var(--ease);
}

.btn-primary {
  background: var(--brass);
  color: var(--grain-dark); /* dark text on brass for contrast */
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--dot-core);
  color: var(--grain-dark);
  box-shadow: 0 0 40px rgba(242, 199, 89, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent-light);
  background: var(--accent-dim);
}

/* ---------- App Store Badge ---------- */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1.4rem;
  background: var(--cream);
  color: var(--grain-dark);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font);
  transition: all var(--dur) var(--ease);
  max-width: 11rem;
}
.app-store-badge:hover {
  color: var(--grain-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.badge-sub {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.65;
}
.badge-main {
  font-size: 1rem;
  font-weight: 800;
}

/* ================================================================
   HEADER / NAV
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(20, 10, 5, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo uses Poiret One — matches app wordmark exactly */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
}
/* wordmark is uniform cream — matches app splash screen */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--cream);
}

.nav-cta {
  flex-shrink: 0;
}
.nav-cta .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: var(--section-pad);
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    var(--wood-grain),
    radial-gradient(ellipse 80% 55% at 5% 70%, rgba(184, 148, 92, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 10%, rgba(242, 199, 89, 0.07) 0%, transparent 55%);
}

/* Two-column layout: text left, device screenshot right */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    gap: 5rem;
  }
}

/* Mobile-first: centered hero content */
.hero-content {
  position: relative;
  text-align: center;
}

.hero-actions {
  justify-content: center;
}
.hero-footnote {
  text-align: center;
}

/* Switch to left-aligned on larger screens */
@media (min-width: 640px) {
  .hero-content {
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-footnote {
    text-align: left;
  }
}

/* Device screenshots — hidden on mobile, two side-by-side frames at 960px+ */
.hero-device {
  display: none;
}
@media (min-width: 960px) {
  .hero-device {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
  }
  .hero-device-frame img {
    height: min(65svh, 500px);
    width: auto;
    border-radius: 32px;
    border: 1px solid rgba(184, 148, 92, 0.3);
    box-shadow:
      0 0 60px rgba(242, 199, 89, 0.12),
      0 24px 60px rgba(0, 0, 0, 0.5);
    display: block;
  }
  /* Stagger: second screenshot drops down for a cascading look */
  .hero-device-frame:nth-child(2) {
    margin-top: 3.5rem;
  }
}

/* Ambient tracking dots — drift upward and fade in/out against hero bg */
.ambient-dot {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-core);
  pointer-events: none;
  z-index: 0;
  animation: ambient-drift var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}
.ambient-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 199, 89, 0.42) 0%, transparent 68%);
}
@keyframes ambient-drift {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  18% {
    opacity: 0.85;
  }
  72% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-32px);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dot-core);
  margin-bottom: 1.75rem;
  padding: 0.42rem 1rem;
  background: rgba(242, 199, 89, 0.1);
  border: 1px solid rgba(242, 199, 89, 0.28);
  border-radius: 100px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-core);
  box-shadow: 0 0 8px var(--dot-glow);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  line-height: 0.98;
  margin-bottom: 1.5rem;
}

/* Warm brass-to-amber gradient text — matches dot/tracking palette */
.gradient-text {
  background: linear-gradient(135deg, var(--cream) 0%, var(--brass) 45%, var(--dot-core) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-footnote {
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ================================================================
   DEMO VIDEO
   ================================================================ */
.demo-video {
  padding-block: var(--section-pad);
}

.video-wrapper {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border-mid),
    var(--accent-glow),
    0 60px 100px rgba(0, 0, 0, 0.55);
}
.video-wrapper iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: var(--bg-card);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}
.play-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--brass);
  margin-left: 5px;
}
.video-placeholder p {
  font-size: 0.9rem;
  max-width: none;
}
.video-placeholder code {
  font-size: 0.8rem;
  background: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent-light);
}

/* ================================================================
   FEATURES / PRICING
   ================================================================ */
.features {
  padding-block: var(--section-pad);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-mid);
}

/* Featured card: warm amber border + faint glow */
.pricing-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(160deg, rgba(184, 148, 92, 0.1) 0%, var(--bg-card) 55%);
  box-shadow: var(--accent-glow);
}
.pricing-card.featured:hover {
  border-color: var(--brass);
}

.popular-tag {
  position: absolute;
  top: -1px;
  right: 1.75rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  background: linear-gradient(135deg, var(--brass), var(--dot-core));
  color: var(--grain-dark);
  border-radius: 0 0 var(--radius) var(--radius);
}

.tier-badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.tier-free {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.tier-pro {
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid var(--accent-border);
}
.tier-creator {
  background: linear-gradient(135deg, var(--brass), var(--dot-core));
  color: var(--grain-dark);
}

.pricing-price {
  margin-bottom: 0.25rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cream);
}
.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

.pricing-name {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.pricing-desc {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: var(--accent-dim);
  border-radius: 50%;
  /* Checkmark using brass/amber colour */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='3,8 6,11 13,5' stroke='%23B8945C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Coming-soon overlay — used on the Creator tier card */
.coming-soon-region {
  position: relative;
  flex: 1;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.coming-soon-region .pricing-features {
  margin-bottom: 0;
  pointer-events: none;
  user-select: none;
}
/* Gradient veil: transparent at top → fully opaque at bottom */
.coming-soon-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 15%, var(--rosewood) 80%);
}

/* "In Development" badge */
.coming-soon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: auto;
}
/* Pulsing amber dot */
.coming-soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-core);
  flex-shrink: 0;
  animation: cs-pulse 2.2s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works {
  padding-block: var(--section-pad);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}

/* Fret-wire connector between step cards on desktop */
@media (min-width: 768px) {
  .steps-grid::before {
    content: "";
    position: absolute;
    top: 3.25rem;
    left: calc(33.33% - 0.5rem);
    right: calc(33.33% - 0.5rem);
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--accent-border) 20%,
      var(--accent-border) 80%,
      transparent
    );
    pointer-events: none;
    z-index: 0;
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  z-index: 1;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.step-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.step-img-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 220px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px dashed var(--border-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}
.step-img-icon {
  font-size: 2rem;
  opacity: 0.35;
}
.step-img-dim {
  font-size: 0.68rem;
  opacity: 0.45;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.step-card p {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   GALLERY / SCREENSHOTS
   ================================================================ */
.gallery {
  padding-block: var(--section-pad);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
}

.screenshot-item {
  aspect-ratio: 9 / 19.5;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
  cursor: default;
}
.screenshot-item:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}
.shot-icon {
  font-size: 1.5rem;
  opacity: 0.28;
}
.shot-label {
  font-family: var(--font);
  font-weight: 600;
  color: var(--text-secondary);
}
.shot-dim {
  font-size: 0.68rem;
  opacity: 0.45;
}

/* ================================================================
   FAQ PREVIEW
   ================================================================ */
.faq-preview {
  padding-block: var(--section-pad);
}

.faq-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.faq-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--dur) var(--ease);
}
.faq-card:hover {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, rgba(184, 148, 92, 0.08), var(--bg-card));
  transform: translateY(-2px);
  color: inherit;
}
.faq-card h3 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.faq-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: none;
}
.faq-card .arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--brass);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.faq-cta {
  text-align: center;
}

/* ================================================================
   PAGE HERO (FAQ / Contact interior pages)
   ================================================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3.5rem;
  background-color: var(--bg);
  background-image:
    var(--wood-grain),
    radial-gradient(ellipse 70% 50% at 20% 60%, rgba(184, 148, 92, 0.1) 0%, transparent 55%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.page-hero p {
  font-family: var(--font);
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* ================================================================
   FAQ PAGE CONTENT
   ================================================================ */
.faq-content {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 4rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}
.faq-item:first-child {
  padding-top: 0;
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.85rem;
}
.faq-item p,
.faq-item ul,
.faq-item ol {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item ul,
.faq-item ol {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.faq-item li {
  margin-bottom: 0.3rem;
}
.faq-item strong {
  color: var(--cream);
  font-weight: 600;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-content {
  max-width: 640px;
  margin-inline: auto;
  padding-block: 4rem 6rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: var(--font);
  font-size: 0.975rem;
  color: var(--text-primary);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='4,6 8,10 12,6' stroke='%236b4e2e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
  cursor: pointer;
}
.form-select option {
  background: var(--rosewood);
  color: var(--cream);
}
.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(184, 148, 92, 0.13);
  background: var(--bg-elevated);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-submit-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background-color: var(--rosewood);
  background-image: var(--wood-grain);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream);
  text-decoration: none;
}
/* wordmark is uniform cream */

.footer-tagline {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 30ch;
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-nav-col h4 {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav-col a {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-nav-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-copyright a {
  color: var(--text-muted);
}
.footer-copyright a:hover {
  color: var(--cream);
}

/* ================================================================
   HERO MARK (hand icon above wordmark, matching app splash screen)
   ================================================================ */
.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-hand {
  width: 72px;
  height: 72px;
  color: var(--brass);
  filter: drop-shadow(0 0 14px rgba(184, 148, 92, 0.45));
}

@media (min-width: 640px) {
  .hero-mark {
    justify-content: flex-start;
  }
}

/* ================================================================
   GESTURE CARD (How It Works — matches in-app tutorial)
   ================================================================ */

/* Container: mimics the app's single rounded card with rows */
.gesture-card {
  background-color: var(--bg-card);
  background-image: var(--wood-grain);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 560px;
  width: 100%;
}

/* On larger screens: card sits alongside intro text */
.hiw-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hiw-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .gesture-card {
    max-width: none;
  }
}

.gesture-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
.gesture-row:last-child {
  border-bottom: none;
}
.gesture-row:hover {
  background: rgba(184, 148, 92, 0.05);
}

.gesture-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  color: var(--brass);
}
.gesture-icon svg {
  width: 26px;
  height: 26px;
}

.gesture-text {
}
.gesture-label {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.2rem;
}
.gesture-desc {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: none;
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   FOCUS / ACCESSIBILITY
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================
   BLOG — list page
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding-top: 0.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.post-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
}

.post-meta {
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.post-author {
  color: var(--text-muted);
}

.post-card-title {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}
.post-card-title a {
  color: var(--cream);
}
.post-card-title a:hover {
  color: var(--accent-light);
}

.post-card-excerpt {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.post-tag {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid var(--accent-border);
}

.post-read-more {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass);
  margin-top: 0.25rem;
  align-self: flex-start;
}
.post-read-more:hover {
  color: var(--dot-core);
}

/* ================================================================
   BLOG — single post
   ================================================================ */
.post-header {
  max-width: 720px;
}
.post-header h1 {
  margin-top: 0.75rem;
}

.post-footer {
  max-width: 720px;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Prose — typographic styles for Markdown post content */
.prose {
  max-width: 720px;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.prose > * + * {
  margin-top: 1.4em;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--cream);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}
.prose h2 {
  font-size: 1.65rem;
}
.prose h3 {
  font-size: 1.3rem;
}
.prose h4 {
  font-size: 1.05rem;
}

.prose p {
  max-width: none;
}

.prose a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--cream);
}

.prose strong {
  color: var(--cream);
  font-weight: 600;
}
.prose em {
  color: var(--cream);
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  padding-left: 0.25rem;
}

.prose blockquote {
  border-left: 3px solid var(--brass);
  padding: 0.75rem 1.25rem;
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.prose blockquote p {
  margin-top: 0;
}

.prose code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.875em;
  background: var(--bg-elevated);
  color: var(--dot-core);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.prose pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9em;
  color: var(--cream);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-mid);
  margin-block: 2.5em;
}

.prose img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-inline: auto;
}

/* YouTube embeds inside prose get the same treatment as the home page video */
.prose .video-wrapper {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
  :root {
    --section-pad: clamp(3.5rem, 8vw, 6rem);
  }

  /* Full-screen mobile nav */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 10, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: none;
    overflow-y: auto;
    z-index: 100;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }

  /* Hero */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Grids → single column */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-preview-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
