/* Cycle Compass v4 « Aube » (18 Nov 2026): a light lavender-to-peach page and its night version.
   Layout: one column of full-width bands; the hero is two columns on wide screens
   (headline + launch list on the left, the dial + the day's reading on the right). */
:root {
  --bg: #f6f2fb;
  --surface: #ffffff;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --soft: #fff4ec;
  --ink: #1b1733;
  --ink-body: #4a4566;
  --muted: #6b6688;
  --faint: #8a85a6;
  --line: rgba(27, 23, 51, 0.12);
  --line-strong: rgba(27, 23, 51, 0.2);
  --track: #ece6f5;
  --viz: #faf7fd;
  --field: #ffffff;
  --accent: #e8573a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(232, 87, 58, 0.18);
  --btc: #f7931a;
  --on-phase: #ffffff;
  --glow-1: rgba(167, 139, 250, 0.45);
  --glow-2: rgba(255, 170, 130, 0.55);
  --glow-3: rgba(255, 214, 170, 0.5);
  --dial-label: var(--ink);
  --shadow-card: 0 18px 44px rgba(60, 40, 110, 0.12);
  --p1: #16a34a; --p1-ink: #0b7a36; --p1-tint: #dcf3e4;
  --p2: #2563eb; --p2-ink: #1d4ed8; --p2-tint: #dee9fc;
  --p3: #d97706; --p3-ink: #96560a; --p3-tint: #fbeed8;
  --p4: #dc2626; --p4-ink: #b91c1c; --p4-tint: #fbe1e1;
  --p5: #7c3aed; --p5-ink: #6b21d4; --p5-tint: #ebe2fb;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --text: 'Inter', system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1428; --surface: #241c36; --card: rgba(255,255,255,.06); --card-solid: #261e39; --soft: #211a31;
    --ink: #f3eefc; --ink-body: #d3cbe8; --muted: #ada3cb; --faint: #8f86ad;
    --line: rgba(243,238,252,.12); --line-strong: rgba(243,238,252,.22); --track: #342a4a; --viz: #211a31; --field: #2c2340;
    --accent: #ff8a6b; --accent-ink: #2a0d05; --accent-soft: rgba(255,138,107,.22);
    --glow-1: rgba(124,92,230,.35); --glow-2: rgba(255,120,90,.22); --glow-3: rgba(255,170,120,.12);
    --dial-label: #ffffff; --shadow-card: 0 18px 44px rgba(0,0,0,.35);
    --on-phase: #1a1428;
    --p1: #34d17a; --p1-ink: #4fe08f; --p1-tint: #173326;
    --p2: #5b91ff; --p2-ink: #7aa6ff; --p2-tint: #1b2648;
    --p3: #f0a437; --p3-ink: #f5b55a; --p3-tint: #3a2a12;
    --p4: #ff6b6b; --p4-ink: #ff8a8a; --p4-tint: #401b20;
    --p5: #a482ff; --p5-ink: #b79bff; --p5-tint: #2d2150;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1428; --surface: #241c36; --card: rgba(255,255,255,.06); --card-solid: #261e39; --soft: #211a31;
  --ink: #f3eefc; --ink-body: #d3cbe8; --muted: #ada3cb; --faint: #8f86ad;
  --line: rgba(243,238,252,.12); --line-strong: rgba(243,238,252,.22); --track: #342a4a; --viz: #211a31; --field: #2c2340;
  --accent: #ff8a6b; --accent-ink: #2a0d05; --accent-soft: rgba(255,138,107,.22);
  --glow-1: rgba(124,92,230,.35); --glow-2: rgba(255,120,90,.22); --glow-3: rgba(255,170,120,.12);
  --dial-label: #ffffff; --shadow-card: 0 18px 44px rgba(0,0,0,.35);
  --on-phase: #1a1428;
  --p1: #34d17a; --p1-ink: #4fe08f; --p1-tint: #173326;
  --p2: #5b91ff; --p2-ink: #7aa6ff; --p2-tint: #1b2648;
  --p3: #f0a437; --p3-ink: #f5b55a; --p3-tint: #3a2a12;
  --p4: #ff6b6b; --p4-ink: #ff8a8a; --p4-tint: #401b20;
  --p5: #a482ff; --p5-ink: #b79bff; --p5-tint: #2d2150;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + var(--banner-h, 0px)); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--btc); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 12px; }
h3 { font-weight: 800; font-size: 19px; line-height: 1.25; margin: 0; }
.caption { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.body { font-size: 15px; line-height: 1.6; color: var(--ink-body); margin: 0; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.data { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; margin: 0; }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.top-links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: var(--ink-body); }
.top-links a { text-decoration: none; padding: 12px 0; }
.top-links a:hover { color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
@media (max-width: 760px) { .top-links { display: none; } .icon-btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 24px 56px; }
.wash { position: absolute; inset: -30% -10% -10%; pointer-events: none;
  background: radial-gradient(40% 45% at 12% 22%, var(--glow-1), transparent 70%), radial-gradient(45% 50% at 88% 28%, var(--glow-2), transparent 70%), radial-gradient(50% 40% at 60% 92%, var(--glow-3), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "head art" "form art"; column-gap: 48px; row-gap: 8px; align-items: start; }
.hero-head { grid-area: head; align-self: end; padding-top: 24px; }
.art { grid-area: art; display: flex; flex-direction: column; align-items: center; }
.hero-form { grid-area: form; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "art" "form"; row-gap: 20px; } }
h1 { font-weight: 800; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -.025em; margin: 12px 0 16px; }
h1 em { font-style: normal; background: linear-gradient(90deg, #ef6a4c, #8a63f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--ink-body); max-width: 50ch; margin: 0 0 8px; }

/* the day's reading, under the dial */
.reading { margin-top: 10px; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; backdrop-filter: blur(10px); box-shadow: var(--shadow-card); }
.r-name { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.25; }
.r-state { font-size: 15px; font-weight: 700; }
.r-signal { font-size: 14px; font-weight: 600; color: var(--p3-ink); }
.r-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.notice { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; overflow-wrap: anywhere; }
.notice--drop { background: var(--p4-tint); color: var(--p4-ink); border-color: color-mix(in srgb, var(--p4) 40%, transparent); }
.notice--mixed { background: var(--p3-tint); color: var(--p3-ink); border-color: color-mix(in srgb, var(--p3) 40%, transparent); }
.notice--info { background: var(--viz); color: var(--ink-body); border-color: var(--line-strong); font-weight: 500; }

/* BTC price */
.btc-ticker { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-body); }
.btc-ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.btc-ticker.is-live .btc-ticker-dot { background: var(--p1); animation: btc-pulse 2s ease-in-out infinite; }
.btc-ticker.is-error { color: var(--faint); }
.btc-time { font-weight: 400; color: var(--muted); }
@keyframes btc-pulse { 50% { opacity: .35; } }

/* LTV Guard launch list in the hero */
.wait { margin-top: 16px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.wait-label { font-family: var(--display); font-weight: 700; font-size: 16px; }
.wait-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wait-row input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font-size: 16px; }
.wait-row input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.cta { flex: 1 0 auto; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; box-shadow: 0 8px 22px var(--accent-soft); transition: transform .16s ease; }
.cta:hover { transform: translateY(-2px); }
.cta[disabled] { opacity: .6; cursor: default; transform: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-body); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.wait-msg { min-height: 1.5em; font-size: 14px; font-weight: 600; color: var(--ink-body); }
.wait-msg.is-err { color: var(--p4-ink); }
.wait-msg.is-ok { color: var(--p1-ink); }
.made-by { font-size: 13px; color: var(--muted); max-width: 520px; margin: 6px 0 10px; }
.made-by-logo { display: block; width: 56px; height: 56px; }

/* ---------- bands ---------- */
.band { padding-block: 64px; }
.band-soft { background: var(--soft); }
.section-lede { color: var(--ink-body); max-width: 60ch; margin: 0 0 28px; }

/* five phases */
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phases .ph:last-child { grid-column: 1 / -1; } }
.ph { text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: transform .18s ease, box-shadow .18s ease; }
.ph:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.ph .n { font-size: 13px; font-weight: 700; color: var(--c-ink); }
.ph .t { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.15; }
.ph .now { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); background: var(--c-tint); border-radius: 99px; padding: 2px 8px; }
.ph .l { font-size: 13.5px; color: var(--ink-body); line-height: 1.5; }
.ph .bar { height: 6px; border-radius: 99px; background: var(--c); margin-top: auto; width: 36%; transition: width .3s ease; }
.ph[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.ph[aria-pressed="true"] .bar { width: 100%; }
.ph-detail { margin-top: 20px; padding: 20px 22px; border-radius: var(--radius); background: var(--card-solid); border: 1px solid var(--line); max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.ph-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph-detail-head h3 { font-size: 22px; }
.ph-num { font-family: var(--display); font-weight: 800; font-size: 28px; opacity: .5; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.ph-body { margin: 0; color: var(--ink-body); }
.ph-cell { border-radius: 14px; padding: 12px 14px; }
.cell-value { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* how it reads */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: center; }
.steps { display: grid; gap: 18px; margin-top: 8px; }
.step { border-top: 2px solid var(--ink); padding-top: 12px; }
.step .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; color: var(--ink-body); font-size: 15px; }
.how-art { margin: 0; position: relative; }
.how-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 28px; box-shadow: 0 30px 70px rgba(120, 80, 160, .22); }
.ai-note { position: absolute; bottom: 10px; right: 10px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; }
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; } .how-art { max-width: 340px; justify-self: center; } }

/* history: halving clock + stylised cycle */
.history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin-top: 16px; }
@media (max-width: 880px) { .history-grid { grid-template-columns: 1fr; } }
.card { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.halving-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.halving-pct { font-family: var(--display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prog-track { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; }
.prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ef6a4c, #f7931a); transition: width 1.2s ease; }
.halvings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.halving-cell { padding: 10px 8px; border-radius: 12px; background: var(--viz); text-align: center; }
.halving-cell .year { font-family: var(--display); font-size: 16px; font-weight: 800; }
.halving-cell .sub { font-size: 12px; line-height: 1.35; color: var(--muted); }
@media (max-width: 400px) { .halvings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.well { background: var(--viz); border-radius: 14px; padding: 10px; display: flex; justify-content: center; }
.hist svg { display: block; width: 100%; max-width: 560px; height: auto; }
.hist-label { paint-order: stroke; stroke: var(--viz); stroke-width: 3px; stroke-linejoin: round; }
.ping { animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.tagline { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0; }

/* LTV Guard band */
.promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, var(--glow-1), var(--glow-2)), var(--card-solid); border: 1px solid var(--line); }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }
.promo-logo { width: 72px; height: 72px; }
.promo-title { font-size: clamp(24px, 3.2vw, 32px); margin: 4px 0 6px; }
.promo-body { margin: 0; color: var(--ink-body); max-width: 58ch; }
.promo-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 58ch; }
.cta-ghost { min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; white-space: nowrap; }

/* footer: neutral on purpose, red is kept for the drop banner */
.foot { padding-block: 40px 56px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-direction: column; gap: 8px; }
.foot .caption { max-width: 80ch; }
.foot-strong { color: var(--ink-body); font-weight: 600; }

/* ---------- utilities ---------- */
.mock-banner { position: sticky; top: 0; z-index: 12; background: #b91c1c; color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 6px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 8px; }

/* ---------- motion (content is always visible; motion only slides it) ---------- */
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.reveal { transition: transform .6s ease; }
.js-reveal .reveal:not(.is-in) { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .js-reveal .reveal:not(.is-in) { transform: none; }
  html { scroll-behavior: auto; }
}
