/* Atomic Tab — website · Chalk lab
   Created by Federica Benacquista
   A chalkboard lab: the slate is the board (dust, erased smudges, faint notes), headlines are
   written on in chalk, the app's own chalk drawings move, and everything you can press is a
   solid piece with a bottom edge (AT-02). Colours keep one meaning each: reward yellow = the
   promise and the score, missed pink = misses, right green always with ✓, the mode accents =
   the three games, family colours = element families (AppColors). No third-party requests.
   Every animation stops under prefers-reduced-motion. */

@font-face { font-family: "Peace Sans"; src: url("/atomictab/assets/fonts/PeaceSans.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Kalam"; src: url("/atomictab/assets/fonts/Kalam-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --slate: #121A24;
  --piece: #1B2532;
  --edge: #0B1118;
  --rule: #263241;
  --chalk: #F1EEE6;
  --chalk-edge: #B9B3A6;
  --dim: #8C99A6;
  --reward: #FFD166;
  --missed: #FF6B9A;
  --right: #7ED957;
  --quiz: #36AD92;
  --match: #4A9BD9;
  --card: #8B7AE0;
  --display: "Peace Sans", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --hand: "Kalam", "Bradley Hand", "Segoe Print", cursive;
  --ui: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 75rem;
  --gutter: 1.5rem;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { font-size: clamp(16px, calc(16px + (100vw - 1440px) * .006), 24px); scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--chalk);
  font: 500 1.0625rem/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--slate);
  /* the board: chalk dust and wiped-off smudges */
  background-image:
    radial-gradient(60% 40% at 18% 12%, rgba(241, 238, 230, .045), transparent 70%),
    radial-gradient(50% 35% at 82% 46%, rgba(241, 238, 230, .035), transparent 70%),
    radial-gradient(55% 30% at 30% 78%, rgba(241, 238, 230, .03), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 .95  0 0 0 0 .93  0 0 0 0 .9  0 0 0 -2.2 1.25'/></filter><rect width='320' height='320' filter='url(%23d)' opacity='.16'/></svg>");
  background-size: 100% 1500px, 100% 1700px, 100% 1300px, 320px 320px;
  background-repeat: repeat-y, repeat-y, repeat-y, repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; }
em { font-style: normal; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--dim); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; position: relative; }

.skip-link { position: absolute; left: 1rem; top: -3.75rem; z-index: 20; padding: 0.625rem 1rem; border-radius: 0.75rem; background: var(--chalk); color: var(--slate); }
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 0.1875rem solid var(--reward); outline-offset: 0.1875rem; border-radius: 0.375rem; }

/* ---------- chalk material ---------- */
.chalky {
  -webkit-mask-image: url("/atomictab/assets/site/chalk-grain.png?v=2");
          mask-image: url("/atomictab/assets/site/chalk-grain.png?v=2");
  -webkit-mask-size: 8.75rem; mask-size: 8.75rem;
}
.note { font: 700 1.3125rem/1.1 var(--hand); color: var(--chalk); opacity: .85; transform: rotate(-4deg); }
.doodle {
  position: absolute; z-index: 0; pointer-events: none; white-space: nowrap;
  font: 700 clamp(1.125rem, 2vw, 1.625rem)/1 var(--hand); color: var(--chalk); opacity: .1;
}
.scribble { overflow: visible; }
.scribble path {
  fill: none; stroke: var(--chalk); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  filter: url(#chalkf);
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.scribble .p2 { stroke-width: 2.5; opacity: .6; }
.in .scribble path, .hero .scribble path { animation: draw .7s var(--ease-out) forwards; }
.scribble path + path { animation-delay: .25s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.art { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(18, 26, 36, .9); backdrop-filter: blur(0.625rem); -webkit-backdrop-filter: blur(0.625rem); }
.topbar .wrap { display: flex; align-items: center; gap: 2.5rem; height: 5.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.875rem; text-decoration: none; font: 400 1.6875rem/1 var(--display); }
.brand img { flex: none; width: 2.875rem; height: 2.875rem; border-radius: 0.75rem; }
.topnav { display: flex; gap: 2.125rem; margin-left: auto; }
.topnav a { text-decoration: none; color: var(--dim); font-weight: 700; font-size: 1.125rem; }
.topnav a:hover { color: var(--chalk); }

/* ---------- pieces ---------- */
.piece {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.25rem; border: 0; border-radius: 0.875rem; cursor: pointer;
  background: var(--chalk); color: var(--slate); text-decoration: none;
  font: 700 0.9375rem/1 var(--ui);
  box-shadow: 0 0.25rem 0 var(--chalk-edge);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.piece:hover { background: #fff; }
.piece:active { transform: translateY(0.1875rem); box-shadow: 0 1px 0 var(--chalk-edge); }
.topbar .piece { margin-left: 0.25rem; min-height: 3.25rem; padding: 0 1.5rem; font-size: 1.0625rem; border-radius: 1rem; }
.badge { display: inline-block; transition: transform .2s var(--ease-bounce); }
.badge:hover { transform: rotate(-2deg) scale(1.04); }
.badge img { height: 3.375rem; width: auto; }

/* ---------- phones ---------- */
.phone { display: block; transition: transform .5s var(--ease-out); }
.phone img { transition: transform .5s var(--ease-out); }
.tilt-l img { transform: rotate(-3deg); }
.tilt-r img { transform: rotate(2.5deg); }
.phone:hover img { transform: rotate(0) scale(1.02); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 4rem 0 6.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; z-index: 1; }
.eyebrow { font-weight: 700; font-size: 0.9375rem; color: var(--dim); margin-bottom: 1.125rem; }
.hero h1 { font-size: clamp(2.75rem, 5vw, 4.375rem); line-height: 1.02; }
.hero h1 .ln { display: block; width: fit-content; position: relative; clip-path: inset(-10% 100% -30% 0); animation: write .8s var(--ease-out) forwards; }
.hero h1 .ln + .ln { animation-delay: .55s; }
.hero h1 .accent { color: var(--reward); }
@keyframes write { to { clip-path: inset(-10% -2% -30% 0); } }
.under { position: absolute; left: 0; bottom: -.22em; width: 96%; height: .4em; }
.under path { stroke: var(--reward); stroke-width: 5; animation-delay: 1.3s !important; }
.under .p2 { animation-delay: 1.5s !important; }
.lede { margin-top: 1.75rem; font-size: 1.1875rem; color: var(--dim); max-width: 30em; }
.lede strong { color: var(--chalk); font-weight: 700; }
.hero .badge { margin-top: 2rem; }
.reassure { margin-top: 1.125rem; font-size: 0.875rem; color: var(--dim); }
.hero-copy > :not(h1) { opacity: 0; animation: rise .7s var(--ease-out) forwards; animation-delay: .9s; }
.hero-copy > .eyebrow { animation-delay: .05s; }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

.bench { position: relative; padding: 2.5rem 0 3.75rem; }
.bench .phone { position: relative; z-index: 2; }
.bench-atom { position: absolute; z-index: 3; width: 10.625rem; right: -0.375rem; top: -4.75rem; }
.bench-atom .art { animation: spin 40s linear infinite; }
.bench-flask { position: absolute; z-index: 3; width: 10.625rem; left: -1.25rem; bottom: -1.875rem; }
.bench-flask .art { animation: wobble 5s ease-in-out infinite; transform-origin: 50% 90%; }
.note-hero { position: absolute; z-index: 3; left: 24%; bottom: -0.875rem; }
.note-hero .arrow { position: absolute; width: 5.25rem; left: 100%; top: -2.875rem; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* bubbles in every chalk flask/card */
.art .bub { animation: bubble 2.6s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.art .bub:nth-of-type(2n) { animation-duration: 3.3s; animation-delay: .8s; }
.art .bub:nth-of-type(3n) { animation-duration: 2.9s; animation-delay: 1.5s; }
@keyframes bubble { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-120px) scale(1.15); opacity: 0; } }

/* ---------- the experiment: live table ---------- */
.experiment { position: relative; padding: 6rem 0 7rem; }
.exp-head { max-width: 40rem; }
.exp-head h2, .feature h2 { font-size: clamp(2.25rem, 3.8vw, 3.25rem); line-height: 1.05; }
.exp-head h2 em { color: var(--reward); }
.exp-head p { margin-top: 1rem; font-size: 1.125rem; color: var(--dim); }
.exp-body { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; gap: 2.5rem; align-items: start; }
.ptable-scroll { overflow-x: auto; padding: 0.5rem 0.25rem 1rem; scrollbar-width: thin; }
.swipe { display: none; }
.ptable {
  --cell: minmax(0, 1fr);
  display: grid; grid-template-columns: repeat(18, var(--cell)); grid-template-rows: repeat(7, auto) 0.875rem repeat(2, auto);
  gap: 0.25rem; min-width: 40rem;
}
.slot { aspect-ratio: 1; border-radius: 0.375rem; border: 1.5px dashed rgba(241, 238, 230, .12); }
.el {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 0.375rem; cursor: pointer;
  background: var(--fam); color: var(--slate);
  font: 400 clamp(0.5625rem, 1.05vw, 0.9375rem)/1 var(--display);
  box-shadow: 0 0.1875rem 0 rgba(0, 0, 0, .38);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-2.875rem) rotate(-8deg);
  transition: transform .18s var(--ease-bounce), box-shadow .12s, filter .12s;
}
.el small { position: absolute; left: 0.1875rem; top: 2px; font: 700 clamp(0.375rem, .55vw, 0.5rem)/1 var(--ui); opacity: .7; }
.ptable.in .el { animation: drop .55s var(--ease-bounce) forwards; animation-delay: calc(var(--i) * 9ms); }
@keyframes drop { 0% { opacity: 0; transform: translateY(-2.875rem) rotate(-8deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.ptable.settled .el { opacity: 1; transform: none; animation: none; }
.el:hover { transform: translateY(-0.25rem) scale(1.12) !important; z-index: 2; box-shadow: 0 0.4375rem 0 rgba(0, 0, 0, .38); }
.el:active { transform: translateY(1px) !important; box-shadow: 0 1px 0 rgba(0, 0, 0, .38); }
.el[aria-pressed="true"] { outline: 0.1875rem solid var(--chalk); outline-offset: 2px; transform: translateY(-0.25rem) scale(1.12) !important; z-index: 3; }

.elcard { position: relative; }
.note-card { position: absolute; top: -2.75rem; left: -0.5rem; font-size: 1.1875rem; }
.note-card .arrow { position: absolute; width: 4.375rem; left: 100%; top: 0.25rem; }
.elcard-piece {
  position: relative; display: grid; gap: 2px; padding: 1.125rem 1.25rem 1.25rem; border-radius: 1rem;
  background: var(--fam, var(--piece)); color: var(--slate);
  box-shadow: 0 0.375rem 0 rgba(0, 0, 0, .4);
  transform: rotate(-2deg);
}
.elcard-piece.pop { animation: pop .45s var(--ease-bounce); }
@keyframes pop { 0% { transform: rotate(-2deg) scale(.85); } 100% { transform: rotate(-2deg) scale(1); } }
.el-n { font: 400 1.375rem/1 var(--display); }
.el-sym { font: 400 5.25rem/1 var(--display); margin-top: 0.25rem; }
.el-name { font: 700 1.125rem/1.2 var(--ui); }
.el-props { margin: 1.375rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; font-size: 0.9375rem; }
.el-props dt { color: var(--dim); padding: 0.4375rem 0; border-top: 1px solid var(--rule); }
.el-props dd { margin: 0; padding: 0.4375rem 0; border-top: 1px solid var(--rule); text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- feature sections ---------- */
.feature { position: relative; padding: 6.5rem 0; }
.feature > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center; z-index: 1; }
.feature.flip .copy { order: 2; }
.feature .copy > p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--dim); }
.feature .copy > p strong { color: var(--chalk); font-weight: 700; }
.mode { display: inline-flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; font-weight: 700; font-size: 0.9375rem; color: var(--accent, var(--dim)); }
.mode::before { content: ""; width: 0.875rem; height: 0.875rem; border-radius: 0.25rem; background: var(--accent, var(--dim)); box-shadow: 0 2px 0 var(--edge); }
.quiz { --accent: var(--quiz); }
.misses { --accent: var(--missed); }
.match { --accent: var(--match); }
.card { --accent: var(--card); }
.misses h2 em { color: var(--missed); }
.mode-art { width: 13.75rem; margin: -1.5rem 0 0 -1.25rem; }
.facts { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.facts li { padding: 0.8125rem 0; border-top: 1px solid var(--rule); color: var(--dim); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts b { color: var(--chalk); font-weight: 700; }

/* write-on for section headings, rise for the rest */
html.js [data-reveal] .write { clip-path: inset(-10% 100% -30% 0); transition: clip-path .9s var(--ease-out); }
html.js [data-reveal].in .write { clip-path: inset(-10% -2% -30% 0); }
html.js [data-reveal] > :not(.write):not(.mode-art), html.js .phone[data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js [data-reveal].in > :not(.write):not(.mode-art), html.js .phone[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].in > :nth-child(3) { transition-delay: .15s; }
[data-reveal].in > :nth-child(4) { transition-delay: .25s; }
[data-reveal].in > :nth-child(5) { transition-delay: .35s; }

/* Table Match art: the Na piece drops into its slot and lifts out again */
.art-match .na { transform-box: view-box; transform-origin: 0 0; }
.in .art-match .na { animation: place 4.2s var(--ease-out) infinite; }
@keyframes place {
  0%, 18% { transform: translate(0, 0); }
  42%, 62% { transform: translate(293px, 586px) scale(.31); }
  86%, 100% { transform: translate(0, 0); }
}
.in .art-match .na-hint { animation: fade 4.2s infinite; }
@keyframes fade { 30%, 70% { opacity: 0; } }

/* Fill the Card art: the liquid rises when the section arrives */
.art-card .lvl { transform: translateY(240px); transition: transform 1.6s var(--ease-out) .3s; }
.in .art-card .lvl { transform: translateY(0); }

/* ---------- the live round ---------- */
.round {
  position: relative; padding: 1.5rem; border-radius: 1.25rem;
  background: rgba(27, 37, 50, .72); border: 2px solid rgba(241, 238, 230, .14);
}
.round-top { display: flex; justify-content: space-between; align-items: baseline; }
.round-top .note { font-size: 1.5rem; }
.round-meta { color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.round-meta .score { color: var(--reward); }
.round-board { display: grid; grid-template-columns: 9.375rem minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-top: 0.75rem; }
.demo-flask .lvl { transform: translateY(calc(190px - var(--lvl, 0) * 330px)); transition: transform .9s var(--ease-bounce); }
.question { font: 400 clamp(1.25rem, 2vw, 1.625rem)/1.2 var(--display); min-height: 2.4em; }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; margin-top: 0.875rem; }
.ans {
  position: relative; min-height: 3.5rem; border: 0; border-radius: 0.75rem; cursor: pointer;
  background: var(--piece); color: var(--chalk);
  font: 400 1.375rem/1 var(--display);
  box-shadow: 0 0.25rem 0 var(--edge), inset 0 0 0 1.5px rgba(241, 238, 230, .08);
  transition: transform .08s, box-shadow .08s, background .2s;
}
.ans:hover { background: #223042; }
.ans:active { transform: translateY(0.1875rem); box-shadow: 0 1px 0 var(--edge); }
.ans.right { background: var(--right); color: var(--slate); }
.ans.right::after { content: "✓"; position: absolute; right: 0.5rem; top: 0.375rem; font: 700 0.875rem/1 var(--ui); }
.ans.wrong { background: var(--missed); color: var(--slate); animation: shake .4s; }
.ans:disabled { cursor: default; }
@keyframes shake { 20%, 60% { transform: translateX(-0.375rem); } 40%, 80% { transform: translateX(0.375rem); } }
.plus { position: absolute; left: 50%; top: -0.375rem; font: 400 1.375rem/1 var(--display); color: var(--reward); pointer-events: none; animation: float 1s var(--ease-out) forwards; }
@keyframes float { to { transform: translate(-50%, -3rem); opacity: 0; } }

.tube { display: flex; align-items: center; gap: 0.875rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed rgba(241, 238, 230, .16); }
.tube-label { flex: none; font: 700 1.125rem/1 var(--hand); color: var(--missed); transform: rotate(-3deg); }
.tube-glass {
  flex: 1; min-height: 3rem; display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; padding: 0.375rem 0.625rem;
  border: 2px solid rgba(241, 238, 230, .35); border-radius: 1.625rem;
}
.tube-glass:empty::before { content: attr(data-empty); font: 700 0.9375rem/1 var(--hand); color: var(--dim); }
.miss { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; display: grid; place-items: center; background: var(--missed); color: var(--slate); font: 400 0.9375rem/1 var(--display); box-shadow: 0 0.1875rem 0 rgba(0, 0, 0, .35); animation: into .5s var(--ease-bounce); }
@keyframes into { from { transform: translateY(-3.75rem) rotate(-20deg) scale(.6); opacity: 0; } }
.round-end { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.125rem; }
.round-end[hidden] { display: none; }
.round-result { font: 400 1.375rem/1.2 var(--display); }
.round-result em { color: var(--reward); }

.shots-stack { display: grid; gap: 1.75rem; }
.shots-stack .phone:last-child { width: 86%; margin-left: auto; margin-top: -10%; }

/* ---------- play: the live round gets its own stage ---------- */
.play { position: relative; padding: 4.5rem 0 6.5rem; }
.play > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; z-index: 1; }
.play h2 { font-size: clamp(2.25rem, 3.8vw, 3.25rem); line-height: 1.05; }
.play h2 em { color: var(--reward); }
.play-copy > p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--dim); }
.play-copy > p strong { color: var(--missed); font-weight: 700; }
.play-link { display: block; width: fit-content; margin-top: 1.125rem; font: 700 1.25rem/1.1 var(--hand); color: var(--reward); text-decoration: none; transform: rotate(-2deg); }
.play-link:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
.hero .play-link + .reassure { margin-top: 0.875rem; }

/* chalk dust when a piece is pressed */
.dust { position: fixed; z-index: 30; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--chalk); pointer-events: none; animation: dust .6s ease-out forwards; }
@keyframes dust { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- numbers ---------- */
.tally { list-style: none; padding: 0; margin: 1.75rem 0 0.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.tally li { display: grid; gap: 0.25rem; align-content: start; }
.tally b { font: 400 clamp(2.125rem, 3.4vw, 3rem)/1 var(--display); color: var(--reward); font-variant-numeric: tabular-nums; }
.tally span { font-size: 0.875rem; color: var(--dim); line-height: 1.3; }

/* ---------- download ---------- */
.download { position: relative; padding: 8.75rem 0 9.375rem; text-align: center; overflow: hidden; }
.download h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; }
.download p { margin-top: 1rem; font-size: 1.125rem; color: var(--dim); }
.download .badge { margin-top: 2rem; }
.download-atom { position: absolute; width: 32.5rem; left: 50%; top: 50%; margin: -16.25rem 0 0 -16.25rem; opacity: .09; pointer-events: none; }
.download-atom .art { animation: spin 60s linear infinite; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: 0.875rem; color: var(--dim); background: var(--slate); }
.footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem 3rem; align-items: start; }
.footer .brand { font-size: 1.25rem; color: var(--chalk); }
.footer .brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.625rem 1.5rem; justify-content: flex-end; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--chalk); }
.more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.more span { color: var(--chalk); font-weight: 700; margin-right: 0.25rem; }
.copyright { grid-column: 1 / -1; }

/* ---------- legal pages (same board, quiet) ---------- */
.legal { padding: 4rem 0 6rem; }
.legal .wrap { max-width: 47.5rem; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.05; -webkit-mask-image: url("/atomictab/assets/site/chalk-grain.png?v=2"); mask-image: url("/atomictab/assets/site/chalk-grain.png?v=2"); -webkit-mask-size: 11.25rem; mask-size: 11.25rem; }
.legal h1 + p { margin-top: 0.75rem; color: var(--dim); }
.legal .langs { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--dim); }
.legal .langs a { color: var(--chalk); }
.legal section { padding-top: 2.25rem; }
.legal h2 { font-size: 1.625rem; line-height: 1.15; }
.legal h3 { margin-top: 1.375rem; font: 700 1.125rem/1.3 var(--ui); }
.legal p, .legal li { color: #C9CED4; }
.legal p { margin-top: 0.875rem; }
.legal ul, .legal ol { margin: 0.875rem 0 0; padding-left: 1.375rem; }
.legal li { margin-top: 0.5rem; }
.legal strong { color: var(--chalk); }
.legal a { color: var(--chalk); text-decoration-color: var(--dim); text-underline-offset: 0.1875rem; }
.legal .table-scroll { overflow-x: auto; margin-top: 1rem; }
.legal table { width: 100%; min-width: 35rem; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--rule); }
.legal th { color: var(--chalk); font-weight: 700; }
.legal .note { margin-top: 1.125rem; padding: 0.875rem 1rem; border-radius: 0.75rem; background: var(--piece); color: var(--chalk); font: inherit; opacity: 1; transform: none; }

.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 6rem 0; }
.lost h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.lost p { margin: 1rem 0 1.75rem; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .topnav { display: none; }
  .topbar .piece { margin-left: auto; }
  .hero { padding: 2.25rem 0 5rem; }
  .hero .wrap, .feature > .wrap { grid-template-columns: 1fr; gap: 2.75rem; }
  .feature.flip .copy { order: 0; }
  .bench { padding: 4.375rem 0 2.5rem; }
  .bench .phone { margin-right: 0; }
  .bench-atom { width: 7.5rem; right: 0; top: 0; }
  .bench-flask { width: 6.875rem; left: 0; bottom: -1.625rem; }
  .note-hero { left: auto; right: 6%; bottom: -1.5rem; font-size: 1.125rem; }
  .note-hero .arrow { display: none; }
  .mode-art { width: 10.625rem; margin-left: -0.625rem; }
  .exp-body { grid-template-columns: 1fr; }
  .elcard { max-width: 22.5rem; }
  .swipe { display: block; margin: 0 0 0.375rem; font-size: 1.125rem; }
  .note-card { position: static; margin-bottom: 0.625rem; }
  .note-card .arrow { display: none; }
  .feature { padding: 5rem 0; }
  .play > .wrap { grid-template-columns: 1fr; gap: 1.75rem; }
  .play { padding: 3rem 0 5rem; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .doodle { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
  .topbar .wrap { height: 4.5rem; gap: 0.75rem; }
  .brand { font-size: 1.4375rem; gap: 0.75rem; }
  .brand img { width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; }
  .topbar .piece { min-height: 2.875rem; padding: 0 1.125rem; font-size: 1rem; }
  .lede, .feature .copy > p, .exp-head p { font-size: 1.0625rem; }
  .badge img { height: 3rem; }
  .round { padding: 1.125rem 0.875rem; }
  .round-board { grid-template-columns: 1fr; }
  .round-flask { width: 5.25rem; margin: 0 auto -0.375rem; }
  .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
  .round-end { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .ln, [data-reveal] .write { clip-path: none !important; }
  .hero-copy > *, [data-reveal] > *, .phone[data-reveal] { opacity: 1 !important; transform: none !important; }
  .scribble path { stroke-dashoffset: 0; }
  .el { opacity: 1; transform: none; }
  .art-card .lvl { transform: none; }
}

@media (min-width: 1440px) {
  .bench .phone { margin-right: -2.5rem; }
  .bench-atom { right: -3.125rem; }
}

/* ---------- FAQ ---------- */
.faq { position: relative; padding: 6.5rem 0 1rem; }
.faq h2 { font-size: clamp(2.25rem, 3.8vw, 3.25rem); line-height: 1.05; }
.faq-list { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.faq-item { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.faq-item h3 { font: 700 1.25rem/1.3 var(--ui); color: var(--chalk); }
.faq-item p { margin-top: .625rem; color: var(--dim); font-size: 1.0625rem; }
@media (max-width: 1000px) { .faq-list { grid-template-columns: 1fr; } .faq { padding-top: 4.5rem; } }

/* numbers without a screen (languages whose results screen is not localized yet) */
.numbers.solo > .wrap { grid-template-columns: 1fr; }
.numbers.solo .copy { max-width: 56rem; }
.numbers.solo .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.numbers.solo .facts li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) { .numbers.solo .facts { grid-template-columns: 1fr; } .numbers.solo .facts li:nth-last-child(2) { border-bottom: 0; } }

/* language row in the footer */
.langs-row a[aria-current="page"] { color: var(--chalk); font-weight: 700; }
.numbers + .faq { padding-top: 2.5rem; }

/* ---------- help hub and guides (same quiet board as the legal pages) ---------- */
.help .crumbs { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.help .crumbs a { color: var(--dim); text-decoration: none; }
.help .crumbs a::before { content: "← "; }
.help .crumbs a:hover { color: var(--chalk); }
.legal.help h1 + p.answer, .help .answer { margin-top: 1rem; color: var(--chalk); font-size: 1.1875rem; line-height: 1.5; }
.help .facts-line { color: var(--dim); }
.help .steps { counter-reset: step; list-style: none; padding-left: 0; }
.help .steps li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-top: 0.875rem; }
.help .steps li::before { content: counter(step); position: absolute; left: 0; top: -0.0625rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--piece); border: 1px solid var(--rule); color: var(--chalk); font: 700 0.9375rem/1 var(--ui); }
.help .shot { margin: 1.75rem 0 0; }
.help .shot img { display: block; width: 100%; height: auto; border-radius: 0.875rem; border: 1px solid var(--rule); background: var(--edge); }
.help .shot figcaption { margin-top: 0.625rem; color: var(--dim); font-size: 0.9375rem; }
.pro-tag { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: var(--reward); color: var(--slate); font: 700 0.8125rem/1.3 var(--ui); vertical-align: 0.0625rem; }
.help .pro-line { color: var(--chalk); }
.help-list { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.help-list li { margin: 0 !important; position: relative; }
.help-list a { display: block; height: 100%; padding: 1rem 1.125rem; border-radius: 0.875rem; background: var(--piece); border: 1px solid var(--rule); text-decoration: none; }
.help-list a:hover { border-color: var(--chalk-edge); }
.help-list strong { display: block; font: 700 1.0625rem/1.3 var(--ui); }
.help-list span { display: block; margin-top: 0.375rem; color: var(--dim); font-size: 0.9375rem; line-height: 1.4; }
.help-list .pro-tag { position: absolute; top: 0.75rem; right: 0.75rem; margin: 0; color: var(--slate); font-size: 0.75rem; }
.help-list li:has(.pro-tag) strong { padding-right: 2.75rem; }
.help .related ul { list-style: none; padding-left: 0; }
@media (max-width: 700px) { .help-list { grid-template-columns: 1fr; } }
.faq-more { margin-top: 1.5rem; }
.faq-more a { color: var(--chalk); font-weight: 700; text-underline-offset: 0.1875rem; }
