/* Doomrank website. One stylesheet for every page. */

/* Rubik, served from this site (SIL Open Font License: fonts/OFL.txt).
   One variable file covers every weight; Latin characters only. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-latin.woff2") format("woff2");
}

:root {
  --sky: #9AD8FF;
  --sky-light: #C9EBFF;
  --sky-deep: #5DB7F2;
  --paper: #FFFFFF;
  --mist: #F2F9FF;
  --ink: #0E1116;
  --sub: #5B6472;
  --sub-on-sky: #3F4754;
  --line: #D6E6F3;
  --link: #0B5CAD;
  --frog: #6CC24A;
  --frog-dark: #3E8E2F;
  --enamel: #FFF6E8;
  --enamel-shade: #E7DCCB;
  --rim: #1A1D23;
  --counter: #F4E9D8;
  --tile: #E3F2FB;
  --grout: #CFE6F5;
  --t-cool: #4FC3F7;
  --t-warm: #FFE08A;
  --t-cozy: #FFC15C;
  --t-simmer: #FF9F45;
  --t-boil: #FF7043;
  --t-cooked: #E5484D;
  --neon: #39FF14;
  --r-xl: 48px;
  --r-l: 32px;
  --r-m: 22px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --counter-h: 56px;
  --tiles-h: 150px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

body.page { background: var(--mist); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: .18em; }

h1, h2, h3 { margin: 0; text-wrap: balance; }

p { margin: 0; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header (all pages) ---------- */

.topbar {
  display: flex;
  justify-content: center;
  padding: 22px 16px 0;
  background: var(--sky);
}

.wordmark {
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  padding: 6px 4px;
}

/* ---------- Buttons and small bits ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(14, 17, 22, .28);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { background: #1f2530; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(14, 17, 22, .28); }

.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--c, var(--t-cozy));
  color: var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.5;
  border: 2px solid var(--ink);
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sub);
}

/* ---------- Landing hero ---------- */

.hero {
  background: var(--sky);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  position: relative;
}

.hero-copy {
  text-align: center;
  padding: 36px 16px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(3.25rem, 13vw, 8rem);
  line-height: .92;
  letter-spacing: -.035em;
  max-width: 10.5ch;
  margin: 0 auto;
}

.hero .sub {
  color: var(--sub-on-sky);
  font-size: clamp(1.0625rem, 2.3vw, 1.375rem);
  line-height: 1.5;
  max-width: 34em;
  margin: 22px auto 0;
}

.soon {
  display: inline-block;
  margin-top: 26px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-weight: 700;
  font-size: clamp(.9375rem, 2.6vw, 1rem);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.cta-note {
  color: var(--sub-on-sky);
  font-size: .975rem;
  max-width: 30em;
}
.cta-note a { color: var(--ink); font-weight: 500; }

/* The kitchen stage: phone in the middle, pot and thermometer either side. */

.stage {
  position: relative;
  margin-top: 44px;
}

.stage-back {
  position: absolute;
  inset: 0 0 var(--counter-h) 0;
  width: 100%;
  height: calc(100% - var(--counter-h));
  max-width: none;
}

.stage-tiles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--counter-h);
  height: var(--tiles-h);
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--grout) 3px, transparent 3px),
    linear-gradient(90deg, var(--grout) 3px, transparent 3px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  border-top: 8px solid var(--grout);
}

.stage-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--counter-h);
  background: linear-gradient(var(--counter) 0 64%, var(--enamel-shade) 64%);
  border-top: 4px solid var(--rim);
}

.stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .56fr);
  grid-template-areas:
    "phone phone"
    "pot thermo";
  align-items: end;
  gap: 36px 10px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px calc(var(--counter-h) - 18px);
}

.art-pot { grid-area: pot; margin: 0; }
.art-thermo { grid-area: thermo; margin: 0; }
.art-pot svg { width: 100%; height: auto; max-width: 470px; margin: 0 auto; }
.art-thermo svg { width: 100%; height: auto; max-width: 250px; margin: 0 auto; }

/* ---------- Phone mockup (the app's own colours live only in here) ---------- */

.phone {
  grid-area: phone;
  justify-self: center;
  position: relative;
  width: 300px;
  height: 620px;
  margin: 0;
  padding: 11px;
  border-radius: 52px;
  background: var(--rim);
  box-shadow:
    inset 0 0 0 2px #454b56,
    0 36px 60px -24px rgba(14, 17, 22, .55);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 4px;
  background: var(--rim);
  border-radius: 3px;
}
.phone::before { right: -4px; top: 170px; height: 78px; }
.phone::after { left: -4px; top: 150px; height: 56px; box-shadow: 0 70px 0 var(--rim); }

.screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  background: #000;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.3;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px #15171b;
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 6px 28px 0 30px;
  font-weight: 700;
  font-size: 14px;
}
.status svg { width: 62px; height: 12px; }

.app-top { text-align: center; padding: 6px 12px 0; }

.scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon);
  font-weight: 700;
  font-size: 14px;
}
.scope svg { width: 16px; height: 16px; }

.board-head {
  margin-top: 10px;
  color: var(--neon);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .14em;
}

.chips {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 12px -4px 8px;
}
.chip {
  padding: 6px 7px;
  border: 1px solid #2b3036;
  border-radius: 999px;
  color: var(--neon);
  font-weight: 700;
  font-size: 10.5px;
  white-space: nowrap;
}
.chip.on { background: var(--neon); border-color: var(--neon); color: #000; }

.rows { list-style: none; margin: 4px 0 0; padding: 0 10px; }

.row {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 8px;
  border-bottom: 1px solid #17191d;
}
.row .rk { width: 16px; text-align: center; font-weight: 700; color: #a3abb5; flex: none; }
.row .av { width: 32px; height: 32px; flex: none; border-radius: 50%; }
.row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.row .fl { flex: none; font-size: 15px; }
.row .mo { flex: none; width: 14px; height: 14px; color: #6b727c; }

.row.you {
  height: 56px;
  margin: 4px 0;
  border: 1.5px solid var(--neon);
  border-radius: 14px;
  background: rgba(57, 255, 20, .08);
}
.row.you .rk { color: #fff; }
.row.you .nm { font-weight: 700; }
.you-stat { flex: none; font-weight: 700; font-size: 12.5px; }

.tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 28px;
  border-top: 1px solid #17191d;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #7d848e; }
.tab svg { width: 20px; height: 20px; }
.tab.on { color: var(--neon); }

.home-ind {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 110px;
  height: 4px;
  margin-left: -55px;
  border-radius: 4px;
  background: #fff;
  opacity: .85;
}

/* ---------- Landing sections ---------- */

.section { padding: 80px 16px; }

.wrap { max-width: 1120px; margin: 0 auto; }

.band {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px;
  border-radius: var(--r-xl);
  background: var(--mist);
}
.band-wrap { padding: 0 12px; }
.band-wrap + .band-wrap { margin-top: 24px; }

.center { text-align: center; }

.h-big {
  font-weight: 900;
  font-size: clamp(2.125rem, 5.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.lead {
  font-size: clamp(1.125rem, 2.1vw, 1.3125rem);
  line-height: 1.55;
  color: var(--sub);
  max-width: 38em;
  margin-top: 18px;
}
.center .lead { margin-left: auto; margin-right: auto; }

.aside {
  margin-top: 18px;
  color: var(--sub);
  font-size: 1rem;
}

.intro .h-big { max-width: 16ch; margin: 0 auto; }

/* How it works */

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 26px 24px 28px;
}
.step svg { width: 84px; height: 84px; }
.step h3 { font-size: 1.375rem; font-weight: 700; margin-top: 16px; }
.step p { margin-top: 8px; color: var(--sub); }
.step-n {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sky-light);
  font-weight: 900;
}

/* Privacy band */

.privacy-band { background: var(--sky-light); }

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

.views { display: grid; gap: 16px; margin: 0; }
.view {
  margin: 0;
  background: #fff;
  border-radius: 24px;
  padding: 14px 14px 16px;
  border: 2px solid rgba(14, 17, 22, .08);
}
.view figcaption { font-weight: 700; font-size: .9375rem; color: var(--sub); margin-bottom: 10px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: var(--mist);
  font-size: 1rem;
}
.mini-row .rk { font-weight: 900; width: 22px; text-align: center; }
.mini-row svg { width: 32px; height: 32px; flex: none; }
.mini-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mini-row .stat { font-weight: 700; white-space: nowrap; }
.view-you .mini-row { background: #FFF6E8; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 26px; height: 26px; flex: none; margin-top: 1px; }

.more-link { display: inline-block; margin-top: 22px; font-weight: 700; }

/* Frog in the Pot */

.ladder-bar {
  display: none;
  position: relative;
  height: 26px;
  margin: 44px 0 18px 30px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--t-cool), var(--t-warm) 20%, var(--t-cozy) 40%, var(--t-simmer) 60%, var(--t-boil) 80%, var(--t-cooked));
}
.ladder-bar::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--t-cool);
}

.tiers {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.tier {
  background: #fff;
  border: 2px solid var(--line);
  border-top: 10px solid var(--c);
  border-radius: 22px;
  padding: 16px 16px 18px;
}
.tier .range { display: block; margin-top: 10px; font-weight: 700; }
.tier p { margin-top: 6px; color: var(--sub); font-size: .975rem; line-height: 1.45; }

.owner-note {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  font-weight: 700;
}
.owner-note svg { width: 28px; height: 28px; flex: none; }

/* Boards */

.boards {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.board {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 26px;
  padding: 22px 22px 24px;
}
.board svg { width: 48px; height: 48px; }
.board h3 { font-size: 1.25rem; font-weight: 700; margin-top: 12px; }
.board p { margin-top: 6px; color: var(--sub); }

.periods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.periods li {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--mist);
  border: 2px solid var(--line);
  font-weight: 500;
}

.hc {
  display: inline-block;
  margin-top: 22px;
  padding: 6px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  letter-spacing: .12em;
}

/* Doomrank Pro */

.pro {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  padding: 56px 22px;
}
.pro .kicker { color: #C9D2DD; }
.kicker + .h-big { margin-top: 8px; }
.pro .lead { color: #D3DAE3; }
.pro-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; font-size: 1.125rem; }
.pro-list li { display: flex; gap: 12px; align-items: flex-start; }
.pro-list svg { width: 28px; height: 28px; flex: none; }
.pro-quote {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #1C222B;
  color: #E6EBF1;
}
.pro-fine { margin-top: 18px; color: #C9D2DD; font-size: .9375rem; }
.pro-art svg { width: 100%; max-width: 300px; height: auto; margin: 0 auto; }

/* FAQ teaser */

.faq {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.qa {
  background: var(--mist);
  border-radius: 26px;
  padding: 22px 24px 24px;
}
.qa h3 { font-size: 1.1875rem; font-weight: 700; }
.qa p { margin-top: 8px; color: var(--sub); }

/* Final call */

.final {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  background: var(--sky);
  padding: 60px 20px 64px;
  text-align: center;
}
.final .lead { color: var(--sub-on-sky); margin-left: auto; margin-right: auto; }
.final .lead a { color: var(--ink); }
.final .cta { margin-top: 26px; }
.final .made { margin-top: 26px; font-weight: 500; }
.final-frog { width: 150px; height: auto; margin: 0 auto 14px; }

.bye { text-align: center; padding: 48px 16px 0; color: var(--sub); }

/* ---------- Document pages (privacy, terms, delete account, help) ---------- */

.page-hero {
  background: var(--sky);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 34px 0 104px;
  text-align: center;
}
.page-hero h1 {
  font-weight: 900;
  font-size: clamp(2.375rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0 16px;
}
.page-hero .meta {
  margin: 16px 16px 0;
  color: var(--sub-on-sky);
  font-size: 1.0625rem;
}

.doc {
  position: relative;
  max-width: 780px;
  margin: -72px auto 0;
  padding: 30px 20px 40px;
  background: #fff;
  border-radius: var(--r-l);
  box-shadow: 0 1px 0 var(--line), 0 28px 56px -32px rgba(14, 17, 22, .28);
}
.doc-wrap { padding: 0 12px; }

.doc > p:first-child, .doc .intro-p { font-size: 1.125rem; }
.doc h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 2.1em 0 .55em;
  scroll-margin-top: 20px;
}
.doc h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.7em 0 .4em;
  scroll-margin-top: 20px;
}
.doc p, .doc li { line-height: 1.7; }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + ol, .doc ol + p { margin-top: .9em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: .7em 0 0; }
.doc li + li { margin-top: .45em; }
.doc a:not(.btn) { color: var(--link); }
.doc strong { font-weight: 700; }

.toc {
  margin: 26px 0 0;
  padding: 18px 22px 20px;
  border-radius: var(--r-m);
  background: var(--mist);
}
.toc h2 { margin: 0 0 6px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sub); }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li + li { margin-top: .3em; }

.callout {
  margin-top: 1.2em;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--enamel);
  border: 2px solid #EBDDC4;
}
.callout p + p { margin-top: .6em; }

.path {
  display: inline;
  font-weight: 700;
}

.contact-card {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--r-m);
  background: var(--sky-light);
}
.contact-card p + p { margin-top: .5em; }
.doc .contact-card h2 { margin: 0 0 .4em; font-size: 1.25rem; }
.contact-card .btn { margin-top: 14px; }

.updated { margin-top: 2.4em; color: var(--sub); font-size: .9375rem; }

.doc .summary { margin-top: 1.4em; padding: 18px 22px; border-radius: var(--r-m); background: var(--sky-light); }
.doc .summary h2 { margin: 0 0 .4em; font-size: 1.125rem; }
.doc .summary ul { margin-top: 0; }
.doc dl { margin: .8em 0 0; }
.doc dt { font-weight: 700; margin-top: 1em; }
.doc dd { margin: .25em 0 0; }

/* ---------- Single-message pages (404, invite) ---------- */

.solo { padding: 0 16px 40px; text-align: center; }
.solo .h-big { margin-top: 34px; }
.solo .lead { margin: 16px auto 0; color: var(--sub-on-sky); }
.solo > .btn, .solo .cta { margin-top: 26px; }

.invite-code {
  max-width: 24rem;
  margin: 22px auto 0;
  padding: 16px 20px 18px;
  border-radius: var(--r-m);
  background: #fff;
}
.invite-code .code { font-weight: 900; font-size: 2rem; line-height: 1.3; letter-spacing: .08em; }
.invite-code p:last-child { color: var(--sub); }

/* ---------- Footer (all pages) ---------- */

.site-footer {
  position: relative;
  margin-top: 96px;
  overflow: hidden;
  background: var(--sky-deep);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.footer-art {
  width: 100%;
  height: clamp(140px, 17vw, 230px);
  max-width: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 28px;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 16px 0;
  text-align: center;
}
.footer-links section { min-width: 8.5rem; }
.footer-links h2 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links a { text-decoration: none; display: inline-block; padding: 10px 6px; }
.footer-links a:hover { text-decoration: underline; }

.footer-copy { text-align: center; margin: 30px 16px 0; font-size: .9375rem; }

.footer-word {
  margin: 8px 0 -.13em;
  font-weight: 900;
  font-size: 16vw;
  line-height: .9;
  letter-spacing: -.04em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, .3);
  user-select: none;
}
/* Decorative, so the word lives in CSS rather than in the page text. */
.footer-word::before { content: "DOOMRANK"; }

/* ---------- Motion (only when the reader is fine with it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
  .puff { animation: rise 5.5s ease-in-out infinite; }
  .puff:nth-of-type(2) { animation-delay: -1.8s; }
  .puff:nth-of-type(3) { animation-delay: -3.6s; }
  .heat path { animation: shimmer 2.8s ease-in-out infinite; }
  .heat path:nth-child(even) { animation-delay: -1.4s; }
  .coil, .glow { animation: warm 3.2s ease-in-out infinite; }
  .bubble { animation: pop 3s ease-in infinite; }
  .bubble--2 { animation-delay: -1s; }
  .bubble--3 { animation-delay: -2s; }
}

@keyframes rise {
  0% { transform: translateY(12px); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-34px); opacity: 0; }
}
@keyframes shimmer {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(-7px); opacity: .9; }
}
@keyframes warm {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}
@keyframes pop {
  0% { transform: translateY(6px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root { --counter-h: 64px; --tiles-h: 170px; }
  .section { padding: 104px 24px; }
  .band { padding: 80px 48px; }
  .pro { padding: 72px 56px; }
  .final { padding: 76px 40px 80px; }
  .doc { padding: 48px 56px 56px; }
  .footer-links { gap: 30px 64px; }
  .toc ol { columns: 2; column-gap: 40px; }
  .toc li { break-inside: avoid; }
}

@media (min-width: 960px) {
  :root { --counter-h: 72px; --tiles-h: 190px; }
  .stage { margin-top: 52px; }
  .stage-grid {
    grid-template-columns: minmax(0, 1.4fr) 300px minmax(0, .9fr);
    grid-template-areas: "pot phone thermo";
    gap: 0 28px;
    padding: 0 24px calc(var(--counter-h) - 26px);
  }
  .art-pot svg { margin: 0 0 0 auto; }
  .art-thermo svg { margin: 0 auto 0 0; }
  .split { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .pro-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
  .ladder-bar { display: block; }
  .tiers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .pro-art { margin-top: 36px; }
  /* Stacked layout: the kitchen shapes would float beside the phone. */
  .stage-back { display: none; }
}

/* Very narrow phones: shrink the mockup instead of scrolling sideways. */
@media (max-width: 340px) {
  .phone { zoom: .9; }
}
