/* Dog Brain beta page. Colours, type and shape come from the app's design system
   (design/artifacts/design-system/tokens.json in the dogbrain repo): one dark teal
   world, amber means "you can tap this", outlines instead of shadows, nothing square. */

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow_semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow_extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
/* The watch face's date face (Barlow Bold, the app's own file), under its own name so nothing else on the page
   changes weight. Only clock.js uses it, to write the date on the watch face screenshot. */
@font-face {
  font-family: "Barlow Date";
  src: url("fonts/barlow_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Night colours are the app's Porch Light theme, its dark set (porchlightDark in design/themes/porchlight.json and Kit.kt), since
   Wuff 2026-11-20: "Make Porchlight the default for the website." tools/sync_theme.js writes the block below and names each
   variable's slot; where a slot is short of WCAG contrast in a site context the script steps it and says so. */
:root {
  /* theme:begin. Written by tools/sync_theme.js from design/themes/porchlight.json (Porch Light dark; theme-source.txt names the app commit).
     Never edit by hand: change the theme in the app, then run the script. */
  --bg:                #033c4d;   /* porchlightDark.bg */
  --bg-top:            #11206e;   /* porchlightDark.bgTop */
  --bg-bottom:         #104556;   /* porchlightDark.bgBottom */
  --card:              #004b61;   /* porchlightDark.card */
  --surface:           #015871;   /* porchlightDark.surface */
  --ink:               #002936;   /* porchlightDark.ink (outlines) */
  --ink-dark:          #061116;   /* porchlightDark.inkDark */
  --text:              #eef5f7;   /* porchlightDark.text */
  --muted-text:        #bad6e2;   /* porchlightDark.muted */
  --amber:             #feaa7a;   /* porchlightDark.amber (fills under a label: buttons, chips, the toggle) */
  --amber-line:        #feaa7a;   /* porchlightDark amberLine (derive.js) */
  --amber-text:        #ffb68d;   /* porchlightDark textLift amber */
  --amber-text-ground: #ffb68d;   /* porchlightDark textLift amber */
  --amber-tint:        #015871;   /* porchlightDark.amberTint */
  --longer:            #fbea7c;   /* porchlightDark.longer */
  --yellow:            #fbea7c;   /* porchlightDark.longer */
  --dim:               #186078;   /* porchlightDark dim (derive.js): the time-sense bars' track */
  --longer-bar:        #fbea7c;   /* porchlightDark.longer (the time-sense bar) */
  --track-off:         #5f98af;   /* porchlightDark trackOff #3e778d (derive.js), stepped to 3:1 on the page and the card */
  --green-text:        #9bd850;   /* porchlightDark textLift green */
  --coral-text:        #ffb2ac;   /* porchlightDark textLift coral */
  --blue-text:         #9bcaff;   /* porchlightDark textLift blue */
  --green:             #90cc43;   /* porchlightDark.green */
  --coral:             #f16763;   /* porchlightDark.coral */
  --blue:              #9bcaff;   /* porchlightDark textLift blue (a heading on the card, and a fill) */
  --lilac:             #b7a6e0;   /* porchlightDark.lilac */
  --tracks:            #114758;   /* porchlightDark tracks: the Wander pictures' tint (tools/wander_strips.js) */
  --price:             #e0bba8;   /* porchlightDark soft: the price band */
  --price-text:        #061116;   /* porchlightDark softText */
  --watch-ground:      #06232d;   /* Porch Light watch.dark.bg2 */
  --watch-track:       #0e4355;   /* Porch Light watch.dark.surface */
  /* theme:end */
  --radius-card: 26px;
  --radius-row: 22px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  /* The Wander background: the app's doggy tracks (Wander.kt), pictures a column wide stacked down the page, the first
     one turning every 2 hours (wander.js sets --wander). Two columns side by side on a wide screen, the second six
     pictures on, so neighbours never match; one on a phone. Still pictures; nothing animates. */
  --sq: 50vw;
  background:
    url("wander-night.webp") 0 calc(var(--wander, 0) * -1 * var(--sq)) / var(--sq) auto repeat-y,
    url("wander-night.webp") var(--sq) calc((var(--wander, 0) + 6) * -1 * var(--sq)) / var(--sq) auto repeat-y,
    linear-gradient(var(--bg-top), var(--bg) 45%, var(--bg-bottom)) fixed var(--bg);
  color: var(--text);
  font: 600 1.0625rem/1.5 "Barlow", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

main { padding: 2rem 0 3rem; display: grid; gap: 2.5rem; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 46.5rem; display: grid; gap: 1rem; }
.wrap--form { max-width: 64rem; display: grid; gap: 1rem; }

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* Lookout leans on the wordmark, paws on the letters. */
.lockup {
  display: grid;
  justify-items: center;
  padding-top: 0.5rem;
}
.lockup__pup {
  display: block;
  width: 13rem;
  height: auto;
  margin-bottom: -0.55rem;
  position: relative;
  z-index: 1;
}
.lockup__name {
  font-weight: 800;
  font-size: clamp(3rem, 14vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--amber);
}
/* The real wordmark (Barlow ExtraBold outlines, cream spots in the letters). Its canvas is
   one em tall and 4.26 em wide, so it sizes from the same font-size the text used. */
.lockup__word {
  display: block;
  width: 4.26em;
  height: auto;
}

/* The top sits on a calmer patch of ground, so the tracks do not run through the words. */
.top {
  margin-top: -2rem;
  padding: 2rem 0 0.5rem;
  --patch: radial-gradient(ellipse 80% 90% at 50% 45%, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 55%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1.75rem 0 1rem;
}
.hero__text { display: grid; gap: 1rem; }
h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 5.6vw, 3.5rem);
  line-height: 1.05;
}
.lede {
  max-width: 40rem;
  font-size: 1.1875rem;
  color: var(--text);
}
.lede + .lede { color: var(--muted-text); }
.hero__call {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.hero__call-title { font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.hero__call p:not(.hero__call-title) { color: var(--muted-text); }

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}
.card h2 {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}
.card p { color: var(--muted-text); }

.label {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-text);
}

/* The time-sense card: the one thing the page shows instead of tells. */
.sense { display: grid; gap: 0.625rem; }
.sense__task {
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--text) !important;
}
.sense__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.sense__name { color: var(--muted-text); white-space: nowrap; }
.sense__bar {
  height: 1.125rem;
  border-radius: 999px;
  background: var(--dim);
  overflow: hidden;
}
.sense__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transform-origin: left;
}
.sense__fill--guess { width: 50%; background: var(--muted-text); }
.sense__fill--took { width: 80%; background: var(--longer); animation-delay: 250ms; }
.sense__time { font-weight: 800; color: var(--text); white-space: nowrap; }
.sense__read { padding-top: 0.25rem; }
.tag {
  display: inline-block;
  margin-right: 0.375rem;
  padding: 0.0625rem 0.625rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9375rem;
}
.tag--longer { background: var(--longer); color: var(--ink-dark); }

@keyframes fill { from { transform: scaleX(0); } }

.sense__how { padding-top: 0.5rem; border-top: 2px solid var(--ink); margin-top: 0.375rem; }

h2 { font-weight: 800; font-size: 1.75rem; line-height: 1.15; }
h3 { margin: 0 0 0.375rem; font-weight: 800; font-size: 1.25rem; line-height: 1.2; }

/* Bands: full-width stretches that break the page up. The tracks show through. */
.band { text-align: center; }
.band--phone, .band--box {
  padding: 3rem 0;
  background: color-mix(in srgb, var(--ink) 62%, transparent);   /* tools/sync_theme.js BAND measures the words on it */
  border-block: 2px solid var(--ink);
}
.band--box { background: color-mix(in srgb, var(--bg-bottom) 55%, transparent); }
.title { font-size: clamp(2rem, 5vw, 2.75rem); display: grid; justify-items: center; gap: 0.625rem; }
.title::after { content: ""; width: 4.5rem; height: 0.5rem; border-radius: 999px; background: var(--amber-line); }
/* The words' green and coral: as fills they were 1.58:1 and 2.51:1 on the day ground, and coral 2.92:1 on the night bands. */
.title--green::after { background: var(--green-text); }
.title--coral::after { background: var(--coral-text); }
.band__lede { color: var(--muted-text); font-size: 1.1875rem; max-width: 46rem; margin: 0.75rem auto 0; }
.band__note { color: var(--muted-text); font-size: 0.9375rem; margin-top: 1rem; }

/* Screenshots: watch faces sit in a round bezel, phones in a soft frame. */
figure { margin: 0; display: grid; gap: 0.625rem; justify-items: center; align-content: start; }
figcaption { font-weight: 800; }
figcaption small { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted-text); }
.watches img, .phones img, .countdown { display: block; width: 100%; height: auto; }
.watches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  padding-top: 2rem;
}
.watches img, .countdown {
  border-radius: 50%;
  border: 6px solid var(--ink-dark);
  outline: 2px solid var(--track-off);
  background: #000;
}
/* The countdown is drawn here, not captured: the same ring the watch shows, running. */
.countdown__ground { fill: var(--watch-ground); }
.countdown__track { fill: none; stroke: var(--watch-track); stroke-width: 34; }
.countdown__ring {
  fill: none;
  stroke: var(--amber-line);
  stroke-width: 34;
  stroke-linecap: round;
  stroke-dasharray: 992.75;
  stroke-dashoffset: 397;
}
.countdown__time { fill: var(--text); font: 800 96px "Barlow", system-ui, sans-serif; }
.countdown__of { fill: var(--muted-text); font: 600 30px "Barlow", system-ui, sans-serif; }

.phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 58rem;
  margin-inline: auto;
  padding-top: 2rem;
}

.phones__label { margin-top: 2.25rem; font-weight: 800; font-size: 1.25rem; color: var(--green); }
.phones--second { padding-top: 1rem; }
/* A row of two: the same phone size as the rows of four, centred. */
.phones--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 28.25rem; padding-top: 1rem; }
.zoom figure { position: relative; cursor: zoom-in; }
.phones img {
  aspect-ratio: 720 / 1464;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border: 5px solid var(--ink-dark);
  outline: 2px solid var(--track-off);
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Point at a screen (or tap it) and it grows to a readable size, over its neighbours. */
.zoom figure:hover, .zoom figure:focus { z-index: 2; outline: 0; }
.zoom figure:hover > :is(img, svg), .zoom figure:focus > :is(img, svg) {
  transform: scale(1.75);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ink-dark) 55%, transparent);
}
.watches > figure > :is(img, svg) { transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.watches figure:first-child > :is(img, svg) { transform-origin: left center; }
.watches figure:last-child > :is(img, svg) { transform-origin: right center; }
.phones figure:first-child img { transform-origin: left center; }
.phones figure:last-child img { transform-origin: right center; }
.phones figure:nth-child(2) img, .phones figure:nth-child(3) img { transform-origin: center; }

/* What is in the box: three across, each with its own colour. */
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  text-align: left;
}
.tool {
  --accent: var(--amber);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: grid;
  gap: 0.25rem;
  align-content: start;
  justify-items: start;
}
.tool--yellow { --accent: var(--yellow); }
.tool--green { --accent: var(--green); }
.tool--coral { --accent: var(--coral); }
.tool--blue { --accent: var(--blue); }
.tool--lilac { --accent: var(--lilac); }
.tool__icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--ink-dark);
  background: var(--accent);
  color: var(--ink-dark);
}
.tool h3 { color: var(--text); font-size: 1.5rem; }   /* one ink for every tile title; the patch carries the colour (Wuff 2026-11-21: "Fix the colours of the tiles ... it looks messy") */
.tool p, .tool li { color: var(--muted-text); }
.tool--solid { background: var(--accent); border: 3px solid var(--ink-dark); }
.tool--solid .tool__icon { background: var(--ink-dark); color: var(--accent); }
/* Lookout-style hand-drawn icons (the app's own set): cream line art, so they sit on the dark ink. */
/* The icon circles, as the app draws them (Vivid.kt circle(), design/vivid.js): solid, at the feature colour's OKLCH hue,
   lightness 0.78 and up to 0.19 chroma, the same in Day and Night, so the glyph's ink line always reads on it. */
.tool--amber { --circle: #f8a20b; }
.tool--yellow { --circle: #cfb904; }
.tool--green { --circle: #8ece34; }
.tool--coral { --circle: #fe987b; }
.tool--blue { --circle: #69c1fe; }
.tool--lilac { --circle: #c1a5ff; }
/* Each icon sits on one of Lookout's torn patches, as the app's Toolbox tiles do (issue #56; Wuff 2026-11-19:
   "Patches on the Toolbox tiles": "Yes"). The app draws a 76 dp patch about a 52 dp box, so the patch is 76/52 of the
   old 4.25rem disc and hangs over it evenly; the negative margins keep the glyph and the text where the disc had them.
   The patch files are pre-filled with the --circle colours above (tools/sync_art.js). */
img.tool__icon {
  width: 6.2rem;
  height: 6.2rem;
  padding: 1.56rem;
  margin: -0.975rem 0 -0.225rem -0.975rem;
  border: 0;
  border-radius: 0;
  background: none center / contain no-repeat;
}
.tool--amber img.tool__icon { background-image: url(icons/patch-paw.svg); }
.tool--blue img.tool__icon { background-image: url(icons/patch-alarm.svg); }
.tool--green img.tool__icon { background-image: url(icons/patch-bell.svg); }
.tool--coral img.tool__icon { background-image: url(icons/patch-clipboard.svg); }
.tool--yellow img.tool__icon { background-image: url(icons/patch-hourglass.svg); }
.tool--lilac img.tool__icon { background-image: url(icons/patch-ruler.svg); }
.tool--solid h3, .tool--solid p { color: var(--ink-dark); }
.tool--buddy { justify-items: center; text-align: center; }
.tool--buddy h3 { color: var(--text); }
.tool--buddy p { color: var(--text); }
.tool__pup { width: 8.5rem; height: auto; margin-bottom: 0.5rem; }
.tool--soon { background: none; border-style: dashed; border-color: var(--track-off); }
.tool--soon h3 { color: var(--text); margin-bottom: 0.75rem; }
.tool--soon ul { display: grid; gap: 0.625rem; }
.tool--soon b { color: var(--text); font-weight: 800; }

/* Buy once: the one bright band on the page. */
.price { background: var(--price); color: var(--price-text); border-block: 3px solid var(--ink-dark); }
.price__inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; padding-block: 2rem; }
.price img { width: 11rem; height: auto; flex: none; }
.price h2 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.375rem; }
.price p { font-size: 1.1875rem; max-width: 30rem; }
.price p.price__tag { display: inline-block; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.125rem 0.625rem; margin-bottom: 0.5rem; border: 2px solid var(--ink-dark); border-radius: 999px; background: var(--ink-dark); color: var(--price); }

/* Amber means tappable. Heavier dark outline, like a sticker. */
.big-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border: 3px solid var(--ink-dark);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink-dark);
  font: 800 1.125rem/1 "Barlow", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease-out;
}
.big-button:active { transform: translateY(2px); }
.big-button:disabled { opacity: 0.6; cursor: default; }

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.beta { display: grid; gap: 0.75rem; scroll-margin-top: 1rem; }
.wrap--narrow .card { background: color-mix(in srgb, var(--card) 96%, transparent); }
form { display: grid; gap: 1rem; margin-top: 0.5rem; }
.field { display: grid; gap: 0.375rem; }
.field__name {
  font-weight: 800;
  color: var(--text);
  padding: 0;
}
input[type="email"], select {
  width: 100%;
  min-height: 52px;
  padding: 0 1.125rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-row);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
/* At full strength: at 0.7 the quiet words were 3.07:1 on the field by night and 2.79:1 by day (WCAG asks 4.5:1). */
input[type="email"]::placeholder { color: var(--muted-text); opacity: 1; }
/* The watch question is a dropdown: same box as the email field, with its own arrow. */
select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-position: right 1.375rem center, right 1rem center;
  background-size: 0.375rem 0.375rem;
  background-repeat: no-repeat;
}
select option { color: var(--text); background: var(--card); }
.field + .field, .picks + .field { margin-top: 0.25rem; }

.picks {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.picks legend { margin-bottom: 0.375rem; }
/* Hollow means off; solid amber means on. */
.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.125rem;
  border: 2px solid var(--track-off);
  border-radius: 999px;
  color: var(--muted-text);
  font-weight: 800;
}
.chip input:checked + span {
  background: var(--amber);
  border-color: var(--ink-dark);
  color: var(--ink-dark);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--text);
}
.consent input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.0625rem 0 0;
  accent-color: var(--amber);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form .big-button { justify-self: start; }
.status { min-height: 1.5em; font-weight: 800; }
.status[data-kind="done"] { color: var(--green-text); }
.status[data-kind="failed"] { color: var(--coral-text); }
form.is-done > :not(.status) { display: none; }

footer {
  display: grid;
  gap: 0.375rem;
  padding: 0.75rem 0.25rem 0;
  font-size: 0.9375rem;
  color: var(--muted-text);
  text-align: center;
}

@media (max-width: 62rem) {
  .watches { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; margin-inline: auto; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; margin-inline: auto; }
  .phones figure:nth-child(odd) img { transform-origin: left center; }
  .phones figure:nth-child(even) img { transform-origin: right center; }
}
@media (max-width: 40rem) {
  main { gap: 2rem; }
  .wrap { padding: 0 1rem; }
  .band--phone, .band--box { padding: 2.25rem 0; }
  .watches { gap: 1rem; }
  .watches img, .countdown { border-width: 4px; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .phones img { border-width: 3px; border-radius: 12px; }
  .phones figure:nth-child(odd) img { transform-origin: left center; }
  .phones figure:nth-child(even) img { transform-origin: right center; }
  .phones figure:hover img, .phones figure:focus img { transform: scale(1.9); }
  .watches figure:nth-child(odd) > :is(img, svg) { transform-origin: left center; }
  .watches figure:nth-child(even) > :is(img, svg) { transform-origin: right center; }
  .tools { grid-template-columns: 1fr; }
  .price__inner { flex-direction: column; text-align: center; }
  .price img { width: 8rem; }
  figcaption { font-size: 0.9375rem; }
}

@media (max-width: 26rem) {
  .sense__row { grid-template-columns: 6rem 1fr auto; gap: 0.5rem; }
  form .big-button { justify-self: stretch; }
}

/* Motion: soft and short, like the app. Skipped under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Each example fills its bars as it arrives. */
  .motion .sense.is-in .sense__slide.is-on .sense__fill { animation: fill 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

  .motion .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 450ms ease-out, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .motion .reveal.is-in { opacity: 1; transform: none; }

  /* Watches arrive one after another, then the first one gives a short buzz. */
  .motion .watches.is-in figure:nth-child(2):not(:hover) img { animation: buzz 500ms ease-in-out 900ms 2; }

  /* The drawn countdown runs its 15 seconds and starts again. motion.js keeps the digits in step. */
  .countdown__ring { animation: countdown 15s linear infinite; }

  /* The breathing glow is a layer that only fades in and out (opacity runs on the compositor), not an animated box-shadow,
     which repainted the button every frame (Wuff 2026-11-21: "Make the website animations smother"). */
  .big-button::after { animation: breathe 3.2s ease-in-out 1.5s infinite; }
  .card { transition: transform 150ms ease-out; }
  .tool { transition: transform 150ms ease-out; }
  .tool:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .big-button, .phones img, .watches > figure > :is(img, svg) { transition: none; }
}
@keyframes buzz {
  0%, 100% { transform: none; }
  20% { transform: translateX(-3px) rotate(-1.5deg); }
  40% { transform: translateX(3px) rotate(1.5deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  80% { transform: translateX(2px) rotate(1deg); }
}
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.big-button { position: relative; }
.big-button::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--amber) 22%, transparent);
  opacity: 0;
  pointer-events: none;
}
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 992.75; } }

/* Short blocks are balanced so no line ends up holding one or two words. */
.band__lede, .tool p, .tool li, .lede, .card p, .price p, footer p { text-wrap: balance; }

/* ---------- second round ---------- */
/* Drawings (the watch face with your clock on it, the countdown) wear the same bezel as captures. */
.drawn {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 6px solid var(--ink-dark);
  outline: 2px solid var(--track-off);
  background: var(--watch-ground);
}
.face__date { fill: var(--muted-text); font: 600 34px "Barlow", system-ui, sans-serif; }
.face__time { fill: var(--text); font: 800 128px "Barlow", system-ui, sans-serif; }
.face__bone { fill: var(--amber); stroke: var(--ink-dark); stroke-width: 4; }
.face__start { fill: var(--ink-dark); font: 800 32px "Barlow", system-ui, sans-serif; }

/* One routine, opened up: its steps in order, each as wide as its minutes. */
.routine {
  max-width: 54rem;
  margin: 2.5rem auto 0;
  padding: 1.5rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  display: grid;
  gap: 0.75rem;
  text-align: left;
}
.routine__name { font-weight: 800; font-size: 1.5rem; line-height: 1.15; color: var(--green); }
.routine__name span { margin-left: 0.5rem; font-weight: 600; font-size: 1rem; color: var(--muted-text); white-space: nowrap; }
.routine__how { color: var(--muted-text); }
.routine__steps { display: flex; gap: 0.5rem; padding-top: 0.25rem; }
.routine__step {
  flex: 1.5 1 0;
  min-width: 0;
  display: grid;
  gap: 0.125rem;
  padding: 0.75rem 0.875rem;
  border: 2px solid var(--ink-dark);
  border-radius: 18px;
  background: var(--yellow);
  color: var(--ink-dark);
}
.routine__step--3 { flex-grow: 3; }
.routine__step--4 { flex-grow: 4; }
.routine__step:nth-child(2) { background: var(--green); }
.routine__step:nth-child(3) { background: var(--blue); }
.routine__step:nth-child(4) { background: var(--coral); }
.routine__step:nth-child(5) { background: var(--lilac); }
.routine__step b { font-weight: 800; white-space: nowrap; }
.routine__step span { font-size: 0.9375rem; }

.tool__more { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 2px dashed var(--track-off); font-weight: 800; }
.tool--soon .tool__more { color: var(--amber-text-ground); }   /* on the band, not a card */

/* Signup: a wider card, two columns of questions, and a proper thank-you when it is done. */
.beta { padding: 2rem; gap: 1.25rem; }
.beta__intro { display: grid; gap: 0.375rem; }
.beta__intro h2 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); }
.beta__intro p { max-width: 44rem; }
form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.form__col { display: grid; gap: 1rem; align-content: start; }
form > .form__send, form > .status { grid-column: 1 / -1; }
.form__send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.status:empty { display: none; }
.thanks { display: none; justify-items: center; gap: 0.5rem; text-align: center; padding-top: 0.5rem; }
.thanks img { width: 10rem; height: auto; }
.beta .thanks__title { font-weight: 800; font-size: clamp(2.25rem, 6vw, 3rem); line-height: 1.05; color: var(--amber); }
.beta:has(form.is-done) .thanks { display: grid; }
.beta:has(form.is-done) .beta__intro { display: none; }
form.is-done { grid-template-columns: 1fr; margin-top: 0; }
form.is-done .status { text-align: center; font-size: 1.375rem; line-height: 1.35; color: var(--text); text-wrap: balance; padding-bottom: 0.75rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .hero__text { justify-items: center; }
  .hero__call { justify-items: center; text-align: center; }
  form { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .drawn { border-width: 4px; }
  .routine { padding: 1.125rem; }
  .routine__steps { flex-direction: column; }
  .routine__step { grid-template-columns: 1fr auto; align-items: center; }
  .beta { padding: 1.25rem; }
  .form__send .big-button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  /* The routine opens out: its steps arrive left to right. */
  .motion .routine .routine__step { opacity: 0; transform: translateX(-18px) scale(0.92); transition: opacity 350ms ease-out, transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  .motion .routine.is-in .routine__step { opacity: 1; transform: none; }
  .motion .routine.is-in .routine__step:nth-child(2) { transition-delay: 150ms; }
  .motion .routine.is-in .routine__step:nth-child(3) { transition-delay: 300ms; }
  .motion .routine.is-in .routine__step:nth-child(4) { transition-delay: 450ms; }
  .motion .routine.is-in .routine__step:nth-child(5) { transition-delay: 600ms; }
}

/* The heading fits one line on a phone, so it never splits two and three. */
@media (max-width: 40rem) { h1 { font-size: 1.875rem; } }

/* ---------- third round ---------- */
/* Time training shows a few tasks, one at a time. Without script, or with reduced motion,
   only the first is shown. */
.sense__deck { display: grid; }
.sense__slide { grid-area: 1 / 1; display: grid; gap: 0.625rem; align-content: start; }
.sense__slide:not(.is-on) { visibility: hidden; opacity: 0; }
.fill--25 { width: 25%; }
.fill--30 { width: 30%; }
.fill--50 { width: 50%; }
.fill--60 { width: 60%; }
.fill--80 { width: 80%; }
.fill--100 { width: 100%; }
.sense__fill--longer { background: var(--longer); }
.sense__fill--target { background: var(--green); }
.sense__fill--shorter { background: var(--blue); }
.sense__fill--reason { background: var(--muted-text); }
.sense__row + .sense__row .sense__fill { animation-delay: 250ms; }
.tag--target { background: var(--green); color: var(--ink-dark); }
.tag--shorter { background: var(--blue); color: var(--ink-dark); }
.tag--reason { background: var(--muted-text); color: var(--ink-dark); }
.sense__dots { display: flex; justify-content: center; gap: 0.25rem; }
.sense__dots button {
  width: 2rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sense__dots button::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--track-off); }
.sense__dots button[aria-pressed="true"]::before { width: 1.5rem; border-radius: 999px; background: var(--amber-line); }

/* Timers that learn: your plan hops toward how long the thing really takes. */
.learn { position: relative; width: 100%; height: 5.25rem; margin-bottom: 0.5rem; }
.learn__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.875rem;
  height: 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-dark) 22%, transparent);
}
.learn__real, .learn__plan {
  position: absolute;
  padding: 0.125rem 0.625rem;
  border: 2px solid var(--ink-dark);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink-dark);
}
.learn__real { right: 0; bottom: 0; background: var(--green); }
.learn__plan { left: 80%; bottom: 2.25rem; background: var(--text); transform: translateX(-80%); }
.learn__plan::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 0.875rem;
  background: var(--ink-dark);
}
/* A question sits on one line whenever the card has room for it. */
.picks legend { float: left; width: 100%; }
.picks legend + * { clear: left; }

@media (prefers-reduced-motion: no-preference) {
  .motion .sense__slide { transition: opacity 350ms ease-out, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 450ms; transform: translateX(3rem); }
  .motion .sense__slide.is-on { transform: none; transition-delay: 0s, 0s, 0s; }
  .motion .sense__slide.is-leaving { transform: translateX(-3rem); }
  .learn__plan { animation: learn 6.5s cubic-bezier(0.3, 0.7, 0.2, 1) infinite; }
}
@keyframes learn {
  0%, 12% { left: 0%; transform: translate(0%, 0); }
  18% { left: 25%; transform: translate(-25%, -0.875rem); }
  24%, 36% { left: 50%; transform: translate(-50%, 0); }
  42% { left: 65%; transform: translate(-65%, -0.625rem); }
  48%, 60% { left: 80%; transform: translate(-80%, 0); }
  66% { left: 90%; transform: translate(-90%, -0.375rem); }
  72%, 94% { left: 100%; transform: translate(-100%, 0); }
  100% { left: 0%; transform: translate(0%, 0); }
}
.sense { overflow: hidden; }


/* Lookout sits to the left of the time-training card. The pair spans the same width as
   the row above it (intro, then the signup call), mirrored: one third, then two thirds. */
.sense-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
}
.sense-row__pup { width: min(100%, 15rem); height: auto; justify-self: center; }
.sense-row .card { background: color-mix(in srgb, var(--card) 96%, transparent); }
@media (max-width: 52rem) {
  .sense-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .sense-row__pup { width: 9rem; }
}

/* On a short laptop screen the whole opening (name, intro, signup call, time training) fits
   in the first view without scrolling. */
@media (min-width: 52rem) and (max-height: 56rem) {
  main { padding-top: 0.75rem; }
  .top { margin-top: -0.75rem; padding: 0.75rem 0 0; }
  .lockup { padding-top: 0; }
  .lockup__pup { width: 10rem; }
  .lockup__name { font-size: 3.75rem; }
  .hero { padding: 1rem 0 0.5rem; }
  .sense-row { margin-top: -1.5rem; }
  .sense-row__pup { width: min(100%, 13rem); }
}

/* The patch behind the opening words is a soft shape, not a band: strongest behind the
   text, gone before it reaches any edge, so the tracks come in from the sides. */
.top {
  --patch:
    radial-gradient(ellipse 46% 62% at 36% 58%, color-mix(in srgb, var(--bg) 86%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, color-mix(in srgb, var(--bg) 0%, transparent) 100%),
    radial-gradient(ellipse 24% 34% at 50% 14%, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
.hero__text { text-shadow: 0 1px 10px color-mix(in srgb, var(--bg-bottom) 90%, transparent), 0 0 2px color-mix(in srgb, var(--bg-bottom) 80%, transparent); }
@media (max-width: 52rem) {
  .top { --patch: radial-gradient(ellipse 110% 70% at 50% 55%, color-mix(in srgb, var(--bg) 86%, transparent) 0%, color-mix(in srgb, var(--bg) 66%, transparent) 55%, color-mix(in srgb, var(--bg) 0%, transparent) 100%); }
}

/* The patch has a layer of its own, faded out over the bottom quarter. Porch Light's night page runs from indigo at the top to
   teal (its bgTop to bg), so the teal patch showed a hard edge where its ellipse met the bottom of .top. */
.top { position: relative; isolation: isolate; }
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--patch);
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}

/* A nudge for someone walking up to the page on a display: top left, and it scrolls away. */
main { position: relative; }
.tryme {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 1rem;
  border: 2px solid var(--ink-dark);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink-dark);
  font-weight: 800;
  line-height: 1.2;
}
.tryme svg { width: 1.25rem; height: 1.25rem; flex: none; }
@media (max-width: 52rem) {
  .tryme { top: 0.625rem; left: 0.625rem; padding: 0.3125rem 0.625rem 0.3125rem 0.75rem; font-size: 0.875rem; }
  .tryme svg { width: 1rem; height: 1rem; }
}
@media (max-width: 30rem) {
  /* On a phone the corner is narrow, so the words stack beside the pup. */
  .tryme { max-width: 6.25rem; border-radius: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tryme svg { animation: nudge-down 1.8s ease-in-out infinite; }
}
@keyframes nudge-down { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
@media (max-width: 30rem) { .tryme { display: none; } }


/* The top-left corner: the nudge, and under it a QR code that opens this page on a phone.
   The code sits on white so it scans against the teal. Both are hidden on phones. */
.corner {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 1;
  display: grid;
  gap: 0.625rem;
  justify-items: start;
}
.corner .tryme { position: static; }
.qr { display: grid; gap: 0.25rem; width: 6.75rem; }
.qr img {
  display: block;
  width: 6.75rem;
  height: 6.75rem;
  padding: 0.375rem;
  border: 2px solid var(--ink-dark);
  border-radius: 14px;
  background: #fff;
}
.qr span { font-size: 0.75rem; font-weight: 800; line-height: 1.2; color: var(--muted-text); text-align: center; text-wrap: balance; }
@media (max-width: 52rem) { .corner { top: 0.625rem; left: 0.625rem; } .qr { display: none; } }
@media (max-width: 30rem) { .corner { display: none; } }

/* The QR code, bigger, on a pale tint of the page's own teal instead of white, with its
   label beside it. The modules stay dark teal, so a phone still reads it easily. */
.qr { display: flex; align-items: center; gap: 0.75rem; width: auto; }
.qr img {
  width: 10rem;
  height: 10rem;
  padding: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #d5e2e8;
}
.qr span { width: 6.5rem; font-size: 0.875rem; text-align: left; }
@media (max-width: 64rem) { .qr span { display: none; } }

/* Sound on or off: always in the top right. */
.sound {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.875rem 0 0.75rem;
  border: 2px solid var(--ink-dark);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: 800 0.9375rem/1 "Barlow", system-ui, sans-serif;
  cursor: pointer;
}
.sound svg { width: 1.375rem; height: 1.375rem; flex: none; }
.sound__waves { display: none; }
.sound.is-on { background: var(--green); color: var(--ink-dark); }
.sound.is-on .sound__waves { display: inline; }
.sound.is-on .sound__mute { display: none; }
@media (max-width: 40rem) {
  .sound { top: 0.5rem; right: 0.5rem; min-height: 2.25rem; padding: 0 0.625rem; }
  .sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}


/* The QR code sits where the row's left third is, beside the time-training card, with
   its label under it. Nothing is under the corner nudge any more. */
.sense-row__qr { flex-direction: column; justify-self: center; gap: 0.5rem; }
.sense-row__qr span { display: block; width: auto; text-align: center; font-size: 0.9375rem; }
@media (max-width: 52rem) { .qr { display: none; } }

/* The short signup at the top: email, one choice, consent, one button. No scrolling to the bottom to join. */
.hero__call { justify-items: stretch; text-align: left; gap: 1rem; scroll-margin-top: 1rem; }
.hero__intro { display: grid; gap: 0.5rem; }
.form--hero { grid-template-columns: 1fr; gap: 0.875rem; margin-top: 0; }
.form--hero .big-button { justify-self: stretch; text-align: center; }
.picks--compact legend { margin-bottom: 0.25rem; }
.picks--compact .chip span { min-height: 44px; padding: 0 1rem; }
.form--hero .consent { font-size: 0.9375rem; }
.hero__call .thanks img { width: 6rem; }
.hero__call .thanks__title { font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--amber); }
.hero__call:has(form.is-done) .thanks { display: grid; }
.hero__call:has(form.is-done) .hero__intro { display: none; }
@media (max-width: 52rem) {
  .hero__call { text-align: left; justify-items: stretch; }
  .hero__intro { text-align: center; }
}
.linkish {
  justify-self: center;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--amber-text);
  font: 800 1rem/1.2 "Barlow", system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.linkish:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 6px; }

/* Switches: every either/or choice (join the beta or just updates, the email consent,
   night colours). Single choices from a list are dropdowns; chips are only for picking several.
   Wuff 2026-11-17. */
.switch { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; cursor: pointer; color: var(--text); }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track, .theme .switch__track {
  position: relative;
  width: 3.25rem;
  height: 1.875rem;
  border-radius: 999px;
  border: 2px solid var(--ink-dark);
  background: var(--track-off);
  transition: background-color 150ms ease-out;
  flex: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 30%);
  transition: transform 150ms ease-out;
}
.switch input:checked + .switch__track, .theme[aria-checked="true"] .switch__track { background: var(--amber); }
.switch input:checked + .switch__track::after, .theme[aria-checked="true"] .switch__track::after { transform: translateX(1.375rem); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--text); outline-offset: 3px; }
.switch__text { font-weight: 800; line-height: 1.3; }
.switch__text small { display: block; font-weight: 600; font-size: 0.875rem; color: var(--muted-text); }
.switch.consent .switch__text { font-weight: 600; }
.switch.consent { align-items: start; }
.switch.consent .switch__track { margin-top: 0.125rem; }
.theme .switch__track { width: 2.5rem; height: 1.5rem; border-width: 2px; }
.theme .switch__track::after { top: 0.125rem; left: 0.125rem; width: 1rem; height: 1rem; }
.theme[aria-checked="true"] .switch__track::after { transform: translateX(1rem); }
@media (prefers-reduced-motion: reduce) { .switch__track, .switch__track::after { transition: none; } }
.theme .switch__track { background: rgb(255 255 255 / 55%); }
.theme[aria-checked="true"] .switch__track { background: var(--ink-dark); }

/* What signing up means, said under the button instead of a box to tick. */
.consent-note { margin: 0; font-size: 0.875rem; color: var(--muted-text); }
.form__send .consent-note { flex: 1 1 18rem; }

/* Screenshot carousels (Wuff 2026-11-19: "all the screenshots into a carousel"). One row that
   scrolls sideways and snaps to each screen: swipe, scroll, the arrows or the dots. The screens
   are shown large, so there is no hover zoom here. Without carousel.js it is still a scrolling row. */
.carousel { position: relative; padding-top: 2rem; min-width: 0; max-width: 100%; contain: inline-size; } /* its width comes from the page, never from the row of screens */
.carousel__track {
  min-width: 0;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--amber-line); outline-offset: 4px; border-radius: 12px; }
.carousel__track > figure { scroll-snap-align: start; flex: 0 0 calc((100% - 3 * 1.5rem) / 4); }
.carousel__track.phones { display: flex; grid-template-columns: none; max-width: none; padding-top: 0.5rem; }
.carousel__track.watches { display: flex; grid-template-columns: none; max-width: none; padding-top: 0.5rem; }
.carousel__track.watches > figure { flex-basis: calc((100% - 2 * 1.5rem) / 3); }
.carousel__track.phones > figure { flex-basis: calc((100% - 2 * 1.5rem) / 3); }
.carousel__track.phones img { transition: none; }
/* No zoom in the carousel: the phone-width rule ".phones figure:hover img { transform: scale(1.9) }" also matched here, and a tap on a
   touch screen leaves :hover on, so a screen stayed blown up to 1.9x and clipped by the row (Wuff 2026-11-21, of that: "this is annoying af").
   Same specificity as that rule and later in the file, so this wins. */
.carousel__track.phones figure img { transform: none; }
.carousel__btn {
  position: absolute;
  top: calc(50% - 1.25rem);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--track-off);
  background: var(--ink-dark);
  color: var(--text);
  font: 800 2rem/1 "Barlow", system-ui, sans-serif;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgb(0 0 0 / 35%);
}
.carousel__btn span { margin-top: -0.2rem; }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: -1.25rem; }
.carousel__btn--next { right: -1.25rem; }
.carousel__btn:focus-visible { outline: 3px solid var(--amber-line); outline-offset: 2px; }
.carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
.carousel__dots button { width: 2rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dots button::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--track-off); }
.carousel__dots button[aria-current="true"]::before { width: 1.5rem; border-radius: 999px; background: var(--amber-line); }
@media (prefers-reduced-motion: no-preference) {
  .carousel__track { scroll-behavior: smooth; }
  .carousel__dots button::before { transition: width 200ms ease-out; }
}
@media (max-width: 62rem) {
  .carousel__track.phones > figure { flex-basis: calc((100% - 1.5rem) / 2.3); }
  .carousel__track.watches > figure { flex-basis: calc((100% - 1.5rem) / 2.3); }
}
@media (max-width: 40rem) {
  .carousel__track { gap: 1rem; }
  .carousel__track.phones > figure { flex-basis: 72%; }
  .carousel__track.watches > figure { flex-basis: 72%; }
  .carousel__btn { display: none; }
}


@media (max-width: 40rem) { body { --sq: 100vw; } }

/* Copy as bullet points (Wuff 2026-11-20: "Bullet point all website copy written by AI"): each sentence of what were
   paragraphs is one point, the wording unchanged. The lists take the look of the paragraphs they replace. */
ul.bullets { margin: 0; padding-left: 1.15em; display: grid; gap: 0.3em; text-align: left; list-style: disc; }
ul.bullets li { text-wrap: pretty; }
ul.bullets li::marker { color: var(--muted-text); }   /* quiet markers: the page has colour enough without them */
.price ul.bullets li::marker { color: var(--price-text); }   /* amber on the price band was 1.2:1 */
.band__lede.bullets { width: fit-content; }
.price ul.bullets { font-size: 1.1875rem; max-width: 30rem; }
.beta__intro ul.bullets { max-width: 44rem; }
.tool--soon ul.bullets { gap: 0.625rem; }

/* Links in the footer: the footer's own quiet colour, underlined (muted text on the page is a pair sync_theme checks). */
footer a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
footer a:hover { color: var(--text); }

/* Technical analysis (technical-analysis.html, written by the app branch's design/devices/make-tech-analysis.js; linked from the
   footer only: Wuff 2026-11-20, "You can just bury it in the bottom"). A plain reading page: cards of the site's own kind, the
   page's text and muted colours, links in the card's amber. Every colour pair here is one sync_theme.js already measures. */
.ta-wrap { max-width: 58rem; display: grid; gap: 1.25rem; }
.ta-wrap > *, .ta-card > *, .ta-facts li > * { min-width: 0; }
.ta-card { overflow-wrap: break-word; }   /* a long path breaks only where it must */   /* a wide table scrolls in its own box instead of widening the page */
.ta-head { display: grid; gap: 0.75rem; padding-top: 2.5rem; }
.ta-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.ta-back { font-weight: 800; }
.ta-back a { color: var(--text); text-underline-offset: 0.15em; }
.ta-card { display: grid; gap: 0.75rem; padding: 1.25rem 1.5rem; }
.ta-card h2 { margin: 0; }
.ta-card h3 { margin: 0.75rem 0 0; font-size: 1.125rem; }
.ta-card p, .ta-card li { color: var(--text); }
.ta-card a { color: var(--amber-text); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.ta-card code { font: 600 0.875em/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--surface); color: var(--text); padding: 0.05em 0.3em; border-radius: 6px; overflow-wrap: anywhere; }
.ta-model { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--muted-text); margin-top: 0.2rem; }
.ta-scroll { overflow-x: auto; }
.ta-card table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; font-weight: 500; }
.ta-card th, .ta-card td { text-align: left; vertical-align: top; padding: 0.4rem 0.6rem 0.4rem 0; border-bottom: 1px solid var(--track-off); }
.ta-card th { font-weight: 800; }
.ta-hw th { width: 9.5rem; white-space: nowrap; }
.ta-none { color: var(--muted-text); }
.ta-facts { display: grid; gap: 0.9rem; }
.ta-facts li { display: grid; gap: 0.15rem; padding-left: 0.85rem; border-left: 3px solid var(--amber-line); }
.ta-claim { font-weight: 600; }
.ta-tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; color: var(--muted-text); }
.ta-how, .ta-src { font-size: 0.875rem; font-weight: 500; }
.ta-card .ta-how, .ta-card .ta-src { color: var(--muted-text); }
@media (max-width: 40rem) {
  .ta-card { padding: 1rem; }
  .ta-hw th { width: auto; white-space: normal; }
}

/* "Timers that learn" sits on a plain tile like the rest now (it was the one solid lilac tile): its bar and the chip's stem
   take the text colour, so they read on the card by day and by night. */
.tool--learn .learn__line { background: color-mix(in srgb, var(--text) 22%, transparent); }
.tool--learn .learn__plan::after { background: var(--text); }
