/* ─── Tokens ──────────────────────────────────────────── */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #ffffff;
  --ink: #0e1a2b;
  --ink-soft: #4a5260;
  --ink-mute: #8a8e98;
  --line: rgba(14, 26, 43, 0.09);
  --line-strong: rgba(14, 26, 43, 0.18);
  --green: oklch(58% 0.12 158);
  --green-soft: oklch(94% 0.04 158);
  --green-ink: oklch(36% 0.08 158);
  --blue: oklch(54% 0.13 265);
  --blue-soft: oklch(94% 0.035 265);
  --amber: oklch(72% 0.13 70);
  --rose: oklch(63% 0.16 18);

  --serif: "Poppins", -apple-system, system-ui, sans-serif;
  --sans: "Poppins", -apple-system, system-ui, sans-serif;
  --mono: "Poppins", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

/* ─── Layout shell ──────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 48px 0;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 14px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 18px; letter-spacing: -0.02em;
  align-self: center;
}
.brand-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 400;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.topbar-meta {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}
.lang-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}

/* ─── Main two-column ───────────────────────────────────── */
.main {
  display: grid;
  grid-template-columns: 1fr minmax(440px, 560px);
  gap: 64px;
  padding: 56px 0 72px;
  align-items: start;
}
@media (max-width: 1100px) {
  .main { grid-template-columns: 1fr; gap: 48px; }
  .shell { padding: 24px 24px 0; }
}

.left { position: relative; }
.right {
  position: sticky;
  top: 28px;
  display: flex; justify-content: center; align-items: flex-start;
}

/* ─── Step header ───────────────────────────────────────── */
.step-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.step-eyebrow .idx {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: 0.08em;
}
.step-eyebrow .rule { flex: 1; height: 1px; background: var(--line); }

.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.step-title em {
  font-style: italic;
  color: var(--green-ink);
}
.step-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* ─── Body content blocks ───────────────────────────────── */
.body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 58ch;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.body p + p { margin-top: -4px; }
.body strong { font-weight: 600; color: var(--ink); }

.body .key {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 3px;
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  border: 1px solid var(--line);
}

.callout {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  padding: 20px 22px;
  margin: 24px 0;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  max-width: 60ch;
}
.callout.warn { background: #fff8ec; border-color: #f3e3bf; }
.callout.warn .callout-icon { color: #a06800; }
.callout-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  font-family: var(--serif); font-style: italic;
  font-size: 18px;
  color: var(--green-ink);
}
.callout-title {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.callout-body {
  font-size: 15px; line-height: 1.55; color: var(--ink);
}
.callout-body strong { font-weight: 600; }

/* ─── Legend ────────────────────────────────────────────── */
.legend {
  display: flex; flex-wrap: wrap; gap: 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  margin: 24px 0;
  max-width: 60ch;
}
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend-dot {
  width: 14px; height: 14px; border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.green { background: var(--green); }
.legend-dot.blue { background: var(--blue); }

/* ─── Quick markers (the green dots from intro) ─────────── */
.marker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px 3px 8px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.marker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
}
.marker:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 138, 91, 0.32);
}

/* ─── Bottom nav ────────────────────────────────────────── */
.bottombar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}
.nav-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  transition: all 0.15s ease;
  background: var(--card);
}
.nav-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.nav-btn.primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.nav-btn.primary:hover { background: var(--green-ink); border-color: var(--green-ink); }

.dots {
  display: flex; gap: 10px; align-items: center;
}
.dots button {
  width: 22px; height: 28px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.dots .d {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong);
  transition: all 0.2s ease;
}
.dots button:hover .d { background: var(--ink-soft); }
.dots button.active .d {
  width: 26px; border-radius: 4px; background: var(--ink);
}

/* ─── Side TOC ──────────────────────────────────────────── */
.toc {
  position: fixed;
  /* Anchor to the left gutter of the centered 1480px shell, 24px clear of
     where the text content starts — so it can never sit on top of the text. */
  left: auto;
  right: calc(50% + 716px);
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px;
  z-index: 5;
}
/* Hide the rail the moment the gutter is too narrow to hold it cleanly. */
@media (max-width: 1760px) { .toc { display: none; } }
.toc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  border-radius: 6px;
  transition: color 0.15s ease;
}
.toc-item:hover { color: var(--ink); }
.toc-item .num { font-variant-numeric: tabular-nums; opacity: 0.5; }
.toc-item.active { color: var(--ink); }
.toc-item.active .num { opacity: 1; }
.toc-item .bar {
  width: 14px; height: 1px; background: var(--line-strong);
}
.toc-item.active .bar { background: var(--ink); height: 2px; }

/* ─── Phone scene ───────────────────────────────────────── */
.phone-scene {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
}
.phone-caption {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px;
}
.phone-caption .bullet { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-mute); }

.phone-wrap {
  position: relative;
  transform-origin: center;
}
.phone-wrap.small { transform: scale(0.78); margin: -60px -50px; }

/* annotation overlay on phone */
.annot {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft);
  pointer-events: none;
  white-space: nowrap;
}
.annot .line {
  width: 38px; height: 1px;
  background: var(--ink-soft);
}
.annot .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  flex-shrink: 0;
}

/* ─── Inner mobile UI styles ────────────────────────────── */
.m {
  --m-ink: #0d1424;
  --m-ink-soft: #5d6573;
  --m-line: rgba(13, 20, 36, 0.08);
  --m-bg: #f5f3ee;
  --m-card: #ffffff;
  --m-green: #1f8a5b;
  --m-green-soft: #e5f3eb;
  --m-blue: #4655d4;
  --m-blue-soft: #e7e9fb;
  --m-rose: #d04965;
}
.m-screen {
  width: 100%; height: 100%;
  background: var(--m-bg);
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  color: var(--m-ink);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.m-topbar {
  padding: 56px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.m-topbar h1 {
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0;
}
.m-topbar .add {
  font-size: 14px; font-weight: 500;
  color: var(--m-green);
}
.m-iconbtn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: inline-flex; align-items: center; justify-content: center;
}

.m-week {
  display: flex; gap: 6px; padding: 12px 16px 6px;
  font-size: 11px;
}
.m-week .d {
  flex: 1; text-align: center;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--m-card);
  border: 1px solid var(--m-line);
}
.m-week .d .num {
  font-size: 16px; font-weight: 600; display: block;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.m-week .d.active {
  background: var(--m-ink); color: white;
  border-color: var(--m-ink);
}

.m-list {
  flex: 1;
  padding: 8px 16px 16px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.m-shift {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 14px;
  align-items: center;
  position: relative;
}
.m-shift .pip {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--m-blue);
}
.m-shift.done .pip { background: var(--m-green); }
.m-shift .day {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--m-ink-soft);
}
.m-shift .time {
  font-size: 15px; font-weight: 500;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.m-shift .badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--m-blue-soft);
  color: var(--m-blue);
  font-weight: 500;
}
.m-shift.done .badge { background: var(--m-green-soft); color: var(--m-green); }
.m-shift.empty .time { color: var(--m-ink-soft); font-style: italic; font-weight: 400; }

.m-tabbar {
  border-top: 1px solid var(--m-line);
  padding: 8px 0 28px;
  display: flex; justify-content: space-around;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: blur(20px);
}
.m-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px;
  color: var(--m-ink-soft);
  padding: 4px 10px;
}
.m-tab.active { color: var(--m-ink); }
.m-tab svg { width: 22px; height: 22px; }

/* shift detail */
.m-detail {
  flex: 1;
  padding: 12px 18px;
  overflow-y: auto;
}
.m-detail-hero {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
}
.m-detail-hero .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--m-ink-soft); margin-bottom: 6px;
}
.m-detail-hero .date {
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.m-detail-hero .stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--m-line);
}
.m-detail-hero .stat .k {
  font-size: 11px; color: var(--m-ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.m-detail-hero .stat .v {
  font-size: 14px; font-weight: 500; margin-top: 2px;
  letter-spacing: -0.01em;
}

.m-row {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.m-row.split { display: grid; grid-template-columns: auto 1fr auto; }
.m-row .type {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--m-ink-soft);
}
.m-row .time-big {
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  margin-top: 2px;
}
.m-row .chev {
  color: rgba(0,0,0,0.25);
}

.m-cta {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--m-green);
  color: white;
  font-size: 15px; font-weight: 600;
  text-align: center;
  width: 100%;
  letter-spacing: -0.01em;
}
.m-cta.ghost {
  background: transparent;
  border: 1px solid var(--m-line);
  color: var(--m-ink);
}

.m-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--m-ink-soft);
  padding: 10px 4px 6px;
}

/* time picker */
.m-sheet {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  background: var(--m-card);
  border-radius: 22px;
  padding: 18px 16px 22px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
}
.m-sheet h3 {
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  font-size: 17px; font-weight: 600; margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.m-sheet .grabber {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(0,0,0,0.18);
  margin: 0 auto 14px;
}
.m-timepicker {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  padding: 8px 0 14px;
  border-top: 1px solid var(--m-line);
  border-bottom: 1px solid var(--m-line);
  margin: 8px 0 14px;
}
.m-tcol {
  display: flex; flex-direction: column; align-items: center;
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  font-size: 24px; letter-spacing: -0.02em;
  width: 56px;
}
.m-tcol .past { color: rgba(0,0,0,0.25); padding: 2px 0; }
.m-tcol .now {
  background: var(--m-green-soft); color: var(--m-green);
  border-radius: 8px; padding: 4px 10px;
  font-weight: 600;
}
.m-tcol .next { color: rgba(0,0,0,0.4); padding: 2px 0; }
.m-tcol .label {
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--m-ink-soft);
  margin-bottom: 6px;
}
.m-tcol-sep {
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  font-size: 22px; color: rgba(0,0,0,0.3);
  align-self: center; padding-top: 16px;
}

.m-typelist .typebtn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  font-size: 15px;
  border-bottom: 1px solid var(--m-line);
}
.m-typelist .typebtn:last-child { border-bottom: 0; }
.m-typelist .typebtn.sel {
  color: var(--m-green); font-weight: 600;
}
.m-typelist .check {
  color: var(--m-green);
}

/* sick day variant */
.m-row.sick {
  background: linear-gradient(90deg, rgba(208, 73, 101, 0.06), transparent);
  border-color: rgba(208, 73, 101, 0.2);
}
.m-row.sick .type { color: var(--m-rose); }

/* comment field */
.m-comment {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 6px;
}
.m-comment .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--m-ink-soft);
  margin-bottom: 6px;
}
.m-comment .txt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--m-ink);
  min-height: 36px;
}
.m-comment .placeholder { color: rgba(0,0,0,0.32); }

/* Highlight ring for instructional emphasis */
.m-highlight {
  position: relative;
}
.m-highlight::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2px solid var(--green);
  box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.12);
  pointer-events: none;
  animation: pulseRing 2.2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(31, 138, 91, 0.05); }
}

/* ─── Transitions ───────────────────────────────────────── */
.step-content {
  animation: stepIn 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.phone-frame-anim {
  animation: phoneIn 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phoneIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Hero intro overlay ────────────────────────────────── */
.hero {
  text-align: left;
}
.hero .kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
.hero .kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 200px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--green-ink);
}
.hero .lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 40px;
}
.hero .startrow {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
}
.btn-start {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 26px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-start:hover {
  transform: translateY(-2px);
  background: var(--green-ink);
}
.btn-start .arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* ─── Misc decorative ───────────────────────────────────── */
.deco-rule {
  display: block; height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent 80%);
  margin: 32px 0;
}
.figcap {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-top: 12px;
}

/* Compact step counter — only shown on small screens (replaces dots) */
.step-count {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* ─── Phone / mobile viewport ───────────────────────────── */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }

  .shell { padding: 16px 18px 0; }

  /* Top bar — keep brand + step, drop the rest */
  .topbar { padding-bottom: 14px; }
  .topbar-meta { gap: 0; }
  .topbar-meta > span:not(:nth-last-child(2)) { display: none; }
  .topbar-meta .lang-pill { display: none; }

  .main { padding: 28px 0 40px; gap: 32px; min-width: 0; }
  .main > .left, .main > .right { min-width: 0; }
  .right { position: static; top: auto; }

  /* Type scales down on narrow screens */
  .step-title { font-size: clamp(30px, 8.5vw, 46px); margin-bottom: 18px; }
  .step-lede { font-size: 16px; margin-bottom: 26px; }
  .hero h1 { font-size: clamp(36px, 11vw, 58px); margin-bottom: 26px; }
  .hero .lede { font-size: 16px; margin-bottom: 30px; }
  .hero .startrow { gap: 16px; }
  .callout, .legend { max-width: 100%; }

  /* Phone is scaled to fit its column by JS (see PhoneScene) */
  .phone-scene { width: 100%; }

  /* Bottom nav — swap 9 dots for a compact counter */
  .bottombar { padding: 16px 0 24px; gap: 14px; }
  .nav-btn { padding: 11px 16px; font-size: 13px; gap: 7px; }
  .dots { display: none; }
  .step-count { display: inline-flex; }
}
