/* FireWithin marketing site — palette matches the app's own dark/ember theme
   (mobile/theme.js's default "Ember" theme + near-black surfaces), so the site
   reads as the same product as the app, not a separate marketing skin.

   Two typefaces, split by JOB, not just for variety: Plus Jakarta Sans carries
   every sentence — the narrative, the pitch, the reassurance. JetBrains Mono is
   reserved for anything that's actually DATA in the app's own world: the streak
   count, a price, a day tally. That split mirrors the app itself, where the
   flame and its number are the one thing users watch daily. */
:root {
  --bg: #0b0f1a;
  --bg-2: #0d0704;
  --card: #171008;
  --border: #2a2016;
  --muted: #9aa3b2;
  --text: #f4f1ec;
  --accent: #ff6a3d;
  --accent-2: #ff8a1e;
  --ink: #1a0d05;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.navlinks { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--muted); }
.navlinks a:hover { color: var(--text); }
.navcta {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 9px 18px; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(65% 55% at 15% 15%, rgba(255, 148, 18, 0.16) 0%, transparent 60%),
    var(--bg);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 40px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin: 0 auto; }
  .hero .badges { justify-content: center; }
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 106, 61, 0.35); border-radius: 999px;
  padding: 7px 14px; background: rgba(255, 106, 61, 0.08);
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; letter-spacing: -1.2px;
  line-height: 1.08; margin-bottom: 22px;
}
.hero h1 span { color: var(--accent); }
.hero p.sub {
  color: var(--muted); font-size: 17px;
  max-width: 460px; margin-bottom: 36px;
}
@media (max-width: 900px) { .hero p.sub { margin-left: auto; margin-right: auto; } }
.badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Solid pills, not bordered cards — on a dark stage these need to read as the
   loudest thing on the page, the same job the App Store's own black badge
   does against Cal AI's white one. */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--ink); border-radius: 999px;
  padding: 11px 22px 11px 18px; font-weight: 700; font-size: 14.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(255, 106, 61, 0.18);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 106, 61, 0.28); }
.store-badge svg { width: 20px; height: 20px; flex: none; }
.store-badge .lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-badge .lbl small { color: var(--ink); opacity: 0.75; font-size: 10px; font-weight: 600; }

/* ---------- hero phone mockup ----------
   Stylized, not a screenshot: the app's actual hero moment (flame + streak
   count + lock-in) redrawn at page scale, in the app's real colours. */
.hero-visual { position: relative; }
.phone-glow {
  position: absolute; inset: -60px;
  background: radial-gradient(circle, rgba(255, 148, 18, 0.30), transparent 70%);
  filter: blur(30px);
  animation: pulse 3.4s ease-in-out infinite;
}
.phone-mock {
  position: relative; width: 300px; margin: 0 auto;
  background: #06090f; border-radius: 44px; padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #06090f; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  position: relative;
  background: radial-gradient(120% 70% at 50% 0%, #1c0f06 0%, var(--bg-2) 65%);
  border-radius: 32px; padding: 46px 22px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 500px;
}
.mock-kicker {
  color: var(--accent); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 1.6px; margin-bottom: 22px;
}
.mock-flame { font-size: 64px; filter: drop-shadow(0 0 26px rgba(255, 106, 61, 0.6)); animation: flicker 2.6s ease-in-out infinite; }
.mock-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 56px; letter-spacing: -1px;
  margin-top: 10px; line-height: 1;
}
.mock-days { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.mock-quote {
  color: var(--muted); font-size: 12px; font-style: italic; line-height: 1.6;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
}
.mock-lockin {
  margin-top: auto; width: 100%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--ink); font-weight: 800; font-size: 13.5px;
  border-radius: 14px; padding: 13px 0;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes flicker {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}

/* ---------- section shell ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .eyebrow {
  color: var(--accent); font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- features ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 860px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255, 106, 61, 0.14); border: 1px solid rgba(255, 106, 61, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- ritual / how it works ---------- */
.ritual { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ritual-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  counter-reset: step;
}
@media (max-width: 760px) { .ritual-steps { grid-template-columns: 1fr; gap: 40px; } }
.ritual-step { text-align: center; position: relative; }
.ritual-step .num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.ritual-step h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.ritual-step p { color: var(--muted); font-size: 13.5px; max-width: 260px; margin: 0 auto; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 640px; margin: 0 auto; }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; position: relative;
}
.price-card.highlight { border-color: var(--accent); }
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.5px;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 14px; }
.price-card .amount { font-family: var(--font-mono); font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.price-card .amount span { font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--muted); }
.price-card .note { color: var(--muted); font-size: 13px; margin-top: 8px; min-height: 18px; }
.price-cta {
  display: block; margin-top: 22px; padding: 13px; border-radius: 12px;
  background: rgba(255, 106, 61, 0.12); border: 1px solid rgba(255, 106, 61, 0.35);
  color: var(--text); font-weight: 800; font-size: 14px;
}
.price-card.highlight .price-cta {
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--ink); border: none;
}
.pricing-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.faq-link { color: var(--accent); text-decoration: underline; }

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 106, 61, 0.14), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--border);
}
.final-cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.final-cta p { color: var(--muted); margin-bottom: 34px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
footer .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
footer .brand { font-size: 14px; }
footer .brand img { width: 24px; height: 24px; }
.footlinks { display: flex; gap: 22px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.footlinks a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.legal h2 { font-size: 19px; font-weight: 800; margin: 34px 0 12px; }
.legal p, .legal li { color: #cbd2df; font-size: 14.5px; line-height: 1.75; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal a.inline { color: var(--accent); text-decoration: underline; }
.legal .notice {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 13.5px; color: var(--muted); margin-bottom: 32px;
}
