/* Oncelet site.
 * The page is the app's enamel wall: one ground colour, cream plates, black flip cards,
 * yellow for the record button and nothing else. Colours are the app's own theme tokens
 * (light and night), so adding a page means using these roles, not new values. */

/* ---------- fonts: one family in three widths, like SF Pro in the app ---------- */
@font-face { font-family: "Sofia Sans"; src: url(fonts/sofia-sans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sofia Sans Condensed"; src: url(fonts/sofia-sans-condensed.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sofia Sans Extra Condensed"; src: url(fonts/sofia-sans-extra-condensed.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sofia Fallback"; src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Helvetica"); size-adjust: 93.43%; ascent-override: 96.33%; descent-override: 32.11%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Condensed Fallback"; src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Helvetica"); size-adjust: 72.15%; ascent-override: 124.74%; descent-override: 41.58%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Extra Condensed Fallback"; src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Helvetica"); size-adjust: 58.61%; ascent-override: 153.57%; descent-override: 51.19%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  /* ground and what sits on it (theme: Cobalt) */
  --ground: #1F3F8C; --ink: #F3F0E6; --ink-2: #BCCAE8; --rule: rgba(243, 240, 230, .16); --soft: rgba(243, 240, 230, .12);
  /* the plate, the cards, the record button: the same in every theme */
  --plate: #F3F0E6; --plate-ink: #141714; --plate-ink-2: #565E58; --plate-rule: #DCD8CB;
  --card: #161917; --card-ink: #F6F4EC;
  --accent: #F5C542; --on-accent: #141714; --rec-ring: transparent;
  --frame: color-mix(in srgb, var(--ground) 42%, #000);
  /* tracker tags */
  --tag-amber: #C98B5B; --tag-blue: #7FA6D6; --tag-coral: #E2876A; --tag-teal: #66BFC4; --tag-grass: #98C067; --tag-lilac: #B9A2D6; --tag-red: #D9645A;

  --f-digits: "Sofia Sans Extra Condensed", "Sofia Extra Condensed Fallback", "Arial Narrow", Arial, sans-serif;
  --f-display: "Sofia Sans Condensed", "Sofia Condensed Fallback", "Arial Narrow", Arial, sans-serif;
  --f-text: "Sofia Sans", "Sofia Fallback", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;

  --t-display: clamp(3.5rem, 1rem + 6.5vw, 7.25rem);
  --t-h2: clamp(2.25rem, 1.4rem + 2.4vw, 3.75rem);
  --t-h3: clamp(1.375rem, 1.1rem + .8vw, 1.75rem);
  --t-lede: clamp(1.125rem, .95rem + .45vw, 1.375rem);
  --t-body: 1.1875rem;
  --t-small: 1rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 40px; --s-7: 64px; --s-8: 104px;
  --gutter: clamp(20px, 3.4vw, 48px); --col-gap: 32px;
  --section: clamp(80px, 9.5vw, 144px);
  --r-plate: 14px; --r-sign: 10px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="signal"] {
  color-scheme: light;
  --ground: #E0A91F; --ink: #17140C; --ink-2: #4D3C10; --rule: rgba(23, 20, 12, .2); --soft: rgba(23, 20, 12, .1); --rec-ring: #17140C;
  --tag-amber: #8F5A2B; --tag-coral: #C2552F; --tag-teal: #11787D; --tag-blue: #2F5FA3; --tag-grass: #4F7A27; --tag-lilac: #6C55A8; --tag-red: #8E1F2A;
  --frame: #17140C;
}
:root[data-theme="graphite"] { --ground: #2A2D31; --ink-2: #BEC2C7; }
:root[data-theme="petrol"] { --ground: #0D4A57; --ink-2: #B0CED4; }
:root[data-theme="oxblood"] { --ground: #6B1E1C; --ink-2: #E4BDB7; }

/* night: every theme deepens, the plates dim, as in the app */
@media (prefers-color-scheme: dark) {
  :root, :root[data-theme] {
    color-scheme: dark;
    --ink: #ECE9DF; --rule: rgba(236, 233, 223, .12); --soft: rgba(236, 233, 223, .09); --rec-ring: transparent;
    --plate: #D6D2C5; --plate-ink-2: #4A524C; --plate-rule: #BDB8AA; --card: #050807; --card-ink: #EDEBE3; --accent: #EDBE45;
    --tag-amber: #C98B5B; --tag-blue: #7FA6D6; --tag-coral: #E2876A; --tag-teal: #66BFC4; --tag-grass: #98C067; --tag-lilac: #B9A2D6; --tag-red: #D9645A;
    --frame: color-mix(in srgb, var(--ground) 55%, #fff 9%);
  }
  :root { --ground: #0B1430; --ink-2: #A3B1D3; }
  :root[data-theme="signal"] { --ground: #14120D; --ink: #F1E8CF; --ink-2: #BFB290; }
  :root[data-theme="graphite"] { --ground: #0D0E10; --ink-2: #A0A4AA; }
  :root[data-theme="petrol"] { --ground: #071E24; --ink-2: #97B4BA; }
  :root[data-theme="oxblood"] { --ground: #220B0A; --ink-2: #C9A19C; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.5 var(--f-text); -webkit-font-smoothing: antialiased; transition: background-color .45s var(--ease-out), color .3s; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.plate :focus-visible, .sign :focus-visible, .widget :focus-visible { outline-color: var(--plate-ink); }
.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: var(--plate); color: var(--plate-ink); }
.skip:focus { top: 12px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
section { padding-top: var(--section); }
h2 { font: 800 var(--t-h2)/1 var(--f-display); letter-spacing: -.008em; text-wrap: balance; }
h3 { font: 800 var(--t-h3)/1.1 var(--f-display); }
.lede { font-size: var(--t-lede); line-height: 1.45; text-wrap: pretty; }
.note { color: var(--ink-2); }
.small { font-size: var(--t-small); }

/* ---------- header and footer ---------- */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 11px; font: 800 1.6875rem/1 var(--f-display); letter-spacing: .005em; text-decoration: none; }
.mark img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 28px; }
.top nav a, .foot nav a { display: inline-block; padding: 10px 0; font-size: var(--t-small); color: var(--ink-2); text-decoration: none; }
.top nav a:hover, .foot nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav a[aria-current] { color: var(--ink); }
.foot { margin-top: var(--section); padding: 28px 0 44px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: flex-end; }
.foot p { grid-column: 1 / -1; font-size: var(--t-small); color: var(--ink-2); max-width: 60em; }

/* ---------- the product's parts ---------- */
.cards { display: inline-flex; align-items: flex-end; }
.fc {
  --h: 128px;
  position: relative; flex: none; display: grid; place-items: center;
  width: calc(var(--h) * .52); height: var(--h); margin-right: calc(var(--h) * .035);
  border-radius: calc(var(--h) * .055); background: var(--card); color: var(--card-ink);
  font: 800 calc(var(--h) * 1.06)/1 var(--f-digits); font-variant-numeric: tabular-nums;
  perspective: calc(var(--h) * 4); forced-color-adjust: none;
  transition: width .24s cubic-bezier(.3, 0, .2, 1), margin .24s cubic-bezier(.3, 0, .2, 1), opacity .18s;
}
.fc:last-child { margin-right: 0; }
.fc .h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--card); }
.fc .h.t { top: 0; border-radius: calc(var(--h) * .055) calc(var(--h) * .055) 0 0; }
.fc .h.b { bottom: 0; border-radius: 0 0 calc(var(--h) * .055) calc(var(--h) * .055); }
.fc .h b { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-weight: inherit; }
.fc .h.t b { top: 0; } .fc .h.b b { bottom: 0; }
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: max(1px, calc(var(--h) * .011)); background: rgba(0, 0, 0, .8); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); z-index: 3; }
.fc .flap { z-index: 2; backface-visibility: hidden; background: color-mix(in srgb, var(--card) 90%, #fff); }
.fc .flap.t { transform-origin: 50% 100%; } .fc .flap.b { transform-origin: 50% 0; }
.fc.gone { width: 0; margin-right: 0; opacity: 0; }
.fc.blank { background: transparent; border: 1.5px dashed currentColor; color: inherit; opacity: .5; }
.fc.blank::after { display: none; }

.plate { position: relative; background: var(--plate); color: var(--plate-ink); border: 1px solid transparent; border-radius: var(--r-plate); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .07), 0 2px 0 rgba(0, 0, 0, .24); }
.plate::before { content: ""; position: absolute; left: -1px; top: 13%; bottom: 13%; width: 6px; border-radius: 0 3px 3px 0; background: var(--tag, var(--tag-coral)); }
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #C4C0B2; box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, .45), 0 .5px 0 rgba(255, 255, 255, .6); }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.5px; height: 1px; background: rgba(0, 0, 0, .42); transform: rotate(-35deg); }
.screw.tl { left: 13px; top: 13px; } .screw.tr { right: 13px; top: 13px; } .screw.bl { left: 13px; bottom: 13px; } .screw.br { right: 13px; bottom: 13px; }
.screw.tr::after, .screw.bl::after { transform: rotate(40deg); }

.rec { flex: none; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 2px var(--rec-ring); cursor: pointer; transition: transform .12s ease-out; -webkit-tap-highlight-color: transparent; }
.rec svg { width: 46%; height: 46%; }
.rec:active { transform: scale(.94); }
.rec[disabled] { cursor: default; }
.unit { font: 700 1.375rem/1 var(--f-display); color: var(--plate-ink-2); padding-bottom: .22em; }
.name { font: 800 var(--t-h3)/1.08 var(--f-display); letter-spacing: -.004em; }
.meta { font-size: var(--t-small); line-height: 1.3; color: var(--plate-ink-2); }

/* a small enamel sign: the page's one status, and later its one link */
.sign { position: relative; display: inline-block; padding: 15px 46px 14px; border: 1px solid transparent; border-radius: var(--r-sign); background: var(--plate); color: var(--plate-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08), 0 2px 0 rgba(0, 0, 0, .24); text-decoration: none; }
.sign b { display: block; font: 800 1.5rem/1 var(--f-display); letter-spacing: .01em; }
.sign span { display: block; margin-top: 5px; font-size: var(--t-small); line-height: 1.3; color: var(--plate-ink-2); }
.sign .screw { top: calc(50% - 5px); } .sign .screw.l { left: 15px; } .sign .screw.r { right: 15px; }

/* ---------- 1. the board ---------- */
.hero { padding-top: 22px; }
.say { grid-column: 1 / 6; padding-top: clamp(4px, 2.6vw, 40px); }
h1 { font: 800 var(--t-display)/.92 var(--f-display); letter-spacing: -.012em; text-wrap: balance; }
.say .lede { margin-top: 28px; max-width: 25em; }
.say .sign { margin-top: 34px; }
.hint { margin-top: 22px; font-size: var(--t-small); color: var(--ink-2); }

.board { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plate.big { grid-column: 1 / 3; padding: 40px 40px 36px 54px; }
.plate.big .fc { --h: clamp(150px, 16.6vw, 238px); }
.numrow { display: flex; align-items: flex-end; gap: 16px; }
.big .unit { font-size: clamp(1.375rem, 2.3vw, 2.125rem); }
.big .rec { margin-left: auto; margin-bottom: 6px; width: clamp(74px, 7.4vw, 106px); height: clamp(74px, 7.4vw, 106px); }
.big .name { margin-top: 24px; font-size: clamp(1.75rem, 3.1vw, 2.875rem); line-height: 1.05; }
.big .meta { margin-top: 7px; font-size: clamp(1rem, 1.25vw, 1.1875rem); }
.plate.sm { padding: 28px 24px 22px 36px; }
.plate.sm .fc { --h: clamp(84px, 8.2vw, 118px); }
.sm .name { margin-top: 16px; }
.plate .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.sm .rec { width: 60px; height: 60px; }

/* ---------- 2. the list ---------- */
.list-say { grid-column: 1 / 6; }
.list-say .lede { margin-top: 18px; max-width: 24em; }
.ideas { margin-top: var(--s-6); max-width: 26em; }
.ideas h3 { font: 400 var(--t-small)/1.4 var(--f-text); color: var(--ink-2); }
.ideas p { margin-top: var(--s-2); font: 700 var(--t-h3)/1.22 var(--f-display); }
.rows { grid-column: 6 / 13; border-top: 1px solid var(--rule); }
.rows li { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; align-items: center; column-gap: 20px; padding: 18px 0 18px 22px; border-bottom: 1px solid var(--rule); }
.rows li::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 5px; border-radius: 3px; background: var(--tag); }
.rows .num { display: grid; justify-items: center; row-gap: 5px; }
.rows .fc { --h: 52px; }
.rows .u { font: 700 1rem/1 var(--f-display); color: var(--ink-2); }
.rows .nm { display: block; font-size: 1.375rem; font-weight: 500; line-height: 1.25; }
.rows .mt { display: block; font-size: var(--t-small); color: var(--ink-2); }
.rows .rec { width: 52px; height: 52px; background: var(--soft); color: var(--ink-2); box-shadow: none; border-color: transparent; }
.rows .rec:hover { color: var(--ink); }

/* ---------- 3 and 4. real screens ---------- */
.phone { --pp: clamp(0px, 4vw, 56px); padding: 0 var(--pp); }
.phone .screen { height: clamp(460px, 47vw, 680px); overflow: hidden; border-radius: 46px 46px 0 0; border: 8px solid var(--frame); border-bottom: 0; background: var(--frame); }
.phone img { width: 100%; border-radius: 38px 38px 0 0; }
.phone figcaption, .widget-fig figcaption, .strip figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--ink-2); }
.phone figcaption { margin: 0 calc(var(--pp) * -1); padding: 12px var(--pp) 0; border-top: 1px solid var(--rule); }
.record .phone { grid-column: 1 / 6; }
.record .text { grid-column: 7 / 13; padding-top: clamp(0px, 3vw, 48px); }
.text p { margin-top: 18px; max-width: 30em; text-wrap: pretty; }
.text p.lede { margin-top: 22px; }

.widget-fig { margin-top: var(--s-6); max-width: 452px; }
.widget { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid transparent; border-radius: 28px; background: var(--plate); color: var(--plate-ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .07), 0 2px 0 rgba(0, 0, 0, .24); }
.widget > div { position: relative; display: grid; grid-template-rows: auto auto 1fr; padding: 18px 16px 16px 26px; min-height: 196px; }
.widget > div + div { border-left: 1px solid var(--plate-rule); }
.widget > div::before { content: ""; position: absolute; left: 12px; top: 20px; bottom: 20px; width: 5px; border-radius: 3px; background: var(--tag); }
.widget .name { font-size: 1.3125rem; line-height: 1.12; }
.widget .meta { margin-top: 2px; }
.widget .bottom { display: flex; align-items: flex-end; justify-content: space-between; align-self: end; }
.widget .fc { --h: 68px; }
.widget .rec { width: 50px; height: 50px; }

.rhythm .text { grid-column: 1 / 8; display: flex; flex-direction: column; align-self: stretch; }
.rhythm .phone { grid-column: 9 / 13; --pp: 0px; }
.rhythm .phone .screen { height: clamp(520px, 50vw, 740px); }
.strip { --th: 132px; --tk: 58px; --tl: 94px; --tw: 7px; margin-top: auto; padding-top: var(--s-7); }
.strip .line { display: flex; align-items: center; gap: 24px; padding-bottom: 30px; }
.track { position: relative; flex: 1; height: var(--th); border-bottom: 1px solid var(--rule); }
.tick { position: absolute; bottom: 14px; left: calc((365 - var(--a)) / 365 * 100%); width: var(--tw); height: var(--tk); margin-left: calc(var(--tw) / -2); border-radius: var(--tw); background: var(--ink); opacity: .62; transform-origin: 50% 100%; }
.tick.last { height: var(--tl); opacity: 1; background: var(--tag-coral); }
.gapline { position: absolute; bottom: calc(14px + var(--tl) / 2 - var(--tw) / 2); right: 0; left: calc((365 - var(--a)) / 365 * 100%); height: var(--tw); border-radius: var(--tw); background: var(--tag-coral); transform-origin: 0 50%; }
.strip .cnt { display: flex; align-items: flex-end; gap: 10px; }
.strip .fc { --h: 118px; }
.strip .cnt .u { font: 700 1.5rem/1 var(--f-display); color: var(--ink-2); padding-bottom: 6px; }
.strip .ends { position: absolute; left: 0; right: 0; top: calc(100% + 9px); display: flex; justify-content: space-between; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- 5. themes ---------- */
.themes .text { grid-column: 1 / 6; }
.swatches { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); padding-top: 6px; }
.swatch { display: grid; justify-items: center; gap: 12px; padding: 6px 2px; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--ink-2); font: 500 var(--t-small)/1.2 var(--f-text); cursor: pointer; }
.swatch img { width: 100%; max-width: 112px; border-radius: 23%; border: 1px solid rgba(255, 255, 255, .28); transition: transform .2s var(--ease-out); }
.swatch:hover img { transform: translateY(-3px); }
.swatch[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.swatch[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--ink); }
.plans { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--rule); }
.plans > div:first-child { grid-column: 1 / 6; }
.plans > div:last-child { grid-column: 6 / 12; }
.plans p { margin-top: 10px; max-width: 30em; }

/* ---------- 6. the last plate ---------- */
.last .plate { grid-column: 1 / 8; padding: 40px 40px 36px 54px; }
.last .fc { --h: clamp(110px, 11vw, 160px); }
.last .unit { font-size: clamp(1.375rem, 2vw, 1.875rem); }
.last .name { margin-top: 22px; font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.last .meta { margin-top: 7px; font-size: var(--t-body); }
.last .text { grid-column: 9 / 13; align-self: center; }
.last .text p:first-of-type { margin-top: 12px; }

/* ---------- undo ---------- */
.undo { position: fixed; left: 50%; bottom: 24px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; border: 1px solid transparent; border-radius: 30px; background: color-mix(in srgb, var(--ground) 62%, #fff 16%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 30px -12px rgba(0, 0, 0, .5); color: var(--ink); font-size: 1.0625rem; white-space: nowrap; transform: translate(-50%, 90px); opacity: 0; visibility: hidden; transition: transform .32s var(--ease-out), opacity .2s, visibility 0s .32s; }
.undo.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.undo button { min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 22px; background: var(--plate); color: var(--plate-ink); font: 600 1.0625rem/1 var(--f-text); cursor: pointer; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .undo { background: color-mix(in srgb, var(--ink) 16%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}

/* ---------- legal and support pages ---------- */
.legal { padding-top: clamp(24px, 4vw, 56px); }
.legal h1 { font-size: var(--t-h2); line-height: 1; }
.legal .updated { margin-top: 12px; font-size: var(--t-small); color: var(--ink-2); }
.doc { margin-top: var(--s-6); max-width: 820px; padding: clamp(28px, 5vw, 60px) clamp(22px, 5.4vw, 68px); }
.doc::before { display: none; }
.doc p, .doc li { max-width: 36em; line-height: 1.6; }
.doc p { margin-top: 14px; }
.doc p.lead { margin-top: 0; font-size: var(--t-lede); line-height: 1.5; }
.doc h2 { margin-top: 40px; font-size: var(--t-h3); line-height: 1.1; letter-spacing: 0; }
.doc ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; }
.doc li { margin-top: 6px; }
.doc a { text-decoration: underline; text-decoration-thickness: 1.5px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .strip.wait .tick { transform: scaleY(0); }
  .strip.wait .gapline { transform: scaleX(0); }
  .strip.go .tick { animation: tick .36s cubic-bezier(.2, .8, .3, 1.5) both; animation-delay: calc((365 - var(--a)) * 3.2ms); }
  .strip.go .gapline { animation: grow .6s cubic-bezier(.3, 0, .2, 1) both; animation-delay: 1.15s; }
  @keyframes tick { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  body, .fc, .undo, .swatch img, .rec { transition: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .rows li { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .record .phone { grid-column: 1 / 6; --pp: 0px; }
  .rhythm .text { grid-column: 1 / 8; }
  .rhythm .phone { grid-column: 8 / 13; }
  .strip { --th: 104px; --tk: 44px; --tl: 72px; --tw: 6px; } .strip .fc { --h: 88px; }
}
@media (max-width: 820px) {
  :root { --section: clamp(64px, 14vw, 96px); }
  .grid { display: block; }
  .top nav { gap: 22px; }
  .top nav .wide { display: none; }
  .hero { padding-top: 6px; }
  .say { padding-top: 6px; }
  .say .lede { margin-top: 16px; }
  .say .sign { margin-top: 20px; padding: 12px 40px 11px; }
  .sign b { font-size: 1.3125rem; }
  .hint { margin-top: 14px; }
  .board { margin-top: 22px; gap: 12px; }
  .plate.big { padding: 26px 22px 24px 32px; }
  .plate.big .fc { --h: clamp(112px, 30vw, 190px); }
  .big .rec { width: 74px; height: 74px; }
  .plate.sm { padding: 20px 14px 14px 22px; }
  .plate.sm .fc { --h: clamp(64px, 17vw, 110px); }
  .sm .name { font-size: 1.3125rem; margin-top: 12px; }
  .sm .rec { width: 48px; height: 48px; }
  .screw { width: 8px; height: 8px; } .screw.tl { left: 10px; top: 10px; } .screw.tr { right: 10px; top: 10px; } .screw.bl { left: 10px; bottom: 10px; } .screw.br { right: 10px; bottom: 10px; }
  .screw::after { left: 1.5px; right: 1.5px; top: 3.5px; }
  .sign .screw { top: calc(50% - 4px); } .sign .screw.l { left: 14px; } .sign .screw.r { right: 14px; }
  .rows { margin-top: 28px; }
  .rows li { grid-template-columns: 84px minmax(0, 1fr) auto; column-gap: 14px; padding-left: 18px; }
  .rows .fc { --h: 40px; } .rows .nm { font-size: 1.1875rem; }
  .ideas { margin-top: 28px; }
  .rhythm .phone, .swatches, .last .text { margin-top: var(--s-6); }
  .record.grid { display: flex; flex-direction: column; }
  .record .phone { order: 2; width: 100%; margin-top: var(--s-6); }
  .record .text { margin-top: 0; }
  .phone { max-width: 420px; margin-left: auto; margin-right: auto; }
  .phone .screen { height: min(150vw, 640px); }
  .rhythm .phone .screen { height: min(168vw, 700px); }
  .widget > div { padding: 16px 12px 14px 22px; min-height: 180px; }
  .widget > div::before { left: 10px; }
  .widget .name { font-size: 1.1875rem; }
  .widget .fc { --h: 58px; } .widget .rec { width: 46px; height: 46px; }
  .strip { --th: 84px; --tk: 34px; --tl: 54px; --tw: 5px; }
  .strip .line { gap: 14px; }
  .strip .fc { --h: 46px; }
  .strip .cnt { gap: 8px; } .strip .cnt .u { font-size: 1.125rem; padding-bottom: 4px; }
  .swatches { gap: 10px; }
  .swatch { font-size: .875rem; gap: 8px; }
  .plans { display: block; margin-top: var(--s-6); }
  .plans > div + div { margin-top: var(--s-5); }
  .last .plate { padding: 26px 22px 24px 32px; }
  .foot { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .top nav { gap: 16px; }
  .plate.sm { padding: 18px 10px 12px 18px; }
  .plate.sm .fc { --h: 56px; }
  .sm .unit { font-size: 1.125rem; }
  .sm .rec { width: 44px; height: 44px; }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .swatch { font-size: .8125rem; }
  .widget .fc { --h: 48px; } .widget .rec { width: 44px; height: 44px; }
}
@media (forced-colors: active) {
  .plate, .sign, .widget, .rec, .undo, .undo button { border-color: CanvasText; }
  .plate::before, .rows li::before, .widget > div::before, .tick, .gapline { forced-color-adjust: none; }
  .swatch[aria-pressed="true"] img { outline: 3px solid Highlight; outline-offset: 3px; }
}
@media print { .undo, .hint { display: none; } }
