/* Applyra brand: same tokens as carouselmaker.py / reelmaker.py */
:root {
  --night: #15131F;        /* INK */
  --night-2: #1C1929;
  --night-3: #232032;      /* card dark */
  --night-line: #2E2A42;
  --star: #FFFFFF;
  --star-muted: #A9A4C2;

  --day: #F7F5FB;          /* PAPER */
  --day-surface: #FFFFFF;
  --day-ink: #15131F;
  --day-muted: #5C5873;
  --day-line: #E4E0EF;

  --purple: #5B2EE5;       /* PURPLE */
  --purple-deep: #4A22C9;
  --purple-line: #6B44EA;
  --purple-soft: #D9D0FF;
  --indigo: #5B2EE5;
  --indigo-hover: #4A22C9;
  --on-indigo: #FFFFFF;
  --indigo-hi: #B9A8F5;

  --fill: #C8F249;         /* LIME */
  --fill-edge: #A9D12E;
  --fill-ink: #15131F;
  --ok: #5B2EE5;
  --ok-hi: #C8F249;
  --ok-soft: #ECE7FA;

  --display: "Segoe UI Black", "Segoe UI", "Inter Tight", system-ui, sans-serif;
  --body: "Segoe UI", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --day: #15131F;
    --day-surface: #232032;
    --day-ink: #FFFFFF;
    --day-muted: #A9A4C2;
    --day-line: #2E2A42;
    --indigo: #B9A8F5;
    --indigo-hover: #D9D0FF;
    --on-indigo: #15131F;
    --ok-soft: #2E2A42;
    --ok: #C8F249;
  }
}
.mark { background: linear-gradient(transparent 62%, rgba(200, 242, 73, .45) 62%, rgba(200, 242, 73, .45) 92%, transparent 92%); padding: 0 4px; margin: 0 -4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--night); color: var(--star);
  font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--display); font-weight: 900; margin: 0; line-height: 1.02; letter-spacing: -0.025em; }
h3 { font-family: var(--body); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--fill); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-fill { background: var(--fill); color: var(--fill-ink); }
.btn-fill:hover { background: #D6F76E; }
.btn-ghost { color: var(--star); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--night-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Nav */
.nav-shell {
  position: sticky; top: 0; z-index: 40;
  background: rgba(21, 19, 31, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--night-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--star); text-decoration: none; font: 700 1.3rem/1 var(--body); letter-spacing: .02em; }
.logo-mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--star-muted); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--star); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- HERO (night) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(91, 46, 229, .45), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(200, 242, 73, .06), transparent 70%),
    var(--night);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
  opacity: .55;
}
.hero-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; padding-block: 72px 112px; }
.time-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--night-line);
  color: var(--star-muted); font-size: .92rem; margin-bottom: 26px;
}
.time-chip b { color: var(--star); font-weight: 600; font-variant-numeric: tabular-nums; }
.moon { width: 18px; height: 18px; }
.hero .lede { margin-top: 24px; font-size: 1.22rem; line-height: 1.55; color: var(--star-muted); max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--star-muted); font-size: .95rem; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 18px; height: 18px; color: var(--ok-hi); flex: none; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; padding-block: 48px 80px; } }

/* App window */
.app {
  position: relative;
  background: linear-gradient(180deg, #232032, #1C1929);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--night-line), 0 50px 100px -40px rgba(0, 0, 0, .8), 0 30px 70px -30px rgba(91, 46, 229, .6);
  overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--night-line); font-size: .85rem; color: var(--star-muted); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.app-title { color: var(--star); font-weight: 600; }
.app-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--star); font-weight: 600; }
.app-body { display: grid; grid-template-columns: 200px 1fr; min-height: 430px; }
@media (max-width: 1180px) and (min-width: 981px) { .app-body { grid-template-columns: 1fr; } .log { display: none !important; } }
.log { border-right: 1px solid var(--night-line); padding: 16px 14px; font-size: .78rem; line-height: 1.45; color: var(--star-muted); display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; overflow: hidden; mask-image: linear-gradient(transparent, #000 35%); -webkit-mask-image: linear-gradient(transparent, #000 35%); }
.log p { display: grid; grid-template-columns: 14px 1fr; gap: 6px; animation: logIn .45s var(--ease); }
.log p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; background: var(--star-muted); opacity: .6; }
.log p.ok { color: var(--star); }
.log p.ok::before { background: var(--ok-hi); opacity: 1; box-shadow: 0 0 10px var(--ok-hi); }
.log p.ask::before { background: var(--indigo-hi); opacity: 1; }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }

.stage { position: relative; padding: 20px; }
.deck { position: relative; height: 352px; margin-top: 26px; }
.jcard {
  position: absolute; inset: 0 0 auto 0;
  background: #FFFFFF; color: #15131F; border-radius: 14px; padding: 16px 16px 18px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  transition: transform .7s var(--ease), opacity .7s var(--ease);
  transform-origin: 50% 0;
}
.jcard.p0 { z-index: 3; transform: none; opacity: 1; }
.jcard.p1 { z-index: 2; transform: translateY(-14px) scale(.955); opacity: .55; }
.jcard.p2 { z-index: 1; transform: translateY(-28px) scale(.91); opacity: .25; }
.jcard.out { z-index: 4; transform: translate(70%, -40px) rotate(9deg); opacity: 0; }
.jcard.reset { transition: none; }
.jhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #E4E0EF; }
.jtitle { font: 700 1.05rem/1.2 var(--body); }
.jmeta { font-size: .8rem; color: #5C5873; margin-top: 3px; }
.jstate { font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #F7F5FB; color: #5C5873; white-space: nowrap; }
.jfields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 11px; margin-top: 12px; }
.jf { min-width: 0; }
.jf.full { grid-column: 1 / -1; }
.jf span { display: block; font-size: .7rem; font-weight: 600; color: #5C5873; margin-bottom: 4px; }
.jf output { display: block; height: 33px; padding: 7px 10px; border-radius: 7px; border: 1px solid #E4E0EF; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .25s, border-color .25s; }
.jf output.on { background: #EDFBC4; border-color: var(--fill-edge); }
.stamp {
  position: absolute; right: 18px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 3px solid var(--purple);
  color: var(--purple); background: rgba(255, 255, 255, .94);
  font: 900 1.35rem/1 var(--display); letter-spacing: -0.01em;
  transform: rotate(-8deg) scale(1.6); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
}
.stamp svg { width: 22px; height: 22px; }
.jcard.done .stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.jcard.done .jstate { background: #ECE7FA; color: var(--purple); }
.app-foot { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--night-line); font-size: .85rem; color: var(--star-muted); font-variant-numeric: tabular-nums; }
.app-foot b { color: var(--star); font-weight: 600; }
.segs { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; flex: 1; }
.segs i { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .10); transition: background-color .4s; }
.segs i.on { background: var(--ok-hi); box-shadow: 0 0 8px rgba(200, 242, 73, .45); }
.demo-note { margin-top: 14px; font-size: .82rem; color: var(--star-muted); text-align: right; }
@media (max-width: 640px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .log { display: none; }
  .stage { padding: 14px; }
  .deck { height: 338px; margin-top: 24px; }
  .jcard { padding: 13px; }
  .jf output { font-size: .78rem; padding: 7px 8px; }
  .stamp { font-size: 1.1rem; padding: 8px 14px; right: 12px; bottom: 16px; }
  .demo-note { text-align: left; }
}

/* ---------- WALL (night) ---------- */
.wall-sec { position: relative; padding-block: 112px 120px; background: var(--night); border-top: 1px solid var(--night-line); overflow: hidden; }
.wall-head { position: relative; z-index: 2; max-width: 640px; }
.wall-head p { margin-top: 18px; color: var(--star-muted); font-size: 1.15rem; max-width: 46ch; }
.wall {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: 9px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--night-line);
  font-size: .92rem; color: var(--star-muted); white-space: nowrap;
  transition: background-color .5s ease, color .5s ease, box-shadow .5s ease;
}
.chip b { color: var(--star); font-weight: 600; transition: color .5s; }
.chip small { font-size: .74rem; opacity: .7; font-variant-numeric: tabular-nums; }
.wall.in .chip { background: var(--fill); color: #3D4A12; box-shadow: inset 0 0 0 1px var(--fill-edge); }
.wall.in .chip b { color: var(--fill-ink); }
@media (max-width: 640px) {
  .wall { padding-inline: 16px; gap: 8px; mask-image: linear-gradient(transparent, #000 0); -webkit-mask-image: none; }
  .wall .chip:nth-child(n+15) { display: none; }
  .chip { font-size: .84rem; padding: 8px 11px; }
}
.wall-foot { margin-top: 40px; display: flex; align-items: center; gap: 12px; color: var(--star); font-size: 1.1rem; font-weight: 500; }
.wall-foot svg { width: 24px; height: 24px; color: var(--fill); flex: none; }

/* ---------- EVENING (night to dawn) ---------- */
.evening-sec { padding-block: 112px 0; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.evening-sec .wrap { padding-bottom: 120px; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.ev { border-radius: 20px; padding: 32px; }
.ev.without { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--night-line); }
.ev.with { background: #FFFFFF; color: #15131F; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.ev h3 { display: flex; align-items: center; gap: 10px; }
.ev h3 svg { width: 22px; height: 22px; }
.ev.without h3 svg { color: var(--star-muted); }
.ev.with h3 svg { color: var(--purple); }
.tl { position: relative; list-style: none; margin: 26px 0 0; padding: 0 0 0 26px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: currentColor; opacity: .18; }
.tl::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
.ev.without .tl::after { background: var(--star-muted); }
.ev.with .tl::after { background: var(--purple); }
.tl.in::after { transform: scaleY(1); }
.tl li { position: relative; padding-block: 12px; }
.tl li::before { content: ""; position: absolute; left: -26px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .3; }
.ev.with .tl li::before { background: var(--purple); opacity: 1; }
.tl time { display: block; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.ev.without time { color: var(--purple-soft); }
.ev.with time { color: #5B2EE5; }
.tl span { display: block; margin-top: 2px; }
.ev.without .tl span { color: var(--star-muted); }
.ev.with .tl span { color: #5C5873; }
@media (max-width: 860px) { .ev-grid { grid-template-columns: 1fr; } .ev { padding: 24px; } }

/* ---------- DAY sections ---------- */
.day { background: var(--day); color: var(--day-ink); }
.sec { padding-block: 112px; }
.sec-head { max-width: 640px; }
.sec-head p { margin-top: 16px; color: var(--day-muted); font-size: 1.15rem; max-width: 50ch; }

.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  background: var(--day-surface); border-radius: 22px; padding: 36px 40px;
  box-shadow: 0 1px 0 var(--day-line), 0 20px 40px -32px rgba(20, 26, 56, .35);
}
.step-num { font: 700 .95rem/1 var(--body); color: var(--indigo); display: inline-flex; align-items: center; gap: 10px; }
.step-num::after { content: ""; width: 36px; height: 2px; background: currentColor; opacity: .4; }
.step h3 { font-size: 1.6rem; margin-top: 14px; letter-spacing: -0.02em; }
.step p { color: var(--day-muted); margin-top: 10px; max-width: 42ch; }
.mini { background: var(--day); border-radius: 16px; padding: 20px; box-shadow: inset 0 0 0 1px var(--day-line); font-size: .9rem; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; } }

/* mini 1: saved answers */
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--day-surface); border-radius: 9px; box-shadow: inset 0 0 0 1px var(--day-line); }
.kv span { color: var(--day-muted); }
.kv b { font-weight: 600; }
.saved { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--ok); }
.saved svg { width: 16px; height: 16px; }
/* mini 2: slider */
.slider-label { display: flex; justify-content: space-between; font-weight: 600; }
.slider-label b { font: 900 1.6rem/1 var(--display); color: var(--day-ink); }
.track { position: relative; height: 10px; margin: 26px 4px 10px; border-radius: 5px; background: var(--day-line); }
.track .safe { position: absolute; left: 31%; width: 34.5%; top: 0; bottom: 0; border-radius: 5px; background: var(--ok); opacity: .85; }
.track .thumb { position: absolute; left: 48.3%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--day-surface); box-shadow: 0 0 0 3px var(--indigo), 0 6px 14px -4px rgba(20, 26, 56, .5); }
.ticks { display: flex; justify-content: space-between; color: var(--day-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.safe-note { margin-top: 12px; color: var(--day-muted); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.safe-note i { width: 14px; height: 8px; border-radius: 3px; background: var(--ok); }
/* mini 3: dry run */
.dry-top { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.dry-top svg { width: 20px; height: 20px; color: var(--indigo); }
.rows { display: grid; gap: 8px; }
.rows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--day-surface); border-radius: 9px; box-shadow: inset 0 0 0 1px var(--day-line); }
.rows small { color: var(--day-muted); display: block; font-size: .78rem; }
.tag { font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tag.would { background: rgba(91, 46, 229, .12); color: var(--indigo); }
.tag.hand { background: #F1EEF8; color: #5C5873; }
.tag.ask { background: rgba(200, 242, 73, .55); color: #3D4A12; }
@media (prefers-color-scheme: dark) { .tag.hand { background: #2E2A42; color: var(--purple-soft); } .tag.ask { background: rgba(200, 242, 73, .18); color: var(--fill); } }
/* mini 4: schedule */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.week div { padding: 12px 0 14px; border-radius: 10px; background: var(--day-surface); box-shadow: inset 0 0 0 1px var(--day-line); font-size: .8rem; color: var(--day-muted); font-weight: 600; }
.week i { display: block; width: 10px; height: 10px; margin: 10px auto 0; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.week-note { margin-top: 14px; display: flex; justify-content: space-between; color: var(--day-muted); font-size: .85rem; }
.week-note b { color: var(--day-ink); font-weight: 600; }

/* Trust */
.vault {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center;
  margin-top: 56px; border-radius: 28px; padding: 56px;
  background: radial-gradient(70% 90% at 15% 30%, rgba(91, 46, 229, .55), transparent 70%), var(--night);
  color: var(--star);
  box-shadow: 0 40px 80px -40px rgba(21, 19, 31, .7);
}
.vault-art { display: grid; place-items: center; }
.vault-art svg { width: min(260px, 100%); height: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.fact svg { width: 26px; height: 26px; color: var(--fill); }
.fact h3 { font-size: 1.12rem; margin-top: 12px; }
.fact p { color: var(--star-muted); margin-top: 6px; font-size: .97rem; }
@media (max-width: 900px) { .vault { grid-template-columns: 1fr; padding: 36px 24px; } .vault-art svg { width: 160px; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Hand list */
.handwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 20px; }
.handwrap p { color: var(--day-muted); margin-top: 14px; max-width: 46ch; }
@media (max-width: 860px) { .handwrap { grid-template-columns: 1fr; } }

/* Black Friday bar */
.promo-bar { display: block; background: var(--fill); color: var(--fill-ink); text-align: center; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 16px; }
.promo-bar b { font-weight: 800; }
.promo-bar span { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.promo-bar:hover span { text-decoration-thickness: 2px; }

/* Pricing */
.sale-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--night); color: var(--fill); font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--day-surface); border-radius: 22px; padding: 30px 24px 24px;
  box-shadow: 0 0 0 1px var(--day-line), 0 20px 40px -34px rgba(21, 19, 31, .4);
}
.plan-name { font-weight: 700; font-size: 1.1rem; }
.price { font: 900 2.7rem/1 var(--display); letter-spacing: -0.02em; margin-top: 20px; font-variant-numeric: tabular-nums; }
.price small { font: 700 1.3rem/1 var(--body); vertical-align: top; margin-right: 2px; position: relative; top: 4px; }
.price-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.was { color: var(--day-muted); text-decoration: line-through; font-size: .98rem; }
.off { background: var(--fill); color: var(--fill-ink); font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.per { color: var(--day-muted); font-size: .95rem; margin-top: 14px; }
.plan .btn { margin-top: 26px; width: 100%; }
.btn-purple { background: var(--purple); color: #FFFFFF; }
.btn-purple:hover { background: var(--purple-deep); }
.plan.best { background: var(--purple); color: #FFFFFF; box-shadow: 0 34px 70px -30px rgba(91, 46, 229, .8); transform: translateY(-10px); }
.plan.best .was, .plan.best .per { color: var(--purple-soft); }
.best-badge { position: absolute; top: -13px; left: 24px; background: var(--fill); color: var(--fill-ink); font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.trial-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 22px; padding: 26px 30px; border-radius: 22px; background: var(--night); color: var(--star);
}
.trial-strip h3 { font-family: var(--display); font-weight: 900; font-size: 1.5rem; }
.trial-strip p { color: var(--star-muted); margin-top: 6px; }
.trial-strip .was { color: var(--star-muted); }
.trial-price { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.trial-price .price { margin: 0; color: var(--fill); }
.pay-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--day-muted); font-size: .92rem; }
.pay-note svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); } .plan.best { transform: none; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .trial-strip { padding: 22px; } }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #FFFFFF; margin-left: 10px; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .24); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-top: 1px solid var(--day-line); }
.faq details:last-child { border-bottom: 1px solid var(--day-line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 22px 48px 22px 0; font: 700 1.15rem/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 24px; color: var(--day-muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Closing sunrise */
.sunrise {
  position: relative; overflow: hidden; text-align: left;
  padding-block: 128px 140px;
  background: var(--purple); color: #FFFFFF;
}
.sunrise::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--purple-line) 2px, transparent 2px), linear-gradient(90deg, var(--purple-line) 2px, transparent 2px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 85% 10%, #000 0, transparent 55%);
  -webkit-mask-image: radial-gradient(circle at 85% 10%, #000 0, transparent 55%);
}
.sun {
  position: absolute; right: -180px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
  border: 3px solid var(--fill); opacity: .5;
}
.sun::after { content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 3px solid var(--fill); opacity: .7; }
.sunrise h2 { position: relative; max-width: 16ch; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.sunrise p { position: relative; margin: 20px 0 0; max-width: 44ch; color: var(--purple-soft); font-size: 1.15rem; }
.sunrise .btn { position: relative; margin-top: 36px; }

footer { background: var(--night); border-top: 1px solid var(--night-line); color: var(--star-muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 28px; }
footer a { color: var(--star-muted); }
footer a:hover { color: var(--star); }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Nav: current page ---------- */
.nav-links a[aria-current="page"]:not(.btn) { color: var(--star); box-shadow: inset 0 -2px 0 var(--fill); padding-bottom: 4px; }

/* ---------- PRODUCT PAGE ---------- */
.p-hero { position: relative; overflow: hidden; padding-block: 72px 64px;
  background: radial-gradient(55% 70% at 85% 0%, rgba(91, 46, 229, .45), transparent 70%), var(--night); }
.p-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; }
.p-hero .lede { margin-top: 18px; font-size: 1.2rem; color: var(--star-muted); max-width: 52ch; }
.journey { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.journey li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--night-line); font-weight: 600; font-size: .95rem; }
.journey b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fill); color: var(--fill-ink); font-weight: 800; font-size: .85rem; }

.products { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: -8px; }
.product { position: relative; border-radius: 26px; padding: 34px; display: flex; flex-direction: column; }
.product.ext { background: var(--day-surface); color: var(--day-ink); box-shadow: 0 0 0 2px var(--purple), 0 40px 80px -40px rgba(91, 46, 229, .55); }
.product.win { background: var(--day); color: var(--day-ink); box-shadow: inset 0 0 0 1px var(--day-line); }
.status { align-self: flex-start; font-weight: 800; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.status.now { background: var(--fill); color: var(--fill-ink); }
.status.soon { background: var(--day-line); color: var(--day-muted); }
.product-top { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.p-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.product.ext .p-icon { background: var(--night); }
.product.win .p-icon { background: var(--day-line); color: var(--day-muted); }
.p-icon svg { width: 32px; height: 32px; }
.product h2 { font-size: 1.9rem; }
.product .meta { color: var(--day-muted); font-size: .95rem; margin-top: 4px; }
.feat { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--day-ink); }
.feat svg { width: 20px; height: 20px; margin-top: 2px; color: var(--purple); }
.product.win .feat li { color: var(--day-muted); }
.product.win .feat svg { color: var(--day-muted); }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 30px; }
.btn-outline { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.btn-outline:hover { background: rgba(91, 46, 229, .08); }
.file-note { margin-top: 12px; font-size: .88rem; color: var(--day-muted); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } .product { padding: 26px 22px; } }

.howto { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.howto > li { counter-increment: s; background: var(--day-surface); border-radius: 20px; padding: 26px 22px; box-shadow: 0 0 0 1px var(--day-line); }
.howto ol li { list-style: decimal; padding-left: 2px; }
.howto > li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--purple); color: #FFFFFF; font: 900 1.2rem/1 var(--display); }
.howto h3 { margin-top: 18px; font-size: 1.15rem; }
.howto p, .howto ol { color: var(--day-muted); margin-top: 8px; font-size: .95rem; }
.howto ol { padding-left: 18px; display: grid; gap: 4px; }
.howto code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .86rem; background: var(--day); padding: 1px 6px; border-radius: 5px; color: var(--day-ink); box-shadow: inset 0 0 0 1px var(--day-line); }
.howto a { color: var(--indigo); font-weight: 600; }
@media (max-width: 1060px) { .howto { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .howto { grid-template-columns: 1fr; } }

.plan-for { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--day-ink); }
.plan-for svg { width: 18px; height: 18px; color: var(--purple); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
