/* Kill Snooze: night to dawn. Colours and shapes come from the app itself. */
:root {
  --night: #0A0716;
  --ink: #0A0814;
  --violet: #2A1B4A;
  --coral: #FF7A5C;
  --orange: #FF9A4D;
  --gold: #FFC56B;
  --sun: #FFD27A;
  --warm: #FFE8C5;
  --fg1: rgba(255, 255, 255, 0.96);
  --fg2: rgba(255, 255, 255, 0.70);
  --fg3: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.045);
  --green: #34D399;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --dawn: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg1);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, canvas, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--rounded); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }

.eyebrow {
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun);
  opacity: 0.9;
  margin-bottom: 18px;
}
.eyebrow.gold { margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; font-weight: 700; }
.sub { color: var(--fg2); font-size: clamp(17px, 1.6vw, 19px); max-width: 640px; margin-top: 18px; }
.center .sub { margin-inline: auto; }
.caption { color: var(--fg3); font-size: 14px; text-align: center; margin-top: 16px; }
.fine { color: var(--fg3); font-size: 13.5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 15px;
  font: 650 16px/1 var(--rounded); text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.apple { width: 17px; height: 17px; fill: currentColor; stroke: none; margin-top: -2px; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  color: #1A0F06;
  background: linear-gradient(#FFB37A, #FF8A3C);
  box-shadow: 0 10px 28px rgba(255, 138, 60, 0.36), inset 0 0 0 0.5px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--fg1); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-small { height: 36px; padding: 0 16px; border-radius: 11px; font-size: 14px; box-shadow: none; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, calc((100% - 1120px) / 2));
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}
.nav.solid { background: rgba(10, 8, 20, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--rounded); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { font-size: 14.5px; color: var(--fg2); text-decoration: none; }
.nav nav a:hover { color: var(--fg1); }

/* Hero: one screen whose sky depends on --dawn (0 night, 1 morning). Holding the sun raises it. */
.hero-track { position: relative; }
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: grid; place-items: center; }
.sky { position: absolute; inset: 0; background: linear-gradient(#070512 0%, #0E0A22 38%, #1B1238 70%, #34204F 100%); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(1 - var(--dawn) * 1.15); }
/* At night the sky melts into the page below it. */
.sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1; background: linear-gradient(transparent, var(--ink)); opacity: calc(1 - var(--dawn)); }
.dawn {
  position: absolute; inset: 0; opacity: var(--dawn);
  background: linear-gradient(#150C2A 0%, #2A1644 26%, #47265A 50%, #6E3560 70%, #A04D5C 84%, #E27F52 94%, #FFB765 100%);
}
.sunglow {
  position: absolute; left: 50%; width: 150vmax; height: 150vmax; transform: translate(-50%, 50%);
  bottom: calc(-46vh + var(--dawn) * 16vh);
  background: radial-gradient(closest-side, rgba(255, 240, 180, 0.8), rgba(255, 180, 100, 0.42) 26%, rgba(255, 122, 92, 0.16) 48%, transparent 66%);
  opacity: calc(var(--dawn) * 0.9);
}
.hero-inner {
  position: relative; z-index: 1; text-align: center;
  width: min(880px, 100% - 40px); padding-top: 56px;
  display: flex; flex-direction: column; align-items: center;
}
.sun {
  background: none; border: 0; padding: 0; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  width: clamp(150px, 24vh, 230px); aspect-ratio: 1; margin-bottom: 6px;
  transform: translateY(calc((1 - var(--dawn)) * 14px));
}
.sun:active { cursor: grabbing; }
.sun canvas { width: 100%; height: 100%; }
.hero .eyebrow { margin-bottom: 16px; transition: opacity 0.3s ease; }
h1 { font-size: clamp(38px, 6.2vw, 74px); line-height: 1.03; font-weight: 750; }
h1 em { font-style: normal; background: linear-gradient(#FFE2A6, #FF9A4D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: rgba(255, 255, 255, 0.82); font-size: clamp(17px, 1.9vw, 21px); max-width: 620px; margin-top: 20px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hero .fine { margin-top: 18px; color: rgba(255, 255, 255, calc(0.62 + var(--dawn) * 0.26)); max-width: 520px; }
.hero .btn-ghost { background: rgba(20, 12, 34, calc(0.22 + var(--dawn) * 0.2)); }
/* The aura: as the sun wakes (--dawn 0 to 1), a line of light draws itself around the download button, then glows. */
.hero .btn-primary { position: relative; }
.hero .btn-primary::before, .hero .btn-primary::after { content: ""; position: absolute; inset: -6px; border-radius: 21px; pointer-events: none; }
.hero .btn-primary::before {
  padding: 2px; opacity: min(1, calc(var(--dawn) * 4));
  background: conic-gradient(from -90deg, #FFE9B0 calc(var(--dawn) * 360deg), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hero .btn-primary::after { box-shadow: 0 0 calc(var(--dawn) * 30px) calc(var(--dawn) * 3px) rgba(255, 196, 110, calc(var(--dawn) * 0.5)); }
.woken .hero .btn-primary::after { animation: aura 3.4s ease-in-out infinite; }

.hint {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 1;
  font-size: 13px; color: rgba(255, 255, 255, 0.5); opacity: calc(1 - var(--dawn) * 3);
}

/* Sections */
.section { padding: clamp(76px, 9vw, 124px) 0; position: relative; }
/* The warmth under the hero follows the sky: none at night, a morning light once the sun is up. */
.section.morning { background: linear-gradient(rgba(255, 196, 120, calc(var(--dawn) * 0.16)), rgba(255, 154, 77, calc(var(--dawn) * 0.05)) 180px, transparent 420px); }
.section.last { padding-bottom: clamp(70px, 9vw, 110px); }
.section.last canvas { width: 132px; height: 132px; margin: 0 auto 10px; }
.cta.center { justify-content: center; }

.grid { display: grid; gap: 16px; margin-top: 48px; }
.grid.missions { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.card.mission.wide { grid-column: span 2; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--fg2); font-size: 15.5px; margin-top: 8px; }

/* The wake screen demo */
.mac {
  margin: 52px auto 0; width: min(980px, 100%);
  padding: 10px; border-radius: 26px;
  background: #15121F; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.wake {
  position: relative; border-radius: 17px; overflow: hidden; aspect-ratio: 16 / 10; min-height: 520px;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.42)),
    radial-gradient(60% 55% at 50% 100%, rgba(255, 240, 180, 0.9), rgba(255, 180, 100, 0.6) 35%, rgba(255, 122, 92, 0.3) 60%, transparent 80%),
    linear-gradient(#150C2A 0%, #2C1746 16%, #5A2F63 38%, #A9505A 58%, #F08A52 78%, #FFC56B 100%);
  display: grid; place-items: center; outline: none;
}
.wake-ring { display: grid !important; grid-template-columns: 1fr minmax(300px, 360px); align-items: center; gap: clamp(20px, 5vw, 70px); max-width: 860px; }
.wake-ring[hidden] { display: none !important; }
.wake-side { display: flex; flex-direction: column; align-items: center; }
.wake:focus-visible { box-shadow: inset 0 0 0 2px var(--sun); }
.wake-ring, .wake-done { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 28px 28px; }
.wake-done[hidden], .wake-ring[hidden] { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.26); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  font: 600 13px/1 var(--sans);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 1.2s ease-in-out infinite; }
.pill .mute { display: none; width: 14px; height: 14px; fill: var(--sun); }
.pill .mute .cut { fill: none; stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; }
.pill.quiet i { display: none; }
.pill.quiet .mute { display: block; }
/* Quiet while you solve: 40 seconds, refilled by every key. */
.quiet-bar { height: 4px; width: 72%; margin: 0 auto 14px; border-radius: 99px; overflow: hidden; background: rgba(0, 0, 0, 0.32); }
.quiet-bar[hidden] { display: none; }
.quiet-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--coral)); }
.clock { font: 200 clamp(64px, 10vw, 118px)/1 var(--sans); letter-spacing: -0.045em; margin-top: 14px; text-shadow: 0 8px 30px rgba(255, 122, 92, 0.4); font-variant-numeric: tabular-nums; }
.date { color: var(--fg2); font-weight: 500; margin-top: 4px; }
.date b { color: var(--sun); font-weight: 600; }
.mission-card {
  width: 100%; padding: 20px; border-radius: 24px; text-align: center;
  background: rgba(30, 20, 40, 0.5); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.mission-title { font: 700 20px/1.1 var(--rounded); }
.mission-sub { color: var(--fg2); font-size: 13.5px; margin-top: 4px; }
.dots { display: flex; gap: 7px; justify-content: center; margin: 12px 0 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: background 0.2s; }
.dots i.on { background: var(--sun); }
.problem { font: 700 34px/1.1 var(--rounded); font-variant-numeric: tabular-nums; }
.problem.shake { animation: shake 0.35s; }
.mission-card.shake { animation: shake 0.4s; }
.entry { font: 600 26px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: var(--sun); height: 34px; }
.entry.empty { color: rgba(255, 255, 255, 0.26); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.keypad button {
  height: 46px; border-radius: 13px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 600 20px/1 var(--rounded); transition: background 0.1s, transform 0.1s;
}
.keypad button:hover { background: rgba(255, 255, 255, 0.17); }
.keypad button:active { transform: scale(0.95); }
.keypad .alt { background: rgba(255, 255, 255, 0.06); }
.snooze { margin-top: 22px; padding: 9px 18px; border-radius: 99px; background: rgba(0, 0, 0, 0.28); color: var(--fg2); font: 600 13.5px/1 var(--sans); }
.snooze span { color: var(--fg3); }
.done-astre { width: 130px; height: 130px; margin-top: 6px; }
.forecast {
  margin-top: 16px; padding: 14px 20px 12px; border-radius: 20px; text-align: center;
  background: rgba(40, 24, 30, 0.32); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.slots { display: flex; gap: clamp(14px, 3vw, 28px); justify-content: center; }
.slots div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; }
.slots span { font: 600 12.5px/1 var(--sans); color: var(--fg2); }
.slots svg { width: 26px; height: 26px; fill: #fff; }
.slots svg .sunny { fill: var(--gold); }
.slots svg .drops { fill: none; stroke: #9FD0FF; stroke-width: 1.8; stroke-linecap: round; }
.slots b { font: 700 19px/1 var(--rounded); }
.slots em { font: 700 11.5px/1 var(--sans); font-style: normal; color: #9FD0FF; }
.wear { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.wear span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); font: 600 13px/1 var(--sans); }
.wear svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done-title { font: 700 clamp(36px, 5vw, 52px)/1.1 var(--rounded); margin-top: 6px; }
.done-streak { color: #FFB37A; font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; }
.bar { width: 230px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); margin: 16px 0 24px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--coral)); transition: width 1.1s ease 0.2s; }
.wake-done.show .bar i { width: 62%; }

/* Mission vignettes */
.mission { position: relative; }
.mission .tag { position: absolute; top: 18px; right: 18px; font: 700 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; color: var(--fg2); background: rgba(255, 255, 255, 0.08); }
.mission .tag.pro { color: #1A0F06; background: linear-gradient(#FFD27A, #FF9A4D); }
.vig {
  height: 148px; border-radius: 15px; margin-bottom: 20px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, rgba(42, 27, 74, 0.9), rgba(107, 58, 110, 0.55) 60%, rgba(255, 122, 92, 0.3));
  font: 700 26px/1 var(--rounded); font-variant-numeric: tabular-nums;
}
.vig b { color: var(--sun); }
.tap-pill { font-size: 16px; padding: 14px 30px; border-radius: 99px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2); animation: breathe 2.4s ease-in-out infinite; }
.vig-type { padding: 0 18px; text-align: center; font: 500 19px/1.35 ui-serif, "New York", Georgia, serif; }
.vig-type .todo { color: rgba(255, 255, 255, 0.4); }
.vig-type .next { color: var(--sun); text-decoration: underline; text-underline-offset: 4px; }
.ops { display: flex; gap: 8px; }
.ops i { font-style: normal; width: 38px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.1); font-size: 19px; }
.ops i.hit { animation: hit 2.6s ease-in-out infinite; }
.vig-tiles { display: grid; grid-template-columns: repeat(4, 26px); grid-auto-rows: 26px; gap: 5px; align-content: center; justify-content: center; align-items: stretch; }
.vig-tiles i { border-radius: 6px; background: rgba(255, 255, 255, 0.09); transition: background 0.25s; }
.vig-tiles i.lit { background: var(--orange); }
.vig-click { flex-direction: row; gap: 14px; font-size: 18px; color: var(--fg2); }
/* The aim field: the z to hit, the star left by the one before, the pointer closing in. */
.vig-aim { position: relative; background: linear-gradient(160deg, rgba(20, 13, 38, 0.95), rgba(42, 27, 74, 0.8) 60%, rgba(107, 58, 110, 0.45)); }
.vig-aim .z {
  position: absolute; left: 60%; top: 28%; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 800 21px/1 var(--rounded); font-style: normal; color: #fff;
  background: radial-gradient(circle at 38% 32%, #FFE9B0, #FFC56B 34%, #FF9A4D 68%, #FF7A5C);
  box-shadow: 0 0 20px rgba(255, 154, 77, 0.55);
}
.vig-aim .z::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); }
.vig-aim .burst {
  position: absolute; left: 20%; top: 46%; width: 38px; height: 38px; background: #FFE9B0; opacity: 0.3;
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
}
.vig-aim .cross { position: absolute; left: calc(60% + 2px); top: calc(28% + 62px); width: 26px; height: 26px; }
.vig-aim .cross::before, .vig-aim .cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.9); border-radius: 1px; }
.vig-aim .cross::before { left: 12px; top: 0; width: 2px; height: 26px; }
.vig-aim .cross::after { left: 0; top: 12px; width: 26px; height: 2px; }
.vig-aim .aim-count { position: absolute; right: 16px; bottom: 12px; font-size: 14px; color: var(--fg2); }
.vig-click canvas { width: 96px; height: 96px; }

/* No way out */
.tag-pro { display: inline-block; vertical-align: 2px; margin: 0 2px; font: 700 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; color: #1A0F06; background: linear-gradient(#FFD27A, #FF9A4D); }
.escape-stage {
  aspect-ratio: 5 / 4; border-radius: 24px; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px;
  background:
    radial-gradient(70% 55% at 50% 105%, rgba(255, 170, 110, 0.55), transparent 70%),
    linear-gradient(#150C2A, #2C1746 45%, #5A2F63 80%, #8A4560);
  /* Painted under the border too: otherwise the bottom's warm light repeats into the top edge. */
  background-origin: border-box;
}
.closed-mac { width: min(100%, 460px); overflow: visible; }
.closed-mac .buzz { transform-box: fill-box; transform-origin: 50% 100%; animation: buzz 1.4s linear infinite; }
.waves path { fill: none; stroke: #FFB37A; stroke-width: 5; stroke-linecap: round; opacity: 0; transform-box: fill-box; animation: wave 1.4s ease-out infinite; }
.waves.left path { transform-origin: 100% 50%; }
.waves.right path { transform-origin: 0% 50%; }
.waves path:nth-child(2) { animation-delay: 0.18s; stroke-width: 4.5; }
.waves path:nth-child(3) { animation-delay: 0.36s; stroke-width: 4; }
.steps-note { color: var(--fg2); font-size: 15px; }

/* Really up */
.two { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.checks li { color: var(--fg2); padding-left: 22px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.checks b { color: var(--fg1); font-weight: 650; }
.desk {
  aspect-ratio: 5 / 4; border-radius: 24px; display: grid; place-items: end center; padding-bottom: 12%;
  background:
    radial-gradient(70% 60% at 28% 18%, rgba(255, 226, 170, 0.75), transparent 70%),
    radial-gradient(70% 70% at 85% 85%, rgba(120, 150, 190, 0.5), transparent 70%),
    linear-gradient(150deg, #F7E3C4, #F1BE95 48%, #C9A6A0 78%, #9FB0C8);
  background-origin: border-box;
  border: 1px solid var(--line);
}
.capsule {
  display: flex; align-items: center; gap: 12px; width: min(280px, 86%); height: 62px; padding: 0 20px 0 9px; border-radius: 99px;
  color: #17121F; background: rgba(255, 255, 255, 0.42); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 14px 34px rgba(40, 20, 60, 0.28);
}
.orb { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(23, 18, 31, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.liquid {
  position: absolute; left: -50%; width: 200%; aspect-ratio: 1; border-radius: 43%;
  background: linear-gradient(#FFC56B, #FF9A4D 40%, #FF7A5C);
  top: 78%; animation: fill 14s linear infinite, spin 5s linear infinite;
}
.shine { position: absolute; left: 9px; top: 8px; width: 12px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); transform: rotate(-38deg); filter: blur(0.5px); }
.capsule-text { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.capsule-text b { font: 650 13.5px/1.25 var(--sans); }
.capsule-text span { font-size: 11.5px; color: rgba(23, 18, 31, 0.6); }
.capsule-time { font: 650 22px/1 var(--rounded); font-variant-numeric: tabular-nums; }

/* Astre */
.evolution { position: relative; margin-top: 48px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 10; }
.evolution video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; right: 16px; bottom: 16px; height: 34px; padding: 0 14px; border-radius: 99px; border: 0; cursor: pointer; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 600 13px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.stages { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 44px; }
.stage { text-align: center; }
.stage canvas { width: 100%; aspect-ratio: 1; }
.stage b { display: block; font: 650 14px/1.2 var(--rounded); margin-top: 6px; }
.stage span { font-size: 12px; color: var(--fg3); }
.stage.secret b { color: var(--fg3); letter-spacing: 0.08em; }
.stages-note { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--fg3); }

/* Readiness card */
.ready { margin-top: 16px; padding: 26px 28px; }
.ready ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ready li { padding-left: 30px; position: relative; color: var(--fg2); font-size: 15.5px; }
.ready li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 8px; border-left: 2.2px solid var(--green); border-bottom: 2.2px solid var(--green); transform: rotate(-45deg) scale(0.85); }
.ready li.info::before { border: 1.8px solid var(--fg3); border-radius: 3px; width: 14px; height: 10px; transform: none; top: 0.36em; }
.ready-note { color: var(--fg3); font-size: 13.5px; margin-top: 18px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { padding: 30px; display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.plan.pro { background: linear-gradient(160deg, rgba(255, 154, 77, 0.16), rgba(139, 92, 246, 0.1)); border-color: rgba(255, 196, 120, 0.3); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font: 300 20px/1 var(--sans); margin-top: 18px !important; color: var(--fg2) !important; }
.price b, .plan:not(.pro) .price { font: 700 44px/1 var(--rounded); color: var(--fg1) !important; }
.price span { font: 400 16px/1 var(--sans); color: var(--fg3); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan li { padding-left: 26px; position: relative; color: var(--fg2); font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.34em; width: 12px; height: 7px; border-left: 2.2px solid var(--orange); border-bottom: 2.2px solid var(--orange); transform: rotate(-45deg) scale(0.9); }
.plan .fine { margin-top: 14px !important; text-align: center; font-size: 13.5px !important; color: var(--fg3) !important; }
.toggle { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(0, 0, 0, 0.3); }
.toggle button { border: 0; background: none; cursor: pointer; height: 30px; padding: 0 14px; border-radius: 99px; font: 600 13px/1 var(--sans); color: var(--fg2); }
.toggle button[aria-selected="true"] { background: rgba(255, 255, 255, 0.14); color: var(--fg1); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
#faq h2 { margin-bottom: 26px; }
summary { cursor: pointer; list-style: none; font: 650 18.5px/1.35 var(--rounded); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--fg2); margin-top: 12px; max-width: 660px; }
details a, .doc a { color: var(--sun); text-underline-offset: 3px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--fg3); font-size: 14px; }
.foot .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot nav a { text-decoration: none; color: var(--fg2); }
.foot nav a:hover { color: var(--fg1); }
.foot .brand { font-size: 15px; color: var(--fg1); }

/* Plain pages (privacy, support, thanks) */
.doc { padding: 130px 0 90px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 10px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--fg2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--fg3); font-size: 14px; margin-bottom: 26px; }
.doc strong { color: var(--fg1); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 14px; margin-top: 26px; }
.steps li { counter-increment: step; padding: 18px 20px 18px 62px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#FFB37A, #FF8A3C); color: #1A0F06; font: 700 15px/1 var(--rounded); }

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes aura { 50% { opacity: 0.55; } }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
@keyframes hit { 0%, 55%, 100% { background: rgba(255, 255, 255, 0.1); color: inherit; } 65%, 90% { background: var(--orange); color: #1A0F06; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 0% { opacity: 0; transform: scale(0.85); } 20% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes buzz { 0%, 40%, 100% { transform: translateX(0) rotate(0); } 5%, 15%, 25%, 35% { transform: translateX(-1.6px) rotate(-0.25deg); } 10%, 20%, 30% { transform: translateX(1.6px) rotate(0.25deg); } }
@keyframes fill { 0% { top: 78%; } 88% { top: -4%; } 100% { top: -4%; } }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .grid.missions, .grid.three { grid-template-columns: 1fr 1fr; }
  .two, .plans { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .wake { aspect-ratio: auto; }
  .wake-ring { grid-template-columns: 1fr !important; justify-items: center; gap: 18px; }
  .mission-card { max-width: 360px; }
}
/* Short or narrow screens: the hero grows to its content, so the hint never sits on the fine print. */
@media (max-width: 560px), (max-height: 760px) {
  .hero { height: auto; min-height: 100svh; padding: 76px 0 70px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 36px); }
  .grid.missions, .grid.three { grid-template-columns: 1fr; }
  .card.mission.wide { grid-column: auto; }
  .escape-stage { aspect-ratio: auto; padding: 32px 12px; }
  .slots { gap: 12px; }
  .mac { padding: 6px; border-radius: 20px; }
  .wake { border-radius: 14px; min-height: 600px; }
  .cta .btn { width: 100%; }
  .evolution { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :root { --dawn: 1; }
  .liquid { top: 30%; }
  .waves path { opacity: 0.85; }
}
