@font-face {
  font-family: 'Nunito';
  src: url('assets/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

/* Lou's own palette (lou-app/src/renderer/common/base.css) */
:root {
  --cream: #fff8f1;
  --cream-2: #fff3ea;
  --paper: #ffffff;
  --ink: #3b2a22;
  --muted: #7d665a;          /* app #8a7468, darkened a touch for text contrast on cream */
  --coral: #ff7a59;
  --coral-dark: #e85f3e;
  --coral-ink: #c94a2b;      /* coral for small text and buttons, AA on white */
  --coral-soft: #ffe4da;
  --sage: #6fbf9b;
  --sage-ink: #2f8a63;
  --sage-soft: #dff3e9;
  --sky: #7bb8e8;
  --sky-soft: #e3f0fb;
  --sun: #ffc65c;
  --sun-soft: #fff1d2;
  --line: #f0e2d8;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(120, 70, 40, .10);
  --shadow-lg: 0 30px 70px rgba(120, 70, 40, .18);
  --wrap: 1180px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
b, strong { font-weight: 800; }
kbd {
  font: inherit; font-weight: 800; font-size: .88em;
  background: var(--paper); border: 2px solid var(--line); border-bottom-width: 3px;
  border-radius: 8px; padding: 0 .4em; white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Buttons & chips (same shapes as the app) ---------- */
.btn, .btn-ghost, .btn-soft, .chip, .os-tab, .lang button {
  font: inherit; cursor: pointer; border: 0;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--coral-ink); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 16px rgba(232, 95, 62, .32);
  min-height: 44px;
}
.btn:hover { background: #b8401f; color: #fff; }
.btn:active, .btn-soft:active, .chip:active { transform: scale(.97); }
.btn-lg { padding: 16px 28px; font-size: 18px; min-height: 56px; }
.btn-sm { padding: 9px 16px; font-size: 15px; min-height: 40px; }
.btn-soft { background: var(--coral-soft); color: var(--coral-ink); box-shadow: none; }
.btn-soft:hover { background: #ffd5c6; color: #b8401f; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--ink);
  border-radius: 999px; padding: 12px 16px; font-weight: 800; font-size: 16px; min-height: 44px;
}
.btn-ghost:hover { background: var(--cream-2); }
.os-ico { width: 20px; height: 20px; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: var(--paper); border: 2px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px;
  min-height: 42px;
}
.chip:hover { border-color: #f3c9b8; }
.chip.on, .chip[aria-pressed="true"] { border-color: var(--coral); background: var(--coral-soft); color: #a63d22; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(255, 248, 241, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 800; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); background: var(--cream-2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: var(--cream-2); border: 2px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { background: transparent; color: var(--muted); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 6px 10px; min-width: 40px; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px rgba(120, 70, 40, .12); }

/* ---------- Story (hero + steps + sticky screen) ---------- */
.story {
  max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 64px;
  grid-template-areas: "hero stage" "steps stage";
}
.hero-copy { grid-area: hero; padding: 40px 0 56px; }
.stage { grid-area: stage; position: sticky; top: max(calc(var(--nav-h) + 20px), calc(50vh - 230px)); align-self: start; padding-top: 28px; }
.steps { grid-area: steps; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--sage-ink); background: var(--sage-soft); padding: 6px 14px 6px 10px; border-radius: 999px; }
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(111, 191, 155, .25); }
h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 900; letter-spacing: -.025em; margin: 22px 0 20px; }
.lead { font-size: 20px; color: #5a463c; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.cta-note { margin-top: 12px; font-size: 15px; color: var(--muted); font-weight: 700; }
.play-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); position: relative; flex: none; }
.play-ico::after { content: ''; position: absolute; left: 13px; top: 10px; border-left: 12px solid var(--coral-ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.proofs { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
.proofs li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 16px; }
.proofs li span:first-child { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper); border-radius: 12px; box-shadow: 0 4px 12px rgba(120, 70, 40, .08); flex: none; }

.step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; opacity: .38; transition: opacity .4s ease; }
.step.active { opacity: 1; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-ink); font-weight: 900; margin-bottom: 18px; }
.step.active .step-n { background: var(--coral-ink); color: #fff; }
.step h2 { font-size: clamp(28px, 3.1vw, 38px); font-weight: 900; letter-spacing: -.015em; margin-bottom: 14px; }
.step p { font-size: 18px; color: #5a463c; max-width: 32em; }
.step .step-aside { margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--muted); }

/* ---------- The live screen ---------- */
.screen {
  --bez: 9px;
  position: relative; aspect-ratio: 16 / 10.4; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #ffe9dc 0%, #fff4e5 55%, #e9f3ec 100%);
  border: var(--bez) solid var(--ink);
  box-shadow: var(--shadow-lg);
  container-type: inline-size;
}
.stage::after { /* laptop base */
  content: ''; display: block; height: 10px; margin: -2px -4% 0; border-radius: 0 0 14px 14px;
  background: linear-gradient(#5a463c, #3b2a22); box-shadow: 0 18px 30px rgba(120, 70, 40, .16);
}
.stage-cap { order: 3; text-align: center; font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 18px; }
.stage { display: flex; flex-direction: column; }
.stage .screen { order: 1; } .stage::after { order: 2; }

.bar {
  position: absolute; left: 0; right: 0; top: 0; height: 7.2cqi; min-height: 26px;
  display: flex; align-items: center; gap: 2cqi; padding: 0 2.2cqi;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: max(11px, 2.1cqi); font-weight: 800; color: var(--ink); z-index: 2;
}
.bar-dots { display: inline-flex; gap: .8cqi; }
.bar-dots i { width: 1.5cqi; height: 1.5cqi; min-width: 7px; min-height: 7px; border-radius: 50%; background: #f0c9bb; }
.bar-dots i:nth-child(2) { background: #f5dfb0; } .bar-dots i:nth-child(3) { background: #c9e4d6; }
.bar-title { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray { margin-left: auto; display: inline-flex; align-items: center; gap: 1.6cqi; }
.tray-lou { width: 3.6cqi; height: 3.6cqi; min-width: 18px; min-height: 18px; object-fit: contain; border-radius: 6px; transition: background .2s ease; }
.tray-wins { display: inline-flex; gap: 4px; align-items: center; background: var(--sage-soft); color: var(--sage-ink); padding: .3cqi 1.2cqi; border-radius: 999px; }
.tray-wins b.pop { animation: bump .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }
.tray-tip {
  position: absolute; top: calc(max(7.2cqi, 26px) + 1.4cqi); right: 9cqi; z-index: 3;
  background: var(--ink); color: #fff; font-weight: 800; font-size: max(11px, 2cqi); padding: 1cqi 2cqi; border-radius: 12px;
  opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease;
}
.tray-tip::before { content: ''; position: absolute; top: -6px; right: 10px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.screen[data-state="idle"] .tray-tip { opacity: 1; transform: none; animation: nudge 2.4s ease-in-out infinite 1s; }
.screen[data-state="idle"] .tray-lou { background: var(--coral-soft); box-shadow: 0 0 0 3px var(--coral-soft); }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }

/* Windows: taskbar at the bottom */
.screen[data-os="windows"] .bar { top: auto; bottom: 0; }
.screen[data-os="windows"] .bar-dots { display: none; }
.screen[data-os="windows"] .tray-tip { top: auto; bottom: calc(max(7.2cqi, 26px) + 1.4cqi); }
.screen[data-os="windows"] .tray-tip::before { top: auto; bottom: -6px; border-bottom: 0; border-top: 6px solid var(--ink); }
.screen[data-os="windows"] .overlay { bottom: calc(max(7.2cqi, 26px) + 0px); }
.screen[data-os="windows"] .doc { top: 5cqi; }

.doc {
  position: absolute; left: 8cqi; top: 12.5cqi; width: 46cqi; bottom: -4cqi;
  background: var(--paper); border-radius: 12px 12px 0 0; padding: 5cqi 5cqi;
  box-shadow: 0 10px 30px rgba(120, 70, 40, .10);
  display: flex; flex-direction: column; gap: 1.9cqi;
}
.doc i { display: block; height: 1.3cqi; min-height: 5px; border-radius: 4px; background: #efe5dd; }
.doc i.h { height: 2.6cqi; background: #e8d9cd; margin-bottom: 1.4cqi; }
.doc i.gap { margin-top: 2cqi; }

/* overlay = Lou's corner, same layout as the app overlay */
.overlay {
  position: absolute; right: 1.2cqi; bottom: 0; z-index: 4; width: 56cqi;
  display: flex; flex-direction: column; align-items: flex-end;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.screen[data-state="idle"] .overlay { opacity: 0; transform: translateY(30px) scale(.95); pointer-events: none; }
.bubble {
  position: relative; width: 100%; background: var(--paper); border-radius: 18px; padding: 2.4cqi 2.8cqi 2.2cqi;
  box-shadow: 0 12px 34px rgba(80, 40, 20, .22); border: 2px solid #ffe1d6; margin-right: 2cqi; margin-bottom: -1cqi;
  font-size: max(12px, 2.45cqi);
}
.bubble::after {
  content: ''; position: absolute; bottom: -10px; right: 12cqi; width: 18px; height: 18px; background: var(--paper);
  border-right: 2px solid #ffe1d6; border-bottom: 2px solid #ffe1d6; transform: rotate(45deg); border-radius: 0 0 5px 0;
}
.bubble.swap { animation: pop .38s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.demo-tag { font-size: max(10px, 1.6cqi); font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6cqi; }
.msg { font-weight: 700; line-height: 1.38; margin: 0 0 1.8cqi; }
.actions { display: flex; flex-wrap: wrap; gap: 1.2cqi; align-items: center; }
.actions button {
  font: inherit; font-weight: 800; font-size: max(11px, 2.05cqi); border: 0; cursor: pointer;
  border-radius: 999px; padding: 1.2cqi 2.2cqi; min-height: 30px;
}
.actions .a-main { background: var(--coral-ink); color: #fff; box-shadow: 0 4px 10px rgba(232, 95, 62, .3); }
.actions .a-soft { background: var(--coral-soft); color: #a63d22; }
.actions .a-ghost { background: transparent; color: var(--muted); padding-left: .8cqi; padding-right: .8cqi; }
.actions button:hover { filter: brightness(.96); }
.mascot { width: 27cqi; height: 27cqi; margin-right: 1cqi; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(60, 30, 10, .16)); }
.mascot video, .mascot img, .mini-lou video, .mini-lou img, .saved-lou video, .saved-lou img, .final-lou video, .final-lou img { width: 100%; height: 100%; object-fit: contain; display: block; }

.breath { display: flex; align-items: center; gap: 2.2cqi; margin: .4cqi 0 1.8cqi; }
.orb {
  width: 9cqi; height: 9cqi; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #bfe6ff, var(--sky));
  box-shadow: 0 0 0 1.2cqi var(--sky-soft); transform: scale(.7); transition: transform 4s ease-in-out;
}
.orb.in { transform: scale(1.05); }
.orb.hold { transform: scale(1.05); transition-duration: .2s; }
.orb.out { transform: scale(.7); transition-duration: 6s; }
.breath-label { font-size: max(15px, 3cqi); font-weight: 900; color: #3f7fb3; }
.breath-sub { font-size: max(11px, 1.9cqi); color: var(--muted); font-weight: 700; }

.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; top: 60%; opacity: 0; animation: burst 1.4s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

/* ---------- Learn ---------- */
.learn, .saved, .privacy, .install, .faq, .final { max-width: var(--wrap); margin: 0 auto; padding: 96px 20px; }
.learn { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.learn h2, .privacy h2, .install h2, .faq h2, .final h2, .saved h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.02em; }
.learn-copy p { margin-top: 18px; color: #5a463c; }
.learn-copy .promise { font-weight: 800; color: var(--ink); background: var(--sun-soft); padding: 14px 18px; border-radius: 16px; }
.learn-demo { padding: 28px; }
.learn-q { font-weight: 800; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.learn-reply { display: flex; align-items: flex-end; gap: 14px; margin-top: 24px; min-height: 130px; }
.mini-lou { width: 150px; height: 150px; flex: none; margin-left: -14px; }
.mini-bubble { position: relative; background: var(--cream-2); border: 2px solid #ffe1d6; border-radius: 18px 18px 18px 6px; padding: 14px 18px; font-weight: 700; margin-bottom: 44px; }
.mini-bubble::before { content: ''; position: absolute; left: -9px; bottom: 10px; width: 14px; height: 14px; background: var(--cream-2); border-left: 2px solid #ffe1d6; border-bottom: 2px solid #ffe1d6; transform: rotate(45deg); }
.mini-bubble.swap { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }

/* ---------- Saved ---------- */
.saved-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center;
  background: linear-gradient(120deg, #ffe8de 0%, #fff4e5 100%); border-radius: 28px; padding: 44px 48px;
}
.saved-lou { width: 250px; height: 250px; align-self: start; margin-top: -8px; }
.saved h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 22px; }
.saved-form { display: grid; gap: 12px; }
.saved-label { font-weight: 700; }
.saved-label b { color: var(--coral-ink); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; max-width: 520px; height: 32px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--coral) var(--p, 25%), var(--paper) var(--p, 25%)); box-shadow: inset 0 0 0 2px var(--line); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--coral); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 3px solid var(--coral-ink); box-shadow: 0 4px 10px rgba(120, 70, 40, .2); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 3px solid var(--coral-ink); box-shadow: 0 4px 10px rgba(120, 70, 40, .2); }
.range-ends { display: flex; justify-content: space-between; max-width: 520px; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: -6px; }
.saved-result { margin-top: 28px; }
.saved-goal { font-size: clamp(34px, 4.4vw, 54px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.saved-goal b { color: var(--coral-dark); font-variant-numeric: tabular-nums; }
.saved-goal-sub { margin-top: 10px; font-weight: 800; font-size: 19px; color: #5a463c; }
.saved-goal-sub b { color: var(--coral-ink); font-variant-numeric: tabular-nums; }
.big { font-size: clamp(64px, 8vw, 96px); font-weight: 900; line-height: 1; color: var(--coral-dark); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-label { font-weight: 800; font-size: 20px; line-height: 1.3; }
.muted { color: var(--muted); font-weight: 700; font-size: 16px; }
.growth { display: flex; align-items: center; gap: 26px; margin-top: 24px; background: var(--paper); border-radius: 22px; padding: 14px 26px 14px 16px; box-shadow: 0 6px 20px rgba(120, 70, 40, .08); max-width: 560px; }
.finger { width: 140px; height: auto; flex: none; overflow: visible; }
.growth-mm { font-size: 46px; font-weight: 900; line-height: 1; color: var(--coral-dark); letter-spacing: -.02em; }
.growth-mm b { font-variant-numeric: tabular-nums; }
.growth-mm span { font-size: 24px; color: var(--coral-ink); }
.growth-what { font-weight: 800; font-size: 18px; margin-top: 6px; }
.growth-like { font-weight: 700; color: var(--sage-ink); margin-top: 8px; }
.growth-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.milestone { margin-top: 18px; font-weight: 800; background: var(--paper); display: inline-block; padding: 10px 16px; border-radius: 14px; box-shadow: 0 4px 14px rgba(120, 70, 40, .08); }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 46em; }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.privacy-copy p { margin-top: 18px; color: #5a463c; }
.privacy-map { display: grid; grid-template-columns: minmax(0, 1.25fr) 60px minmax(0, .85fr); align-items: center; }
.pc { background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border: 3px solid var(--sage-soft); }
.pc-label { font-weight: 900; font-size: 17px; margin-bottom: 12px; }
.pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; background: var(--sage-soft); padding: 9px 12px; border-radius: 12px; }
.wire { height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); position: relative; }
.wire span { position: absolute; top: -4px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); animation: ping 2.8s ease-in-out infinite; }
@keyframes ping { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(48px); opacity: 0; } }
.net { background: var(--paper); border-radius: 24px; padding: 22px; border: 2px dashed var(--line); }
.net-only { font-size: 15px; font-weight: 700; color: var(--muted); }

/* ---------- Install ---------- */
.install-head p { margin-top: 12px; color: #5a463c; }
.phone-note { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--sun-soft); padding: 16px 20px; border-radius: 18px; }
.os-tabs { display: flex; gap: 10px; margin: 32px 0 0; flex-wrap: wrap; }
.os-tab {
  display: inline-flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--line); border-radius: 18px; padding: 12px 20px; font-weight: 900; font-size: 18px; min-height: 56px;
}
.os-tab img { filter: brightness(0) saturate(100%) invert(15%) sepia(19%) saturate(1250%) hue-rotate(338deg); width: 22px; height: 22px; }
.os-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.os-tab[aria-selected="true"] img { filter: none; }
.yours { display: none; font-style: normal; font-size: 12px; font-weight: 800; background: var(--sage-ink); color: #fff; padding: 2px 8px; border-radius: 999px; }
.os-tab.detected .yours { display: inline-block; }
.os-panel { margin-top: 18px; display: grid; gap: 18px; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.path { background: var(--paper); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.path.recommended { border: 3px solid var(--sage-soft); }
.path-badge { display: inline-block; font-weight: 800; font-size: 14px; color: var(--sage-ink); background: var(--sage-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.howto { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (min-width: 1021px) { #panel-mac .howto { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); } }
.howto > li { counter-increment: s; position: relative; padding-top: 52px; min-width: 0; }
.howto > li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-ink); font-weight: 900;
}
.howto > li.done::before { content: '✓'; background: var(--sage); color: #fff; }
.howto > li.next::before { background: var(--coral-ink); color: #fff; box-shadow: 0 0 0 6px var(--coral-soft); }
.howto h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.howto p { font-size: 16px; color: #5a463c; }
.howto .btn { margin: 4px 0 6px; }
.cmd {
  display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 8px 8px 16px; margin-top: 6px;
}
.cmd code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; flex: 1; min-width: 0; padding: 6px 0; user-select: all; -webkit-user-select: all; }
.cmd .copy { flex: none; }
.cmd .copy.ok { background: var(--sage-ink); }
.reassure { margin-top: 24px; background: var(--cream); border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 600; color: #5a463c; }
.path.alt h3 { font-size: 20px; font-weight: 900; }
.path.alt > p { margin-top: 6px; color: #5a463c; }
.dl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 12px; }
.path.recommended .dl-row { margin-top: 0; margin-bottom: 28px; }
.dl {
  position: relative; display: grid; gap: 2px; text-decoration: none; color: var(--ink);
  border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--paper);
}
.dl:hover { border-color: var(--coral); color: var(--ink); background: #fffaf7; }
.dl b { font-size: 17px; }
.dl span { font-size: 14px; color: var(--muted); font-weight: 700; }
.dl .guess { display: none; position: absolute; top: -11px; right: 14px; font-style: normal; font-size: 12px; font-weight: 800; background: var(--sage-ink); color: #fff; padding: 2px 9px; border-radius: 999px; }
.dl .guess.on, .dl.likely .guess { display: inline-block; }
.dl.likely { border-color: var(--sage); background: #fbfffd; }
.hint { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.hint code { font-size: 13px; background: var(--cream-2); padding: 1px 6px; border-radius: 6px; }
.fix { margin-top: 16px; border-top: 2px solid var(--line); padding-top: 14px; }
.fix summary { cursor: pointer; font-weight: 800; color: var(--coral-ink); min-height: 32px; }
.fix div { margin-top: 10px; font-size: 16px; color: #5a463c; }
.fix ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 4px; }

.smartscreen { margin: 12px 0; background: #1f5fa8; color: #fff; border-radius: 10px; padding: 14px 16px; font-size: 13px; font-family: 'Segoe UI', system-ui, sans-serif; }
.ss-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.ss-line { height: 6px; background: rgba(255, 255, 255, .35); border-radius: 3px; margin: 6px 0; }
.ss-line.short { width: 60%; }
.ss-link { margin-top: 10px; text-decoration: underline; position: relative; display: inline-block; }
.ss-tap { position: absolute; right: -16px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 198, 92, .7); animation: tap 1.8s ease-out infinite; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(255, 198, 92, .8); } 100% { box-shadow: 0 0 0 14px rgba(255, 198, 92, 0); } }
.ss-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.ss-btns span { border: 1px solid rgba(255, 255, 255, .7); padding: 4px 10px; border-radius: 4px; }
.ss-run { background: rgba(255, 255, 255, .18); }
.after { margin-top: 22px; text-align: center; font-weight: 700; }
.after .hint { margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq details { background: var(--paper); border-radius: 18px; box-shadow: 0 4px 16px rgba(120, 70, 40, .06); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-ink); display: grid; place-items: center; font-weight: 900; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: #5a463c; font-size: 16px; }

/* ---------- Final ---------- */
.final { text-align: center; padding-top: 40px; }
.final-lou { width: 200px; height: 200px; margin: 0 auto 4px; }
.final p { margin-top: 12px; font-size: 20px; color: #5a463c; }
.coffee { font-size: 17px; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 48px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; border-top: 2px solid var(--line); font-size: 15px; color: var(--muted); font-weight: 700; }
.foot p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot img { width: 28px; height: 28px; object-fit: contain; }
.foot a { color: var(--muted); }

/* ---------- Toast & video ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 16px; font-weight: 800; font-size: 16px;
  box-shadow: 0 16px 40px rgba(60, 30, 10, .3); max-width: calc(100vw - 32px); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
dialog.video { border: 0; padding: 0; background: transparent; max-width: min(420px, 92vw); overflow: visible; }
dialog.video::backdrop { background: rgba(59, 42, 34, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.video video { display: block; width: 100%; max-height: 86vh; border-radius: 22px; background: #000; }
dialog.video .close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 26px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); z-index: 1; }

/* ---------- Load sequence ---------- */
.js .hero-copy > * { opacity: 0; transform: translateY(14px); }
.js.ready .hero-copy > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.js.ready .hero-copy > :nth-child(2) { transition-delay: .08s; }
.js.ready .hero-copy > :nth-child(3) { transition-delay: .16s; }
.js.ready .hero-copy > :nth-child(4) { transition-delay: .24s; }
.js.ready .hero-copy > :nth-child(5) { transition-delay: .3s; }
.js.ready .hero-copy > :nth-child(6) { transition-delay: .36s; }
.js .screen { opacity: 0; transform: translateY(24px) scale(.98); }
.js.ready .screen { opacity: 1; transform: none; transition: opacity .7s ease .15s, transform .8s cubic-bezier(.2, .8, .3, 1) .15s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "stage" "steps"; padding-top: 24px; }
  .hero-copy { padding: 20px 0 32px; }
  .nav { background: rgba(255, 248, 241, .97); }
  .stage { top: var(--nav-h); z-index: 5; padding: 8px 20px 18px; background: linear-gradient(var(--cream) 88%, rgba(255, 248, 241, 0)); margin: 0 -20px; }
  .stage-cap { display: none; }
  .screen { max-width: 620px; margin: 0 auto; width: 100%; }
  .stage::after { max-width: 600px; width: calc(100% + 16px); margin-left: auto; margin-right: auto; }
  .screen { max-width: min(560px, calc((44vh) * 1.54)); }
  .step { min-height: 30vh; padding: 22px 0; opacity: .5; }
  .learn, .privacy { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .howto { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .howto > li { padding-top: 0; padding-left: 54px; }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav { gap: 10px; }
  .nav-end .btn-sm { display: none; }
  .story, .learn, .saved, .privacy, .install, .faq, .final { padding-left: 16px; padding-right: 16px; }
  .learn, .saved, .privacy, .install, .faq { padding-top: 64px; padding-bottom: 64px; }
  .stage { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .screen { --bez: 6px; border-radius: 14px; aspect-ratio: 4 / 3; max-width: min(100%, calc(40vh * 1.333)); }
  .overlay { width: 74cqi; }
  .mascot { width: 30cqi; height: 30cqi; }
  .tray-tip { right: 4cqi; }
  .tray-wins { font-size: 11px; }
  .doc { width: 60cqi; }
  .bubble { font-size: 12.5px; padding: 8px 10px 9px; border-radius: 14px; }
  .bubble .demo-tag { display: none; }
  .msg { margin-bottom: 7px; }
  .actions { gap: 5px; }
  .actions button { font-size: 12px; padding: 6px 11px; min-height: 34px; }
  .breath { margin: 0 0 6px; gap: 10px; }
  .breath-label { font-size: 14px; }
  .breath-sub { font-size: 10.5px; }
  .bar-title { display: none; }
  .lead { font-size: 17px; }
  h1 { font-size: 36px; margin: 16px 0 14px; }
  .story { padding-top: 8px; }
  .hero-copy { padding-top: 12px; }
  .kicker { font-size: 14px; }
  .proofs { margin-top: 24px; }
  .cta-row { margin-top: 22px; }
  .cta-row .btn-lg { width: 100%; }
  .step { min-height: 28vh; }
  .step h2 { font-size: 26px; }
  .step p { font-size: 17px; }
  .saved-card { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 32px; gap: 0; }
  .saved-lou { width: 150px; height: 150px; justify-self: center; margin: -10px 0 0; order: 2; }
  .growth { gap: 14px; padding: 12px 16px 12px 8px; }
  .finger { width: 96px; }
  .growth-mm { font-size: 36px; }
  .growth-what { font-size: 16px; }
  .privacy-map { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 40px auto; }
  .wire { width: 4px; height: 100%; justify-self: center; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .wire span { left: -4px; top: 0; animation-name: pingv; }
  @keyframes pingv { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(28px); opacity: 0; } }
  .path { padding: 22px 18px; }
  .dl-row { grid-template-columns: minmax(0, 1fr); }
  .os-tab { padding: 10px 14px; font-size: 16px; flex: 1; justify-content: center; }
  .os-tab .yours { position: absolute; transform: translateY(-30px); }
  .os-tab { position: relative; }
  .cmd { flex-wrap: wrap; }
  .cmd code { flex-basis: 100%; }
  .cmd .copy { width: 100%; }
  .final-lou { width: 160px; height: 160px; }
  #days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  #days .chip { justify-content: center; padding: 9px 4px; font-size: 14px; }
  .saved-goal { font-size: 32px; }
  .fineprint { font-size: 13px; }
}

/* Desktop grid unchanged; mobile text stays below a landscape laptop. */
.editor-runway { display: contents; }
.editor-viewport, .editor-hint { display: none; }
.mobile-editor .editor-hint { display: block; order: 3; text-align: center; font-size: 12px; font-weight: 700; margin-top: 6px; color: var(--muted); }
html[data-os="phone"] #hero-cta,
html[data-os="phone"] #final-cta,
html[data-os="phone"] #hero-cta-note,
#share-link { display: none; }
@media (max-width: 1020px) {
  #hero-cta, #final-cta, #hero-cta-note { display: none; }
  /* A safe readable fallback if JavaScript is unavailable. */
  .stage { position: relative; top: auto; }
  .step { opacity: 1; }
  .mobile-editor .story { display: block; padding-bottom: 0; }
  .mobile-editor .editor-runway { display: block; position: relative; overflow: clip; }
  .mobile-editor .editor-runway::after { content: ''; display: block; height: var(--editor-tail, 0px); }
  .mobile-editor .stage {
    position: sticky; top: var(--nav-h); padding: 8px 0 0;
    margin: 0; background: var(--cream); z-index: 2;
  }
  /* The casing occludes the page; only the white aperture reveals its copy. */
  .mobile-editor .stage::before { content: ''; position: absolute; bottom: 100%; left: -16px; right: -16px; height: 100vh; background: var(--cream); pointer-events: none; }
  .mobile-editor .stage::after { width: 100%; height: 8px; margin: 0; }
  .mobile-editor .screen {
    width: 100%; max-width: 560px; height: auto; aspect-ratio: 4 / 3;
    border-radius: 14px; --bez: 6px;
  }
  .mobile-editor .doc { display: none; }
  .mobile-editor .editor-viewport {
    display: block; position: absolute; left: 4%; right: 4%; top: 19%; bottom: 0;
    overflow: hidden; overflow: clip; contain: paint;
    background: var(--paper); border-radius: 8px 8px 0 0;
  }
  .mobile-editor .nav { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-editor .bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js.ready.mobile-editor .screen { transition: none; transform: none; }
  .mobile-editor .steps { position: relative; padding: 24px 0 0; }
  .mobile-editor .editor-copy { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
  .mobile-editor .step { min-height: 0; padding: 0 0 40px; opacity: 1; transition: none; }
  .mobile-editor .step:last-child { padding-bottom: 0; }
  /* Same wrapping in source and facsimile; keep final lines clear of Lou. */
  .mobile-editor .step:last-child p:not(.step-n) { padding-right: 16%; }
  .mobile-editor .step h2 { font-size: 28px; }
  .mobile-editor .step p { font-size: 17px; line-height: 1.55; }
  .mobile-editor .step .step-aside { font-size: 16px; }
  /* Lou stays inside the bottom-right bezel; a compact transparent footprint
     leaves source paragraphs below the laptop completely unobstructed. */
  .mobile-editor .overlay { display: flex; top: auto; left: auto; right: 1cqi; bottom: 1cqi; width: 14cqi; pointer-events: none; transition: none; }
  .mobile-editor .bubble { display: none; }
  .mobile-editor .mascot { width: 14cqi; height: 14cqi; margin: 0; filter: none; }
  .mobile-editor .tray-tip { top: 8cqi; font-size: 10px; padding: 2px 7px; animation: none !important; }
  .mobile-editor .editor-hint { display: none; }
}
/* Short windows keep the same laptop ratio, allowing its top to scroll away. */
@media (max-width: 1020px) and (max-height: 600px) {
  .mobile-editor .stage { top: min(var(--nav-h), calc(100svh - 180px - min(100vw - 32px, 560px) * .75 - 16px)); }
}
@media (max-width: 1020px) and (prefers-reduced-motion: reduce) {
  .mobile-editor .learn { padding-top: 32px; }
  .mobile-editor .stage { position: relative; top: auto; }
  .mobile-editor .stage::before { display: none; }
  .mobile-editor .editor-runway::after { display: none; }
  .mobile-editor .editor-viewport { display: none; }
  .mobile-editor .doc { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* Desktop: steps follow each other naturally (no viewport-height blocks), like the mobile layout. */
@media (min-width: 1021px) {
  .hero-copy { padding-bottom: 40px; }
  .step { min-height: 0; justify-content: flex-start; padding: 0 0 64px; }
  .steps { padding-top: 24px; padding-bottom: 8vh; }
}
