/* Wakeboo site. Obsidian (decision #75): black, white primary, the warm light only as a small accent.
   Dark is the brand default; the page follows the device unless the footer switch picks one (#349, #353). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface-1: #121212;
  --surface-2: #1e1e1e;
  --surface-3: #2a2a2a;
  --ink: #ffffff;
  --ink-2: #a8a8a8;
  --ink-3: #858585;
  --border: #1e1e1e;
  --border-strong: #333333;
  --primary: #ffffff;
  --on-primary: #000000;
  --accent: #f4a261;
  --accent-text: #f4a261;
  --accent-light: #ffd9a8;
  --success: #5fc98e;
  --glow: rgba(244, 162, 97, 0.5);
  --glow-2: rgba(244, 162, 97, 0.14);
  --line-glow: rgba(244, 162, 97, 0.55);
  --scrim: rgba(0, 0, 0, 0.66);
  --display: "Manrope", "SF Pro Rounded", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f5f4;
    --surface-1: #ffffff;
    --surface-2: #ececea;
    --surface-3: #e2e2df;
    --ink: #111111;
    --ink-2: #5c5c5a;
    --ink-3: #6b6b69;
    --border: #e5e5e3;
    --border-strong: #cfcfcc;
    --primary: #111111;
    --on-primary: #ffffff;
    --accent-text: #a85316;
    --glow: rgba(244, 162, 97, 0.42);
    --glow-2: rgba(244, 162, 97, 0.12);
    --line-glow: rgba(244, 162, 97, 0.35);
    --scrim: rgba(30, 27, 22, 0.45);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f4;
  --surface-1: #ffffff;
  --surface-2: #ececea;
  --surface-3: #e2e2df;
  --ink: #111111;
  --ink-2: #5c5c5a;
  --ink-3: #6b6b69;
  --border: #e5e5e3;
  --border-strong: #cfcfcc;
  --primary: #111111;
  --on-primary: #ffffff;
  --accent-text: #a85316;
  --glow: rgba(244, 162, 97, 0.42);
  --glow-2: rgba(244, 162, 97, 0.12);
  --line-glow: rgba(244, 162, 97, 0.35);
  --scrim: rgba(30, 27, 22, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* The L5 logo (#89): Manrope 800, the last o is a clock at 06:45 lit from inside, the horizon line under it.
   Sizes in em, from the logo generator (wblogo.py); the ring takes the text colour. */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2em;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
}

.logo-o {
  position: relative;
  display: inline-block;
  width: 0.545em;
  height: 0.57em;
  margin: 0 0.018em 0 0.04em;
  vertical-align: -0.02em;
}

.logo-o::before {
  content: "";
  position: absolute;
  inset: 0.0496em;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff3e2 0%, #ffd2a1 42%, #f6a65f 80%, #d77a35 100%);
  box-shadow: 0 0 0.14em rgba(244, 162, 97, 0.6);
}

.logo-o::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.062em solid currentColor;
}

.logo-o i {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  background: #2a1606;
}

.logo-o .h {
  left: 0.2475em;
  top: 0.1755em;
  width: 0.05em;
  height: 0.1345em;
  transform-origin: 50% 0.1095em;
  transform: rotate(202.5deg);
}

.logo-o .m {
  left: 0.2545em;
  top: 0.1208em;
  width: 0.036em;
  height: 0.1822em;
  transform-origin: 50% 0.1642em;
  transform: rotate(270deg);
}

.logo-o .c {
  left: 0.2375em;
  top: 0.25em;
  width: 0.07em;
  height: 0.07em;
}

.logo-line,
.horizon {
  display: block;
  height: max(2px, 0.045em);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 162, 97, 0) 0%, #f4a261 30%, #ffd9a8 52%, #f4a261 72%, rgba(244, 162, 97, 0) 100%);
  box-shadow: 0 0 0.14em var(--line-glow);
}

/* Header */

.top {
  padding: 18px 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 2px;
}

.top nav a:hover {
  color: var(--ink);
}

/* Home: one screen in a warm light (#350). */

.hero {
  padding: 28px 0 56px;
  overflow-x: clip;
}

.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

h1 {
  font: 800 clamp(38px, 9.4vw, 66px) / 1.02 var(--display);
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 13ch;
  text-wrap: balance;
}

.lede {
  font-size: clamp(17px, 2.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 18px auto 0;
  max-width: 34ch;
  text-wrap: pretty;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 18px 7px 14px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid #3a3a3a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

:root[data-theme="light"] .store {
  border-color: #000;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .store {
    border-color: #000;
  }
}

.store:hover {
  border-color: #5a5a5a;
}

.store:active {
  transform: scale(0.97);
}

.store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store small {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: #b4b4b4;
  letter-spacing: 0.01em;
}

.store b {
  display: block;
  font: 700 18px/1.15 var(--display);
  letter-spacing: -0.01em;
}

.soon-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 6px;
  vertical-align: 2px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* The phone: an app screen without a device frame (Apple's marketing rules forbid drawing or tilting an
   iPhone), always dark like the app's alarm moment, in a warm light that breathes. */

.stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 10px 0 0;
}

.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(640px, 160vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow) 0%, var(--glow-2) 48%, rgba(244, 162, 97, 0) 100%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.screen {
  --s: 1;
  position: relative;
  width: 300px;
  height: 640px;
  border-radius: 46px;
  background: #000;
  color: #fff;
  border: 1px solid #262626;
  overflow: hidden;
  font-family: var(--text);
  transform: scale(var(--s));
  transform-origin: top center;
  margin-bottom: calc(640px * (var(--s) - 1));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 360px) {
  .screen {
    --s: 0.88;
  }
}

.island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 999px;
  background: #000;
  z-index: 5;
  box-shadow: inset 0 0 0 1px #111;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}

.scene.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s;
}

.pill-btn {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 50px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 16px;
}

.tiny {
  position: absolute;
  left: 18px;
  right: 18px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.4;
  color: #858585;
}

/* Scene 1: the alarm (R1) */

.s-alarm .date {
  position: absolute;
  top: 92px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #a8a8a8;
}

.s-alarm .time {
  position: absolute;
  top: 110px;
  width: 100%;
  text-align: center;
  font: 700 76px/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.s-alarm .horizon {
  position: absolute;
  top: 204px;
  left: 30px;
  right: 30px;
  height: 2px;
  box-shadow: 0 0 10px rgba(244, 162, 97, 0.7);
  animation: line 2.4s ease-in-out infinite;
}

@keyframes line {
  0%,
  100% {
    opacity: 0.7;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.s-alarm .hello {
  position: absolute;
  top: 222px;
  width: 100%;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
}

.card {
  position: absolute;
  left: 16px;
  right: 16px;
  border-radius: 20px;
  background: #121212;
}

.s-alarm .card {
  top: 270px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 600;
}

.row + .row {
  border-top: 1px solid #1e1e1e;
}

.row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #d0d0d0;
}

.row span {
  flex: 1;
}

.row em {
  font-style: normal;
  font-size: 11px;
  color: #f4a261;
}

.s-alarm .pill-btn {
  bottom: 58px;
}

.s-alarm .tiny {
  bottom: 30px;
}

/* Scene 2: squats (R2h); the figure is drawn from the camera's points */

.s-squat .head {
  position: absolute;
  top: 58px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.s-squat .head em {
  font-style: normal;
  color: #f4a261;
  font-variant-numeric: tabular-nums;
}

.s-squat .cam {
  top: 88px;
  height: 344px;
  background: #1a1a1a;
  overflow: hidden;
}

.s-squat .cam > small {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10.5px;
  color: #a8a8a8;
}

.s-squat .cam svg {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 210px;
  height: 260px;
  margin-left: -105px;
}

.count {
  position: absolute;
  left: 14px;
  bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: #a8a8a8;
}

.count b {
  font: 800 46px/1 var(--display);
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.count b.bump {
  animation: bump 0.45s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.18);
    color: #f4a261;
  }
}

.cue {
  position: absolute;
  right: 12px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11.5px;
  font-weight: 700;
}

.s-squat .hint {
  position: absolute;
  top: 446px;
  left: 26px;
  right: 26px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #c8c8c8;
}

.ringing {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  font-weight: 600;
  color: #e8e8e8;
}

.ringing svg {
  width: 14px;
  height: 14px;
  color: #f4a261;
}

/* Scene 3: you're up (R3) */

.s-done {
  background: radial-gradient(120% 60% at 50% 18%, rgba(95, 201, 142, 0.22) 0%, rgba(95, 201, 142, 0.06) 45%, rgba(0, 0, 0, 0) 75%);
}

.s-done .up {
  position: absolute;
  top: 104px;
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.s-done .num {
  position: absolute;
  top: 140px;
  width: 100%;
  text-align: center;
  font: 800 138px/1 var(--display);
  color: #5fc98e;
  letter-spacing: -0.04em;
}

.s-done.is-on .num {
  animation: pop 0.9s var(--ease) both;
}

@keyframes pop {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  55% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}

.s-done .ring {
  position: absolute;
  top: 120px;
  left: 50%;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  border-radius: 50%;
  border: 2px solid rgba(95, 201, 142, 0.5);
  opacity: 0;
}

.s-done.is-on .ring {
  animation: burst 1.4s 0.25s var(--ease) both;
}

@keyframes burst {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.s-done .label {
  position: absolute;
  top: 290px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #a8a8a8;
}

.dots7 {
  position: absolute;
  top: 326px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.dots7 i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2a2a;
}

.dots7 i.on {
  background: #5fc98e;
  box-shadow: 0 0 8px rgba(95, 201, 142, 0.6);
}

.s-done.is-on .dots7 i.on {
  animation: lit 0.4s var(--ease) both;
}

.s-done.is-on .dots7 i:nth-child(2) {
  animation-delay: 0.45s;
}

.s-done.is-on .dots7 i:nth-child(3) {
  animation-delay: 0.55s;
}

.s-done.is-on .dots7 i:nth-child(4) {
  animation-delay: 0.65s;
}

.s-done.is-on .dots7 i:nth-child(5) {
  animation-delay: 0.85s;
}

.s-done.is-on .dots7 i:nth-child(1) {
  animation-delay: 0.35s;
}

@keyframes lit {
  from {
    background: #2a2a2a;
    box-shadow: none;
    transform: scale(0.6);
  }
}

.s-done .meta {
  position: absolute;
  top: 360px;
  width: 100%;
  text-align: center;
  font-size: 11.5px;
  color: #858585;
}

.s-done .pill-btn {
  bottom: 84px;
}

.s-done .tiny {
  bottom: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #a8a8a8;
}

/* Scene 4: their voice (R4) */

.s-voice {
  background: radial-gradient(110% 45% at 50% 0%, rgba(244, 162, 97, 0.3) 0%, rgba(244, 162, 97, 0.07) 50%, rgba(0, 0, 0, 0) 80%);
}

.avatar {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 104px;
  height: 104px;
  margin-left: -52px;
  border-radius: 50%;
  background: #262626;
  border: 3px solid #f4a261;
  box-shadow: 0 0 0 4px #000, 0 0 30px rgba(244, 162, 97, 0.5);
  display: grid;
  place-items: center;
  font: 800 38px/1 var(--display);
}

.s-voice.is-on .avatar {
  animation: talk 1.6s ease-in-out infinite;
}

@keyframes talk {
  50% {
    box-shadow: 0 0 0 4px #000, 0 0 46px rgba(244, 162, 97, 0.75);
  }
}

.s-voice .who {
  position: absolute;
  top: 192px;
  width: 100%;
  text-align: center;
  font: 800 22px/1.15 var(--display);
  letter-spacing: -0.02em;
}

.s-voice .sub {
  position: absolute;
  top: 222px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #a8a8a8;
}

.s-voice .card {
  top: 254px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.play svg {
  width: 16px;
  height: 16px;
}

.wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 30px;
}

.wave i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 2px;
  background: #fff;
  opacity: 0.35;
}

.wave i.p {
  opacity: 1;
}

.wave i:nth-child(1) { --h: 30%; }
.wave i:nth-child(2) { --h: 55%; }
.wave i:nth-child(3) { --h: 80%; }
.wave i:nth-child(4) { --h: 45%; }
.wave i:nth-child(5) { --h: 95%; }
.wave i:nth-child(6) { --h: 60%; }
.wave i:nth-child(7) { --h: 35%; }
.wave i:nth-child(8) { --h: 75%; }
.wave i:nth-child(9) { --h: 100%; }
.wave i:nth-child(10) { --h: 50%; }
.wave i:nth-child(11) { --h: 30%; }
.wave i:nth-child(12) { --h: 65%; }
.wave i:nth-child(13) { --h: 85%; }
.wave i:nth-child(14) { --h: 40%; }
.wave i:nth-child(15) { --h: 70%; }
.wave i:nth-child(16) { --h: 30%; }
.wave i:nth-child(17) { --h: 55%; }
.wave i:nth-child(18) { --h: 90%; }
.wave i:nth-child(19) { --h: 45%; }
.wave i:nth-child(20) { --h: 25%; }

.s-voice.is-on .wave i {
  animation: bar 0.9s ease-in-out infinite alternate;
}

.s-voice.is-on .wave i:nth-child(3n) {
  animation-delay: -0.3s;
}

.s-voice.is-on .wave i:nth-child(4n + 1) {
  animation-delay: -0.6s;
}

@keyframes bar {
  to {
    height: calc(var(--h, 40%) * 0.45);
  }
}

.s-voice .card small {
  font-size: 12px;
  color: #a8a8a8;
  font-variant-numeric: tabular-nums;
}

.chips {
  position: absolute;
  top: 342px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1e1e1e;
  font-size: 12.5px;
  font-weight: 600;
}

.chips svg {
  width: 14px;
  height: 14px;
}

.s-voice .pill-btn {
  bottom: 74px;
}

.s-voice .tiny {
  bottom: 30px;
}

/* Under the phone: what each scene shows, and the step dots (#76: glowing dots, no progress bar) */

.story {
  position: relative;
  margin-top: 26px;
  text-align: center;
  min-height: 56px;
}

.caption {
  margin: 0 auto;
  max-width: 30ch;
  min-height: 2.7em;
  display: grid;
  align-items: center;
  font: 700 17px/1.35 var(--display);
  letter-spacing: -0.01em;
  transition: opacity 0.3s;
}

.caption.fade {
  opacity: 0;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.steps button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.steps button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.steps button[aria-current="true"]::after {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.15);
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding: 48px 0 88px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .hero-copy {
    text-align: left;
  }

  h1,
  .lede {
    margin-left: 0;
  }

  .stores {
    justify-content: flex-start;
  }
}

/* Coming soon (#351): our own buttons until launch; tapping one says it's coming. */

dialog.soon {
  width: min(400px, calc(100% - 24px));
  margin: auto auto 12px;
  padding: 26px 22px 18px;
  border: 0;
  border-radius: 28px;
  background: var(--surface-1);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

@media (min-width: 600px) {
  dialog.soon {
    margin: auto;
  }
}

dialog.soon::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

dialog.soon[open] {
  animation: sheet 0.42s var(--ease);
}

dialog.soon[open]::backdrop {
  animation: fade 0.3s ease;
}

@keyframes sheet {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

dialog.soon img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  display: block;
  margin: 0 auto 14px;
  animation: wiggle 1.1s 0.25s var(--ease);
}

@keyframes wiggle {
  20% {
    transform: rotate(-9deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-5deg);
  }
  80% {
    transform: rotate(3deg);
  }
}

dialog.soon:focus {
  outline: none;
}

dialog.soon h2 {
  margin: 0;
  font: 800 22px/1.2 var(--display);
  letter-spacing: -0.02em;
}

dialog.soon p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  font: 600 16px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

dialog.soon .btn {
  width: 100%;
  margin-top: 22px;
}

/* Footer */

.foot {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  font-size: 14px;
  color: var(--ink-2);
}

.foot .wrap {
  display: grid;
  gap: 22px;
}

.foot .logo {
  font-size: 18px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.foot nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
}

.foot nav a:hover,
.foot nav a[aria-current="page"] {
  color: var(--ink);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.theme {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 0;
  margin: 0;
}

.theme legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.theme label {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.theme input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.theme label:has(input:checked) {
  background: var(--primary);
  color: var(--on-primary);
}

.theme label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .foot .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .foot nav {
    justify-content: flex-end;
  }

  .foot-row {
    grid-column: 1 / -1;
  }
}

/* Text pages: privacy, terms, support, delete account (#352: dates, the short version, contents, full text). */

.doc {
  padding: 24px 0 64px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(34px, 7vw, 48px);
  max-width: none;
  margin: 0;
}

.dates {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

.short {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--surface-1);
}

.short h2 {
  margin: 0 0 10px;
  font: 800 13px/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.short ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.short li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}

.short li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(244, 162, 97, 0.6);
}

.toc {
  margin: 28px 0 0;
}

.toc h2 {
  font: 800 13px/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 240px;
  column-gap: 32px;
  color: var(--ink-3);
}

.toc li {
  padding: 3px 0;
  break-inside: avoid;
}

.toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.prose {
  margin-top: 12px;
}

.prose h2 {
  font: 800 24px/1.25 var(--display);
  letter-spacing: -0.02em;
  margin: 44px 0 10px;
  scroll-margin-top: 20px;
}

.prose h3 {
  font: 700 17px/1.35 var(--display);
  margin: 26px 0 6px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.table {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 18px;
  background: var(--surface-1);
}

.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.table td {
  color: var(--ink-2);
}

.table tr:last-child td {
  border-bottom: 0;
}

.box {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface-1);
}

.box p {
  margin: 0;
}

.box p + p {
  margin-top: 8px;
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}

.steps-list li {
  counter-increment: s;
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 18px;
  background: var(--surface-1);
  margin: 0 !important;
}

.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font: 800 14px/1 var(--display);
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.faq details {
  border-radius: 18px;
  background: var(--surface-1);
  padding: 2px 18px;
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 28px 14px 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}

.faq details p {
  margin: 0 0 14px;
}

/* Invite links (#357) */

.invite {
  text-align: center;
  padding: 40px 0 72px;
}

.invite .icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 22px;
  display: block;
}

.invite h1 {
  font-size: clamp(32px, 7vw, 44px);
  max-width: 16ch;
}

.code {
  margin: 26px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 24px;
  border-radius: 22px;
  background: var(--surface-1);
}

.code b {
  font: 800 34px/1 var(--display);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.code .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.invite .stores {
  justify-content: center;
}

/* 404 */

.lost {
  text-align: center;
  padding: 72px 0 96px;
}

.lost .time {
  font: 700 clamp(84px, 22vw, 140px) / 1 var(--display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.lost .btn {
  margin-top: 28px;
}

.lost .horizon {
  width: min(320px, 70%);
  margin: 16px auto 26px;
  height: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.paused *,
.paused *::before,
.paused::before {
  animation-play-state: paused !important;
}

/* The squatting figure: the legs are a two-bone chain (60 + 60 px), so the ankles stay on the floor while the
   hips drop 45 px; the arms come up in front of the chest, as in R2h. */

.s-squat svg g {
  transform-box: view-box;
}

.thigh-l { transform-origin: 88px 128px; }
.shin-l { transform-origin: 88px 188px; }
.thigh-r { transform-origin: 122px 128px; }
.shin-r { transform-origin: 122px 188px; }
.arm-l { transform-origin: 75px 58px; }
.fore-l { transform-origin: 75px 103px; }
.arm-r { transform-origin: 135px 58px; }
.fore-r { transform-origin: 135px 103px; }

.go .fig-body { animation: sq-body 1.3s ease-in-out infinite; }
.go .thigh-l { animation: sq-tl 1.3s ease-in-out infinite; }
.go .shin-l { animation: sq-sl 1.3s ease-in-out infinite; }
.go .thigh-r { animation: sq-tr 1.3s ease-in-out infinite; }
.go .shin-r { animation: sq-sr 1.3s ease-in-out infinite; }
.go .arm-l { animation: sq-al 1.3s ease-in-out infinite; }
.go .fore-l { animation: sq-fl 1.3s ease-in-out infinite; }
.go .arm-r { animation: sq-ar 1.3s ease-in-out infinite; }
.go .fore-r { animation: sq-fr 1.3s ease-in-out infinite; }

@keyframes sq-body { 45%, 58% { transform: translateY(45px); } }
@keyframes sq-tl { 45%, 58% { transform: rotate(51.3deg); } }
@keyframes sq-sl { 45%, 58% { transform: rotate(-102.6deg); } }
@keyframes sq-tr { 45%, 58% { transform: rotate(-51.3deg); } }
@keyframes sq-sr { 45%, 58% { transform: rotate(102.6deg); } }
@keyframes sq-al { 45%, 58% { transform: rotate(40deg); } }
@keyframes sq-fl { 45%, 58% { transform: rotate(-110deg); } }
@keyframes sq-ar { 45%, 58% { transform: rotate(-40deg); } }
@keyframes sq-fr { 45%, 58% { transform: rotate(110deg); } }
