/* =========================================================
   Anvyl — Landing Site Stylesheet
   Direction: 02 Forge Ember
   Black base + selective ember-orange accent (#FF6B1A) from
   the in-app Theme.Anvyl.Ember palette. Ember earns its
   appearance — used only on focal moments (mark glow, one
   key word, primary CTA, year-plan accent).
   Brand guidelines: marketing/08_brand_guidelines.md
   In-app palette source: Forgd/DesignSystem/Theme.swift
   ========================================================= */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0c;
  --fg: #FFFFFF;
  --muted: #9CA3AF;
  --hairline: #1F2937;
  --ember: #FF6B1A;       /* Theme.Anvyl.Ember.core */
  --ember-glow: #FFB24A;  /* Theme.Anvyl.Ember.glow */
  --ember-deep: #5C2A0E;  /* Theme.Anvyl.Ember.muted */
  --container: 1080px;
  --gutter: 24px;
}

/* Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: opacity 100ms, color 100ms; }
a:hover { opacity: 0.75; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--ember); color: #000; }

/* Container ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Typography utilities ------------------------------------ */
.type-display {
  font-size: clamp(48px, 8.5vw, 104px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.type-h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.type-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.type-h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.type-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.text-muted { color: var(--muted); }
.text-ember { color: var(--ember); }

/* Ember underline accent --------------------------------- */
.ember-word {
  color: var(--ember);
  position: relative;
}

/* Buttons ------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 30px;
  background: var(--ember);
  color: #1a0a00;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid var(--ember);
  transition: filter 120ms, transform 120ms;
}
.btn-primary:hover {
  filter: brightness(1.08);
  opacity: 1;
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 26px;
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: border-color 120ms, background 120ms;
}
.btn-ghost:hover { border-color: var(--fg); background: rgba(255,255,255,0.04); opacity: 1; }

/* Header -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.site-header__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--ember);
  color: #1a0a00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: filter 100ms;
}
.site-header__cta:hover { filter: brightness(1.08); opacity: 1; }

/* Hero ---------------------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 1200px;
  max-width: 110vw;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 60% at 50% 70%, var(--ember) 0%, transparent 60%);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 40px;
  color: var(--fg);
  filter:
    drop-shadow(0 0 70px rgba(255, 107, 26, 0.55))
    drop-shadow(0 12px 24px rgba(255, 107, 26, 0.35));
}
.hero__headline {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.hero__subhead {
  margin: 36px auto 0;
  max-width: 52ch;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--muted);
  line-height: 1.5;
}
.hero__cta-group {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__cta-disclaimer {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Section base -------------------------------------------- */
section { position: relative; }
section.s {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}
.section-head { margin-bottom: 64px; max-width: 60ch; }
.section-head .type-eyebrow { color: var(--ember); margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head .subhead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 60ch;
}

/* Pitch --------------------------------------------------- */
.pitch { padding: 120px 0; border-top: 1px solid var(--hairline); }
.pitch__eyebrow { color: var(--ember); margin-bottom: 24px; display: block; }
.pitch__statement {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 0 32px;
}
.pitch__statement .ember-word { color: var(--ember); }
.pitch__body {
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
  margin-top: 16px;
}

/* How it works ------------------------------------------- */
.how-it-works__header { margin-bottom: 56px; }
.how-it-works__eyebrow { color: var(--ember); margin-bottom: 16px; display: inline-block; }
.how-it-works__headline { margin-bottom: 16px; }
.how-it-works__subhead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.how-it-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 760px) {
  .how-it-works__grid { grid-template-columns: 1fr 1fr 1fr; }
}
.how-it-works__block {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-it-works__block-label {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.how-it-works__letter {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ember);
  border: 1px solid var(--ember);
}
.how-it-works__block-title { color: var(--fg); }
.how-it-works__block-body { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Proof / Specificity ------------------------------------ */
.proof__header { margin-bottom: 64px; }
.proof__eyebrow { color: var(--ember); margin-bottom: 16px; display: inline-block; }
.proof__headline { margin-bottom: 16px; }
.proof__subhead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.proof__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 760px) {
  .proof__grid { grid-template-columns: 1fr 1fr; }
}
.proof__item {
  background: var(--bg);
  padding: 40px;
}
.proof__item-label {
  color: var(--ember);
  margin-bottom: 16px;
  display: block;
}
.proof__item-fact {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--fg);
}
.proof__item-detail {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 40ch;
}

/* Pricing ------------------------------------------------- */
.pricing__header { margin-bottom: 56px; }
.pricing__eyebrow { color: var(--ember); margin-bottom: 16px; display: inline-block; }
.pricing__headline { margin-bottom: 16px; }
.pricing__subhead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.pricing__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .pricing__cards { grid-template-columns: 1fr 1fr; }
}
.pricing__card {
  border: 1px solid var(--hairline);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pricing__card--featured {
  border-color: var(--ember);
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,107,26,0.10), transparent 70%),
    var(--bg);
}
.pricing__card-label {
  color: var(--muted);
  margin-bottom: 0;
}
.pricing__card--featured .pricing__card-label { color: var(--ember); }
.pricing__card-price {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing__card-period {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.pricing__card-desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
.pricing__card-features { display: flex; flex-direction: column; gap: 0; }
.pricing__card-feature {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}
.pricing__card-feature:last-child { border-bottom: 1px solid var(--hairline); }
.pricing__card--featured .pricing__card-feature::before {
  content: "✓";
  display: inline-block;
  width: 18px;
  color: var(--ember);
  font-weight: 800;
}
.pricing__trial-note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.pricing__trial-note strong { color: var(--fg); }
.pricing__cta { margin-bottom: 24px; }
.pricing__disclaimer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  max-width: 70ch;
  line-height: 1.55;
}

/* FAQ ----------------------------------------------------- */
.faq__header { margin-bottom: 48px; }
.faq__eyebrow { color: var(--ember); margin-bottom: 16px; display: inline-block; }
.faq__headline { margin: 0; }
.faq__list { border-top: 1px solid var(--hairline); }
.faq__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.faq__question {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.faq__answer {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 70ch;
}
.faq__answer a { color: var(--ember); border-bottom: 1px solid var(--ember); padding-bottom: 1px; }
.faq__answer a:hover { opacity: 0.85; }

/* CTA band ------------------------------------------------ */
.cta-band {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 100%, rgba(255,107,26,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band__headline {
  margin: 0 auto 40px;
  max-width: 18ch;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.cta-band__sub {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Footer -------------------------------------------------- */
.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.site-footer__wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__link { color: var(--muted); font-weight: 600; }
.site-footer__link:hover { color: var(--fg); opacity: 1; }
.site-footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer__copyright { color: var(--muted); }
.site-footer__disclaimer { color: var(--muted); font-size: 12px; max-width: 60ch; line-height: 1.55; }

/* Legal pages -------------------------------------------- */
.legal-page {
  padding: 80px 0 120px;
}
.legal-page__inner { max-width: 760px; margin: 0 auto; }
.legal-page__meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.legal-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 24px;
}
.legal-page .lede {
  color: var(--fg);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 40px;
  max-width: 64ch;
}
.legal-page h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 56px 0 16px;
  color: var(--fg);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 24px 0 12px;
  color: var(--fg);
}
.legal-page p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 70ch;
}
.legal-page strong { color: var(--fg); font-weight: 700; }
.legal-page ul, .legal-page ol {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 16px;
  padding-left: 24px;
  max-width: 70ch;
}
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { margin-bottom: 6px; }
.legal-page li::marker { color: var(--ember); }
.legal-page a { color: var(--ember); border-bottom: 1px solid var(--ember); padding-bottom: 1px; }
.legal-page code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: rgba(255,107,26,0.08);
  color: var(--ember);
  padding: 2px 6px;
}
.legal-page__back {
  display: inline-block;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.legal-page__back:hover { color: var(--fg); }
.legal-page__toc {
  margin: 32px 0 56px;
  padding: 24px;
  border: 1px solid var(--hairline);
  font-size: 14px;
}
.legal-page__toc h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.legal-page__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.legal-page__toc ol li { margin-bottom: 6px; break-inside: avoid; }
.legal-page__toc ol li::marker { content: none; }
.legal-page__toc a {
  color: var(--muted);
  border-bottom: 0;
  font-size: 14px;
}
.legal-page__toc a:hover { color: var(--fg); }
@media (max-width: 640px) {
  .legal-page__toc ol { columns: 1; }
}

/* Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
