/* Habit-Check landing page.
 *
 * Tokens are the app's own, from src/index.css — the dark theme the app was
 * drawn for. Nothing here carries a style attribute: every value either lives
 * in this file or arrives as a custom property set from app.js, so the page
 * runs under a Content-Security-Policy with no 'unsafe-inline' (see _headers).
 */

:root {
  --ink: #0B1220;
  --ink-2: #0E1626;
  --card: #141C2E;
  --card-soft: #1B2740;
  --line: #26324B;
  --muted: #8B98B7;
  --fg: #FFFFFF;

  --brand: #8B5CF6;
  --brand-deep: #7C3AED;
  --brand-800: #5B21B6;
  --violet: #A78BFA;
  --orchid: #C084FC;
  --cyan: #38BDF8;
  --cyan-deep: #0C7FB8;
  --cyan-ink: #04121E;

  /* Live state, written by app.js */
  --water-pct: 69%;
  --phase: #A78BFA;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--violet); }
a:hover { color: #C4B5FD; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 12px 18px;
  background: var(--card);
  border-radius: 10px;
  z-index: 50;
}
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; width: 100%; }

/* The app's one shape: a pointy-top hexagon, the geometry Honeycomb.tsx uses. */
.hex { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }

/* ------------------------------- type ------------------------------- */

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.h2.wide { max-width: 820px; }
.h2.centre { max-width: 760px; margin-inline: auto; }

.lede {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.lede.narrow { max-width: 560px; }
.lede.centre { max-width: 580px; margin-inline: auto; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.violet { color: var(--violet); }
.cyan { color: var(--cyan); }
.orchid { color: var(--orchid); }

.note { margin: 24px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.muted { font-size: 15px; color: var(--muted); }

/* ------------------------------ buttons ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-brand { background: var(--brand-deep); color: #FFFFFF; }
.btn-brand:hover { background: #6D28D9; color: #FFFFFF; }
.btn-cyan { background: var(--cyan); color: var(--cyan-ink); font-weight: 700; }
.btn-cyan:hover { background: #7DD3FC; }
.btn-ghost { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: #223050; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn-pill { border-radius: 999px; min-height: 44px; }

.chip {
  min-height: 28px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--cyan-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* -------------------------------- nav ------------------------------- */

.nav {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  background: linear-gradient(150deg, var(--brand), var(--brand-800));
}
.mark.sm { width: 24px; height: 28px; }
.mark-in { display: block; width: 34%; height: 36%; background: #FFFFFF; }

.nav-links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.btn { color: #FFFFFF; }

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

.hero { position: relative; padding: 48px 0 120px; }

.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.comb { display: flex; flex-direction: column; }
.comb-row { display: flex; }

#hero-comb {
  position: absolute;
  top: -110px;
  left: -90px;
  right: -90px;
  bottom: -110px;
  opacity: 0.5;
  animation: combDrift 34s ease-in-out infinite;
}
#hero-comb .comb-row { gap: 4px; margin-top: -22.5px; }
#hero-comb .cell { flex: 0 0 auto; width: 78px; height: 90px; }

.cell {
  display: block;
  opacity: 0;
  animation: hexIn 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
  background: var(--c, #141C2E);
}

/* A highlight travelling across the comb on the diagonal the rows run.
   Cheaper than animating 370 cells, and it reads as light over the grid. */
.sheen {
  position: absolute;
  inset: -45%;
  background: linear-gradient(112deg, transparent 40%, rgba(167, 139, 250, 0.18) 47%, rgba(56, 189, 248, 0.14) 52%, transparent 59%);
  animation: sheen 11s linear infinite;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 110% at 12% 44%, var(--ink) 18%, rgba(11, 18, 32, 0.9) 40%, rgba(11, 18, 32, 0.52) 70%, rgba(11, 18, 32, 0.34) 100%);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.55) 0%, transparent 18%, transparent 80%, var(--ink) 100%);
}

.hero-grid { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 460px; min-width: 0; }
.hero-phone { flex: 1 1 360px; min-width: 320px; display: flex; justify-content: center; }

.eyebrow-pill {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
}
.dot { display: block; width: 7px; height: 8px; background: var(--violet); }

.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.facts { margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 36px 48px; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 600; }

/* ------------------------------- phone ------------------------------ */

.phone {
  position: relative;
  width: 340px;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(160deg, #2C3752, #151C2C);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85);
}
.bobber { animation: bob 7s ease-in-out infinite; }

.phone-screen {
  position: relative;
  height: 690px;
  border-radius: 44px;
  background: var(--ink);
  overflow: hidden;
}

.island-slot { position: absolute; top: 12px; left: 0; right: 0; display: flex; justify-content: center; z-index: 4; }

/* ------------------------------ island ------------------------------ */

.island {
  display: flex;
  align-items: center;
  background: #000000;
  overflow: hidden;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1),
              height 420ms cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.island > div { display: none; width: 100%; animation: contentIn 300ms ease-out; }

.island[data-stage="0"] { width: 38px; height: 37px; border-radius: 19px; padding: 0 9px; }
.island[data-stage="1"] { width: 126px; height: 37px; border-radius: 19px; padding: 0 9px; }
.island[data-stage="2"] { width: 250px; height: 112px; border-radius: 26px; padding: 14px 16px; }
.island.wide[data-stage="2"] { width: 230px; height: 92px; border-radius: 24px; padding: 12px 14px; }

.island[data-stage="0"] .island-minimal { display: grid; place-items: center; }
.island[data-stage="1"] .island-compact { display: flex; align-items: center; justify-content: space-between; }
.island[data-stage="2"] .island-expanded { display: block; }

.island .num { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.island .unit { font-size: 11px; color: var(--muted); }
.island .big { display: block; font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.island .mid { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.island .sub { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.island .right { text-align: right; }
.island .togo { margin: 9px 0 8px; font-size: 12px; color: var(--muted); }

.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.row.gap { gap: 10px; }
.row.tight { margin-top: 8px; }

.track { flex: 1; height: 5px; border-radius: 3px; background: #1F2937; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 3px; background: var(--cyan); width: var(--water-pct); transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1); }

.drop { width: 15px; height: 15px; fill: var(--cyan); }
.drop-11 { width: 11px; height: 11px; }
.drop-14 { width: 14px; height: 14px; }
.drop-18 { width: 18px; height: 18px; }
.drop-ico { width: 15px; height: 15px; fill: currentColor; }

/* rings */
.ring { position: relative; display: grid; place-items: center; flex: 0 0 auto; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: #1F2937; }
.ring .bar { fill: none; stroke: var(--cyan); stroke-linecap: round; transition: stroke-dashoffset 480ms ease; }
.ring-24 { width: 24px; height: 24px; }
.ring-24 .trk, .ring-24 .bar { stroke-width: 3; }
.ring-34 { width: 34px; height: 34px; }
.ring-34 .trk, .ring-34 .bar { stroke-width: 3.5; }
.ring-44 { width: 44px; height: 44px; }
.ring-44 .trk, .ring-44 .bar { stroke-width: 4; }
.ring-62 { width: 62px; height: 62px; }
.ring-62 .trk { stroke: var(--line); stroke-width: 5; }
.ring-62 .bar { stroke: var(--phase); stroke-width: 5; transition: stroke-dashoffset 900ms linear; }
.ring-label { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* --------------------------- app screen ----------------------------- */

.app-screen { position: absolute; inset: 0; padding: 74px 20px 20px; }
.app-title { margin: 0 0 4px; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.app-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.app-actions { margin-top: 18px; display: flex; gap: 9px; }
.app-actions .btn { flex: 1; min-height: 44px; border-radius: 13px; font-size: 14px; }

/* ------------------------------- tank ------------------------------- */

.tank { position: relative; margin: 0 auto; }
.tank-sm { width: 196px; height: 246px; }
.tank-lg { width: 268px; height: 330px; }
.tank-bg { position: absolute; inset: 0; background: var(--card); }
.tank-clip { position: absolute; inset: 0; overflow: hidden; }

.water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--water-pct);
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  transition: height 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Two offset waves at different speeds reads as moving water. Each path is
   two periods wide, so translating by exactly one period loops seamlessly. */
.wave { position: absolute; left: 0; width: 400px; animation: drift 7s linear infinite; }
.wave-back { top: -16px; height: 22px; fill: var(--cyan); opacity: 0.55; }
.wave-front { top: -11px; height: 22px; fill: #7DD3FC; opacity: 0.5; animation-duration: 4.5s; animation-direction: reverse; }
.tank-lg .wave-back { top: -18px; height: 26px; }
.tank-lg .wave-front { top: -13px; height: 26px; }

.bubble { position: absolute; bottom: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); animation: rise 5s ease-in infinite; }
.b1 { left: 30%; width: 8px; height: 8px; animation-duration: 4.4s; }
.b2 { left: 56%; width: 6px; height: 6px; animation-duration: 5.8s; animation-delay: 1.2s; }
.b3 { left: 44%; width: 4px; height: 4px; animation-duration: 6.6s; animation-delay: 2.9s; }
.b4 { left: 70%; width: 5px; height: 5px; animation-duration: 5.2s; animation-delay: 3.4s; }

.tank-block { text-align: center; }
.tank-total { margin: 24px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tank-goal { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* ------------------------------- bands ------------------------------ */

.band { border-top: 1px solid var(--line); padding: 110px 0; }
.band.alt { background: var(--ink-2); }
.band.centred { text-align: center; }

.split { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.split.reverse { flex-direction: row-reverse; }
.split.top-gap { margin-top: 64px; gap: 64px; }
.split-copy { flex: 999 1 420px; min-width: 0; }
.split-media { flex: 1 1 340px; min-width: 300px; display: flex; justify-content: center; }

.head-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.head-row > div { flex: 1 1 420px; min-width: 0; }

.cards { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; min-width: 280px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.card h3 { margin: 24px 0 8px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.stage { display: grid; place-items: center; height: 120px; border-radius: 16px; background: #05080F; }
.island.static { outline: 1px solid var(--card-soft); }

/* --------------------------- lock screen ---------------------------- */

.phone.lock { width: 326px; border-radius: 50px; }
.lock-screen {
  position: relative;
  border-radius: 40px;
  background: linear-gradient(170deg, #1B1240, #0A1424 55%, #06121C);
  overflow: hidden;
  padding: 56px 16px 28px;
}
.lock-glow {
  position: absolute;
  top: -90px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}
.lock-clock { position: relative; text-align: center; }
.lock-date { margin: 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
.lock-time { margin: 2px 0 0; font-size: 76px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.activity {
  position: relative;
  margin-top: 150px;
  padding: 15px;
  border-radius: 22px;
  background: rgba(20, 28, 46, 0.82);
  border: 1px solid rgba(167, 139, 250, 0.22);
}
.activity-head { display: flex; align-items: center; gap: 11px; }
.activity-name { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.activity-badge { margin-left: auto; font-size: 12px; color: var(--muted); }
.activity-body { margin-top: 14px; display: flex; align-items: center; gap: 16px; }
.activity-clock { display: block; font-size: 29px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.activity-cap { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.activity-foot { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.phase-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--phase); }
.phase-name { font-size: 13px; font-weight: 600; color: var(--phase); }
.activity-elapsed { margin-left: auto; font-size: 13px; color: var(--muted); }

.points { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points li > span:last-child strong { display: block; font-size: 17px; font-weight: 600; }
.points li > span:last-child span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.bullet { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 28px; margin-top: 1px; background: var(--card-soft); }
.bullet-in { display: block; width: 8px; height: 9px; background: var(--violet); }

/* ------------------------------ fasting ----------------------------- */

.dial { position: relative; width: 300px; height: 300px; }
.dial svg { width: 300px; height: 300px; }
.dial .trk { fill: none; stroke: var(--card-soft); stroke-width: 18; }
.dial .bar { fill: none; stroke: var(--phase); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset 900ms linear; }
.sweeper { position: absolute; inset: 0; animation: sweep 24s linear infinite; }
.sweep-dot { position: absolute; top: 14px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--phase); }
.dial-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-clock { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dial-cap { margin-top: 6px; font-size: 14px; color: var(--muted); }
.dial-phase { margin-top: 16px; padding: 6px 14px; border-radius: 999px; background: var(--card-soft); font-size: 13px; font-weight: 600; color: var(--phase); }

.phases { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.phases li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; }
.phases li.on { background: var(--card-soft); }
.phase-swatch { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.phase-hours { flex: 0 0 60px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.phase-text { min-width: 0; flex: 1; }
.phase-text strong { display: block; font-size: 16px; font-weight: 600; }
.phases li.on .phase-text strong { color: var(--c); }
.phase-text span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.phase-grade { flex: 0 0 auto; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------- habits ----------------------------- */

.habit-head { display: flex; align-items: center; justify-content: space-between; }
.habit-head h3 { margin: 0; font-size: 19px; font-weight: 700; }
.habit-streak { padding: 5px 11px; border-radius: 999px; background: var(--card-soft); font-size: 12px; font-weight: 600; color: var(--c); }
.habit-comb { margin-top: 22px; }
.habit-comb .comb-row { gap: 3px; margin-top: -11.75px; }
.habit-comb .cell { width: 30px; height: 35px; }

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

.privacy-mark {
  display: inline-grid;
  width: 64px;
  height: 74px;
  background: linear-gradient(150deg, var(--brand), var(--brand-800));
}
.breather { animation: breathe 7s ease-in-out infinite; }
.centred .h2 { margin-top: 28px; }

.pills { margin: 48px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.pills li { padding: 13px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 600; }

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

.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 56px 0; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer .mark { width: 32px; height: 36px; }
.footer .nav-links a { color: var(--violet); }

/* ----------------------------- keyframes ---------------------------- */

@keyframes hexIn {
  0%   { opacity: 0; transform: scale(0.4) translateY(10px); }
  60%  { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-200px); }
}

@keyframes rise {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-150px) scale(1.1); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.06); }
}

@keyframes contentIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sheen {
  from { transform: translate3d(-42%, -20%, 0); }
  to   { transform: translate3d(42%, 20%, 0); }
}

@keyframes combDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-14px, -10px, 0) scale(1.012); }
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------------------------- small screens -------------------------- */

@media (max-width: 760px) {
  .band { padding: 72px 0; }
  .hero { padding-bottom: 72px; }
  .split, .split.reverse { flex-direction: column; gap: 48px; }
  .facts { gap: 24px 32px; }
  .activity { margin-top: 90px; }
  .phone { width: 100%; max-width: 340px; }
}

/* Respect users who have asked the OS to reduce motion. */
/* ------------------------------- 404 -------------------------------
 * Its own page rather than the homepage under a 200, so an unknown path
 * answers with an actual 404 instead of looking like it exists.
 */

.notfound { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; }

.nf-wrap {
  max-width: 460px;
  padding: 40px 16px;
  text-align: center;
}
.nf-wrap .mark { margin: 0 auto 26px; }

.nf-code {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.nf-title { margin: 10px 0 0; font-size: clamp(30px, 6vw, 42px); }

.nf-body { margin: 14px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cell, .wave, .bubble, .bobber, .breather, .sheen, #hero-comb,
  .sweeper, .lock-glow, .island > div {
    animation: none !important;
  }
  .cell { opacity: 1; }
  .island, .fill, .water, .ring .bar, .dial .bar { transition: none; }
}
