/* =========================================================
   TEMPER | The 30-Day Reset
   Base: tokens, type, layout, textures, buttons, reveal.
   Feature layers live in intro.css, figures.css and ink.css.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-3: #1a1a1a;
  --bone: #ece7dd;
  --bone-dim: #b9b4ab;
  --muted: #8f8b85;
  --line: rgb(236 231 221 / .14);
  --line-strong: rgb(236 231 221 / .32);

  --paper: #d7d0c4;
  --paper-light: #e6e1d8;
  --paper-ink: #141414;
  --paper-muted: #4d4a45;
  --paper-line: #a9a194;

  --concrete: #cfd0cc;
  --highlight: #e2d53c;
  --red: #c42f2a;

  --font-display: "Anton", "Anton Fallback", Impact, "Arial Narrow", sans-serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", Arial, sans-serif;
  --font-spray: "Caveat Brush", "Comic Sans MS", cursive;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-snap: cubic-bezier(.7, 0, .2, 1);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --speckle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  16 0 0 0 -12.6'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
  --fiber: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .04' numOctaves='4' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.intro-active body { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything, like the photo posts */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  background-image: var(--noise);
  opacity: .12;
  /* Keep the paper texture without repainting the entire viewport. */
  animation: none;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.05; }
p { color: var(--bone-dim); }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button:disabled { cursor: not-allowed; }
:is(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 4px;
}
::selection { background: var(--highlight); color: var(--ink); }

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1100;
  padding: 12px;
  background: var(--highlight);
  color: var(--ink);
}
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.small { color: var(--muted); font-size: 14px; }

/* ---------- Type roles ---------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .95;
  color: var(--bone);
}
h1.display { font-size: clamp(3.2rem, 8.4vw, 8rem); }
h2.display { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }

.serif {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
}
h2.serif { font-size: clamp(2rem, 4vw, 3.4rem); }
h3.serif { font-size: 1.45rem; }

h3 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }

/* Letter-spaced serif labels (the "SAME STANDARD / DIFFERENT DAY." voice) */
.spaced {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.spaced::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-bottom: 14px;
  background: currentColor;
}

.eyebrow {
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--bone-dim);
}
.eyebrow.ink { color: var(--paper-muted); }

.lead { margin-top: 24px; font-size: 18px; max-width: 540px; }

/* Distressed print texture on big type */
.distress {
  -webkit-mask-image: var(--speckle), linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-image: var(--speckle), linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-size: 260px 260px, 100% 100%;
  mask-size: 260px 260px, 100% 100%;
}

/* Highlighter fallback (ink.css animates it) */
.hl {
  background: linear-gradient(transparent 8%, var(--highlight) 8%, var(--highlight) 92%, transparent 92%);
  color: var(--ink);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.tick { display: block; width: 28px; height: 2px; margin: 30px 0 0; background: var(--bone); }

/* ---------- Buttons ---------- */
.temper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.temper-button .arrow { display: inline-block; font-size: 17px; transition: transform .3s var(--ease-out); }
.temper-button:hover .arrow { transform: translateX(6px); }

/* Primary buttons are a scrap of paper: fibre, grain, a faint fold, slightly uneven edges */
.btn-primary {
  position: relative;
  border: 0;
  background-color: var(--paper-light);
  background-image:
    linear-gradient(100deg, transparent 46%, rgb(0 0 0 / .07) 47%, rgb(255 255 255 / .35) 48.5%, transparent 50%),
    radial-gradient(ellipse at 30% 20%, rgb(255 255 255 / .45), transparent 60%),
    var(--fiber),
    var(--noise);
  background-size: 100% 100%, 100% 100%, 300px 300px, 160px 160px;
  color: var(--paper-ink);
  clip-path: polygon(0 3%, 12% 0, 38% 2%, 63% 0, 88% 1.5%, 100% 0, 99.4% 34%, 100% 71%, 99.2% 100%, 72% 98.5%, 47% 100%, 21% 98%, 0 100%, .6% 62%);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08);
  transition: transform .3s var(--ease-out), filter .3s;
}
.btn-primary:hover { transform: translateY(-2px) rotate(-.6deg); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0) rotate(0); }
.btn-outline { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn-outline:hover { background: var(--bone); color: var(--ink); }
.btn-ink { background: var(--paper-ink); color: var(--paper-light); border-color: var(--paper-ink); }
.btn-ink:hover { background: transparent; color: var(--paper-ink); }
.temper-button:disabled { opacity: .45; pointer-events: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

/* ---------- Header ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 800;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.topbar.is-scrolled {
  background: rgb(10 10 10 / .82);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand img { width: 40px; height: auto; }
.topbar nav { display: flex; align-items: center; gap: 30px; font-size: 13px; letter-spacing: .06em; }
.topbar nav a:not(.temper-button) { text-decoration: none; color: var(--bone-dim); transition: color .2s; }
.topbar nav a:not(.temper-button):hover { color: var(--bone); }
.nav-mobile-only { display: none; }

/* Hamburger: two bars that fold into an X */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--bone);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; width: 16px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; width: 24px; transform: rotate(-45deg); }
.topbar .temper-button { min-height: 42px; padding: 10px 18px; font-size: 11px; }

/* ---------- Scene mounts (drawn by intro.js) ---------- */
.scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  z-index: 2;
  background: var(--ink);
  isolation: isolate;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
}
.hero-copy { max-width: 760px; }
.hero .sub { max-width: 520px; margin: 26px 0 8px; font-size: 18px; color: var(--bone-dim); }
.hero h1 { max-width: 900px; }

/* Price lives inside the button: amount, divider, status */
.btn-price { gap: 14px; }
.btn-price strong { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: .04em; }
.btn-price span { padding-left: 14px; border-left: 1px solid currentColor; font-size: 11px; letter-spacing: .18em; }
.btn-price:disabled { opacity: .6; }

/* Sample day autoplay: the reflection gets written in, then the day is marked done */
.sample-input.is-writing { caret-color: var(--red); }
.sample-done { color: var(--red) !important; font-weight: 700 !important; letter-spacing: .04em; }

/* ---------- The plan: a sheet that gets flattened back out ---------- */
.plan { position: relative; padding: 120px 0 140px; background: var(--ink); overflow: hidden; }
.plan-grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 60px; align-items: center; }
.plan-day {
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 20rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(236 231 221 / .42);
  letter-spacing: -.01em;
  user-select: none;
}
.plan-day span { font-size: .38em; -webkit-text-stroke-width: 1px; }
.plan-stage { position: relative; }
.product-preview {
  max-width: 500px;
  margin: 0;
  padding: 30px;
  background: var(--paper-light);
  background-image: var(--fiber), var(--noise);
  color: var(--paper-ink);
  box-shadow: 0 30px 60px rgb(0 0 0 / .55), 0 2px 0 rgb(0 0 0 / .2);
  transform: rotate(-2deg);
}
.product-preview p { color: var(--paper-muted); }
.product-preview h2 { margin: 20px 0 6px; font-family: var(--font-serif); font-weight: 700; font-size: 2.2rem; }
.preview-top, .row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.preview-top { padding-bottom: 14px; border-bottom: 1px solid var(--paper-line); font-size: 11px; letter-spacing: .2em; color: var(--paper-muted); }
.row-between { margin-top: 20px; }
.product-preview .small { color: var(--paper-muted); }
.tag { padding: 3px 8px; background: var(--highlight); color: var(--ink); font-size: 10px; letter-spacing: .14em; }
.product-preview .minimum { border-color: var(--paper-ink); }
.product-preview .check-row { border-color: var(--paper-line); }
.mark { color: #8a8378; }
.mark.on { color: var(--red); }

.minimum { margin: 26px 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--bone); }
.minimum strong { display: block; margin-top: 8px; font-family: var(--font-serif); font-size: 21px; line-height: 1.35; }
.minimum h3 { margin-bottom: 12px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.check-row label { flex: 1; cursor: pointer; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 130px 0; isolation: isolate; }
.section > .wrap { position: relative; z-index: 1; }
section[id] { scroll-margin-top: 80px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { margin-top: 22px; max-width: 560px; font-size: 17px; }

.dark { background: var(--ink); color: var(--bone); }
.problem { display: flex; align-items: center; min-height: 690px; background: #0d0d0d; }
.problem .problem-layout { display: block; width: 100%; }
.problem .problem-layout > div:first-child { max-width: 510px; }
.problem .lead { max-width: 470px; }

.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 40%, rgb(255 255 255 / .22), transparent 65%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgb(60 50 40 / .22)),
    var(--fiber),
    var(--noise);
  background-size: 100% 100%, 100% 100%, 600px 600px, 220px 220px;
  color: var(--paper-ink);
}
.paper p { color: #24221f; font-weight: 500; }
.paper .small { color: #3d3a35; font-weight: 500; }
.paper .eyebrow.ink { color: #24221f; font-weight: 700; }
.paper .check-row { border-color: var(--paper-line); }
#receive { border-top: 1px solid var(--paper-line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* A loose sheet of paper on a dark background */
.paper-sheet {
  position: relative;
  padding: 70px 50px;
  background-color: var(--paper-light);
  background-image:
    linear-gradient(115deg, transparent 38%, rgb(0 0 0 / .06) 39%, transparent 41%),
    linear-gradient(28deg, transparent 58%, rgb(255 255 255 / .5) 59%, transparent 61%),
    linear-gradient(170deg, transparent 20%, rgb(0 0 0 / .05) 21%, transparent 23%),
    var(--fiber),
    var(--noise);
  color: var(--paper-ink);
  box-shadow: 0 40px 70px rgb(0 0 0 / .6);
}
/* Sample day */
.sample-card { padding-top: 10px; }
.sample-card h3 { margin-bottom: 18px; }
#sample-habits { margin-bottom: 22px; }
.check-row input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--paper-ink);
  background: transparent;
  cursor: pointer;
}
.check-row input[type="checkbox"]:checked::after {
  content: "";
  width: 11px;
  height: 6px;
  border: solid var(--paper-ink);
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg);
}
.check-row input:checked + label { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.field { display: block; margin: 18px 0; }
.field > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  border-radius: 0;
  resize: vertical;
}
.sample-input {
  display: block;
  color: var(--paper-ink);
  background: rgb(255 255 255 / .35);
  font-family: var(--font-serif);
}
.sample-input:focus { background: rgb(255 255 255 / .6); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step .num { margin-bottom: 18px; font-family: var(--font-display); font-size: 15px; letter-spacing: .12em; color: var(--bone); }
#mechanism .step .num { position: absolute; top: 22px; left: 0; z-index: 1; margin: 0; font-size: 22px; }
.step p:not(.num) { margin-top: 14px; }
.step .figure { height: 170px; margin: 0 0 28px; }
.month .step h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; letter-spacing: .01em; line-height: 1; }

.month-track { position: relative; }
.figure-climb { position: relative; height: 240px; margin-bottom: 30px; }
.sample-habits-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; margin-bottom: 6px; }
.sample-habits-row #sample-habits { margin-bottom: 0; }
.figure-water { width: 100%; height: 210px; }

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 30px 0;
  border-top: 1px solid var(--paper-line);
}
.feature-row:last-of-type { border-bottom: 1px solid var(--paper-line); }
.feature-row p { max-width: 620px; font-size: 17px; line-height: 1.6; }
.feature-row h3 { line-height: 1.5; }

/* ---------- Wall interlude ---------- */
.wall {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  min-height: 86vh;
  padding: 120px 24px;
  overflow: hidden;
  background-color: #c7c8c4;
  background-image:
    linear-gradient(180deg, #8e908c 0, #b8b9b5 5%, #cdcecb 7%, transparent 9%),
    radial-gradient(ellipse at 50% 45%, rgb(255 255 255 / .35), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgb(0 0 0 / .35)),
    var(--fiber),
    var(--noise);
  background-size: 100% 100%, 100% 100%, 100% 100%, 600px 600px, 220px 220px;
  color: #111;
  text-align: center;
}
.spray {
  font-family: var(--font-spray);
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 1;
  color: #121212;
  transform: rotate(-2deg);
}
.wall-caption { color: #3f403d; }
.wall-caption::before { margin: 0 auto 14px; }

/* ---------- Offer ---------- */
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 460px); gap: 80px; align-items: center; }
.offer-copy .lead { max-width: 480px; }
.offer-copy .small { line-height: 1.9; }
.offer-copy .small a { color: var(--bone-dim); text-underline-offset: 3px; }
.offer-copy .small a:hover { color: var(--bone); }

.offer-sheet { padding: 44px 44px 36px; transform: rotate(1.5deg); }
.js .offer-sheet[data-reveal].is-in { transform: rotate(1.5deg); }
.sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #3d3a35;
}
.sheet-top span:first-child { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .08em; color: var(--paper-ink); }
.offer-price { margin-top: 26px; font-family: var(--font-display); font-size: 96px; line-height: 1; color: var(--paper-ink); }
.sheet-sub { margin-top: 10px; font-size: 14px; font-weight: 500; color: #3d3a35; }
.offer-sheet ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px dashed var(--paper-line); list-style: none; }
.offer-sheet li { display: flex; gap: 14px; font-family: var(--font-serif); font-size: 17px; color: var(--paper-ink); }
.offer-sheet li::before { content: "✓"; font-family: var(--font-sans); font-weight: 700; color: var(--red); }
.sheet-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--paper-line); font-family: var(--font-serif); font-style: italic; font-size: 14px; color: #3d3a35; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 40px; }
.faq details { padding: 26px 0; border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-size: 24px; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 16px; max-width: 700px; }

/* ---------- Footer ---------- */
.footer { padding: 34px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bone); }

/* ---------- Scroll reveal (core.js adds .is-in) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* The offer must be readable before deferred animation scripts finish. */
.js .hero [data-reveal] { opacity: 1; transform: none; }
/* Hold the hero until the intro has finished crumpling */
html.intro-active .hero [data-reveal],
html.intro-active .hero [data-reveal].is-in { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .plan-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .plan-day { font-size: clamp(6rem, 30vw, 11rem); }
  .offer-grid { grid-template-columns: 1fr; gap: 60px; }
  .offer-sheet { max-width: 480px; }
  .split { gap: 50px; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  /* Full screen menu for tablet and phone */
  .menu-toggle { display: block; }
  .brand { position: relative; z-index: 2; }
  .topbar.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-color: transparent; }
  .topbar .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 110px 28px 40px;
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity .35s var(--ease-out); }
  .topbar .site-nav .nav-link {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 11vw, 4.2rem);
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--bone);
  }
  .nav-mobile-only { display: inline; }
  .topbar .site-nav .temper-button { display: inline-flex; min-height: 54px; margin-top: 30px; padding: 14px 26px; font-size: 13px; }
  .site-nav > * { opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
  .menu-open .site-nav > * { opacity: 1; transform: none; }
  .menu-open .site-nav > :nth-child(2) { transition-delay: 60ms; }
  .menu-open .site-nav > :nth-child(3) { transition-delay: 120ms; }
  .menu-open .site-nav > :nth-child(4) { transition-delay: 180ms; }
  .menu-open .site-nav > :nth-child(5) { transition-delay: 260ms; }
  html.menu-locked, html.menu-locked body { overflow: hidden; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .topbar .wrap { min-height: 70px; }
  .brand img { width: 32px; }
  .brand { font-size: 1.3rem; }
  .hero { min-height: 100svh; align-items: center; padding: 92px 0 48px; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 4.25rem); line-height: 1.02; }
  .hero .sub { margin-top: 20px; font-size: 16px; line-height: 1.55; }
  .hero .tick { margin-top: 18px; }
  .hero .actions { margin: 22px 0 0; }
  .plan { display: none; }
  .product-preview { padding: 22px; transform: rotate(-1deg); }
  .product-preview h2 { font-size: 1.8rem; }
  .sample-habits-row { grid-template-columns: 1fr; gap: 10px; }
  .figure-water { max-width: 260px; height: 180px; margin: 0 auto; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }
  .problem { min-height: 0; }
  .problem .problem-layout > div:first-child { max-width: 100%; }
  .split, .steps, .steps-4, .feature-row { grid-template-columns: 1fr; }
  .feature-row { gap: 10px; }
  .paper-sheet { padding: 44px 26px; }
  .offer-sheet { padding: 34px 24px 28px; }
  .offer-price { font-size: 72px; }
  .actions .temper-button { flex-grow: 1; }
  .month, .wall { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  *, ::before, ::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Compact sales journey: keep explanation, action, and offer together. */
.hero { min-height: 0; display: block; padding: 116px 0 64px; }
.hero-copy { width: 56%; max-width: 620px; }
.hero h1 { font-size: clamp(4rem, 5.4vw, 5.5rem); line-height: 1.06; }
.hero .tick { display: none; }
.hero .sub { margin: 22px 0 0; font-size: 16px; line-height: 1.6; }
.hero .actions { margin: 22px 0 12px; }
.hero .hero-demo-note { margin: 0 0 16px; }
.hero .commerce-status { max-width: 350px; line-height: 1.5; }
.hero [data-commerce-slot] .temper-button { margin-top: 8px; letter-spacing: .05em; }
#sample .split { gap: 40px; }
.sample-habits-row { display: block; }
.sample-card { padding-top: 0; }
.sample-card .field > span { font-size: 14px; letter-spacing: 0; }
.sample-card .check-row { font-size: 16px; min-height: 48px; }
.sample-card .check-row label { padding: 10px 0; }
.sample-card .sample-input { min-height: 100px; font-size: 16px; }
.sample-notice { margin-top: 8px; }
.sample-end { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.sample-end .figure-water { width: 235px; height: 185px; flex: 0 0 235px; margin: 0; }
.sample-end .temper-button { letter-spacing: .06em; }
@media (min-width: 681px) {
  /* Reserve illustration space below the introduction, not over its text. */
  #sample .wrap { position: relative; }
  #sample .split > div:first-child { padding-bottom: 340px; }
  #sample h2 { font-size: clamp(2.25rem, 3.5vw, 3rem); }
  .sample-end .figure-water {
    position: absolute;
    left: 0;
    bottom: 12px;
    width: min(440px, calc((100% - 40px) / 2));
    height: 300px;
    max-width: none;
    flex: none;
  }
}
#mechanism .step .figure { height: 140px; margin-bottom: 18px; }
.problem { min-height: 0; }
.problem .problem-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.problem .problem-layout > div:first-child { max-width: 650px; }
.problem h2 { font-size: clamp(3.25rem, 5.5vw, 5.25rem); line-height: 1.02; }
.problem .lead { max-width: 580px; font-size: 20px; line-height: 1.55; }
.problem .scene { position: relative; inset: auto; height: 500px; }
.offer-grid { display: block; max-width: 880px; }
.offer-copy { margin-bottom: 32px; }
.offer-copy h2 { max-width: 780px; }
.offer-sheet { max-width: none; padding: 36px 40px; transform: none; }
.js .offer-sheet[data-reveal].is-in { transform: none; }
.offer-price { font-size: 80px; }
.offer-purchase { border-top: 1px solid var(--paper-line); margin-top: 24px; padding-top: 24px; display: grid; gap: 18px; }
.offer-purchase .commerce-status { color: var(--paper-ink); font-size: 16px; line-height: 1.55; }
.offer-purchase .small { color: var(--paper-ink); font-size: 14px; line-height: 1.5; }
.offer-purchase .small a { color: inherit; text-underline-offset: 3px; }
.offer-purchase .temper-button { width: 100%; letter-spacing: .06em; }
.activation-link { font-size: 14px; line-height: 1.5; text-underline-offset: 4px; }
.commerce-ready .offer-demo { background: transparent; border-color: transparent; color: var(--paper-ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 980px) {
  .hero { padding: 108px 0 0; }
  .hero-copy { width: 100%; max-width: 620px; }
  .sample-end { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .topbar .wrap { min-height: 60px; }
  section[id] { scroll-margin-top: 76px; }
  .hero { padding: clamp(120px, 18svh, 156px) 0 32px; }
  .hero h1 { font-size: clamp(2.25rem, 9.8vw, 2.75rem); line-height: 1.06; }
  .hero .sub { margin-top: 20px; }
  .hero .actions { margin-top: 20px; }
  .hero .actions .temper-button { width: 100%; }
  .hero .commerce-status { font-size: 14px; }
  .section { padding: 52px 0; }
  #sample .split { gap: 24px; }
  #sample .lead { margin-top: 16px; font-size: 16px; }
  #sample .eyebrow { margin-bottom: 12px; }
  .sample-end { gap: 12px; justify-content: center; }
  .sample-end .figure-water { width: 150px; height: 110px; flex-basis: 150px; }
  .sample-end .temper-button { width: 100%; }
  .sample-card .field > span { font-size: 16px; }
  .feature-row { padding: 22px 0; }
  .feature-row p { font-size: 16px; }
  #mechanism .steps { gap: 24px; }
  #mechanism .step { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; padding-top: 18px; }
  #mechanism .step .num { position: static; grid-column: 2; font-size: 16px; margin-bottom: 8px; }
  #mechanism .step .figure { grid-column: 1; grid-row: 1 / 4; height: 112px; width: 112px; margin: 0; align-self: center; }
  #mechanism .step h3, #mechanism .step p:not(.num) { grid-column: 2; }
  #mechanism .step h3 { font-size: 18px; }
  #mechanism .step p:not(.num) { margin-top: 10px; font-size: 16px; }
  .problem .problem-layout { grid-template-columns: 1fr; gap: 12px; }
  .problem h2 { font-size: clamp(2.65rem, 10.5vw, 3.5rem); }
  .problem .scene { height: 310px; }
  .problem .lead { font-size: 18px; margin-top: 20px; }
  .offer-sheet { padding: 26px 20px; }
  .offer-price { font-size: 64px; }
  .sheet-top { flex-wrap: wrap; font-size: 12px; letter-spacing: .1em; }
  .offer-sheet li { font-size: 16px; }
  .offer-copy { margin-bottom: 24px; }
  .offer { padding-top: 48px; }
  .faq h2 { margin-bottom: 24px; }
  .faq details { padding: 20px 0; }
  .faq summary { align-items: center; min-height: 44px; font-size: 18px; line-height: 1.35; }
  .footer nav { gap: 8px 20px; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 359px) {
  #mechanism .step { display: block; }
  #mechanism .step .num { margin-bottom: 0; }
  #mechanism .step .figure { width: 140px; height: 80px; margin: 8px 0 12px; }
}

/* The purchase decision must remain readable before any scroll animation runs. */
.js .offer-sheet[data-reveal] { opacity: 1; transform: none; }
.purchase-steps { max-width: 55ch; color: #302e2b; font-size: 15px; line-height: 1.55; }
.offer-purchase .purchase-steps { margin: 0; }
.faq summary:focus-visible, .footer a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 4px; }
.analytics-choice{display:flex;gap:16px;justify-content:center;font:14px Inter,sans-serif;padding:20px;color:var(--muted,#aaa)}[data-analytics-choice]{color:inherit;background:none;border:0;text-decoration:underline;font:inherit;cursor:pointer}
[data-commerce-slot="hero"]{min-height:48px}.scene[data-scene="glass"]{contain:layout paint}
