/* Ingle website. Colours and type from docs/DESIGN.md. Phone first. */

@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --night: #14100D; --panel: #1A1511; --card: #1E1814; --room: #2A221C;
  --line: #3A3029; --line2: #2E2620;
  --linen: #F4EDE4; --soft: #D8CBBD; --soft2: #B3A597; --quiet: #A09284;
  --orange: #FF8A3D; --orange-l: #FFB27A; --on-orange: #1A0F08; --ok: #7FC98F;
  --head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--linen); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-l); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-orange); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- the bot ---------- */
.bot .roof path, .bot .body { fill: var(--orange); }
.bot .roof path { stroke: var(--orange); stroke-width: 6; stroke-linejoin: round; }
.bot .roof { animation: bob 2.6s ease-in-out infinite; }
.bot .eye { fill: var(--eye, var(--night)); transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
.bot .smile { fill: none; stroke: var(--eye, var(--night)); stroke-width: 6; stroke-linecap: round; }
.bot .badge { fill: var(--linen); }
.bot .badge-mark { fill: var(--panel); }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.05); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bot .roof, .bot .eye, .bot .reading { animation: none; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid var(--orange); background: var(--orange); color: var(--on-orange);
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--orange-l); border-color: var(--orange-l); color: var(--on-orange); }
.btn-ghost { background: transparent; color: var(--linen); border-color: var(--line); }
.btn-ghost:hover { background: var(--room); border-color: var(--line); color: var(--linen); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(20, 16, 13, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--linen); text-decoration: none; font: 700 24px/1 var(--head); }
.brand:hover { color: var(--linen); }
.menu-btn { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 12px; color: var(--linen); cursor: pointer; }
.menu-btn svg path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--panel); border-bottom: 1px solid var(--line2); padding: 8px 20px 20px; flex-direction: column; gap: 4px; }
.links.open { display: flex; }
.links a { color: var(--soft); text-decoration: none; font-weight: 500; padding: 12px 0; }
.links a:hover { color: var(--linen); }
.links a.btn { color: var(--on-orange); padding: 0 18px; margin-top: 8px; }
@media (min-width: 860px) {
  .menu-btn { display: none; }
  .links { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; margin-left: auto; padding: 0; background: none; border: 0; }
  .links a { padding: 0; font-size: 15px; }
  .links a.btn { margin: 0 0 0 4px; }
}

/* ---------- hero ---------- */
.hero { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 32px; align-items: center; }
/* the tagline: the brand line, big enough to read first */
.tagline { font: 700 clamp(24px, 6.2vw, 34px)/1.1 var(--head); color: var(--orange); letter-spacing: -0.01em; margin-bottom: 22px; }
.tagline span { white-space: nowrap; }
.hero h1 { font-size: clamp(38px, 8.6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
.lead { margin-top: 20px; font-size: 19px; color: var(--soft); max-width: 30em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.small { margin-top: 14px; color: var(--quiet); font-size: 14px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 64px; padding-top: 72px; padding-bottom: 48px; align-items: start; }
  /* text starts level with the top of the phone, not halfway down it */
  .hero-copy { padding-top: 40px; }
}

/* the phone demo */
.hero-demo { display: flex; justify-content: center; padding: 10px; }
.phone {
  width: 100%; max-width: 380px; background: var(--panel); border: 1px solid #4A3D33; border-radius: 36px;
  padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5;
  --eye: var(--panel);
  /* a lighter bezel and a warm glow, so the phone stands off the dark page */
  box-shadow: 0 0 0 9px #2E2620, 0 0 0 10px #4A3D33, 0 30px 90px -10px rgba(255, 138, 61, 0.28);
}
.phone-top { display: flex; align-items: center; gap: 8px; font: 700 18px/1 var(--head); padding: 4px 4px 10px; border-bottom: 1px solid var(--line2); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 20px; }
.msg.me { align-self: flex-end; background: var(--room); border-bottom-right-radius: 6px; }
.msg.bot-msg { align-self: flex-start; background: var(--card); border: 1px solid var(--line2); border-bottom-left-radius: 6px; }
.msg.photo { padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.msg.photo .cap { padding: 0 8px 4px; color: var(--soft); font-size: 14px; }
.label-pic {
  width: 210px; height: 112px; border-radius: 16px; background: #CFC7BC; color: #2A2520;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; font: 600 12px/1.2 var(--body);
  transform: rotate(-2deg);
}
.lp-brand { font: 800 18px/1 var(--body); letter-spacing: 0.06em; color: #1D1A17; }
.lp-line { color: #4A443D; }
.lp-bars { margin-top: auto; height: 18px; width: 120px; background: repeating-linear-gradient(90deg, #2A2520 0 2px, transparent 2px 4px, #2A2520 4px 5px, transparent 5px 8px); }
.status { display: flex; align-items: center; gap: 6px; color: var(--quiet); font-size: 13px; padding-left: 4px; }
.status svg path { stroke: var(--ok); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.card-title { font: 700 18px/1.2 var(--head); }
.card-sub { color: var(--soft2); font-size: 14px; margin-top: 2px; }
.rows { list-style: none; margin: 12px 0 14px; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 14px; color: var(--soft); }
.rows b { color: var(--linen); font-weight: 500; }
.card-btns { display: flex; gap: 8px; }
.card-btns .btn { cursor: default; }

/* ---------- sections ---------- */
.section { padding-top: 88px; }
.h-center { text-align: center; font-size: clamp(32px, 5.5vw, 48px); max-width: 18em; margin: 0 auto; }
.sub { text-align: center; color: var(--soft); margin: 16px auto 0; max-width: 36em; font-size: 18px; }
.split { display: grid; gap: 36px; align-items: center; }
.split h2 { font-size: clamp(32px, 5vw, 44px); }
.split > div > p { margin-top: 16px; color: var(--soft); font-size: 18px; max-width: 30em; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .section { padding-top: 120px; } }

/* statement */
.statement { text-align: center; padding-top: 80px; }
.statement h2 { font-size: clamp(32px, 5.5vw, 48px); }
.statement p { margin: 18px auto 0; max-width: 34em; color: var(--soft); font-size: 19px; }
@media (min-width: 900px) { .statement { padding-top: 112px; } }

/* steps */
.steps { display: grid; gap: 16px; margin-top: 48px; }
.step { background: var(--card); border: 1px solid var(--line2); border-radius: 24px; padding: 28px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font: 700 18px/1 var(--head); }
.step h3 { font-size: 24px; margin-top: 20px; }
.step p { margin-top: 10px; color: var(--soft); }
.step b { color: var(--linen); font-weight: 600; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* chips */
.chips { list-style: none; padding: 0; margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--room); border: 1px solid var(--line); color: var(--soft); font-size: 15px; font-weight: 500; }
.chips li.more-chip { background: none; border: 1.5px dashed var(--orange); color: var(--orange); }
@media (min-width: 900px) { .chips { max-width: 1000px; } }

/* the cycling line */
.everything { --eye: var(--night); }
.everything .bot-mid { width: 96px; height: 96px; margin: 0 auto 28px; }
/* this bot is reading the list: eyes looking down, sweeping left to right like lines of text */
.bot .reading { transform: translate(0, 8px); animation: read 3.2s ease-in-out infinite; }
@keyframes read {
  0%, 8% { transform: translate(-7px, 8px); }
  42%, 50% { transform: translate(7px, 8px); }
  58%, 66% { transform: translate(-7px, 9px); }
  92%, 100% { transform: translate(7px, 9px); }
}
.cycle { display: inline-block; color: var(--orange); transition: opacity 0.35s ease, transform 0.35s ease; }
.cycle.out { opacity: 0; transform: translateY(-0.35em); }
/* phones: the longer pairs take two lines, so always keep room for two and the page below doesn't jump */
@media (max-width: 700px) { .cycle { display: block; min-height: 2.2em; } }

/* rooms */
.rooms { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.rooms-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--room); color: var(--quiet); font-size: 15px; }
.rooms-search svg circle, .rooms-search svg path { stroke: var(--quiet); stroke-width: 2; fill: none; stroke-linecap: round; }
.rooms-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.rooms-grid li { background: var(--room); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.rooms-grid b { font: 700 17px/1.2 var(--head); color: var(--linen); }
.rooms-grid span { font-size: 14px; color: var(--soft2); }
.rooms-grid li.add { background: none; border: 1.5px dashed var(--line); align-items: center; justify-content: center; color: var(--orange); font-weight: 600; }
.split > div > p + p { margin-top: 12px; }

/* questions */
.qa { display: grid; gap: 16px; margin-top: 48px; }
.qa-card { background: var(--card); border: 1px solid var(--line2); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.q { align-self: flex-end; background: var(--room); padding: 10px 14px; border-radius: 20px 20px 6px 20px; max-width: 90%; }
.a { color: var(--soft); }
.found { margin-top: auto; font-size: 13px; color: var(--orange); font-weight: 500; }
@media (min-width: 760px) { .qa { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* due soon */
.due { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; --eye: var(--card); }
.due-head { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--head); padding-bottom: 12px; }
.due ul { list-style: none; margin: 0; padding: 0; }
.due li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line2); color: var(--soft); }
.due b { color: var(--linen); font-weight: 500; white-space: nowrap; }
.due b.warn { color: var(--orange-l); }

/* pricing */
.every { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 28px auto 0; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.every button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font: 500 16px/1 var(--body); cursor: pointer; }
.every button span { margin-left: 6px; color: var(--orange); font-size: 13px; font-weight: 600; }
.every button[aria-selected="true"] { background: var(--room); color: var(--linen); }
.price[hidden] { display: none; }
.plans { display: grid; gap: 16px; margin-top: 36px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.plan-main { border-color: var(--orange); }
.tag { position: absolute; top: -13px; left: 28px; background: var(--orange); color: var(--on-orange); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 26px; }
.price { margin-top: 10px; color: var(--soft2); font-size: 15px; }
.price span { display: block; font: 700 40px/1.1 var(--head); color: var(--linen); }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: var(--soft); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* sign up */
.join { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 32px 22px; display: grid; gap: 28px; --eye: var(--panel); }
.join-copy { display: flex; flex-direction: column; gap: 22px; }
.join-copy .bot-big { width: 88px; height: 88px; flex: none; }
.join-copy h2 { font-size: clamp(32px, 5vw, 44px); }
.join-copy p { margin-top: 12px; color: var(--soft); font-size: 18px; max-width: 28em; }
.join-cta { display: flex; flex-direction: column; gap: 4px; }
.join-cta .btn { width: 100%; }
.join-cta .small { text-align: center; }
@media (min-width: 900px) {
  .join { grid-template-columns: 1.3fr 0.7fr; padding: 48px; gap: 56px; align-items: center; }
  .join-copy { flex-direction: row; align-items: flex-start; gap: 28px; }
  .join-copy .bot-big { width: 120px; height: 120px; }
}


/* footer */
.foot { margin-top: 112px; border-top: 1px solid var(--line2); background: var(--panel); --eye: var(--panel); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 28px; padding-bottom: 36px; }
.foot-in p { color: var(--quiet); font-size: 14px; }
.foot-in nav { display: flex; gap: 22px; margin-left: auto; }
.foot-in nav a { color: var(--soft); text-decoration: none; font-size: 15px; }
.foot-in nav a:hover { color: var(--linen); }
.brand .bot { --eye: var(--night); }
.foot .brand .bot { --eye: var(--panel); }
@media (max-width: 600px) { .foot-in nav { margin-left: 0; } }

/* plain text pages (privacy) */
.page { max-width: 760px; padding-top: 56px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); }
.page h2 { font-size: 24px; margin-top: 40px; }
.page p, .page li { color: var(--soft); margin-top: 12px; }
.page ul { padding-left: 22px; }
.page .meta { color: var(--quiet); font-size: 14px; margin-top: 14px; }

/* Home Pro: one line under the plans */
.plans-note { margin-top: 28px; text-align: center; color: var(--soft); font-size: 16px; }
.plans-note b { color: var(--linen); font-weight: 600; }

/* ---------- How it works page (/how-it-works, built by site/tools/build-how.py from Alan's XD boards) ---------- */
/* Each scene is the XD board (1440 x 900) drawn as an SVG, with the headline as real text on top. Scenes alternate
   light and dark. Things slide in as the scene scrolls into view (.in), then drift gently while it's on screen (.live). */
.how-scene { --hl: var(--orange); background: var(--night); color: var(--linen); overflow: hidden; }
.how-scene.light { --hl: #F07A2E; background: #FAF6F1; color: #2A1F17; }
/* a scene never fills more than the screen: whole scene visible below the nav, with a strip of the next one peeking up
   (Alan, 21 Nov 2026). Width follows the screen's height: (height - nav 68 - peek ~110) x 1440/900. */
.how-scene { --stagew: min(100%, 1440px, calc((100vh - 178px) * 1.6)); }
@supports (height: 100svh) { .how-scene { --stagew: min(100%, 1440px, calc((100svh - 178px) * 1.6)); } }
.how-stage { position: relative; width: var(--stagew); margin: 0 auto; aspect-ratio: 1440 / 900; container-type: inline-size; }
.how-cta { width: var(--stagew); margin: 0 auto; }
.how-pic { position: absolute; inset: 0; }
.how-art { width: 100%; height: 100%; overflow: visible; }
.how-head { position: absolute; z-index: 2; top: 9.4%; margin: 0; font: 700 5cqw/1.06 var(--head); letter-spacing: -0.01em; }
.how-head span { display: block; }
.how-head span + span { color: var(--hl); }
.how-head-left { left: 5.56%; }
.how-head-right { right: 5.56%; text-align: right; }
.how-bot { position: absolute; left: 62.5%; top: 57.8%; width: 17.4%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.how-bot svg { width: 100%; height: auto; }
/* the button sits on the left, in line with the headline (Alan, 21 Nov 2026) */
.how-cta { display: flex; margin-top: calc(var(--stagew) * -0.035); padding: 0 0 40px; position: relative; z-index: 3; }
.how-page .foot { margin-top: 0; } /* the last scene runs straight into the footer */
.how-cta .btn { margin-left: 5.56%; }
.btn-big { min-height: 56px; padding: 0 34px; font-size: 18px; }

/* sliding in */
.how-art .r, .how-art .f { transform-box: fill-box; transform-origin: center; }
.js .how-scene .r, .js .how-scene .how-head, .js .how-scene .how-cta, .js .how-scene .how-bot svg {
  opacity: 0; transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.js .how-scene .how-head { transform: translateY(24px); }
.js .how-scene .how-cta { transform: translateY(24px); transition-delay: 0.5s; }
.js .how-scene .how-bot svg { transform: scale(0.6); transition-delay: 0.3s; }
.js .how-scene .r-from-left { transform: translateX(-70px); }
.js .how-scene .r-from-right { transform: translateX(70px); }
.js .how-scene .r-thing { transform: translateY(30px) scale(0.96); }
.js .how-scene .r-card { transform: translateY(40px) scale(0.94); }
.js .how-scene .r-pop { transform: scale(0.82); }
.js .how-scene.in .r, .js .how-scene.in .how-head, .js .how-scene.in .how-cta, .js .how-scene.in .how-bot svg { opacity: 1; transform: none; }
.how-scene .d1 { transition-delay: 0.15s; } .how-scene .d2 { transition-delay: 0.4s; } .how-scene .d3 { transition-delay: 0.75s; }
.how-scene .d4 { transition-delay: 1.05s; } .how-scene .d5 { transition-delay: 1.3s; } .how-scene .d6 { transition-delay: 1.5s; }

/* drifting, only while on screen */
.how-scene .f { animation-play-state: paused; }
.how-scene.live .f { animation-play-state: running; }
.f-float { animation: hw-float 6s ease-in-out infinite; }
.f-float2 { animation: hw-float 7s ease-in-out -2.5s infinite; }
.f-orbit { animation: hw-float 6s ease-in-out infinite; }
.f-orbit.o2 { animation-duration: 7s; animation-delay: -1.5s; }
.f-orbit.o3 { animation-duration: 6.5s; animation-delay: -3s; }
.f-orbit.o4 { animation-duration: 7.5s; animation-delay: -4.5s; }
.f-breathe { animation: hw-breathe 9s ease-in-out infinite; }
.f-drift { animation: hw-drift 11s ease-in-out infinite; }
.f-spin { animation: hw-spin 120s linear infinite; }
.f-pulse { animation: hw-pulse 2.8s ease-in-out infinite; }
.f-wobble { animation: hw-wobble 6s ease-in-out infinite; }
.f-ring { animation: hw-ring 4.5s ease-in-out infinite; transform-origin: 50% 12%; }
.f-march ellipse { animation: hw-march 5s linear infinite; animation-play-state: inherit; }
@keyframes hw-float { 50% { transform: translateY(-8px); } }
@keyframes hw-breathe { 50% { transform: scale(1.03); } }
@keyframes hw-drift { 50% { transform: translate(10px, -6px); } }
@keyframes hw-spin { to { transform: rotate(360deg); } }
@keyframes hw-pulse { 50% { transform: scale(1.12); } }
@keyframes hw-wobble { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes hw-ring { 0%, 64%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 76% { transform: rotate(-12deg); } 82% { transform: rotate(8deg); } 88% { transform: rotate(-5deg); } 94% { transform: rotate(2deg); } }
@keyframes hw-march { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) {
  .js .how-scene .r, .js .how-scene .how-head, .js .how-scene .how-cta, .js .how-scene .how-bot svg { opacity: 1; transform: none; transition: none; }
  .how-scene .f, .f-march ellipse { animation: none; }
}

/* phones: headline and a line of text above, the picture cropped to its busy part, the button below */
@media (max-width: 720px) {
  .how-stage { width: auto; aspect-ratio: auto; padding: 40px 20px 12px; }
  .how-head { position: static; font-size: clamp(34px, 10.5vw, 46px); text-align: left; }
  .how-pic { position: relative; inset: auto; margin: 8px -20px 0; }
  .how-art { height: auto; }
  /* phones only (build-how.py, each scene's phone=…; desktop keeps the XD layout). Each scene becomes a portrait layout
     (Alan, 28 Nov 2026: the bubbles must be readable and must not cover the appliances): the people and things stay
     together on the floor, squeezed closer, and the app's cards and bubbles move BELOW the floor, bigger, like a chat.
     Every move is "this corner of the object goes here": transform-origin = the object's top-left on the board,
     translate = target minus that corner (board units; transform-box: view-box). Pieces sharing a class move as one. */
  .how-art .ph { transform-box: view-box; }
  /* 1 Snap: the card under the scene */
  .how-art .ph-sc { transform-origin: 57px 588px; transform: translate(421px, 292px) scale(1.6); }
  /* 2 Ask: the paint tin closer to him; his question, then the answer, under the scene */
  .how-art .ph-at { transform: translate(-280px, 0); }
  .how-art .ph-aq { transform-origin: 526px 256px; transform: translate(-296px, 614px) scale(1.45); }
  .how-art .ph-aa { transform-origin: 555px 485px; transform: translate(-405px, 515px) scale(1.35); }
  /* 3 Remembers: she moves closer to the boiler; the notification under the scene */
  .how-art .ph-rp { transform: translate(-150px, 0); }
  .how-art .ph-rf { transform-origin: 640px 821px; transform: translate(-470px, 0) scaleX(1.37); } /* the floor line edge to edge, like the others */
  .how-art .ph-rn { transform-origin: 860px 51px; transform: translate(-487px, 809px) scale(1.3); }
  /* 4 Breaks: the dishwasher closer to him; question, answer and the manual page under the scene */
  .how-art .ph-fd { transform: translate(-431px, 0); }
  .how-art .ph-fq { transform-origin: 407px 313px; transform: translate(-177px, 557px) scale(1.5); }
  .how-art .ph-fa { transform-origin: 439px 425px; transform: translate(-319px, 575px) scale(1.45); }
  .how-art .ph-fm { transform-origin: 706px 609px; transform: translate(84px, 401px) scale(1.35); }
  /* 5 Fixes: tiles and the man closer to the tap; the list (with its tick), the project and "Plan it for me" under the scene */
  .how-art .ph-ft { transform: translate(-200px, 0); }
  .how-art .ph-fm2 { transform: translate(-250px, 0); }
  .how-art .ph-fl { transform-origin: 394px 232px; transform: translate(-274px, 638px) scale(1.3); }
  .how-art .ph-pj { transform-origin: 853px 90px; transform: translate(-153px, 780px) scale(1.25); }
  .how-art .ph-plan { transform-origin: 915px 361px; transform: translate(-185px, 789px) scale(1.4); }
  .how-cta { width: auto; margin-top: 0; padding: 36px 20px 48px; }
  .how-cta .btn { width: 100%; margin-left: 0; transform: none; }
}


/* terms and privacy (V0.6) */
.legal a { color: var(--orange); }
.legal b { color: var(--linen); font-weight: 600; }
.legal h2 { scroll-margin-top: 90px; }
.form-box { margin-top: 18px; border: 1px dashed var(--line); border-radius: 16px; padding: 18px 20px; }
.form-box p { margin-top: 0; }
.form-box .form-title { color: var(--linen); font-weight: 600; margin-bottom: 8px; }
.keep { margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.keep div { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 18px; }
.keep dt { color: var(--linen); font-weight: 500; }
.keep dd { margin: 6px 0 0; color: var(--soft); }
.keep dd span { display: block; margin-top: 4px; color: var(--quiet); font-size: 14px; }
/* placeholders waiting for Alan's details: easy to spot, must all be gone before live */
.tbc { color: var(--orange); border-bottom: 1px dashed var(--orange); }
