/* =========================================================
   Happy Heart · /get landing funnel (Electric Cobalt, see DESIGN.md)
   Standalone so the page stays light inside Instagram's browser.
   ========================================================= */
:root {
  --cobalt: #5B6750; --cobalt-deep: #46513D; --navy: #2B2A20; --navy-deep: #1E1D15;
  --sky: #C9CDB8; --ice: #E3DBC9; --paper: #F6F0E2;
  --lime: #D8BE86; --pink: #B4654A; --wa: #25D366;
  --f-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --vh: 100vh;
}
@supports (height: 100dvh) { :root { --vh: 100dvh; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cobalt); color: var(--paper);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-building { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--navy); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.h2 { font-size: clamp(36px, 5.4vw, 68px); }
em { font-style: normal; background: var(--lime); color: var(--navy); padding: 0 .12em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.room-lime em { background: var(--navy); color: var(--lime); }
.kicker, .tag, .step__k, .fine, .note { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kicker { margin: 0 0 16px; opacity: .8; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.sub { font-size: clamp(18px, 1.8vw, 22px); margin: 18px 0 0; opacity: .88; }
.fine { margin: 14px 0 0; opacity: .7; }
.note { margin: 28px 0 0; opacity: .6; text-transform: none; letter-spacing: .02em; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--lime); --fg: var(--navy); --sh: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 8px;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); transition-duration: .06s; }
.btn--sm { padding: 10px 16px; font-size: 15px; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.btn--lg { padding: 18px 28px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--navy { --bg: var(--navy); --fg: var(--lime); --sh: var(--cobalt); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn svg { width: 22px; height: 22px; }

/* ---------- Top bar + floating button ---------- */
.top { position: fixed; z-index: 40; top: 12px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 8px 8px 8px 16px; border-radius: 12px;
  background: rgba(43,42,32, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(246,240,226,.14); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--lime); font-weight: 700; letter-spacing: -.03em; font-size: 18px; }
.brand span { color: var(--paper); }
.brand__mark { width: 26px; height: 26px; }
/* Painted before anything else animates, so it's the first thing people can tap */
.fab { position: fixed; z-index: 45; right: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom));
  padding: 20px 30px; font-size: 19px; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30);
  animation: fabIn .45s var(--spring) backwards;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s; }
.fab:hover { box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.fab:active { box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.fab.is-off { opacity: 0; transform: translateY(24px); pointer-events: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(24px) scale(.9); } }

/* ---------- Beats (intro sections) ---------- */
.beat { position: relative; padding: clamp(96px, 12vw, 150px) 0; overflow: hidden; }
.room-paper { background: var(--paper); color: var(--navy); }
.room-deep { background-color: var(--cobalt-deep); }
.room-sky { background: var(--sky); color: var(--navy); }
.room-lime { background: var(--lime); color: var(--navy); }
.hero, .room-deep { background-image: none; background-size: 56px 56px; }

/* Shared reveal: children with data-r slide up when their beat enters */
.beat [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.beat.in [data-r] { opacity: 1; transform: none; }

/* 1 · Hero equation */
.hero { min-height: var(--vh); display: flex; align-items: center; padding-top: 110px; }
.hero::before { content: ""; position: absolute; width: min(70vw, 560px); aspect-ratio: 1; right: -12%; top: 16%; border-radius: 50%; background: var(--lime); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.tag { display: inline-block; margin: 0 0 18px; padding: 6px 10px; border-radius: 6px; background: var(--pink); color: var(--navy); }
.eq { font-size: clamp(40px, 5.8vw, 80px); display: grid; gap: .04em; white-space: nowrap; }
.eq__row { display: flex; align-items: baseline; gap: .22em; overflow: hidden; padding: .04em 0 .08em; }
/* The headline plays on its own (CSS only), so it shows even if scripts are slow or blocked */
.eq__row > * { display: inline-block; animation: rowUp .8s var(--ease) both; }
.eq__row b { color: var(--lime); font-weight: 700; width: .6em; flex: none; }
.eq__row:nth-child(2) > * { animation-delay: .15s; }
.eq__row:nth-child(3) > * { animation-delay: .3s; }
.eq__row:nth-child(4) > * { animation-delay: .45s; }
.eq__row:first-child { padding-left: .82em; }
@keyframes rowUp { from { transform: translateY(110%); } }
.eq__row--money em { position: relative; isolation: isolate; background: transparent; color: var(--navy); padding: 0 .1em; animation: rowUp .8s var(--ease) .45s both, inkIn .3s 1s backwards; }
.eq__row--money em::before { content: ""; position: absolute; inset: .08em -.02em 0; background: var(--lime); border-radius: 6px; z-index: -1;
  transform-origin: left; animation: mark .6s var(--ease) .85s both; }
@keyframes mark { from { transform: scaleX(0); } }
@keyframes inkIn { from { color: var(--paper); } }
.hero .sub, .hero .fine { animation: fadeUp .6s var(--ease) .6s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.hero__demo { position: relative; height: min(640px, 76vh); display: flex; justify-content: center; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(246,240,226,.2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 6px; background: var(--lime); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 6px; background: var(--lime); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); cursor: grab; }

/* Proof: search → their work → verdict */
.proof__grid, .loop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fan { position: relative; height: 420px; }
.fan__search { position: absolute; left: 6%; right: 6%; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px;
  background: var(--paper); color: var(--navy); font-weight: 600; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.fan__search::before { content: ""; width: 14px; height: 14px; border: 2.5px solid var(--navy); border-radius: 50%; flex: none; }
.fan__q { overflow: hidden; white-space: nowrap; width: 0; }
.in .fan__q { animation: type 1.4s steps(20) .3s forwards; }
@keyframes type { to { width: 20ch; } }
.fan__cards { position: absolute; inset: 80px 0 60px; }
.fan__card { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden;
  border: 4px solid var(--paper); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30);
  transform: translate(-50%, -50%) rotate(0) scale(.6); opacity: 0;
  transition: transform .9s var(--spring), opacity .5s; transition-delay: calc(1.6s + var(--i) * .14s); }
.fan__card svg { width: 100%; height: 100%; }
.in .fan__card { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
.fan__verdict { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 12px; }
.fan__verdict span { font-family: var(--f-mono); font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 6px; opacity: 0; transform: translateY(10px); transition: all .6s var(--spring) 2.8s; }
.fan__verdict .no { background: rgba(246,240,226,.12); text-decoration: line-through; }
.fan__verdict .yes { background: var(--lime); color: var(--navy); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); transition-delay: 3.1s; }
.in .fan__verdict span { opacity: 1; transform: none; }

/* Loop: see, try, choose, send */
.orbit { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; }
.orbit svg { width: 100%; height: 100%; }
.orbit__run { animation: run 6s linear infinite; transform-origin: center; }
@keyframes run { to { stroke-dashoffset: -100; } }
.orbit__heart { position: absolute; inset: 34%; display: grid; place-items: center; animation: beat 1.6s var(--ease) infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } }
.orbit__pt { --ang: calc(var(--a) * 90deg - 90deg); position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--ang)) translateX(min(36vw, 132px)) rotate(calc(-1 * var(--ang)));
  padding: 8px 12px; border-radius: 6px; background: var(--navy); color: var(--paper); font-weight: 700; font-size: 15px; white-space: nowrap;
  box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); animation: ping 6s infinite; animation-delay: calc(var(--a) * 1.5s); }
@keyframes ping { 0%, 18% { background: var(--lime); color: var(--navy); } 26%, 100% { background: var(--navy); color: var(--paper); } }

/* Go */
.go { text-align: center; }
.go__inner { display: grid; justify-items: center; }
.go .btn { margin-top: 30px; }

/* =========================================================
   Mockup: a phone running *their* future website
   ========================================================= */
/* Drawn at one fixed size and scaled to fit its box (see fitMock in get.js), so it reads the same everywhere */
.mock { position: relative; flex: none; width: 300px; height: 616px; transform-origin: center; }
.phone { position: absolute; inset: 0; border-radius: 34px; background: var(--navy-deep); padding: 10px; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30), inset 0 0 0 2px rgba(246,240,226,.18); }
.ph-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: var(--paper); color: var(--navy); display: flex; flex-direction: column; font-size: 12px; transition: background-color .6s, filter .6s; }
.ph-bar { flex: none; display: flex; align-items: center; gap: 6px; padding: 9px 12px 7px; background: var(--ice); font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; }
.ph-bar::before { content: ""; width: 7px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; opacity: .6; }
.ph-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-scroll { flex: 1; overflow: hidden; position: relative; }
.ph-inner { transition: transform .9s var(--ease); }
.ph-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.ph-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: -.03em; max-width: 78%; }
.ph-logo i { flex: none; width: 16px; height: 16px; border-radius: 5px; background: var(--cobalt); transition: background-color .5s; }
.ph-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-logo.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.12); } }
.ph-nav::after { content: ""; width: 16px; height: 9px; border-top: 2px solid; border-bottom: 2px solid; opacity: .7; }
.ph-hero { position: relative; margin: 0 10px; padding: 16px 14px 14px; border-radius: 14px; background: var(--cobalt); color: var(--paper); overflow: hidden; min-height: 150px; transition: background-color .6s; }
.ph-hero::after { content: ""; position: absolute; right: -26px; top: -26px; width: 96px; height: 96px; border-radius: 50%; background: var(--lime); }
.ph-hero svg { position: absolute; right: 10px; top: 10px; width: 52px; height: 52px; z-index: 1; color: var(--navy); }
.ph-hero h4 { position: relative; z-index: 1; margin: 46px 0 10px; font-size: 19px; line-height: 1.02; letter-spacing: -.04em; max-width: 80%; }
.ph-cta { position: relative; z-index: 1; display: inline-block; padding: 7px 10px; border-radius: 5px; background: var(--lime); color: var(--navy); font-weight: 700; font-size: 11px; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.ph-hero.swap h4, .ph-hero.swap svg { animation: swap .6s var(--ease); }
@keyframes swap { 0% { opacity: 0; transform: translateY(10px); } }

/* Feature blocks grow open when picked */
.ph-b { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateX(30px); transition: grid-template-rows .6s var(--ease), opacity .5s, transform .6s var(--ease); }
.ph-b > div { overflow: hidden; min-height: 0; }
.ph-b.on { grid-template-rows: 1fr; opacity: 1; transform: none; }
.ph-card { margin: 8px 10px 0; padding: 10px 11px; border-radius: 10px; background: var(--ice); }
.ph-card small { display: block; font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.ph-price { display: flex; align-items: baseline; justify-content: space-between; }
.ph-price b { font-size: 20px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ph-price span { font-size: 10px; padding: 4px 7px; border-radius: 4px; background: var(--pink); font-weight: 700; }
.ph-sw { display: flex; gap: 6px; }
.ph-sw i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--paper); transition: transform .3s var(--spring); }
.ph-sw i:nth-child(1) { background: var(--navy); } .ph-sw i:nth-child(2) { background: var(--cobalt); } .ph-sw i:nth-child(3) { background: var(--pink); } .ph-sw i:nth-child(4) { background: var(--lime); } .ph-sw i:nth-child(5) { background: var(--sky); }
.ph-b.on .ph-sw i { animation: swatch 2.4s infinite; }
.ph-sw i:nth-child(2) { animation-delay: .4s !important; } .ph-sw i:nth-child(3) { animation-delay: .8s !important; } .ph-sw i:nth-child(4) { animation-delay: 1.2s !important; }
@keyframes swatch { 0%, 30%, 100% { transform: none; box-shadow: none; } 12% { transform: translateY(-4px) scale(1.12); box-shadow: 0 0 0 2px var(--navy); } }
.ph-ar { display: flex; align-items: center; gap: 10px; }
.ph-cube { width: 34px; height: 34px; perspective: 120px; }
.ph-cube i { display: block; width: 100%; height: 100%; border-radius: 6px; background: linear-gradient(135deg, var(--cobalt), var(--navy)); border: 2px solid var(--lime); animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotateY(360deg) rotateX(20deg); } }
.ph-ar b { font-size: 12px; }
/* Preview glyph changes with the trade: their photo restyled, a 3D/AR model, a planner, or the maker's own photos */
.ph-glyph { flex: none; width: 34px; height: 34px; perspective: 120px; }
.ph-glyph i { display: block; width: 100%; height: 100%; border-radius: 6px; border: 2px solid var(--lime); }
.ph-glyph[data-glyph="cube"] i { background: linear-gradient(135deg, var(--cobalt), var(--navy)); animation: spin 3s linear infinite; }
.ph-glyph[data-glyph="snap"] i { background: linear-gradient(90deg, var(--cobalt) 0 50%, #B8C29E 50%); background-size: 200% 100%; animation: snap 2.6s var(--ease) infinite alternate; }
@keyframes snap { from { background-position: 0 0; } to { background-position: 100% 0; } }
.ph-glyph[data-glyph="plan"] i { background: var(--paper) linear-gradient(90deg, transparent 31%, var(--navy) 31% 36%, transparent 36% 64%, var(--navy) 64% 69%, transparent 69%); }
.ph-glyph[data-glyph="layers"] i { background: var(--pink); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30), 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); transform: translate(4px, -4px) scale(.8); }
.ph-ok { margin: 4px 0 0; font-size: 9px; opacity: .65; }
.ph-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ph-gal i { aspect-ratio: 1; border-radius: 5px; background: var(--sky); }
.ph-gal i:nth-child(2n) { background: var(--cobalt); } .ph-gal i:nth-child(3n) { background: var(--pink); } .ph-gal i:nth-child(5) { background: var(--lime); }
.ph-slots { display: flex; gap: 4px; flex-wrap: wrap; }
.ph-slots span { padding: 4px 6px; border-radius: 4px; background: var(--paper); font-size: 10px; font-weight: 600; }
.ph-slots span.on { background: var(--navy); color: var(--lime); }
.ph-rev { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.ph-rev span { color: var(--cobalt); letter-spacing: 1px; }
.ph-chat p { margin: 0 0 4px; padding: 5px 8px; border-radius: 8px; font-size: 10.5px; max-width: 85%; }
.ph-chat .me { background: var(--paper); margin-left: auto; }
.ph-chat .ai { background: var(--navy); color: var(--paper); }
.ph-app { display: flex; align-items: center; gap: 8px; }
.ph-app i { width: 30px; height: 30px; border-radius: 8px; background: var(--cobalt); display: grid; place-items: center; color: var(--lime); font-style: normal; font-weight: 700; }
.ph-gauge { display: flex; align-items: center; gap: 10px; }
.ph-gauge b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--cobalt); position: relative; }
.ph-gauge b::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ice); }
.ph-gauge b span { position: relative; }
.ph-ser { font-size: 10px; } .ph-ser b { display: block; color: var(--cobalt); font-size: 11.5px; } .ph-ser i { font-style: normal; color: #0a7a3a; }
.ph-edit { display: flex; align-items: center; gap: 6px; }
.ph-edit span { flex: 1; height: 8px; border-radius: 4px; background: rgba(43,42,32,.18); position: relative; overflow: hidden; }
.ph-edit span::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--cobalt); animation: edit 2.4s var(--ease) infinite; }
@keyframes edit { 60%, 100% { width: 100%; } }
.ph-foot { height: 60px; }

/* The "old site" look (they already have one) */
.mock.is-old .ph-screen { background: #E9E6F5; filter: saturate(.25) contrast(.92); font-family: Georgia, "Times New Roman", serif; }
.mock.is-old .ph-hero { background: #8B91B5; }
.mock.is-old .ph-hero::after { background: #C9C3BA; }
.mock.is-old .ph-hero h4 { font-weight: 400; letter-spacing: 0; }
.mock.is-old .ph-cta { box-shadow: none; background: #C9C3BA; border-radius: 0; }
.mock.is-old .ph-logo i { background: #8B91B5; border-radius: 0; }
.mock .ph-sweep { position: absolute; z-index: 5; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(216,190,134,.85) 48%, rgba(216,190,134,.85) 52%, transparent 70%); transform: translateX(-120%); }
.mock.upgrade .ph-sweep { animation: sweep 1.1s var(--ease); }
@keyframes sweep { to { transform: translateX(120%); } }

/* Problem stickers */
.ph-tags { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.ph-tag { position: absolute; padding: 6px 9px; border-radius: 6px; background: var(--pink); color: var(--navy); font-weight: 700; font-size: 11px; white-space: nowrap;
  box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); transform: rotate(var(--r)) scale(0); transition: transform .5s var(--spring), opacity .4s; }
.ph-tag.on { transform: rotate(var(--r)) scale(1); }
.ph-tag::before { content: "✕ "; }

/* =========================================================
   Builder (full-screen flow)
   ========================================================= */
.builder { position: fixed; inset: 0; z-index: 60; height: var(--vh); display: flex; flex-direction: column; background-color: var(--cobalt);
  background-image: none; background-size: 56px 56px;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .5s var(--ease); }
.builder.open { clip-path: circle(160vmax at var(--ox, 50%) var(--oy, 50%)); }
.b-top { flex: none; display: flex; align-items: center; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 8px; }
.b-icon { width: 42px; height: 42px; border-radius: 8px; border: 0; background: rgba(246,240,226,.1); font-size: 18px; font-weight: 700; transition: background-color .2s; }
.b-icon:hover { background: rgba(246,240,226,.2); }
.b-progress { flex: 1; height: 8px; border-radius: 8px; background: rgba(30,29,21,.45); overflow: hidden; }
.b-progress i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 8px; transition: width .7s var(--ease); }
.b-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); width: 100%; max-width: 1160px; margin: 0 auto; padding: 8px var(--gutter) 0; }
.b-stage { position: relative; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 10px 0 30px; order: 2; }
.b-stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); top: 12%; right: 0; opacity: .95; }
.b-steps { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; padding-bottom: 20px; }
.b-steps .step { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(246,240,226,.3) transparent; padding: 4px 10px 10px 4px; margin: -4px -10px -10px -4px; }

.step { display: flex; flex-direction: column; }
.step > * { animation: stepIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.step > :nth-child(2) { --i: 1; } .step > :nth-child(3) { --i: 2; } .step > :nth-child(4) { --i: 3; } .step > :nth-child(5) { --i: 4; }
.step.back > * { animation-name: stepBack; }
.step.out > * { animation: stepOut .15s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes stepBack { from { opacity: 0; transform: translateY(-18px); } }
@keyframes stepOut { to { opacity: 0; transform: translateY(-18px); } }
.step__k { margin: 0 0 12px; color: var(--lime); }
.step__t { font-size: clamp(34px, 4.6vw, 60px); }
.step__s { margin: 12px 0 0; font-size: 18px; opacity: .85; }

.tiles { display: grid; gap: 12px; margin-top: 28px; }
.tiles--2 { grid-template-columns: 1fr 1fr; }
.tiles--ind { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: grid; justify-items: start; gap: 14px; padding: 18px; border: 0; border-radius: 12px; text-align: left; font-size: 22px; font-weight: 700; letter-spacing: -.03em;
  background: var(--paper); color: var(--navy); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.tile:active { transform: translate(3px, 3px); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); transition-duration: .06s; }
.tile.sel { background: var(--lime); transform: translate(3px, 3px); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.tile--lime { background: var(--lime); }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile--new { background: var(--pink); }
.tile--new.sel { background: var(--lime); }
.tile small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; opacity: .75; line-height: 1.25; }
.tile mark { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: var(--pink); color: var(--navy); }
.tile[aria-pressed="true"] { background: var(--lime); }
/* Focus lands on the question so screen readers announce it; it isn't interactive, so no ring */
.step__t:focus, .step__t:focus-visible { outline: none; }
.b-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--lime); }
.b-status:empty { min-height: 0; margin: 0; }
.b-jump { align-self: center; margin: 14px 0 -18px; padding: 8px 10px; border: 0; background: none; font-size: 14px; font-weight: 600; opacity: .85; -webkit-tap-highlight-color: transparent; }
.b-jump b { color: var(--lime); }
.b-jump:hover { opacity: 1; }
.b-jump:hover b { text-decoration: underline; text-underline-offset: 3px; }
.b-link { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--paper); color: var(--navy); font: 600 13px/1.3 var(--f-mono); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tile__ico { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); color: var(--lime); font-size: 20px; }
.tiles--ind .tile { padding: 12px 10px; font-size: 14px; gap: 8px; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
.tiles--ind .tile svg { width: 26px; height: 26px; color: var(--cobalt); }

.field { width: 100%; margin-top: 24px; padding: 18px 18px; border: 0; border-radius: 10px; background: var(--paper); color: var(--navy);
  font: 600 22px/1.2 var(--f-sans); letter-spacing: -.02em; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); outline: none; transition: box-shadow .25s; }
.field + .field { margin-top: 14px; }
.field:focus { box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30), 0 0 0 3px var(--navy); }
.field::placeholder { color: rgba(43,42,32,.4); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 16px; border: 0; border-radius: 999px; background: rgba(246,240,226,.12);
  box-shadow: inset 0 0 0 1.5px rgba(246,240,226,.35); font-weight: 600; font-size: 15px; transition: background-color .25s, color .25s, transform .35s var(--spring), box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.chip::before { content: "+"; font-weight: 700; width: 14px; text-align: center; transition: transform .35s var(--spring); }
.chip:active { transform: scale(.95); transition-duration: .06s; }
.chip.sel { background: var(--lime); color: var(--navy); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); transform: translateY(-2px); }
.chip.sel::before { content: "✓"; transform: rotate(360deg); }
.chip--bad.sel { background: var(--pink); }
.chip--bad.sel::before { content: "✕"; }
.chip mark { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: var(--pink); color: var(--navy); }

.receipt { list-style: none; margin: 24px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--paper); color: var(--navy); box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); display: grid; gap: 10px; }
.receipt li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-weight: 600; opacity: 0; transform: translateX(-12px); animation: rIn .5s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .12s); }
.receipt li small { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; padding-top: 3px; }
@keyframes rIn { to { opacity: 1; transform: none; } }
.meta { margin: 22px 0 0; font-size: 17px; opacity: .9; }
.meta b { color: var(--lime); }

.b-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.b-actions .btn { margin-left: auto; }
.skip { border: 0; background: none; padding: 10px 4px; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.skip:hover { opacity: 1; }
.btn--wa { --bg: var(--wa); --fg: var(--navy-deep); }
.btn--wa svg path:first-child { fill: var(--navy-deep); }

/* ---------- Phones ---------- */
@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: 104px; }
  .hero__grid, .proof__grid, .loop__grid { grid-template-columns: 1fr; }
  .hero::before { width: 90vw; right: -40vw; top: auto; bottom: 4%; }
  .hero__demo { height: 520px; margin-top: 12px; }
  .fan { height: 380px; }
  .loop__grid > :first-child { order: 2; }
  .fab { right: 16px; padding: 18px 26px; font-size: 18px; }

  .b-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 38fr) minmax(0, 62fr); gap: 4px; padding: 0 16px; }
  .b-stage { order: 0; padding: 4px 0 12px; }
  .b-stage::before { width: 44%; top: 4%; right: 12%; }
  .b-steps { justify-content: flex-start; padding: 6px 0 calc(12px + env(safe-area-inset-bottom)); }
  .b-steps .step { flex: 1; min-height: 0; overflow-y: auto; }
  .step__k { margin-bottom: 6px; }
  .step__t { font-size: clamp(28px, 8.4vw, 40px); }
  .step__s { font-size: 16px; margin-top: 8px; }
  .tiles { margin-top: 16px; }
  .tile { font-size: 19px; padding: 16px 14px; gap: 10px; min-height: 64px; }
  .tile__ico { width: 32px; height: 32px; font-size: 17px; }
  .tiles--3 { grid-template-columns: 1fr 1fr; }
  .tiles--3 .tile--new { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; min-height: 0; }
  .tiles--ind { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .tiles--ind .tile { font-size: 13px; padding: 10px 8px; gap: 5px; min-height: 0; box-shadow: 0 2px 3px rgba(60,50,30,.10), 0 18px 34px -16px rgba(60,50,30,.30); }
  .tiles--ind .tile svg { width: 20px; height: 20px; }
  .tile mark { font-size: 8px; padding: 2px 4px; }
  .field { margin-top: 16px; font-size: 19px; padding: 15px 16px; }
  .chips { margin-top: 16px; gap: 7px; }
  .chip { min-height: 44px; padding: 10px 14px; font-size: 15px; }
  .receipt { margin-top: 14px; padding: 14px 16px; gap: 7px; font-size: 15px; }
  .receipt li { grid-template-columns: 78px 1fr; }
  .meta { margin-top: 14px; font-size: 15px; }
  .b-actions { flex: none; margin-top: 12px; }
  .b-actions .btn { padding: 16px 22px; }
  .b-actions .btn--wa { flex: 1; }
  .b-steps .step { scrollbar-width: none; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .b-body { grid-template-rows: minmax(0, 32fr) minmax(0, 68fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Limewash: daylight, a logo island and no highlighter (see DESIGN.md) */
:root { --plaster: #EBE2D1; --sage: #5B6750; --sage-dark: #46513D; --contact: 0 1px 1px rgba(60,50,30,.10), 0 4px 10px -2px rgba(60,50,30,.13), 0 18px 40px -12px rgba(60,50,30,.22); }
body { background: var(--plaster); color: var(--navy); letter-spacing: -.011em; font-synthesis: none; }
h1, h2 { font-weight: 500; font-stretch: 96%; }
.hero, .hero.beat { background: none; color: var(--navy); }
.hero::before { display: none; }
.room-deep { background-color: var(--sage-dark); color: #F6F0E2; }
.room-sky { background: #DCDBCF; }
.room-lime { background: #E2D2AC; }
em, .room-lime em { background: none; color: var(--sage); padding: 0; box-shadow: none; }
.eq__row b { color: var(--sage); }
.kicker, .tag, .step__k, .fine, .note { font-size: 14px; font-weight: 500; letter-spacing: -.01em; text-transform: none; }
.kicker::before { display: none; }
.btn { --bg: var(--sage); --fg: #F6F0E2; min-height: 50px; padding: 0 24px; border-radius: 25px; font-weight: 550; letter-spacing: -.015em; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px -8px rgba(50,60,35,.5); }
.btn:hover { --bg: var(--sage-dark); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 20px -8px rgba(50,60,35,.55); }
.btn:active { transform: none; }
.btn--sm { min-height: 44px; padding: 0 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px -8px rgba(50,60,35,.5); }
.btn--lg { min-height: 56px; padding: 0 28px; border-radius: 28px; }
.btn--navy { --bg: var(--sage); --fg: #F6F0E2; }
.room-deep .btn { --bg: #F6F0E2; --fg: var(--navy); }
.top { right: auto; width: max-content; padding: 0 20px 0 15px; height: 54px; border-radius: 27px; display: flex; align-items: center; color: var(--navy);
  background: linear-gradient(168deg, rgba(255,252,245,.74), rgba(252,247,236,.58));
  -webkit-backdrop-filter: blur(22px) saturate(125%); backdrop-filter: blur(22px) saturate(125%);
  box-shadow: inset 1.25px 1.25px .5px rgba(255,255,255,.95), inset -1px -1px .5px rgba(255,255,255,.42), var(--contact); }
.top .brand { color: var(--sage); }
.top .brand span { color: var(--navy); font-weight: 600; letter-spacing: -.03em; }
.eq__row--money em, .room-lime .eq__row--money em { background: none; color: var(--sage); padding: 0; box-shadow: none; }
.eq__row--money em::before { display: none; }

/* Hero equation: its rows are longer now, so it may wrap rather than clip */
.eq { font-size: clamp(36px, 4.4vw, 58px); white-space: normal; }
.eq__row > * { min-width: 0; }
.hero__cta { margin-top: 22px; animation: fadeUp .6s var(--ease) .6s both; }

/* The planner is always a dark room. site-theme.css only colours the page's body, so without its own
   text colour every question and button here inherits the page's ink. In Midnight --cobalt is also white, so
   the room can't use it. The phone mock-up (.b-stage) sets its own colours and stays out of this. */
.builder { background-color: var(--t-room, var(--cobalt)); color: var(--t-room-fg, var(--paper)); overflow: hidden; }
.b-steps { --ice: var(--t-cool, #E3DBC9); }
.b-progress { background: rgba(255,255,255,.2); }
.b-icon { flex: none; width: 44px; height: 44px; }
.skip, .b-jump { min-height: 44px; }
.b-note { flex: none; margin: 12px 0 0; font-size: 14px; line-height: 1.35; opacity: .85; }
.b-note:not([hidden]) + .b-actions { margin-top: 10px; }
.field::placeholder { color: rgba(43,42,32,.62); }
.tile.sel, .tile[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--t-cta, var(--navy)); }
.btn--wa svg path:first-child { fill: currentColor; }
.btn--wa svg path:last-child { fill: var(--bg); }
/* Dark themes: tiles, the enquiry card, the receipt and the printed plan stay light objects with dark text */
html:is([data-theme=graphite], [data-dark]) :is(.b-steps, .print-sheet) { --paper: var(--d-fg); --navy: var(--d-ink); --cobalt: var(--d-s2); --pink: var(--d-acc); --ice: color-mix(in srgb, var(--d-ink) 10%, var(--d-fg)); }
html:is([data-theme=graphite], [data-dark]) .print-sheet { color: var(--d-ink); }
html[data-dark] .ph-tag { background: #bcd6ff; color: #05070d; }

@media (max-width: 899px) {
  .eq { font-size: clamp(28px, 9vw, 44px); }
  .hero__grid, .proof__grid, .loop__grid { grid-template-columns: minmax(0, 1fr); }
  .b-body { grid-template-columns: minmax(0, 1fr); }
  .b-stage, .b-steps, .hero__grid > * { min-width: 0; }
  .receipt li > span { min-width: 0; overflow-wrap: anywhere; }
  .b-actions .btn--wa { min-width: 0; white-space: normal; line-height: 1.15; }
  /* The logo scrolls away with the page, so it never sits on top of a label */
  .top { position: absolute; }
}
