/* HotFlash marketing site — night palette mirrors the app (Theme.swift) */

:root {
  --bg: #1A1518;
  --bg-deep: #120E11;
  --surface: #26212A;
  --surface-hi: #2F2932;
  --text: #F5EFE8;
  --text2: #A89DAB;
  --text3: #7C7281;
  --line: #3A3338;
  --tc: #C66B4A;
  --tc-hi: #E08A66;
  --sage: #8FB293;
  --gold: #D9A55C;
  --shell: 1160px;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }

a { color: var(--tc-hi); text-decoration: none; }
a:hover { color: var(--text); }
::selection { background: var(--tc); color: #fff; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em, h3 em { color: var(--tc); }

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

.eyebrow {
  font: 600 12px var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tc-hi);
}
.eyebrow--sage { color: var(--sage); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--light { color: rgba(255, 244, 236, 0.8); }

/* ---------- hero ---------- */

.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 0%, rgba(198, 107, 74, 0.28), transparent 70%),
    radial-gradient(700px 500px at 10% 30%, rgba(139, 107, 126, 0.18), transparent 70%),
    var(--bg);
  padding-bottom: 72px;
}

.nav {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__icon { width: 44px; height: 44px; border-radius: 11px; }
.nav__word { font: 400 30px var(--serif); }
.nav__word em { color: var(--tc); }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--text2); }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta {
  background: var(--tc);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.nav__links .nav__cta:hover { background: var(--tc-hi); color: #fff; }

.hero { text-align: center; padding-top: 64px; padding-bottom: 48px; }
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(38, 33, 42, 0.6);
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.95;
  margin: 26px auto 0;
  max-width: 13ch;
}
.hero__lede {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text2);
}
.hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.badge img { height: 50px; width: auto; }
.price-note { font-size: 15px; color: var(--text2); }
.price-note strong { color: var(--text); }

/* ---------- film ---------- */

.player {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 120px rgba(198, 107, 74, 0.18);
}
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.player__play {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(26, 21, 24, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font: 600 15px var(--sans);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.player__play:hover { transform: translateY(-2px); background: rgba(38, 33, 42, 0.86); }
.player__play:focus-visible { outline: 2px solid var(--tc-hi); outline-offset: 3px; }
.player__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tc);
  display: grid;
  place-items: center;
}
.player__btn svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.player__label small {
  display: block;
  font: 500 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  margin-top: 2px;
}
.player.is-playing .player__play { opacity: 0; pointer-events: none; }

/* ---------- features ---------- */

.features { padding-top: 110px; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; margin-top: 16px; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--text2); margin: 20px auto 0; max-width: 600px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 80px;
  padding: 60px 0;
}
.split--flip { grid-template-columns: 1.1fr 1fr; }
.split__body h3 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; margin: 14px 0 18px; }
.split__body p { font-size: 17.5px; line-height: 1.65; color: var(--text2); margin: 0 0 14px; }
.split__body strong { color: var(--text); font-weight: 500; }

.device {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 56px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 7px #0d0a0c;
  pointer-events: none;
}
.device img { width: 100%; height: auto; }
.device--fade { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.device--fade::after { box-shadow: inset 7px 7px 0 0 #0d0a0c, inset -7px 0 0 0 #0d0a0c; }

/* ---------- also-tracks cards ---------- */

.also { padding-top: 40px; padding-bottom: 40px; }
.also__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px 28px;
}
.card__stat { font: 400 44px var(--serif); color: var(--tc-hi); line-height: 1; }
.card__stat--sage { color: var(--sage); }
.card__stat--gold { color: var(--gold); }
.card__title { font-weight: 600; font-size: 17px; margin-top: 18px; }
.card__body { font-size: 15.5px; line-height: 1.6; color: var(--text2); margin-top: 8px; }

/* ---------- privacy promise ---------- */

.promise { padding-top: 90px; padding-bottom: 40px; }
.promise__card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 72px 64px 60px;
  background:
    radial-gradient(700px 500px at 15% 0%, rgba(232, 150, 112, 0.55), transparent 60%),
    radial-gradient(600px 500px at 100% 100%, rgba(90, 30, 18, 0.7), transparent 60%),
    linear-gradient(160deg, #C9704D, #9C4A2F 60%, #7A3421);
  color: #FFF5EE;
}
.promise__card h2 { font-size: clamp(52px, 7.4vw, 96px); line-height: 0.98; margin-top: 18px; }
.promise__lede { font: 400 clamp(24px, 3vw, 34px) var(--serif); color: rgba(255, 240, 230, 0.85); margin: 26px 0 0; }
.promise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 240, 230, 0.28);
}
.promise__grid span { display: block; font: 500 11px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 240, 230, 0.75); }
.promise__grid b { display: block; font: 400 46px var(--serif); line-height: 1.1; margin-top: 6px; }
.promise__grid small { display: block; font-size: 14.5px; color: rgba(255, 240, 230, 0.8); margin-top: 4px; }

/* ---------- pricing ---------- */

.pricing { padding-top: 110px; padding-bottom: 40px; }
.pricing__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pricing__head h2 { font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.pricing__head p { font-size: 18px; line-height: 1.6; color: var(--text2); margin-top: 18px; }
.pricing__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
.plan {
  border-radius: 28px;
  padding: 36px;
  background: linear-gradient(180deg, #2F2530, #221C24);
  border: 1px solid rgba(198, 107, 74, 0.45);
  box-shadow: 0 0 80px rgba(198, 107, 74, 0.12);
  display: flex;
  flex-direction: column;
}
.plan__head { display: flex; align-items: center; gap: 14px; }
.plan__head img { width: 52px; height: 52px; border-radius: 13px; }
.plan__name { font-weight: 600; font-size: 17px; }
.plan__price { font: 400 104px var(--serif); line-height: 1; margin-top: 30px; }
.plan__once { font: 400 34px var(--serif); font-style: italic; color: var(--tc-hi); margin-top: -4px; }
.plan__body { font-size: 16px; line-height: 1.6; color: var(--text2); margin: 18px 0 28px; }
.plan .badge { margin-top: auto; }

.compare { border-radius: 28px; border: 1px solid var(--line); padding: 30px 34px; background: rgba(38, 33, 42, 0.5); }
.compare__eyebrow { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.compare__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.compare__row:last-child { border-bottom: 0; }
.compare__label { font-weight: 600; font-size: 16px; }
.compare__sub { font-size: 14px; color: var(--text2); margin-top: 3px; }
.compare__price { font: 400 28px var(--serif); white-space: nowrap; color: var(--text2); }
.compare__row--hf .compare__label, .compare__row--hf .compare__price { color: var(--tc-hi); }

/* ---------- faq ---------- */

.faq { padding-top: 110px; padding-bottom: 40px; max-width: 860px; }
.faq h2 { font-size: clamp(40px, 5vw, 60px); text-align: center; margin-bottom: 36px; }
.faq__item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq__q { font: 400 26px var(--serif); }
.faq__a { font-size: 16.5px; line-height: 1.65; color: var(--text2); margin-top: 8px; }

/* ---------- closer / footer ---------- */

.closer { padding-top: 100px; padding-bottom: 110px; }
.closer__inner {
  text-align: center;
  border-radius: 34px;
  padding: 72px 32px;
  background: radial-gradient(600px 360px at 50% 0%, rgba(198, 107, 74, 0.3), transparent 70%), var(--bg-deep);
  border: 1px solid var(--line);
}
.closer__icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto; box-shadow: 0 20px 60px rgba(198, 107, 74, 0.35); }
.closer h2 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; max-width: 16ch; margin: 30px auto 0; }
.closer p { font-size: 18px; color: var(--text2); margin: 18px 0 0; }
.closer__actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.closer__price { font-size: 15px; color: var(--text2); }

.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footer__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__icon { width: 32px; height: 32px; border-radius: 8px; }
.footer__name { font-weight: 600; font-size: 15px; }
.footer__links { display: flex; gap: 18px; font-size: 14px; }
.footer__links a { color: var(--text2); }
.footer__links a:hover { color: var(--text); }
.footer__spacer { flex: 1; }
.footer__fine { font-size: 13px; color: var(--text3); max-width: 520px; line-height: 1.5; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .split, .split--flip { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .split--flip .device { order: -1; }
  .split__body { text-align: left; }
  .also__grid { grid-template-columns: 1fr; }
  .promise__card { padding: 52px 30px 44px; }
  .promise__grid { grid-template-columns: 1fr 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { padding: 0 16px; }
  .nav__word { font-size: 26px; }
  .nav__links .nav__cta { padding: 9px 14px; font-size: 14px; }
  .hero { padding-top: 36px; }
  .hero__lede { font-size: 17px; }
  .player { border-radius: 16px; }
  .player__play { left: 10px; bottom: 10px; padding: 5px 14px 5px 5px; font-size: 13px; gap: 9px; }
  .player__btn { width: 34px; height: 34px; }
  .player__label small { display: none; }
  .device { border-radius: 46px; }
  .promise__grid b { font-size: 36px; }
  .compare { padding: 20px 20px; }
  .compare__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .plan__price { font-size: 84px; }
  .footer__fine { max-width: none; }
}
