/* Hoglt landing.
   One screen, one thing. Every section fills the screen and centres its one idea:
   the promise (hero), one school day (a sticky timetable beside full-screen hours on wide
   screens; a single tabbed card on phones), three steps, the rule sentence, website packs,
   schools, iPhone/Android, what we don't see, PLUS, questions, the hedgehog's curl-up, and
   getting the app. Information lives in the visuals; copy stays to a heading and a line. */
:root {
  --field: #4BB462;   /* brand green (logo, Android PrimaryColor, iOS theme) */
  --ink: #0C2413;     /* text on green, 6.3:1 */
  --ink-2: #163D22;   /* secondary text on green, 4.6:1 */
  --night: #143D22;   /* bedtime */
  --forest: #0A1F10;  /* block screen, from the splash */
  --fur: #F3E6CC;     /* sampled from the hedgehog */
  --mint: #A2E8AC;    /* Android light green, small text on night */
  --mist: #EDF6EE;
  --white: #FFFFFF;
  --coin: #F0BC39;    /* Android coin colour, used only for the coin */
  --line: rgba(12, 36, 19, .14);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, sans-serif;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --screen: 100vh;
  --bar: 0px;
  color-scheme: light;
}
@supports (height: 100svh) { :root { --screen: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--field); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, input, [role="slider"] { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- screens: each section fills the screen and centres one thing ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.screen {
  position: relative;
  min-height: var(--screen);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(64px, 10vh, 120px);
}
.col { display: flex; flex-direction: column; align-items: center; text-align: center; }
h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.015em; max-width: 16ch; margin-bottom: 26px; }
.masc { width: clamp(110px, 15vh, 170px); margin-bottom: 14px; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid transparent; border-radius: 999px;
  padding: 15px 26px;
  font: 600 17px/1 var(--display);
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--fur); }
@media (hover: hover) { .btn-ink:hover { background: #051309; } }
.btn-ghost { border-color: rgba(12, 36, 19, .32); color: var(--ink-2); cursor: default; }
a.btn:active { transform: scale(.97); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px;
  background: rgba(12, 36, 19, .09);
  font: 700 15px/1.25 var(--body);
  text-decoration: none;
}
.chip .i { width: 18px; height: 18px; }
.chip-tag { background: var(--ink); color: var(--fur); font-size: 13px; padding: 7px 12px; }
@media (hover: hover) { a.chip-link:hover { background: rgba(12, 36, 19, .16); } }

/* ---------- header (sits on the hero) ---------- */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.bar {
  max-width: 1240px; margin: 0 auto;
  padding: 20px var(--gr) 8px var(--gl);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: block; text-decoration: none; }
.logo img { width: 128px; height: auto; }
.bar nav { display: flex; align-items: center; gap: 26px; }
.bar nav a:not(.btn) { font-weight: 700; font-size: 16px; text-decoration: none; }
@media (hover: hover) { .bar nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; } }
@media (max-width: 860px) { .bar nav a:not(.btn) { display: none; } }

/* ---------- hero: one promise, centred ---------- */
.hero { background: var(--field); padding-top: 104px; padding-bottom: 104px; }
.hero-masc { width: clamp(120px, 20vh, 210px); margin-bottom: 10px; }
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.02em; max-width: 13ch; }
.lead { margin-top: 24px; max-width: 36ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.hero .stores { margin-top: 32px; }
.cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 700 14px/1 var(--body); color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.cue .i { width: 22px; height: 22px; }
.narrow { display: none; }

/* ---------- the day ---------- */
.day { position: relative; isolation: isolate; overflow: clip; background: var(--field); }
.day-grid {
  max-width: 1240px; margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.panel { position: relative; padding-block: 48px; }
.panel h2 { margin-bottom: 0; max-width: 15ch; }
.panel .chips { justify-content: flex-start; }

.when {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
  font: 700 16px/1 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.when time { padding: 7px 12px; border-radius: 99px; background: var(--ink); color: var(--fur); font: 600 15px/1 var(--display); }
.pm { width: 120px; height: 120px; margin: 0 0 4px -10px; }

/* vignettes: small pieces of the real app */
.vig { margin-top: 28px; width: 100%; max-width: 440px; }
.v-card, .v-ledger, .v-task { background: var(--white); border-radius: 24px; padding: 18px; }
.vt-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.vt-split { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); grid-template-columns: 44px minmax(0, 1fr); }
.vt-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--field); color: var(--ink); }
.vt-icon .i { width: 22px; height: 22px; }
.vt-txt b { display: block; font: 600 20px/1.2 var(--display); }
.vt-txt em { display: block; font-style: normal; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.switch { width: 50px; height: 30px; border-radius: 99px; background: rgba(12, 36, 19, .18); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(12, 36, 19, .25); }
.switch.is-on { background: var(--field); }
.switch.is-on::after { left: 23px; }
.days { display: flex; gap: 6px; margin-top: 16px; }
.days span {
  flex: 1; min-width: 0; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--mist); color: var(--ink-2);
  font: 600 14px/1 var(--display);
}
.days span.on { background: var(--ink); color: var(--fur); }
.zone {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 4px, var(--field) 5px 9px, rgba(75, 180, 98, .35) 10px 15px, rgba(75, 180, 98, .15) 16px 22px);
}

.v-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 18px; max-width: 480px; }
.lg-app { font: 600 18px/1.15 var(--display); margin-bottom: 10px; }
.lg-app small { display: block; margin-top: 2px; font: 700 12.5px/1.2 var(--body); color: var(--ink-2); }
.lg ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.lg li { display: flex; align-items: center; gap: 7px; font-size: 14.5px; line-height: 1.2; font-weight: 600; }
.lg li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background-position: center; background-size: 12px; background-repeat: no-repeat; }
.lg li.yes::before { background-color: var(--field); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230C2413' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lg li.no { color: rgba(22, 61, 34, .62); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.lg li.no::before { background-color: var(--mist); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23163D22' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }

.v-task { padding: 16px 18px 14px; }
.vk-from { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.vk-item {
  width: 100%; margin-top: 10px; padding: 10px 0;
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 30px; align-items: center; gap: 12px;
  background: none; border: 0; text-align: left; cursor: pointer;
  font: 600 20px/1.25 var(--display);
}
.box { width: 26px; height: 26px; border-radius: 8px; border: 2.5px solid var(--ink); transition: background-color .2s, border-color .2s; }
.coin { width: 30px; height: 30px; border-radius: 50%; background: var(--coin); box-shadow: inset 0 0 0 3px rgba(12, 36, 19, .18), inset 0 0 0 7px var(--coin), inset 0 0 0 8.5px rgba(12, 36, 19, .2); opacity: .35; transition: opacity .2s; }
.vk-item[aria-pressed="true"] .box { background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230C2413' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--field); }
.vk-item[aria-pressed="true"] .vk-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-2); }
.vk-item[aria-pressed="true"] .coin { opacity: 1; animation: coin .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes coin { 0% { transform: translateY(0) scale(.6); } 45% { transform: translateY(-14px) scale(1.25); } 100% { transform: none; } }
.vk-hint { font-size: 13.5px; color: var(--ink-2); padding-top: 8px; border-top: 1px solid var(--line); }

.v-shield {
  position: relative;
  max-width: 330px; padding: 28px 22px 20px; border-radius: 32px;
  background: var(--forest); color: var(--fur); text-align: center;
}
.v-shield.is-dropped { animation: drop .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes drop { 0% { transform: translateY(-10px) scale(1.03); } 100% { transform: none; } }
.vs-again {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(243, 230, 204, .1); color: var(--fur); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .3s, background-color .2s;
}
@media (hover: hover) { .vs-again:hover { background: rgba(243, 230, 204, .18); } }
.vs-again .i { width: 18px; height: 18px; }
.v-shield[data-state="done"] .vs-again { opacity: 1; pointer-events: auto; }
.vs-emblem {
  position: relative;
  width: 124px; height: 124px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(75, 180, 98, .38), rgba(75, 180, 98, 0) 68%);
}
.vs-emblem > * { grid-area: 1 / 1; }
.vs-ring { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 4; transition: opacity .3s; }
.vs-ring circle { stroke: rgba(243, 230, 204, .14); }
.vs-ring .fg { stroke: var(--field); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.v-shield[data-state="done"] .vs-ring .fg { stroke-dashoffset: 0; }
.vs-min { display: grid; justify-items: center; font: 700 13px/1 var(--body); color: rgba(243, 230, 204, .7); transition: opacity .25s; }
.vs-min b { font: 600 36px/1 var(--display); color: var(--fur); font-variant-numeric: tabular-nums; }
.vs-emblem img { width: 104px; height: 104px; transition: opacity .3s, transform .55s cubic-bezier(.3, 1.5, .5, 1); }
.v-shield:not([data-state="done"]) .vs-emblem img { opacity: 0; transform: scale(.5); }
.v-shield[data-state="done"] .vs-min { opacity: 0; }
.vs-faces { display: grid; }
.vs-faces > div { grid-area: 1 / 1; transition: opacity .3s, transform .3s, visibility 0s; }
.v-shield[data-state="done"] .vs-before, .v-shield:not([data-state="done"]) .vs-after { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.vs-title { font: 600 24px/1.15 var(--display); }
.vs-sub { margin-top: 6px; font-size: 15.5px; color: rgba(243, 230, 204, .74); }
.vs-ask, .vs-run {
  width: 100%; margin-top: 20px; padding: 15px; border: 0; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--white); color: var(--ink); cursor: pointer;
  font: 600 18px/1 var(--display);
  transition: transform .15s, opacity .2s;
}
.vs-run { background: var(--field); }
.vs-run .i { width: 20px; height: 20px; }
.v-shield[data-state="running"] .vs-run { opacity: .55; pointer-events: none; }
.vs-ask:active, .vs-run:active { transform: scale(.98); }
.vs-ask.is-sent { cursor: default; }
.vs-pin { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: rgba(243, 230, 204, .66); }
.vs-pin .i { width: 15px; height: 15px; }
.v-shield :focus-visible { outline-color: var(--fur); }

.v-bed { background: rgba(243, 230, 204, .08); border-radius: 24px; padding: 18px; color: var(--fur); }
.v-bed .vt-icon { background: var(--fur); color: var(--ink); }
.v-bed .vt-txt em { color: rgba(243, 230, 204, .7); }
.strip { position: relative; height: 14px; margin-top: 18px; border-radius: 7px; background: rgba(243, 230, 204, .12); }
.strip i { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--field); }
.strip-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: rgba(243, 230, 204, .6); font-variant-numeric: tabular-nums; }

.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.apps span { position: relative; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: var(--mist); color: var(--ink); }
.apps .i { width: 28px; height: 28px; }
.js .panel-wake.is-shown .apps span { animation: wake .5s ease both; }
.js .panel-wake.is-shown .apps span::after {
  content: ""; position: absolute; right: -5px; top: -5px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3E6CC' stroke-width='2.6' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 13px no-repeat;
  animation: unlock .5s ease both;
}
.apps span:nth-child(1), .apps span:nth-child(1)::after { animation-delay: .3s !important; }
.apps span:nth-child(2), .apps span:nth-child(2)::after { animation-delay: .45s !important; }
.apps span:nth-child(3), .apps span:nth-child(3)::after { animation-delay: .6s !important; }
.apps span:nth-child(4), .apps span:nth-child(4)::after { animation-delay: .75s !important; }
@keyframes wake { from { opacity: .4; filter: grayscale(1); } to { opacity: 1; filter: none; } }
@keyframes unlock { 0%, 35% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px) scale(.5); } }

/* Bedtime: a night sky. It sits behind the whole day and fades in as 22:00 arrives: on wide
   screens with the scroll (--n, 0 to 1), on phones when 22:00 is picked. */
.sky {
  position: sticky; top: 0; z-index: -1;
  height: var(--screen); margin-bottom: calc(-1 * var(--screen));
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(75, 180, 98, .22), rgba(75, 180, 98, 0) 60%),
    linear-gradient(to bottom, #040D07 0%, #0A1F10 55%, var(--night) 100%);
  opacity: var(--n, 0);
}
.star {
  position: absolute; border-radius: 50%; background: var(--fur);
  opacity: var(--o, .8);
  animation: twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes twinkle { to { opacity: .12; } }
.moon {
  position: absolute; top: 12%; right: 9%;
  width: 66px; height: 66px; border-radius: 50%;
  box-shadow: inset -15px 7px 0 0 var(--fur), 0 0 60px 10px rgba(243, 230, 204, .08);
  transform: translateY(calc((1 - var(--n, 1)) * 60px)) rotate(-18deg);
}
.panel-night { color: var(--fur); }
.sleeper { display: none; }
.panel-night .when { color: rgba(243, 230, 204, .82); }
.panel-night .when time { background: var(--fur); color: var(--ink); }
.panel-night :focus-visible { outline-color: var(--fur); }

/* timetable */
.table {
  --t-fg: var(--ink); --t-dim: var(--ink-2); --t-line: var(--line);
  --t-on-bg: var(--white); --t-on-fg: var(--ink); --t-on-dim: var(--ink-2);
  color: var(--t-fg);
}
.table-head { display: flex; align-items: center; gap: 18px; padding: 0 16px 14px; }
.table-day { font: 600 18px/1 var(--display); color: var(--t-dim); }
.dayline {
  flex: 1; display: flex; align-items: center; gap: 8px; color: var(--t-dim);
  padding-block: 12px; margin-block: -12px;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.table.is-dragging .dayline { cursor: grabbing; }
.dayline .i { width: 18px; height: 18px; }
.track { position: relative; flex: 1; height: 5px; margin-inline: 4px; border-radius: 3px; background: var(--t-line); }
.track:focus-visible { outline-offset: 10px; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: 3px; background: var(--t-fg); transition: width .6s ease; }
/* the sun on the track: drag it through the day */
.knob {
  position: absolute; top: 50%; left: calc(var(--p) * 100%);
  width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--t-fg); box-shadow: 0 0 0 4px var(--t-ring, rgba(255, 255, 255, .6));
  transition: left .6s ease, transform .2s ease;
}
.knob::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid var(--t-fg); opacity: 0;
  animation: knob 2s ease-out 1.4s 3;
}
@keyframes knob { 0% { transform: scale(.55); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.table.is-touched .knob::after { animation: none; }
.table.is-dragging .track i, .table.is-dragging .knob { transition: none; }
.table.is-dragging .knob { transform: scale(1.25); }
.table ol { list-style: none; padding: 0; font-variant-numeric: tabular-nums; }
.table li {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(var(--t-line), var(--t-line)) top / 100% 1px no-repeat;
  transition: background-color .35s ease;
}
.table li:first-child { background-image: none; }
.table li a {
  display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: baseline;
  padding: 15px 16px;
  text-decoration: none; color: inherit;
  transition: padding .35s ease;
}
.table time { font: 500 16px/1.2 var(--display); color: var(--t-dim); }
.table b { display: block; font: 600 22px/1.15 var(--display); }
.table em { display: block; margin-top: 3px; font-style: normal; font-size: 14.5px; line-height: 1.4; color: var(--t-dim); }
@media (hover: hover) { .table li a:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.table li.on { background: var(--t-on-bg); color: var(--t-on-fg); }
.table li.on + li { background-image: none; }
.table li.on a { padding-block: 22px; padding-right: 118px; }
.table li.on time, .table li.on em { color: var(--t-on-dim); }
@media (hover: hover) { .table li.on a:hover b { text-decoration: none; } }
.table li img {
  position: absolute; right: 6px; bottom: 0;
  width: 112px; height: auto;
  opacity: 0; transform: translateY(16px) scale(.82); transform-origin: 50% 100%;
  pointer-events: none;
  transition: opacity .25s ease, transform .5s cubic-bezier(.3, 1.45, .5, 1);
}
.table li.on img { opacity: 1; transform: none; }
.day.is-night .table {
  --t-fg: var(--fur); --t-dim: rgba(243, 230, 204, .68); --t-line: rgba(243, 230, 204, .16);
  --t-on-bg: var(--fur); --t-on-fg: var(--ink); --t-on-dim: var(--ink-2);
  --t-ring: rgba(243, 230, 204, .22);
  --t-chip: var(--fur); --t-chip-fg: var(--ink);
}
.day.is-night .table :focus-visible { outline-color: var(--fur); }
.table, .table time, .table b, .table em, .track, .track i, .knob, .table-day, .dayline {
  transition-property: color, background-color, box-shadow, width, left, transform;
  transition-duration: .6s, .6s, .6s, .15s, .15s, .2s;
  transition-timing-function: ease;
}
.table.is-dragging .track i, .table.is-dragging .knob { transition-property: color, background-color, box-shadow; }

/* Wide screens: every hour is a full screen on the left; the timetable stays centred on the
   right and follows the scroll. */
@media (min-width: 960px) {
  .day-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: clamp(40px, 6vw, 96px);
  }
  .table-col { grid-column: 2; grid-row: 1 / 7; }
  .table { position: sticky; top: 0; height: var(--screen); display: flex; flex-direction: column; justify-content: center; }
  .panel { grid-column: 1; min-height: var(--screen); display: flex; flex-direction: column; justify-content: center; padding-block: 72px; }
  .pm { display: none; }
  .table-head { padding-inline: 22px; }
  .table li a { grid-template-columns: 78px minmax(0, 1fr); padding: 18px 22px; }
  .table time { font-size: 17px; }
  .table b { font-size: 26px; }
  .table em { font-size: 15px; }
  .table li.on a { padding-block: 28px; padding-right: 156px; }
  .table li img { width: 150px; right: 10px; }
}
@media (max-width: 420px) {
  .v-ledger { gap: 10px; padding: 16px 14px; }
  .lg-app { font-size: 16px; }
  .lg li { font-size: 13px; gap: 5px; }
  .lg li::before { width: 15px; height: 15px; background-size: 10px; }
}

/* ---------- three steps ---------- */
.start { background: var(--white); }
.steps { list-style: none; padding: 0; display: grid; gap: 40px; width: 100%; max-width: 1080px; margin-top: 18px; }
.steps h3 { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 18px; font-size: 22px; line-height: 1.25; text-align: left; }
.steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--fur); font-size: 17px; transform: translateY(-2px); }
.steps .sv { text-align: left; }
.sv { height: 168px; border-radius: 24px; background: var(--mist); display: grid; place-items: center; padding: 18px; overflow: hidden; -webkit-user-select: none; user-select: none; }
.sheet { width: min(220px, 100%); padding: 16px; border-radius: 18px; background: var(--white); display: grid; justify-items: center; gap: 8px; text-align: center; }
.sheet .i { width: 34px; height: 34px; color: var(--field); stroke-width: 1.8; }
.sheet b { font: 600 16px/1.2 var(--display); }
.sheet span { width: 100%; padding: 8px; border-radius: 10px; background: var(--ink); color: var(--fur); font: 600 14px/1 var(--display); }
.sv-guess { place-items: stretch; align-content: center; gap: 12px; }
.g-label, .g-real { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.g-label output { font: 600 22px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.g-real b { flex: none; white-space: nowrap; font: 600 22px/1 var(--display); color: var(--ink); filter: blur(6px); user-select: none; }
.g-range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
.g-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(var(--field), var(--field)) 0 0 / calc(12px + var(--g) * (100% - 24px)) 100% no-repeat, rgba(12, 36, 19, .12);
}
.g-range::-moz-range-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(var(--field), var(--field)) 0 0 / calc(12px + var(--g) * (100% - 24px)) 100% no-repeat, rgba(12, 36, 19, .12);
}
.g-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(12, 36, 19, .35); }
.g-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(12, 36, 19, .35); }
.g-range:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.g-real.is-teased b { animation: tease .7s ease; }
@keyframes tease { 40% { filter: blur(3px); transform: scale(1.08); } }
.sv-code { grid-auto-flow: column; gap: 8px; }
.sv-code span { width: 36px; height: 48px; border-radius: 10px; background: var(--white); display: grid; place-items: center; font: 600 24px/1 var(--display); box-shadow: inset 0 -3px 0 var(--field); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* ---------- rules sentence ---------- */
.rules { background: var(--mist); }
.builder { width: 100%; max-width: 800px; background: var(--white); border-radius: 28px; padding: clamp(22px, 3.4vw, 44px); }
.sentence { font: 600 clamp(28px, 3.4vw, 46px)/1.35 var(--display); letter-spacing: -.01em; }
.tok {
  border: 0; border-radius: 14px; padding: 0 .28em; margin: 0 .04em;
  background: var(--field); color: var(--ink); cursor: pointer;
  font: inherit; letter-spacing: inherit;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-color .2s, transform .15s;
}
@media (hover: hover) { .tok:hover { background: #5DC473; } }
.tok:active { transform: scale(.97); }
.tok-cond { border-radius: 14px; padding: 0 .28em; background: var(--mist); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.conds { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.conds button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 99px; border: 2px solid var(--line);
  background: var(--white); cursor: pointer;
  font: 700 16px/1 var(--body);
  transition: background-color .2s, color .2s, border-color .2s;
}
.conds button small { font-size: 12px; font-weight: 700; opacity: .7; }
.conds button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--fur); }
.hint { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.quiet { margin-top: 30px; }
.chip-label { flex-basis: 100%; margin-bottom: 2px; font: 700 14px/1.2 var(--body); color: var(--ink-2); }

/* ---------- websites ---------- */
.web { background: var(--white); }
.web-packs, .web-try { width: 100%; max-width: 820px; }
.packs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pack {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 18px; border: 2px solid transparent;
  background: var(--mist); color: var(--ink-2); cursor: pointer;
  font: 600 18px/1.1 var(--display);
  transition: background-color .2s, color .2s;
}
.pack .i { width: 18px; height: 18px; opacity: .45; }
.pack[aria-pressed="true"] { background: var(--ink); color: var(--fur); }
.pack[aria-pressed="true"] .i { opacity: 1; color: var(--field); }
.pack-any { background: none; border: 2px dashed rgba(12, 36, 19, .3); cursor: default; }
.pack-any .i { opacity: 1; }
.caption { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; }
.try-label { margin-right: 4px; font: 700 15px/1 var(--body); color: var(--ink-2); }
.try button {
  padding: 9px 14px; border-radius: 99px; border: 2px solid var(--line);
  background: var(--white); cursor: pointer;
  font: 700 15px/1 var(--body);
  transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .try button:hover { border-color: rgba(12, 36, 19, .35); } }
.try button[aria-pressed="true"] { border-color: var(--ink); }
.result { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
.result-masc { width: 92px; height: 92px; flex: none; }
.result.is-pop .result-masc, .result.is-pop .toast { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.86); } 100% { transform: none; } }
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  background: var(--forest); color: var(--fur);
  font: 600 16px/1.2 var(--display);
}
.toast .i { width: 18px; height: 18px; color: var(--field); }
.result.is-open .toast { background: var(--mist); color: var(--ink); }
.result.is-open .toast .i { color: var(--ink); }

/* ---------- schools ---------- */
.schools { background: var(--field); }
.schools-in > img { width: clamp(120px, 18vh, 190px); margin-bottom: 10px; }
.schools-in > div { display: flex; flex-direction: column; align-items: center; }
.schools h2 { margin-bottom: 0; }
.schools .chips { margin-top: 24px; }
.schools .chip { background: rgba(12, 36, 19, .12); }

/* ---------- iPhone / Android ---------- */
.where { background: var(--white); }
.matrix-wrap { width: 100%; max-width: 760px; overflow-x: auto; text-align: left; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { padding: 13px 0; border-bottom: 1px solid var(--line); }
.matrix thead th { font: 600 18px/1 var(--display); color: var(--ink-2); text-align: center; padding-top: 0; }
.matrix tbody th { text-align: left; font: 600 19px/1.3 var(--display); padding-right: 16px; }
.matrix td { width: 96px; text-align: center; font-size: 0; }
.matrix td::before { content: ""; display: inline-block; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; }
.matrix td.y::before { background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230C2413' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.matrix td.n::before { width: 14px; height: 3px; border-radius: 2px; background: rgba(12, 36, 19, .25); }
@media (max-width: 520px) { .matrix td { width: 64px; } .matrix tbody th { font-size: 16.5px; } .matrix thead th { font-size: 15px; } }

/* ---------- privacy ---------- */
.private { background: var(--mist); }
.private h2 { max-width: none; }
.unseen { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.unseen li {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-radius: 99px; background: var(--white);
  font: 600 clamp(19px, 1.8vw, 23px)/1.2 var(--display);
}
.unseen .i { width: 24px; height: 24px; color: var(--ink-2); }

/* ---------- PLUS ---------- */
.plus { background: var(--fur); }
.plus-in > img { width: clamp(130px, 20vh, 220px); margin-bottom: 10px; }
.plus-in > div { display: flex; flex-direction: column; align-items: center; }
.plus h2 { max-width: 14ch; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: inline-grid; gap: 12px; text-align: left; }
.ticks li { display: flex; align-items: center; gap: 14px; font: 600 clamp(21px, 2vw, 25px)/1.25 var(--display); }
.ticks li small { font: 700 13px/1 var(--body); padding: 6px 10px; border-radius: 99px; background: var(--ink); color: var(--fur); }
.ticks li::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230C2413' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plus p { color: var(--ink-2); max-width: 44ch; }

/* ---------- questions ---------- */
.faq { background: var(--white); }
.qa { width: 100%; max-width: 760px; text-align: left; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font: 600 clamp(20px, 1.9vw, 24px)/1.3 var(--display);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 16px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 16px no-repeat;
  transition: transform .25s ease;
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding-bottom: 24px; max-width: 56ch; color: var(--ink-2); }

/* ---------- the curl-up ---------- */
.curl { background: var(--ink); color: var(--fur); }
.curl :focus-visible { outline-color: var(--fur); }
.curl h2 { max-width: 17ch; margin-bottom: 0; }
.curl h2 span { color: var(--field); }
.curl .chip { background: rgba(243, 230, 204, .1); }
.curl .chip .i { color: var(--field); }
.curl .chips { margin-top: 30px; }
.chain { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 18px; font: 500 20px/1.3 var(--display); color: var(--mint); }
.chain i { font-style: normal; color: var(--field); }
.curl-stage { display: grid; justify-items: center; gap: 22px; margin-top: 30px; }
.curl-pics { display: grid; width: clamp(180px, 32vh, 320px); }
.curl-pics img { grid-area: 1 / 1; width: 100%; }
.curl-ball { filter: drop-shadow(0 28px 56px rgba(75, 180, 98, .22)); }
.curl-calm, .curl-try { display: none; }
.js .curl-calm { display: block; transition: opacity .2s, transform .4s ease; }
.js .curl-ball { opacity: 0; transform: scale(.45) rotate(-60deg); transition: opacity .2s, transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.js .is-curled .curl-calm { opacity: 0; transform: scale(.7); }
.js .is-curled .curl-ball { opacity: 1; transform: none; }
.is-curled .curl-pics { animation: shake .5s ease .3s; }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.js .curl-try {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 99px; border: 2px solid rgba(243, 230, 204, .3);
  background: transparent; color: var(--fur); cursor: pointer;
  font: 600 17px/1.15 var(--display);
  transition: background-color .2s, border-color .2s, color .2s;
}
@media (hover: hover) { .curl-try:hover { border-color: rgba(243, 230, 204, .55); } }
.curl-try .i { color: var(--field); }
.is-curled .curl-try { background: var(--field); border-color: var(--field); color: var(--ink); cursor: default; }
.is-curled .curl-try .i { color: var(--ink); }

/* ---------- get the app ---------- */
.get { background: var(--field); }
.get-cols { display: grid; gap: 30px; }
.get h3 { font-size: 20px; margin-bottom: 14px; }
.get .fine { margin-top: 28px; }
@media (min-width: 760px) { .get-cols { grid-template-columns: auto auto; column-gap: 72px; } }

/* ---------- footer ---------- */
.site-foot { background: #071509; color: rgba(243, 230, 204, .72); padding-block: 48px 64px; font-size: 15.5px; }
.site-foot :focus-visible { outline-color: var(--fur); }
.foot-in { display: grid; justify-items: center; gap: 14px; text-align: center; }
.foot-in .logo { margin-bottom: 6px; }
.foot-in .logo img { width: 170px; }
.foot-in ul { list-style: none; padding: 0; margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.foot-in a { color: var(--fur); text-underline-offset: 3px; }
.copy { opacity: .7; }

/* ---------- phones and small tablets ----------
   The day is one screen: the sun track over six hour chips, the chosen hour's card, and Next.
   Tap a chip, drag the sun, swipe the card or press Next. Without JS every card shows. */
@media (max-width: 959px) {
  :root { --bar: 62px; }
  html { -webkit-text-size-adjust: 100%; }
  .bar { padding-top: 14px; }
  .logo img { width: 108px; }
  h1 { font-size: clamp(38px, 10.6vw, 52px); max-width: 11ch; }
  h2 { font-size: clamp(30px, 8.4vw, 42px); margin-bottom: 20px; }
  .screen { padding-block: 64px; }
  .masc { width: 100px; }
  .hero { padding-top: 84px; padding-bottom: 84px; }
  .hero-masc { width: clamp(110px, 17vh, 160px); }
  .lead { margin-top: 16px; font-size: 18px; }
  .hero .stores { margin-top: 24px; flex-wrap: nowrap; }
  .hero .btn { padding: 13px 18px; font-size: 16px; }
  .wide { display: none; }
  .narrow { display: inline; }
  .fine { font-size: 14px; }

  /* The day: every hour is its own screen. A slim hour bar stays on top while you scroll,
     its highlight sliding along with the scroll; tap an hour to jump there. */
  .day-grid { max-width: 560px; }
  .table-col {
    position: sticky; top: 0; z-index: 2;
    margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr));
    padding: 10px var(--gr) 10px var(--gl);
    background: var(--field);
    background: color-mix(in srgb, #040D07 calc(var(--n, 0) * 100%), var(--field));
  }
  .table-head { display: none; }
  .table ol { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .table ol::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0;
    width: calc((100% - 30px) / 6); border-radius: 12px;
    background: var(--t-chip, var(--ink));
    transform: translateX(calc(var(--f, 0) * (100% + 6px)));
    transition: background-color .6s ease;
  }
  .table li, .table li.on { background: none; border-radius: 12px; }
  .table li a, .table li.on a { display: block; padding: 12px 0; text-align: center; }
  .table li a > span, .table li img { display: none; }
  .table time { font: 600 14px/1 var(--display); color: var(--t-dim); transition: color .2s ease; }
  .table li.on time { color: var(--t-chip-fg, var(--fur)); }

  .panel {
    min-height: calc(var(--screen) - var(--bar));
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 28px 0 44px; text-align: center;
    scroll-margin-top: var(--bar);
  }
  .panel .pm { width: 116px; height: 116px; margin: 0 0 8px; }
  .panel .when { justify-content: center; margin-bottom: 12px; }
  .panel h2 { font-size: 30px; }
  .panel .vig { margin-top: 18px; max-width: none; text-align: left; }
  .panel .v-shield { text-align: center; }
  .panel .chips { justify-content: center; margin-top: 14px; }
  #t19 .pm { display: none; } /* the block screen already shows the hedgehog */
  .moon { top: calc(var(--bar) + 18px); right: 22px; width: 40px; height: 40px; box-shadow: inset -9px 4px 0 0 var(--fur), 0 0 36px 6px rgba(243, 230, 204, .08); }

  /* 22:00: the sleeping hedgehog, breathing, is this hour's pose */
  .panel-night .pm { display: none; }
  .sleeper { display: block; order: -1; position: relative; width: 170px; margin-bottom: 4px; }
  .sleeper img { width: 100%; transform-origin: 50% 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: breathe 4.5s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(1.035); } }
  .zz { position: absolute; top: 6%; right: 2px; }
  .zz i {
    position: absolute; left: 0; bottom: 0;
    font: 600 16px/1 var(--display); font-style: normal; color: var(--fur);
    opacity: 0; animation: zz 3.6s ease-in infinite;
  }
  .zz i:nth-child(2) { font-size: 21px; animation-delay: 1.2s; }
  .zz i:nth-child(3) { font-size: 26px; animation-delay: 2.4s; }
  @keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .85; } 100% { opacity: 0; transform: translate(18px, -46px); } }
  .js .panel-night:not(.is-shown) .sleeper img, .js .panel-night:not(.is-shown) .zz i { animation: none; }
  .v-shield { padding: 22px 18px 16px; }
  .vs-emblem { width: 104px; height: 104px; margin-bottom: 10px; }
  .vs-emblem img { width: 88px; height: 88px; }
  .vs-ask, .vs-run { margin-top: 16px; padding: 14px; }

  .steps {
    grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin-top: 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    align-self: stretch; width: auto;
    margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr)); padding-inline: var(--gl) var(--gr);
    scroll-padding-inline: var(--gl); scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { scroll-snap-align: start; }
  .steps h3 { font-size: 19px; justify-content: flex-start; }
  .sv { height: 150px; }

  .builder { padding: 20px 18px; border-radius: 24px; }
  .sentence { font-size: 27px; }
  .conds { margin-top: 22px; gap: 8px; }
  .conds button { padding: 10px 14px; font-size: 15px; }

  .pack { padding: 11px 14px; font-size: 16px; border-radius: 14px; }
  .packs { gap: 8px; }
  .try { margin-top: 26px; }
  .result-masc { width: 76px; height: 76px; }

  .schools-in > img, .plus-in > img { width: 130px; }
  .unseen li { padding: 13px 18px; font-size: 18px; }
  .matrix th, .matrix td { padding: 11px 0; }
  .curl-pics { width: 200px; }
  .chain { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media (prefers-reduced-motion: reduce) { .star, .sleeper img { animation: none; } .zz { display: none; } }
