/* ==========================================================================
   Plan It Before Payday — landing page
   Archetype: Light Editorial Cream (warm paper, illustrated, calm)
   ========================================================================== */

:root {
  --cream: #f6efe2;
  --paper: #fbf7ef;
  --sand: #efe4d0;
  --line: #e2d5bd;
  --ink: #1d2742;
  --ink-soft: #4a5068;
  --green: #2f5a3e;
  --green-mid: #4f7a5a;
  --green-soft: #dde8d9;
  --mustard: #f2c14e;
  --mustard-soft: #fbedc2;
  --terracotta: #c76d48;
  --peach: #f6d9c8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(29, 39, 66, .04), 0 18px 40px -18px rgba(29, 39, 66, .28);
  --shadow-lg: 0 2px 0 rgba(29, 39, 66, .04), 0 40px 80px -30px rgba(29, 39, 66, .35);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
em { font-style: italic; font-weight: 400; color: var(--green); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { --bg: var(--green); box-shadow: 0 10px 24px -10px rgba(47, 90, 62, .7), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.btn-primary:hover { --bg: #244a32; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: .7em 1.15em; font-size: .92rem; }
.btn-big { padding: 1.15em 1.9em; font-size: 1.08rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter);
  background: rgba(246, 239, 226, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 239, 226, .94); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--green); }
.brand-mark path { stroke: var(--mustard); stroke-width: 5; fill: none; stroke-linecap: round; }
.brand-mark circle { fill: var(--cream); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--mustard); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(72px, 11vw, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--mustard); border-radius: 2px; }

/* ---------- Reveal (robust) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive rule: split-text elements must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }
/* If JS never runs, show everything */
.no-js .reveal { opacity: 1; transform: none; }

/* Split words */
.split-word { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
[data-split].is-split-in .split-word { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 100px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 620px; height: 620px; right: -120px; top: -60px;
  background: radial-gradient(closest-side, rgba(242, 193, 78, .32), transparent 70%);
  filter: blur(10px);
  animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-40px, 40px) scale(1.08); } }
.hero-title { font-size: clamp(2.7rem, 6.6vw, 5.4rem); font-weight: 700; margin-bottom: 24px; }
.hero-title em { font-weight: 400; display: inline; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; }
.hero-lede strong { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 62%, var(--mustard-soft) 62%); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .5em 1em; font-size: .9rem; color: var(--ink-soft); }
.hero-chips b { color: var(--green); font-family: var(--serif); font-size: 1.05em; }

.hero-art { position: relative; }
.hero-frame {
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--paper);
  transform: rotate(1.2deg);
  background: var(--sand);
  will-change: transform;
}
.hero-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 4px;
  animation: bob 6s ease-in-out infinite;
}
.fc-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-mid); font-weight: 600; }
.fc-value { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3fa66a; box-shadow: 0 0 0 4px rgba(63, 166, 106, .18); flex: none; }
.fc-zero { left: -36px; bottom: 54px; }
.fc-cal { right: -28px; top: 34px; animation-delay: -3s; width: 168px; }
.fc-foot { font-size: .74rem; color: var(--terracotta); font-weight: 600; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 4px 0 2px; }
.mini-cal span { aspect-ratio: 1; border-radius: 3px; background: var(--sand); }
.mini-cal .pay { background: var(--green-mid); }
.mini-cal .extra { background: var(--mustard); box-shadow: 0 0 0 2px var(--terracotta); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 16px 0; position: relative; z-index: 1; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--mustard); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.problem { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.problem .section-title { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.big-quote { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-style: italic; color: var(--terracotta); margin-bottom: 24px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.compare-card h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.compare-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.compare-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--ink-soft); }
.compare-icon { width: 38px; height: 38px; position: absolute; top: 18px; right: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare-card.is-plan { background: var(--green); border-color: var(--green); color: var(--cream); }
.compare-card.is-plan p, .compare-card.is-plan .compare-tag { color: rgba(246, 239, 226, .82); }
.compare-card.is-plan .compare-icon { stroke: var(--mustard); }

/* ---------- Inside / kit ---------- */
.kit-grid { display: grid; gap: clamp(24px, 4vw, 40px); }
.kit-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 30px;
  padding: clamp(22px, 4vw, 52px);
  box-shadow: var(--shadow);
}
.kit-book .kit-visual { order: 2; }
.kit-kicker { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--green); background: var(--green-soft); padding: .35em .9em; border-radius: 999px; margin-bottom: 16px; }
.kit-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mustard) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231d2742' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.tabs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: none; }
.tabs-list li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; color: var(--ink-soft); }
.tabs-list li:last-child { border-bottom: 0; }
.tabs-list span { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: .95rem; min-width: 1.6em; }

.guide-visual { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.book { position: absolute; left: 4%; bottom: 6%; width: 46%; z-index: 2; transform: rotate(-6deg); border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: -6px 0 0 #b9a888 inset, var(--shadow-lg); }
.book img { width: 100%; }
.toc-sheet { width: 62%; margin-left: 30%; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; transform: rotate(3deg); }

.laptop { width: 100%; max-width: 560px; margin: 0 auto; transform-style: preserve-3d; }
.laptop-screen { background: #1c1f26; padding: 10px; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); }
.laptop-screen img { border-radius: 6px; width: 100%; }
.laptop-base { height: 14px; margin: 0 -6%; background: linear-gradient(#d9d2c4, #b8b0a1); border-radius: 0 0 16px 16px; position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #a39b8c; border-radius: 0 0 6px 6px; }

[data-tilt] { transition: transform .5s var(--ease-out); will-change: transform; }

/* ---------- Pots calculator ---------- */
.pots { max-width: none; background: var(--green); color: var(--cream); }
.pots-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pots .eyebrow { color: var(--mustard); }
.pots .section-title em { color: var(--mustard); }
.pots-copy p { color: rgba(246, 239, 226, .82); font-size: 1.08rem; max-width: 30em; margin-top: 24px; }
.calc { background: var(--paper); color: var(--ink); border-radius: 30px; padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.calc-title { font-size: 1.35rem; margin-bottom: 16px; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: 500 .9rem var(--sans); padding: .5em .9em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.is-active { background: var(--mustard-soft); border-color: var(--mustard); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span:first-child { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.money-input { display: flex; align-items: center; background: var(--mustard-soft); border: 2px solid var(--mustard); border-radius: 12px; padding: 0 14px; }
.money-input i { font-style: normal; font-family: var(--serif); font-size: 1.4rem; color: var(--ink-soft); }
.money-input input, .field select {
  width: 100%; border: 0; background: transparent; font: 600 1.4rem var(--serif); color: var(--ink); padding: 10px 8px; outline: none; min-width: 0;
}
.money-input:focus-within { box-shadow: 0 0 0 4px rgba(242, 193, 78, .35); }
.field select { font: 500 1rem var(--sans); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; appearance: auto; }
.calc-result { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.jar { width: 96px; height: auto; }
.jar-lid { fill: var(--terracotta); }
.jar-glass { fill: #f3efe6; }
.jar-fill { fill: var(--mustard); transition: transform 1s var(--ease-out); }
.jar-outline { fill: none; stroke: var(--ink); stroke-width: 3; }
.jar-shine { stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .8; }
.calc-out { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; color: var(--green); margin: 0; line-height: 1; display: flex; flex-direction: column; gap: 6px; }
.calc-out small { font: 500 .9rem var(--sans); color: var(--ink-soft); }
.calc-note { font-size: .92rem; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 31px; top: 30px; width: 2px; height: calc((100% - 60px) * var(--progress, 0)); background: var(--green); transition: height .2s linear; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: clamp(16px, 3vw, 36px); padding: 22px 0; align-items: start; position: relative; z-index: 1; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line);
  font: 700 1.5rem var(--serif); color: var(--green);
  transition: background .4s, border-color .4s, color .4s;
}
.step.is-visible .step-num { background: var(--green); border-color: var(--green); color: var(--cream); }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 12px 0 6px; }
.step p { color: var(--ink-soft); max-width: 36em; margin: 0; }

/* ---------- Showcase ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
.shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.shot img { border-radius: 12px; width: 100%; }
.shot figcaption { font-size: .92rem; color: var(--ink-soft); padding: 14px 6px 4px; }
.shot:nth-child(2) { margin-top: 48px; }

/* ---------- Easy ---------- */
.easy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.easy-grid > div > p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 20px; }
.cells { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.cell-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cell { font: 600 .95rem var(--sans); padding: .75em 1.1em; border: 1px solid #c9c2b2; min-width: 140px; }
.cell-yellow { background: #fff2b3; }
.cell-white { background: #fff; }
.cell-eq { font-family: var(--serif); font-size: 1.4rem; color: var(--ink-soft); }
.cell-text { font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.cells .ticks { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--green-mid); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font: 600 1.12rem var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--sans); color: var(--green); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- Final CTA ---------- */
.final { padding: clamp(24px, 6vw, 80px) var(--gutter) clamp(72px, 10vw, 120px); }
.final-inner {
  max-width: var(--max); margin: 0 auto;
  background: var(--ink); color: var(--cream);
  border-radius: 36px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  box-shadow: var(--shadow-lg);
}
.final-img { width: 100%; height: auto; aspect-ratio: 1005 / 561; object-fit: contain; }
.final-copy { padding: clamp(28px, 5vw, 60px); }
.final-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.final-title em { color: var(--mustard); }
.final-copy p { color: rgba(246, 239, 226, .75); margin-bottom: 28px; }
.final .btn-primary { --bg: var(--mustard); --fg: var(--ink); box-shadow: 0 12px 30px -12px rgba(242, 193, 78, .7), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.final .btn-primary:hover { --bg: #f6cf6e; }

/* ---------- Footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer p { margin: 0; }
.footer a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ---------- Mobile buy bar ---------- */
.buybar { display: none; }

/* ==========================================================================
   Responsive — mobile gets its own composition
   ========================================================================== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .problem, .pots-grid, .easy-grid { grid-template-columns: 1fr; }
  .kit-card { grid-template-columns: 1fr; }
  .kit-book .kit-visual { order: 0; }
  .final-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .brand span { font-size: .98rem; }
  .hero { padding-top: 28px; gap: 40px; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-frame { transform: none; border-width: 6px; }
  .fc-zero { left: 8px; bottom: -22px; }
  .fc-cal { right: 8px; top: -18px; width: 136px; padding: 10px 12px; }
  .compare { grid-template-columns: 1fr; }
  .guide-visual { min-height: 300px; }
  .shots { grid-template-columns: 1fr; }
  .shot:nth-child(2) { margin-top: 0; }
  .calc-result { grid-template-columns: 72px 1fr; }
  .jar { width: 72px; }
  .cell { min-width: 0; }
  .cell-row { flex-wrap: wrap; gap: 8px 12px; }
  .steps::before, .steps::after { left: 23px; }
  .step { grid-template-columns: 48px 1fr; }
  .step-num { width: 48px; height: 48px; font-size: 1.2rem; }
  .step h3 { margin-top: 6px; }
  .final { padding-inline: 16px; }
  .final-inner { border-radius: 26px; }
  .footer { padding-bottom: 100px; }

  .buybar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--ink); color: var(--cream);
    padding: 10px 10px 10px 18px; border-radius: 999px;
    box-shadow: 0 18px 40px -12px rgba(29, 39, 66, .6);
    font: 600 .92rem var(--serif);
    transform: translateY(140%);
    transition: transform .45s var(--ease-out);
  }
  .buybar.is-shown { transform: none; }
  .buybar .btn-primary { --bg: var(--mustard); --fg: var(--ink); box-shadow: none; }
}

/* Only gate truly intrusive motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .marquee-track { animation-duration: 80s; }
}

/* Hero entrance: pure CSS, never depends on JS */
.hero-in { animation: heroIn .8s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Flow illustrations ---------- */
.problem { display: block; }
.problem-hero { display: grid; align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.problem-hero > * { grid-area: 1 / 1; }
.problem-img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.problem-head { position: relative; z-index: 2; width: 46%; padding-left: clamp(24px, 4vw, 56px); }
.problem-head .section-title { font-size: clamp(1.6rem, 2.9vw, 2.6rem); }
.problem-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.problem-body .big-quote { margin: 0; }

.pots-img { margin-top: 28px; border-radius: 22px; width: 100%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.easy-img { margin-top: 28px; border-radius: 22px; width: 100%; box-shadow: var(--shadow); border: 1px solid var(--line); }

.calm { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.calm-figure { margin: 0; position: relative; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg); }
.calm-figure img { width: 100%; }
.calm-caption {
  position: absolute; left: 0; right: 0; top: 0;
  padding: clamp(22px, 4vw, 48px);
  font: 600 clamp(1.4rem, 3.2vw, 2.6rem)/1.15 var(--serif);
  color: var(--ink); max-width: 18em;
}
.calm-caption em { color: var(--green); }

@media (max-width: 980px) {
  .problem-hero > * { grid-area: auto; }
  .problem-head { width: auto; padding-left: 0; margin-bottom: 24px; }
  .problem-img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% center; }
  .problem-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .calm { padding: 0 16px; }
  .calm-figure { border-radius: 24px; }
  .calm-figure img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% center; }
  .calm-caption { font-size: 1.3rem; padding: 20px; }
}
.calm-caption { max-width: 44%; font-size: clamp(1.3rem, 2.5vw, 2.2rem); }
@media (max-width: 640px) {
  .calm-figure { background: var(--paper); }
  .calm-caption { position: static; max-width: none; font-size: 1.25rem; padding: 18px 20px 22px; }
}

/* ---------- Round 3: logo, cover, tighter rhythm, calculator explainer ---------- */
.brand-mark { width: auto; height: 38px; }
.book { border-radius: 4px; box-shadow: 0 24px 50px -18px rgba(29, 39, 66, .45), 0 6px 14px -6px rgba(29, 39, 66, .25); background: none; }
.book img { display: block; }

.section { padding-block: clamp(44px, 6.5vw, 92px); }
.section-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.problem-hero { margin-bottom: clamp(24px, 3.5vw, 40px); }

.calc-explain { list-style: none; counter-reset: ce; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.calc-explain li { counter-increment: ce; position: relative; padding-left: 40px; line-height: 1.5; }
.calc-explain li::before { content: counter(ce); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--mustard); color: var(--ink); font: 700 .85rem/28px var(--sans); text-align: center; }
.calc-kit { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(47, 90, 62, .08); font-size: .9rem; line-height: 1.5; color: var(--ink); }
.calc-kit b { color: var(--green); }

/* section divider: a coin that rolls in as each section appears */
.section-head .eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 3px rgba(242, 193, 78, .25); vertical-align: 1px; transform: translateX(-18px) rotate(-180deg); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1) .15s, opacity .4s .15s; }
.section-head .eyebrow.is-visible::before, .no-js .section-head .eyebrow::before { transform: none; opacity: 1; }

@media (max-width: 640px) {
  .brand-mark { height: 32px; }
  .section { padding-block: 40px; }
}

/* ==========================================================================
   Round 4: mobile overflow fix, pricing tiers, more motion
   ========================================================================== */
/* nothing may push the page wider than the screen */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.hero { overflow-x: clip; }
@media (max-width: 640px) {
  .hero::before { width: 380px; height: 380px; right: -60px; }
  .fc-cal { right: 6px; }
  .fc-zero { left: 6px; }
}

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80; background: linear-gradient(90deg, var(--green), var(--mustard)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* gold button */
.btn-gold { --bg: linear-gradient(180deg, #f6cf6a, var(--mustard) 55%, #e2ac2f); --fg: var(--ink); background: var(--bg); position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(242, 193, 78, .5), 0 14px 36px -10px rgba(242, 193, 78, .65); }
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(242, 193, 78, .8), 0 18px 44px -8px rgba(242, 193, 78, .85); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.tier-btn:hover svg, .pricing-head .btn:hover svg { transform: translate(3px, -3px); }

/* pricing section */
.pricing { position: relative; z-index: 1; background: radial-gradient(1100px 520px at 50% 0%, rgba(242, 193, 78, .14), transparent 65%), radial-gradient(900px 600px at 50% 100%, rgba(47, 90, 62, .35), transparent 70%), var(--ink); color: var(--cream); padding: clamp(56px, 8vw, 104px) var(--gutter); }
.pricing-inner { max-width: var(--max); margin: 0 auto; }
.pricing-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); display: flex; flex-direction: column; align-items: center; }
.pricing-head .eyebrow { color: var(--mustard); justify-content: center; }
.pricing-head .section-title { color: var(--cream); margin-bottom: 26px; }
.pricing-head .section-title em { color: var(--mustard); }
.pricing-save { margin: 14px 0 18px; font-size: .92rem; color: rgba(246, 239, 226, .72); }
.pricing-save s { opacity: .7; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .86rem; color: rgba(246, 239, 226, .78); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--mustard); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px clamp(18px, 2vw, 26px) 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(246, 239, 226, .07), rgba(246, 239, 226, .025)); border: 1px solid rgba(246, 239, 226, .13); transition: transform .45s var(--ease-out), border-color .3s, box-shadow .45s var(--ease-out), opacity .9s var(--ease-out); }
.tier-best { background: linear-gradient(180deg, rgba(242, 193, 78, .14), rgba(242, 193, 78, .03) 60%), rgba(29, 39, 66, .6); border: 1.5px solid var(--mustard); box-shadow: 0 0 0 1px rgba(242, 193, 78, .25), 0 30px 80px -30px rgba(242, 193, 78, .45); }
.tier-best.is-visible { animation: bestGlow 3.2s ease-in-out 1.2s infinite; }
@keyframes bestGlow { 50% { box-shadow: 0 0 0 1px rgba(242, 193, 78, .45), 0 30px 90px -20px rgba(242, 193, 78, .7); } }
.tier-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: var(--mustard); color: var(--ink); font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 8px 20px -8px rgba(242, 193, 78, .8); }
.tier-badge svg { width: 12px; height: 12px; fill: var(--ink); }

.tier-art { height: 170px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; position: relative; }
.mini-laptop { width: min(240px, 92%); border-radius: 10px 10px 4px 4px; background: #0f1426; padding: 6px 6px 8px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); transition: transform .5s var(--ease-out); }
.mini-laptop img { border-radius: 4px; }
.mini-cover { height: 150px; width: auto; border-radius: 3px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .85); transition: transform .5s var(--ease-out); }
.mini-cover-solo { height: 166px; }
.tier-art-duo .mini-laptop { width: 62%; }
.tier-art-duo .mini-cover { height: 132px; margin-left: -18px; transform: rotate(4deg); }
.tier:hover .mini-laptop { transform: translateY(-4px) rotate(-1.5deg); }
.tier:hover .mini-cover { transform: translateY(-6px) rotate(-3deg); }
.tier-best:hover .mini-cover { transform: translateY(-6px) rotate(7deg); }

.tier-kicker { margin: 0 0 6px; color: var(--mustard); font: 700 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.tier h3 { color: var(--cream); font-size: clamp(1.25rem, 1.8vw, 1.45rem); margin-bottom: 8px; }
.tier-desc { color: rgba(246, 239, 226, .68); font-size: .93rem; margin: 0 0 14px; max-width: 30ch; }
.tier-price { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; margin: 6px 0 20px; display: flex; align-items: center; gap: 12px; color: #fff; }
.tier-price s { font-size: 1.05rem; font-weight: 500; color: rgba(246, 239, 226, .5); }
.tier-save { font: 800 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--mustard); color: var(--ink); padding: 6px 8px; border-radius: 4px; }
.tier-list { list-style: none; padding: 18px 0 0; margin: 0 0 24px; border-top: 1px solid rgba(246, 239, 226, .12); text-align: left; width: 100%; display: grid; align-content: start; gap: 10px; font-size: .92rem; color: rgba(246, 239, 226, .85); flex: 1; }
.tier-list li { position: relative; padding-left: 26px; line-height: 1.45; }
.tier-list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border-left: 2px solid var(--mustard); border-bottom: 2px solid var(--mustard); transform: rotate(-45deg); }
.tier-btn { width: 100%; justify-content: center; border-radius: 12px; --bg: rgba(0, 0, 0, .25); --fg: var(--cream); border-color: rgba(246, 239, 226, .28); }
.tier-btn:hover { --bg: var(--cream); --fg: var(--ink); }
.tier-btn.btn-gold { --bg: linear-gradient(180deg, #f6cf6a, var(--mustard) 55%, #e2ac2f); --fg: var(--ink); border-color: transparent; }
.tier-note { margin: 12px 0 0; font-size: .76rem; color: rgba(246, 239, 226, .5); letter-spacing: .04em; }
.tier.reveal { transform: translateY(46px) scale(.97); }
.tier.reveal.is-visible { transform: none; }
.tier.reveal.is-visible:hover { transform: translateY(-8px); border-color: rgba(242, 193, 78, .55); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.tier-best.reveal.is-visible:hover { border-color: var(--mustard); }

@media (max-width: 980px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 34px; }
  .tier-best { order: -1; }
}
@media (max-width: 640px) {
  .btn-big { white-space: normal; text-align: center; }
  .pricing-head .btn-big { width: 100%; justify-content: center; }
}

/* image reveal: soft zoom-out as each picture enters */
.problem-img, .pots-img, .easy-img, .calm-figure img, .shot img { transition: transform 1.4s var(--ease-out), filter 1.4s var(--ease-out), opacity .9s var(--ease-out); }
.reveal:not(.is-visible) > img, img.reveal:not(.is-visible) { transform: scale(1.06); filter: saturate(.7); }
.calm-figure { overflow: hidden; }

/* gentle lift on content cards */
.compare-card, .kit-card, .shot, .cells { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), opacity .9s var(--ease-out); }
.compare-card.is-visible:hover, .kit-card.is-visible:hover, .shot.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step.is-visible .step-num { animation: pop .5s var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.18); } }

/* headline accent: italic words get an underline that draws in */
.section-title em { background: linear-gradient(var(--mustard), var(--mustard)) 0 92% / 0 .12em no-repeat; transition: background-size 1s var(--ease-out) .5s; }
.section-title.is-split-in em { background-size: 100% .12em; }
.pricing .section-title em, .pots .section-title em { background-image: linear-gradient(rgba(242, 193, 78, .45), rgba(242, 193, 78, .45)); }
