/* Naam landing page — visual tokens hand-copied from the app repo's
   design/tokens/*.css (colors.css, typography.css, spacing.css, glass.css).
   This is a separate repo per the ticket, so tokens are duplicated rather than
   imported — keep the two in sync manually if the app's palette changes.
   Source of truth: Naam/design/DESIGN_SYSTEM.md */

:root {
  /* Dawn gradient (signature background) */
  --gradient-dawn: linear-gradient(180deg, #F6C338 0%, #FBD968 42%, #FFF2D4 100%);

  /* Solid gold (CTA) */
  --gradient-gold-cta: linear-gradient(180deg, #F6C338, #EFB528);
  --gold-btn-disabled: #EFE9DA;

  /* Surfaces */
  --surface-app: #FFFBF2;
  --surface-white: #FFFFFF;
  --canvas-warm: #EFEAE0;

  /* Accents (restrained — red + violet only) */
  --kumkum-red: #D6483B;
  --kumkum-red-hover: #A8362C;
  --japa-violet: #532EC2;
  --violet-tint-bg: #EFEBFB;
  --violet-tint-border: #CFC4F1;

  /* Flame */
  --flame-hi: #FFE08A;
  --flame-mid: #FFA62E;
  --flame-core: #E8641C;
  --flame-fill: radial-gradient(60% 70% at 50% 78%, #FFE08A, #FFA62E 55%, #E8641C 100%);
  --flame-glow: 0 8px 22px rgba(232,100,28,0.4);

  /* Coin */
  --coin-fill: radial-gradient(circle at 38% 32%, #FFE9A6, #F2B33A 60%, #C98A18 100%);
  --coin-glyph: #8A5A10;

  /* Neutrals */
  --ink: #1B1B18;
  --ink-soft: #57534A;
  --ink-muted: #8A857A;
  --hairline: #EEEAE0;
  --hairline-card: #F2ECDF;

  /* Glass (standard tier) */
  --glass-standard-bg: rgba(255,255,255,0.5);
  --glass-standard-filter: blur(18px) saturate(1.8);
  --glass-standard-border: 1px solid rgba(255,255,255,0.75);

  /* Shadows (warm-tinted, never neutral gray) */
  --shadow-card: 0 8px 20px rgba(120,80,10,0.07);
  --shadow-gold-cta: 0 10px 24px rgba(220,150,20,0.30);

  /* Type */
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing / radius */
  --radius-pill: 99px;
  --radius-card: 22px;
  --radius-button: 18px;
  --section-gap: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--surface-app);
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(20px, env(safe-area-inset-left));
  background: rgba(255,251,242,0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { color: var(--flame-core); filter: drop-shadow(var(--flame-glow)); }
.brand-word { font-family: var(--font-display); font-size: 19px; }
.header-cta {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--gradient-gold-cta);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold-cta);
  white-space: nowrap;
}

/* ---- Hero ---- */
.hero {
  background: var(--gradient-dawn);
  padding: 72px 24px 88px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27,27,24,0.6);
  margin: 0 0 18px;
}
.eyebrow-center { text-align: center; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.14;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(27,27,24,0.72);
  max-width: 520px;
  margin: 0 auto 36px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--glass-standard-bg);
  backdrop-filter: var(--glass-standard-filter);
  -webkit-backdrop-filter: var(--glass-standard-filter);
  border: var(--glass-standard-border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
}
.waitlist-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.waitlist-form input::placeholder { color: rgba(27,27,24,0.45); }
.waitlist-form button {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  background: var(--gradient-gold-cta);
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold-cta);
  cursor: pointer;
  white-space: nowrap;
}
.waitlist-form button:active { transform: scale(0.96); }
.waitlist-form.is-submitting button { opacity: 0.7; cursor: default; }

.waitlist-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(27,27,24,0.55);
}
.waitlist-note[data-state="success"] { color: var(--japa-violet); font-weight: 600; }
.waitlist-note[data-state="error"] { color: var(--kumkum-red); font-weight: 600; }

/* ---- How it works ---- */
.how-it-works {
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 24px 8px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.step {
  background: var(--surface-white);
  border: 1px solid var(--hairline-card);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--ink);
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
}
.step-icon-flame {
  background: linear-gradient(160deg, #FFF7E6, #FCEFD2);
  position: relative;
}
.step-icon-flame::after {
  content: "";
  width: 18px;
  height: 24px;
  background: var(--flame-fill);
  clip-path: path("M9,0 C9,0 0,10 0,17 C0,21.5 4,24 9,24 C14,24 18,21.5 18,17 C18,10 9,0 9,0 Z");
}
.step-icon-om {
  background: var(--violet-tint-bg);
  border: 1px solid var(--violet-tint-border);
  color: var(--japa-violet);
}
.step-icon-coin {
  background: var(--coin-fill);
  color: var(--coin-glyph);
}

/* ---- Practice ---- */
.practice {
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 24px 8px;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.practice-card {
  background: var(--canvas-warm);
  border-radius: var(--radius-card);
  padding: 26px 22px;
}
.practice-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ink);
}
.practice-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Positioning ---- */
.positioning {
  max-width: 640px;
  margin: 96px auto;
  padding: 0 24px;
  text-align: center;
}
.positioning-line {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

/* ---- Waitlist repeat ---- */
.waitlist-repeat {
  text-align: center;
  padding: 8px 24px 96px;
}
.waitlist-repeat h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 12px;
}
.waitlist-repeat p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 28px;
}
.waitlist-repeat .waitlist-form {
  background: var(--surface-white);
  border: 1px solid var(--hairline-card);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-soft);
}
.footer-brand .brand-mark { color: var(--flame-core); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
  width: 100%;
  text-align: center;
  order: 3;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .steps, .practice-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; border-radius: 22px; padding: 16px; }
  .waitlist-form button { width: 100%; }
  .site-header { padding: 14px 18px; }
  .header-cta { font-size: 13px; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Legal / support pages (privacy, support) ---- */
.legal-hero {
  background: var(--gradient-dawn);
  padding: 48px 24px 40px;
  text-align: center;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 38px);
  margin: 0 0 8px;
  color: var(--ink);
}
.legal-hero p {
  font-size: 14px;
  color: rgba(27,27,24,0.65);
  margin: 0;
}
.legal-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal-body ul { padding-left: 20px; margin: 12px 0; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--japa-violet); }
.legal-body strong { color: var(--ink); }
.legal-updated {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
}
.legal-back:hover { color: var(--ink); }
