/* The One: deep space, ember and gold. Same palette as the app. */
:root {
  --space: #02030A;
  --bg: #05060B;
  --surface: #10131E;
  --surface-2: #141826;
  --border: #1E2333;
  --text: #EDE6DA;
  --muted: #8A90A6;
  --ember: #FF4D12;
  --flame: #FF8A1F;
  --gold: #FFC14A;
  --core: #FFF4DC;
  --accent-text: #1A0A00;
  --radius: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #0B1024 0%, var(--space) 60%) fixed, var(--space);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
p { margin: 0; }
.muted { color: var(--muted); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--space) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, var(--gold), var(--flame) 55%, var(--ember));
  color: var(--accent-text); font-weight: 800; text-decoration: none; font-size: 1rem;
  box-shadow: 0 0 0 1px rgba(255, 193, 74, .35), 0 10px 40px -8px rgba(255, 77, 18, .7);
  transition: transform .15s ease, box-shadow .25s ease, filter .25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 193, 74, .55), 0 14px 50px -6px rgba(255, 77, 18, .9); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--flame); }
.btn-wide { width: 100%; }
.btn[aria-disabled="true"] { filter: saturate(.7); cursor: default; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px 24px 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  min-height: calc(100vh - 70px);
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; margin-bottom: 14px; }
.lede { color: #C9C3B8; font-size: 1.15rem; max-width: 34em; margin: 22px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.fire-text {
  background: linear-gradient(180deg, var(--core) 0%, var(--gold) 35%, var(--flame) 70%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 77, 18, .55));
  animation: flicker 2.6s infinite;
}

.flip-hint { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.flipped {
  font: 800 1.35rem var(--font); color: var(--text); background: none; border: 0; padding: 4px 2px; cursor: pointer;
  transform: rotate(180deg); transition: transform .9s cubic-bezier(.5, -0.3, .3, 1.4);
}
.flipped.fixed { transform: rotate(0deg); }

.hero-art { position: relative; overflow-x: clip; overflow-clip-margin: 0; display: grid; place-items: center; min-height: 560px; }
.mark-wrap { position: absolute; width: min(600px, 115%); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mark-wrap .mark { position: absolute; inset: 0; width: 100%; height: 100%; animation: breathe 4s ease-in-out infinite; opacity: .8; }
.halo {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 31, .45) 0%, rgba(255, 77, 18, .14) 45%, transparent 70%);
  filter: blur(10px); animation: flicker 3.2s infinite;
}

/* Phone mock-up, styled like the app's chat */
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.2; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #2a2f40, #0b0d15 40%, #1a1d29);
  box-shadow: 0 0 0 1px #2d3244, 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(255, 77, 18, .45);
  transform: rotate(-4deg);
  animation: float 7s ease-in-out infinite;
}
.phone-screen {
  height: 100%; border-radius: 33px; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 20%, #0B1024, var(--bg) 70%);
}
.phone-top { display: flex; justify-content: space-between; padding: 22px 18px 10px; font-weight: 800; font-size: .9rem; }
.phone-top .dots { color: var(--muted); }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px 14px; overflow: hidden; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: .82rem; line-height: 1.4; animation: rise .5s ease both; }
.bubble.user { align-self: flex-end; background: #E8701A; color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.change { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; }
.change.done { color: var(--text); }
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--ember); animation: pulse 1s infinite; }
.change.done .spark { background: var(--gold); animation: none; }
.composer { display: flex; align-items: center; gap: 8px; margin: 10px 12px 16px; padding: 7px 7px 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.placeholder { flex: 1; color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send { padding: 7px 13px; border-radius: 999px; background: #E8701A; color: #fff; font-size: .74rem; font-weight: 700; transition: box-shadow .6s, background .6s; }
.send.ember { background: linear-gradient(180deg, var(--gold), var(--ember)); color: var(--accent-text); box-shadow: 0 0 18px 3px rgba(255, 77, 18, .8); animation: flicker 1.8s infinite; }

/* ── Sections ────────────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.section.narrow { max-width: 760px; }
.section-lede { color: #C9C3B8; font-size: 1.1rem; max-width: 40em; margin-bottom: 36px; }

.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 85%, transparent), color-mix(in srgb, var(--surface) 85%, transparent));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: rgba(255, 138, 31, .45); box-shadow: 0 0 40px -18px rgba(255, 77, 18, .6); }
.card p { color: #B9B4AA; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-n { display: block; font-weight: 800; font-size: 2.2rem; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1px var(--flame); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.power:hover { transform: translateY(-3px); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: radial-gradient(circle at 50% 70%, rgba(255, 77, 18, .35), rgba(255, 138, 31, .08));
  border: 1px solid rgba(255, 138, 31, .35); color: var(--gold); font-size: 1.2rem;
}

/* Pricing */
.price-card { max-width: 460px; margin: 36px auto 0; padding: 34px; border-color: rgba(255, 138, 31, .4); box-shadow: 0 0 80px -30px rgba(255, 77, 18, .7); }
.price-head { display: flex; align-items: center; gap: 14px; }
.price { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 8px; line-height: 1; }
.price .currency { font-size: 2rem; vertical-align: top; color: var(--gold); margin-right: 2px; }
.price .per { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: #D6D0C5; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(var(--gold), var(--ember)); box-shadow: 0 0 8px var(--ember); }
.fine { text-align: center; margin-top: 14px; font-size: .85rem; color: var(--muted) !important; }

/* FAQ */
details { margin-bottom: 12px; padding: 0; }
summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--flame); font-size: 1.3rem; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 22px; }

/* Get */
.get { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.get .mark-wrap.small { position: relative; transform: none; top: auto; left: auto; width: 180px; margin-bottom: 18px; }
.get .mark-wrap.small .mark { opacity: 1; }
.get .section-lede { margin: 0 auto 28px; }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 34px 24px 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); font-size: .9rem;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Motion ──────────────────────────────────────────── */
@keyframes flicker {
  0%, 100% { opacity: 1; } 8% { opacity: .82; } 12% { opacity: .97; } 30% { opacity: .88; }
  46% { opacity: 1; } 52% { opacity: .74; } 56% { opacity: .95; } 78% { opacity: .86; }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; min-height: 0; text-align: left; }
  .hero-art { min-height: 520px; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .hero, .section, .footer { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .hero-art { min-height: 480px; }
  .price-card { padding: 26px; }
  .price { font-size: 3.4rem; }
}

/* Cookie consent (analytics only loads after Accept) */
.consent {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(255, 138, 31, .35);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9), 0 0 40px -20px rgba(255, 77, 18, .6);
  animation: rise .4s ease both;
}
.consent p { flex: 1 1 260px; font-size: .9rem; color: #C9C3B8; }
.consent-actions { display: flex; gap: 8px; }
