/* Farstep site — "Grimório à Vela". Tokens follow app/src/ui/theme.ts. */

@font-face { font-family: 'Grenze Gotisch'; src: url('fonts/GrenzeGotisch.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IM Fell English'; src: url('fonts/IMFellEnglish-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IM Fell English SC'; src: url('fonts/IMFellEnglishSC-Regular.woff2') format('woff2'); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #161310;
  --bg-mid: #0d0b09;
  --bg-deep: #070605;
  --radial-core: #2a2015;
  --radial-mid: #171310;
  --radial-edge: #090705;
  --candle: #e8b45a;
  --flame: #f2c468;
  --gold: #b89968;
  --gold-dim: #7d6847;
  --amber: #dcc08a;
  --cream: #f0e6d2;
  --text: #dfd6c3;
  --text-dim: rgba(240, 230, 210, 0.7);
  --text-faint: rgba(240, 230, 210, 0.5);
  --rule: rgba(184, 153, 104, 0.25);
  --panel: rgba(30, 24, 18, 0.72);
  --button-face: #4e3921;

  --font-display: 'Grenze Gotisch', 'Iowan Old Style', serif;
  --font-body: 'IM Fell English', Georgia, 'Iowan Old Style', serif;
  --font-sc: 'IM Fell English SC', Georgia, serif;
  --font-utility: Georgia, 'Iowan Old Style', serif;

  --wide: 1120px;
  --measure: 640px;
  --gutter: clamp(16px, 4vw, 28px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 60% at 50% 8%, var(--radial-core), var(--radial-mid) 45%, var(--radial-edge) 100%);
}

img, video { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--flame); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 3.6vw + 1.1rem, 4.3rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.7rem, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.45rem; line-height: 1.2; }

.eyebrow {
  font-family: var(--font-sc);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 16px;
}
.lede { font-size: 1.16rem; color: var(--text-dim); max-width: 56ch; }
.utility { font-family: var(--font-utility); font-size: 14px; color: var(--text-faint); }

.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
section { padding-block: clamp(64px, 10vw, 120px); }

.divider {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter);
  color: var(--gold-dim);
}
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--rule); }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(13, 11, 9, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.wordmark {
  font-family: var(--font-utility); font-weight: 700; font-size: 17px;
  letter-spacing: 1.5px; color: var(--cream); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-family: var(--font-utility); font-size: 14px; color: var(--text-faint); text-decoration: none; }
.nav-links a:hover { color: var(--amber); }
@media (max-width: 560px) { .nav-links .opt { display: none; } }

/* ── buttons ── */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.center .cta-row { justify-content: center; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: var(--button-face);
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
}
.badge small { font-family: var(--font-sc); font-size: 12px; letter-spacing: 0.12em; color: var(--amber); }
.badge span { font-family: var(--font-utility); font-weight: 700; font-size: 17px; }
.link-quiet { font-family: var(--font-utility); font-size: 15px; color: var(--amber); }

/* ── phone frame ── */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1320 / 2868;
  border-radius: 13% / 6%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(184, 153, 104, 0.35), 0 0 0 7px #0b0907, 0 0 0 8px rgba(184, 153, 104, 0.18), 0 28px 60px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 100px) clamp(64px, 9vw, 110px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.hero-bg .map {
  position: absolute; inset: 0;
  background: url('img/map-sheet.webp') 50% 30% / cover no-repeat;
  filter: sepia(0.3) brightness(0.42) contrast(1.05);
  opacity: 0.55;
}
.hero-bg .shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 72% 46%, rgba(232, 180, 90, 0.16), rgba(232, 180, 90, 0) 70%),
    radial-gradient(ellipse 80% 90% at 30% 50%, rgba(14, 11, 8, 0.8), rgba(14, 11, 8, 0.35) 70%);
}
.hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 32px; } }
.hero .lede { margin-top: 26px; }
.hero-art { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hero-art .phone { max-width: 270px; }
.hero-art .back {
  position: absolute; top: 36px; left: 50%;
  transform: translateX(-108%) rotate(-5deg);
  max-width: 230px; opacity: 0.85;
}
.hero-art .front { position: relative; transform: translateX(22%) rotate(2deg); }
@media (max-width: 879px) {
  .hero-art .back { transform: translateX(-92%) rotate(-5deg); max-width: 200px; }
  .hero-art .front { transform: translateX(18%) rotate(2deg); max-width: 240px; }
}
@media (max-width: 420px) {
  .hero-art { min-height: 0; }
  .hero-art .back { display: none; }
  .hero-art .front { transform: none; }
}

/* ── thesis ── */
.hobbies {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-top: 30px;
  font-family: var(--font-sc); font-size: 16px; letter-spacing: 0.1em; color: var(--amber);
}
.hobbies span + span::before { content: '·'; margin-right: 18px; color: var(--gold-dim); }

/* ── steps ── */
.step {
  display: grid; gap: 32px; align-items: center;
  padding-block: 48px;
  position: relative;
}
.step + .step { border-top: 1px solid var(--rule); }
@media (min-width: 800px) {
  .step { grid-template-columns: 0.8fr 1fr; gap: 64px; }
  .step.flip .step-art { order: 2; }
}
.step-art { display: flex; justify-content: center; }
.numeral {
  font-family: var(--font-display); font-size: 5.5rem; line-height: 0.8;
  color: rgba(184, 153, 104, 0.18); display: block; margin-bottom: 8px;
}
.step-title { font-family: var(--font-sc); font-size: 17px; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 10px; }
.step h3 { margin-bottom: 14px; }
.step p { color: var(--text-dim); max-width: 46ch; }
.step p + p { margin-top: 14px; }
.step .quote { color: var(--cream); }

.lock-card {
  width: 100%; max-width: 380px;
  padding: 40px 18px 34px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 180, 90, 0.12), rgba(232, 180, 90, 0) 70%),
    linear-gradient(160deg, #241c14, #0f0c09);
  box-shadow: 0 0 0 1px rgba(184, 153, 104, 0.3), 0 24px 50px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.lock-card .time { font-family: var(--font-utility); font-size: 64px; line-height: 1; color: rgba(240, 230, 210, 0.85); letter-spacing: -1px; }
.lock-card .date { font-family: var(--font-utility); font-size: 15px; color: var(--text-faint); margin-bottom: 30px; }
.lock-card img { width: 100%; border-radius: 19px; }
.shield {
  margin-top: 18px; padding: 18px 16px;
  border: 1px dashed rgba(184, 153, 104, 0.35); border-radius: 14px;
}
.shield .t { font-family: var(--font-display); font-size: 22px; color: var(--cream); }
.shield .b { font-family: var(--font-sc); font-size: 13px; letter-spacing: 0.12em; color: var(--amber); margin-top: 6px; }
.shield .u { margin-top: 8px; }

/* ── lands strip ── */
.lands {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 22px; margin-top: 52px;
  overflow-x: auto; padding: 12px 10px 24px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent;
}
.lands figure { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.lands .phone { max-width: 220px; }
.lands figcaption { margin-top: 18px; font-family: var(--font-sc); font-size: 15px; letter-spacing: 0.08em; color: var(--gold); text-align: center; }
.sound-notes { display: grid; gap: 22px; margin: 44px auto 0; max-width: 860px; }
@media (min-width: 760px) { .sound-notes { grid-template-columns: repeat(3, 1fr); } }
.sound-notes div { text-align: center; }
.sound-notes b { display: block; font-family: var(--font-sc); font-weight: 400; font-size: 16px; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 6px; }
.sound-notes p { color: var(--text-dim); font-size: 16.5px; }

/* ── video ── */
.video-wrap { display: flex; justify-content: center; margin-top: 44px; }
.video-wrap .phone { max-width: 320px; aspect-ratio: 886 / 1920; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ── keep ── */
.keep { display: grid; gap: 40px; align-items: center; margin-top: 20px; }
@media (min-width: 860px) { .keep { grid-template-columns: 0.75fr 1fr; gap: 64px; } }
.keep-list { display: flex; flex-direction: column; }
.keep-item { padding-block: 22px; }
.keep-item + .keep-item { border-top: 1px solid var(--rule); }
.keep-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.keep-item p { color: var(--text-dim); max-width: 50ch; }
.keep-art { display: flex; justify-content: center; }

/* ── principles ── */
.principles { max-width: 760px; margin: 44px auto 0; }
.principle { display: flex; gap: 20px; padding-block: 24px; }
.principle + .principle { border-top: 1px solid var(--rule); }
.principle .glyph { color: var(--gold); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.principle h3 { font-family: var(--font-body); font-weight: 400; font-size: 1.22rem; margin-bottom: 6px; }
.principle p { color: var(--text-dim); }

/* ── pricing ── */
.plans { display: grid; gap: 24px; margin: 48px auto 0; max-width: 860px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  padding: 30px 28px;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--panel);
}
.plan.oath { border-color: rgba(220, 192, 138, 0.5); box-shadow: 0 0 40px rgba(232, 180, 90, 0.08); }
.plan h3 { font-size: 1.6rem; }
.plan .price { font-family: var(--font-utility); font-size: 15px; color: var(--amber); margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { position: relative; padding-left: 24px; color: var(--text-dim); }
.plan li + li { margin-top: 8px; }
.plan li::before { content: '✦'; position: absolute; left: 0; top: 1px; font-size: 13px; color: var(--gold); }
.plans-note { margin-top: 26px; }

/* ── final cta ── */
.final .seal { width: 128px; margin: 0 auto 26px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(232, 180, 90, 0.18)); }

/* ── footer ── */
footer { border-top: 1px solid var(--rule); padding: 44px var(--gutter) 56px; text-align: center; }
footer .wordmark { display: block; margin-bottom: 8px; }
footer .tag { font-family: var(--font-utility); font-size: 14px; color: var(--text-faint); }
footer .links {
  margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px;
  font-family: var(--font-utility); font-size: 14px;
}
footer .links a { color: var(--text-faint); text-decoration: none; }
footer .links a:hover { color: var(--amber); }
footer .links .dot { color: var(--gold-dim); }
footer .copyright { margin-top: 14px; font-family: var(--font-utility); font-size: 12.5px; color: var(--gold-dim); }

/* ── document pages (support, privacy, terms) ── */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) var(--gutter) 80px; }
.doc h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
.doc .updated { font-family: var(--font-utility); font-size: 14px; color: var(--text-faint); margin-top: 10px; }
.doc .intro { margin-top: 28px; color: var(--text-dim); }
.doc h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.doc h3 { font-family: var(--font-body); font-weight: 400; font-size: 1.15rem; color: var(--cream); margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text-dim); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 400; }
.doc .card {
  margin-top: 28px; padding: 22px 24px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--panel);
}
.doc .card p { color: var(--text); }
.doc details { border-top: 1px solid var(--rule); padding: 16px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--rule); }
.doc summary { cursor: pointer; color: var(--cream); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: '+'; color: var(--gold); font-family: var(--font-utility); }
.doc details[open] summary::after { content: '–'; }
.doc details > div { margin-top: 10px; }
