/* ===========================================================================
   ТихоМир — design system "Бумажная мастерская" (site.css)
   Characteristic of the product: warm craft paper, crayons, masking tape,
   stickers, a living hand-drawn hero. Distinctive display (Baloo 2) + readable
   body (Nunito). Motion that never hides content (transform-only reveal).
   =========================================================================== */

:root {
  --paper: #fdf7ec;
  --paper-2: #eef6f3;
  --paper-3: #fff2e2;
  --ink: #1f2d52;
  --ink-2: #3a4670;
  --muted: #5d6479;
  --leaf: #1fa7a0;
  --leaf-2: #74d0cb;
  --sun: #ffc233;
  --sun-2: #ffd970;
  --peach: #ff7d97;
  --sky: #84cdee;
  --line: #e7dcc6;
  --white: #fffdf8;
  --accent: var(--sun);          /* live: changed by the emotion palette */

  --display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;

  --r: 18px;
  --r-lg: 30px;
  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --sh: 0 24px 54px rgba(31, 45, 82, .16);
  --sh-sm: 0 12px 28px rgba(31, 45, 82, .12);
  --container: 1160px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.65;
  overflow-x: clip;
  position: relative;
}
/* paper grain overlay (fixed, non-interactive) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: .045;
  mix-blend-mode: multiply;
}
.page { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--leaf); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }

.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px;
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink-2);
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--wobble);
  padding: 7px 16px; box-shadow: 3px 3px 0 var(--ink);
}
.eyebrow .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.lead { color: var(--ink-2); font-size: 20px; font-weight: 600; max-width: 52ch; margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.microcopy { color: var(--muted); font-size: 14px; }

/* hand-drawn crayon underline (inline svg .squiggle after heading text) */
.squiggle { display: block; width: min(360px, 80%); height: 16px; margin-top: 6px; color: var(--accent); overflow: visible; }
.squiggle path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 480; stroke-dashoffset: 480; }
.in .squiggle path, .squiggle.drawn path { animation: draw 1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; padding: 14px 28px; border: 2.5px solid var(--ink); border-radius: var(--wobble);
  font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--ink); color: #fffdf4; }
.btn--warm { background: var(--sun); color: var(--ink); }
.btn--leaf { background: var(--leaf-2); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 247, 236, .9); backdrop-filter: blur(10px); border-bottom: 2.5px solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 23px; color: var(--ink); }
.brand .mark { width: 46px; height: 46px; border-radius: 14px; background: var(--ink) url("../img/logo-mark.svg") center/70% no-repeat; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--leaf); }
.nav-links { display: flex; align-items: center; gap: 22px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--leaf); }

/* ---------- sections / bands / torn dividers ---------- */
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 56px 0; }
.band { background: var(--paper-2); }
.band--warm { background: var(--paper-3); }
.band--ink { background: var(--ink); color: #eaf0ff; }
.band--ink h2, .band--ink h3 { color: #fff; }
.head { max-width: 720px; margin-bottom: 34px; }
.head h2 { font-size: clamp(30px, 4vw, 50px); }
.head p { color: var(--ink-2); margin-top: 14px; font-size: 19px; font-weight: 600; }
.band--ink .head p { color: #c6d2f0; }
.band--ink .head .eyebrow { color: var(--ink-2); }
/* torn paper edge at the top of a band (color = the band above) */
.torn { position: absolute; left: 0; right: 0; top: -1px; height: 26px; pointer-events: none; }
.torn svg { display: block; width: 100%; height: 100%; }

/* ---------- stickers / tape / notes ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink);
  background: var(--sun); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.sticker--leaf { background: var(--leaf-2); }
.sticker--peach { background: var(--peach); color: #fff; }
.sticker--sky { background: var(--sky); }
.tape { position: absolute; width: 96px; height: 26px; background: rgba(255, 255, 255, .55); border: 1px dashed rgba(31, 45, 82, .25); box-shadow: 0 3px 8px rgba(0, 0, 0, .06); }
.note {
  position: relative; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--sh); padding: 24px;
}
.note--wobble { border-radius: var(--wobble); }
.note--tape::before { content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 92px; height: 24px; background: rgba(255, 194, 51, .7); border: 1px dashed rgba(31, 45, 82, .2); }

/* ---------- emotion palette (interactive) ---------- */
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chip {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px; cursor: pointer; text-align: left;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--wobble-2); box-shadow: 4px 4px 0 var(--ink);
  font: inherit; color: var(--ink); transition: transform .14s ease, box-shadow .14s ease;
}
.chip:nth-child(even) { border-radius: var(--wobble); }
.chip:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 6px 7px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--paper-3); box-shadow: 2px 2px 0 var(--ink); transform: translate(1px, 1px); }
.chip .swatch { width: 40px; height: 40px; border-radius: 50%; flex: none; border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.chip b { display: block; font-family: var(--display); font-size: 18px; }
.chip span { color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ---------- forms ---------- */
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.input {
  width: 100%; min-height: 54px; padding: 13px 16px; border: 2.5px solid var(--ink); border-radius: 14px;
  font: inherit; color: var(--ink); background: var(--white); outline: none; box-shadow: inset 2px 2px 0 rgba(31, 45, 82, .05);
  transition: box-shadow .15s, border-color .15s;
}
.input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(31, 167, 160, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--leaf); flex: none; }
.honeypot { position: absolute; left: -9999px; }
.form-error { padding: 12px 14px; border-radius: 12px; background: #ffe3da; border: 2px solid var(--peach); color: #8a2c14; font-weight: 700; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span, .field label { font-size: 13.5px; font-weight: 800; color: var(--ink-2); font-family: var(--display); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 13px 16px; border: 2.5px solid var(--ink);
  border-radius: 14px; color: var(--ink); background: var(--white);
}

/* ---------- generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 60px 0 76px; overflow: hidden; }
.hero::after { /* faint notebook dots, not a blob */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(31, 45, 82, .07) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); max-width: 14ch; }
.hero h1 .hl { color: var(--leaf); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-family: var(--display); font-weight: 700; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }

/* the living coloring page */
.stage { position: relative; }
.paper-sheet {
  position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: var(--sh); padding: 16px; transform: rotate(-2deg); overflow: hidden;
}
.paper-sheet .wash { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 45%, var(--accent), transparent 70%); opacity: .22; transition: opacity .5s, background .5s; pointer-events: none; }
.paper-sheet .art { position: relative; border-radius: 10px; background: var(--paper); }
.paper-sheet .art img { transition: opacity .35s ease; opacity: 1; }
.sheet-bar { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.sheet-bar .tag { background: var(--accent); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; transition: background .4s; }
/* palette row that lives under the hero and drives the live sheet */
.hero-palette { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 18px 22px; }
.hero-palette .hint { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); max-width: 16ch; line-height: 1.15; }
.hero-palette .hint small { display: block; font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--muted); margin-top: 4px; }
/* floating crayons */
.crayon { position: absolute; width: 86px; z-index: 3; filter: drop-shadow(3px 5px 0 rgba(31, 45, 82, .18)); animation: floaty 6s ease-in-out infinite; }
.crayon.c1 { left: -34px; top: 26px; transform: rotate(-18deg); --cr: var(--peach); animation-delay: .2s; }
.crayon.c2 { right: -30px; top: 120px; transform: rotate(20deg); --cr: var(--leaf-2); animation-delay: 1.1s; }
.crayon.c3 { right: 8px; bottom: -22px; transform: rotate(-8deg); --cr: var(--sky); animation-delay: .6s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
/* floating annotation stickers on the stage */
.stage .sticker.f1 { position: absolute; left: -22px; bottom: 70px; z-index: 4; }
.stage .sticker.f2 { position: absolute; right: -16px; top: 8px; z-index: 4; transform: rotate(4deg); }

.hero-card { margin-top: 22px; }
.hero-card .t { font-family: var(--display); font-weight: 800; font-size: 19px; margin-bottom: 12px; }

/* ambient doodles */
.doodle { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.doodle svg { display: block; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.doodle--spin { animation: spin-slow 26s linear infinite; }

/* ---------- look inside ---------- */
.look { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.look-paper { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--sh); padding: 22px; transform: rotate(1deg); }
.look-paper .illu { margin: 14px 0; background: var(--paper); border-radius: 10px; border: 2px dashed var(--line); }
.look-paper .qbox { border: 2.5px solid var(--ink); border-radius: var(--wobble); padding: 14px 16px; background: var(--paper-3); }
.look-paper .qbox .lab { font-family: var(--display); font-weight: 800; color: var(--leaf); }
.look-paper .qbox ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-weight: 600; }
.look-paper .anchor { margin-top: 10px; font-weight: 800; color: var(--ink); }
.pdf-page-preview { max-height: 700px; width: 100%; object-fit: contain; background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.thumbs figure { margin: 0; background: var(--white); border: 2.5px solid var(--ink); border-radius: 12px; padding: 9px; box-shadow: 3px 3px 0 var(--ink); }
.thumbs figure:nth-child(2) { transform: rotate(-2deg); }
.thumbs figure:nth-child(3) { transform: rotate(2deg); }
.thumbs img { border-radius: 8px; background: var(--paper); }
.thumbs figcaption { text-align: center; font-family: var(--display); font-weight: 700; color: var(--ink-2); font-size: 13px; margin-top: 7px; }

/* ---------- scrapbook steps (a winding path, not equal cards) ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.path .step {
  position: relative; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--wobble);
  box-shadow: 4px 4px 0 var(--ink); padding: 58px 20px 22px; color: var(--ink-2); font-weight: 700;
}
.path .step:nth-child(even) { transform: translateY(18px) rotate(1.2deg); border-radius: var(--wobble-2); }
.path .step:nth-child(odd) { transform: rotate(-1.2deg); }
.path .step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 16px;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--ink); border: 2.5px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px;
}

/* ---------- free set as tilted polaroids ---------- */
.polaroids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.polaroid { background: var(--white); border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--sh); padding: 12px 12px 18px; transition: transform .18s ease; }
.polaroid:nth-child(1) { transform: rotate(-2.5deg); }
.polaroid:nth-child(2) { transform: rotate(1.5deg) translateY(10px); }
.polaroid:nth-child(3) { transform: rotate(2.5deg); }
.polaroid:hover { transform: rotate(0) translateY(-4px); }
.polaroid .illu { background: var(--paper); border-radius: 6px; border: 2px dashed var(--line); }
.polaroid .cap { font-family: var(--display); font-weight: 800; margin-top: 12px; }
.polaroid .n { color: #116b67; }
.polaroid p { color: var(--muted); font-size: 14.5px; font-weight: 600; margin-top: 6px; }

/* ---------- program list ---------- */
.program-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.program-list li { display: flex; gap: 13px; align-items: center; padding: 12px 16px; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--wobble); box-shadow: 3px 3px 0 var(--ink); }
.program-list li:nth-child(even) { border-radius: var(--wobble-2); }
.program-list .d { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; }
.program-list b { color: var(--ink); }
.program-list span { color: var(--muted); font-weight: 600; }

/* ---------- outcomes as stickers grid ---------- */
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.out { background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--wobble); box-shadow: 4px 4px 0 var(--ink); padding: 22px; }
.out:nth-child(even) { border-radius: var(--wobble-2); transform: rotate(1deg); }
.out .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; border: 2.5px solid var(--ink); }
.out h3 { font-size: 19px; }
.out p { color: var(--muted); font-size: 14.5px; font-weight: 600; margin-top: 7px; }

/* ---------- cta band as a big taped paper ---------- */
.cta-band { position: relative; background: var(--ink); color: #eaf0ff; border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px); text-align: center; overflow: hidden; border: 3px solid var(--ink); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1.4px, transparent 1.5px); background-size: 24px 24px; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); position: relative; }
.cta-band p { color: #c6d2f0; max-width: 52ch; margin: 14px auto 0; position: relative; font-weight: 600; }
.cta-band .btn { position: relative; margin-top: 24px; }
.cta-band .doodle { opacity: .5; }

/* ---------- footer ---------- */
.site-footer { padding: 44px 0; border-top: 3px solid var(--ink); background: var(--paper-3); }
.foot { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: start; }
.foot .note-text { color: var(--muted); font-size: 12.5px; margin-top: 14px; max-width: 72ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.foot nav a { text-decoration: none; }

/* ---------- sticky + modal ---------- */
.sticky-cta { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; display: none; }
.sticky-cta .inner { width: min(100%, 720px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: var(--sh); }
.sticky-cta .inner span { font-family: var(--display); font-weight: 800; color: var(--ink); }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(31, 45, 82, .45); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(100%, 560px); background: var(--white); border: 3px solid var(--ink); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--sun); cursor: pointer; font-size: 22px; color: var(--ink); font-family: var(--display); }

/* ---------- product / checkout helpers ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-family: var(--display); font-weight: 700; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 40px; color: var(--ink-2); font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--leaf-2); border: 2px solid var(--ink); font-weight: 900; color: var(--ink); font-size: 14px; }
.price { font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--ink); display: flex; align-items: baseline; gap: 12px; margin: 6px 0 10px; }
.price s { font-size: 22px; color: var(--muted); font-weight: 700; }
.price--muted { font-size: 40px; color: var(--muted); }
.price--muted span { font-size: 15px; font-family: var(--body); font-weight: 700; }
.muted-list { opacity: .85; }
.tariff { position: relative; display: flex; flex-direction: column; }
.tariff--featured { border-color: var(--ink); box-shadow: 6px 6px 0 var(--leaf); }
.tariff .btn { margin-top: auto; }
.faq .note { height: 100%; }
.faq h3 { font-size: 18px; }
.faq p { color: var(--ink-2); font-weight: 600; margin-top: 8px; }
.notice-note { background: var(--paper-3); border-color: var(--ink); font-weight: 700; color: var(--ink-2); }

/* Shared release-candidate shell for short funnel pages. */
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--leaf); }
.site-nav { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-weight: 700; }
.site-nav a { text-decoration: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px;
  padding: 14px 28px; border: 2.5px solid var(--ink); border-radius: var(--wobble);
  font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none;
  cursor: pointer; background: var(--ink); color: #fffdf4; box-shadow: 4px 4px 0 var(--ink);
}
.button.secondary, .button.ghost { background: var(--white); color: var(--ink); }
.button.wide { width: 100%; }
.split { display: grid; grid-template-columns: 1.04fr .96fr; gap: 42px; align-items: center; }
.soft-panel, .price-card, .notice {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--sh); padding: clamp(22px, 4vw, 38px);
}
.price-card h3 { font-size: 24px; }
.price-card p { color: var(--ink-2); margin-top: 12px; }
.check-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-2); font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--leaf); }
.section.compact { padding: 56px 0; }
.section-actions, .tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tag { padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); font-size: 14px; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; }
.footer-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; max-width: 72ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; font-family: var(--display); font-weight: 700; }
.footer-links a { text-decoration: none; }
.steps { display: grid; gap: 12px; counter-reset: short-step; }
.steps .step { padding: 18px 20px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--wobble); font-weight: 700; }
.section-header { max-width: 720px; margin: 0 auto 30px; }
.section-header h2 { font-size: clamp(30px, 4vw, 48px); }
.section-header p { margin-top: 12px; color: var(--ink-2); }
.tariff-picker { display: grid; gap: 12px; margin: 18px 0; }
.tariff-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 2.5px solid var(--ink); border-radius: var(--wobble); background: var(--white); cursor: pointer; }
.tariff-option:has(input:checked) { background: var(--paper-2); box-shadow: 3px 3px 0 var(--leaf); }
.tariff-option input { width: 20px; height: 20px; accent-color: var(--leaf); }
.tariff-option strong { font-family: var(--display); }
.tariff-option small { display: block; color: var(--muted); }
.tariff-option .amount { font-family: var(--display); font-size: 22px; font-weight: 800; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-weight: 700; margin-bottom: 26px; }
.legal h2 { font-size: 24px; margin: 30px 0 10px; }
.legal h3 { font-size: 19px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink-2); margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal .note { margin: 22px 0; }

/* ---------- reveal (transform-only: never hides content) ---------- */
html.js .reveal { transform: translateY(24px) scale(.985); }
html.js .reveal.in { transform: none; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .look, .foot, .split { grid-template-columns: 1fr; }
  .stage { order: -1; max-width: 480px; margin: 0 auto; }
  .path, .outcomes { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
  .look-paper, .paper-sheet { transform: none; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; padding-bottom: 86px; }
  .section { padding: 58px 0; }
  .palette, .grid-3, .polaroids, .form-grid, .path, .outcomes, .hero-palette { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .field-row .btn, .hero-actions .btn { width: 100%; }
  .sticky-cta { display: block; }
  .stage .sticker, .crayon { display: none; }
  .foot nav { justify-content: flex-start; }
  .site-nav a:not(.button) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .button { width: 100%; }
  .tariff-option { grid-template-columns: auto 1fr; }
  .tariff-option .amount { grid-column: 2; }
  .path .step:nth-child(even) { transform: rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { transform: none !important; }
  .squiggle path { stroke-dashoffset: 0 !important; }
}
