/* ============================================================
   くじらSMS User Manual — Stylesheet
   Brand colors per handoff spec
   ============================================================ */

:root {
  --orange: #F39800;
  --orange-deep: #ED9B33;
  --yellow: #FFD24D;
  --peach: #FCE5C2;
  --peach-light: #FFF1E0;
  --ink: #222222;
  --ink-soft: #555555;
  --ink-mute: #888888;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --line: #E6E6E6;
  --red: #D7263D;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.04);
  --shadow-md: 0 2px 6px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.08);
}

* {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ============================================================
   LAYOUT: sidebar + main
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 288px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 0;
}
.sidebar-brand {
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.sidebar-brand .wordmark {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1;
}
.sidebar-brand .wordmark em {
  color: var(--orange);
  font-style: normal;
}
.sidebar-brand .tagline {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: .08em;
}
.nav-group {
  padding: 8px 24px 16px;
}
.nav-group-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--orange);
  margin-bottom: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.nav-group:first-of-type .nav-group-title { border-top: none; padding-top: 0;}
.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-list a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 4px;
}
.nav-list a:hover { color: var(--orange); }
.nav-list a .num {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  min-width: 22px;
  font-weight: 600;
}

/* ============================================================
   MAIN
   ============================================================ */
.main {
  background: var(--bg);
  min-width: 0;
}
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 64px 96px;
}

/* ============================================================
   COVER
   ============================================================ */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .55;
  z-index: 0;
}
.cover::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--peach);
  opacity: .6;
  z-index: 0;
}
.cover > * { position: relative; z-index: 1; }

.cover-brand {
  display: flex; align-items: center; gap: 14px;
}
.cover-brand .logo-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.cover-brand .logo-text {
  font-weight: 900; font-size: 18px; letter-spacing: .04em;
}

.cover-title {
  max-width: 720px;
}
.cover-eyebrow {
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: 20px;
}
.cover-title h1 {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--ink);
}
.cover-title h1 span { color: var(--orange); }
.cover-title p {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 500;
}
.cover-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  font-size: 13px;
  color: var(--ink-soft);
}
.cover-meta dt { color: var(--ink-mute); font-weight: 500; margin-bottom: 4px; letter-spacing: .1em; font-size: 11px; }
.cover-meta dd { margin: 0; font-weight: 700; color: var(--ink); }
.cover-foot {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-mute);
}

/* ============================================================
   TOC
   ============================================================ */
.toc-page { padding-top: 64px; }
.toc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-top: 32px;
}
.toc-col h3 {
  font-size: 11px; letter-spacing: .2em; font-weight: 800;
  color: var(--orange); margin: 0 0 12px;
  padding-bottom: 10px; border-bottom: 2px solid var(--orange);
}
.toc-col h3 small { color: var(--ink-mute); font-weight: 500; margin-left: 8px; }
.toc-col ol { list-style: none; padding: 0; margin: 0; counter-reset: tocnum; }
.toc-col ol li {
  counter-increment: tocnum;
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px dotted var(--line);
  font-size: 14px;
}
.toc-col ol li::before {
  content: counter(tocnum, decimal-leading-zero);
  color: var(--orange); font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 12px; min-width: 24px;
}
.toc-col ol li a { color: var(--ink); text-decoration: none; flex: 1; }
.toc-col ol li a:hover { color: var(--orange); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.part-divider {
  margin: 80px 0 40px;
  padding: 40px 48px;
  background: var(--yellow);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.part-divider::before {
  content: attr(data-num);
  position: absolute;
  right: 32px; top: -30px;
  font-size: 240px;
  font-weight: 900;
  color: #fff;
  opacity: .4;
  line-height: 1;
  letter-spacing: -.05em;
}
.part-divider .part-label {
  font-size: 12px; letter-spacing: .3em; font-weight: 800;
  color: var(--ink); opacity: .6; margin-bottom: 8px;
}
.part-divider h2 {
  font-size: 40px; font-weight: 900; margin: 0 0 8px;
  color: var(--ink);
}
.part-divider p {
  margin: 0; font-size: 15px; color: var(--ink);
  max-width: 560px;
}

.section {
  padding-top: 40px;
  margin-top: 40px;
  scroll-margin-top: 20px;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 28px;
}
.section-num {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .1em;
  white-space: nowrap;
  margin-top: 4px;
}
.section-head h3 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.3;
}
.section-crumb {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.section h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  line-height: 1.4;
}
.section p { margin: 0 0 12px; }

/* ============================================================
   DEVICE FRAMES
   ============================================================ */
.screens {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
  align-items: flex-start;
}

.iphone {
  flex: 0 0 auto;
  width: 280px;
  background: #111;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.iphone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #111;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.iphone-screen {
  display: block;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  max-height: 560px;
  overflow-y: hidden;
}
.iphone-screen img {
  display: block; width: 100%; height: auto;
}
.iphone-caption {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 10px;
  letter-spacing: .05em;
}

.browser {
  flex: 1 1 520px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.browser-bar {
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #F1F1F1;
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--ink-mute);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body {
  max-height: 540px;
  overflow: hidden;
  background: #fff;
}
.browser-body img {
  display: block;
  width: 100%;
  height: auto;
}
.browser-body.wide img {
  max-height: 540px;
  width: auto;
  max-width: 100%;
}
.browser-caption {
  padding: 8px 14px;
  font-size: 11px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  letter-spacing: .05em;
}

/* ============================================================
   STEP FLOW
   ============================================================ */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 16px 0 24px;
  position: relative;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 60px;
  margin-bottom: 12px;
  background: var(--peach);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 14px;
  width: 30px; height: 30px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.steps li:not(:last-child)::after {
  content: "▼";
  position: absolute;
  left: 22px; bottom: -14px;
  color: var(--orange);
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 0 0 var(--orange);
}
.steps li strong { font-weight: 800; }
.steps li ul {
  margin: 6px 0 0; padding-left: 20px; font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================================
   NOTE BOX (注意事項)
   ============================================================ */
.note {
  background: var(--peach-light);
  border: 1px solid var(--orange-deep);
  border-radius: 10px;
  padding: 18px 20px 18px 56px;
  margin: 20px 0;
  position: relative;
  font-size: 13px;
  line-height: 1.8;
}
.note::before {
  content: "⚠";
  position: absolute;
  left: 20px; top: 16px;
  width: 26px; height: 26px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 800;
}
.note .note-title {
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .05em;
  margin-bottom: 6px;
  font-size: 12px;
}
.note ul { margin: 4px 0 0; padding-left: 18px; }
.note li { margin: 2px 0; }

/* ============================================================
   TABLES
   ============================================================ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.tbl thead th {
  background: var(--orange);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
}
.tbl tbody td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.tbl tbody tr:nth-child(even) td { background: var(--bg-soft); }
.tbl .code { font-weight: 800; color: var(--orange); white-space: nowrap; }
.tbl .swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 4px;
  vertical-align: -3px;
  margin-right: 6px;
  border: 1px solid rgba(0,0,0,.08);
}

/* ============================================================
   FLOW DIAGRAM (9 stage horizontal/vertical)
   ============================================================ */
.stage-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 28px;
  counter-reset: stg;
}
.stage-flow .stg {
  counter-increment: stg;
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 12px 14px 12px 44px;
  position: relative;
  font-size: 13px;
  line-height: 1.4;
}
.stage-flow .stg::before {
  content: counter(stg, decimal-leading-zero);
  position: absolute;
  left: 10px; top: 10px;
  font-weight: 900; font-size: 18px; color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.stage-flow .stg strong { display: block; font-weight: 800; font-size: 13px; margin-bottom: 2px; }
.stage-flow .stg small { color: var(--ink-mute); font-size: 11px; display: block; line-height: 1.4;}

/* ============================================================
   FAQ & GLOSSARY
   ============================================================ */
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex; gap: 10px; align-items: baseline;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.faq-q::before {
  content: "Q";
  color: #fff;
  background: var(--orange);
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.faq-a {
  display: flex; gap: 10px; align-items: baseline;
  color: var(--ink-soft);
  font-size: 14px;
  padding-left: 0;
}
.faq-a::before {
  content: "A";
  color: var(--orange);
  border: 1.5px solid var(--orange);
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.faq-group-title {
  font-size: 12px; letter-spacing: .15em; font-weight: 800;
  color: var(--orange); margin: 28px 0 8px;
}

/* ============================================================
   MISC
   ============================================================ */
.intro-card {
  background: linear-gradient(180deg, var(--peach-light) 0%, #fff 100%);
  border: 1px solid var(--peach);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px 0;
}
.intro-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  border: none; padding: 0;
}
.pair {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  margin-top: 10px;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.pair > dt, .pair > dd { padding: 8px 12px; margin: 0; border-top: 1px solid var(--line); }
.pair > dt:first-of-type, .pair > dd:first-of-type { border-top: none; }
.pair > dt { background: #FDF6EC; color: var(--ink); font-weight: 700; font-size: 12px; }

.bullet-plain {
  list-style: none; padding: 0; margin: 8px 0 16px;
}
.bullet-plain li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 14px;
}
.bullet-plain li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 14px;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.badge {
  background: var(--peach);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge.dark { background: var(--orange); color: #fff; }

/* screenshot callout — numbered pin overlay (generic) */
.callout-wrap { position: relative; display: inline-block; }
.pin {
  position: absolute;
  width: 26px; height: 26px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.2);
  border: 2px solid #fff;
}

.scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(243,152,0,.35);
  font-size: 16px; font-weight: 800;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 100;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  @page { size: A4 landscape; margin: 12mm 14mm; }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  html, body { background: #fff; }
  body { font-size: 9.5pt; line-height: 1.6; }
  .sidebar, .scroll-top { display: none !important; }
  .app { display: block; }
  .main { display: block; }
  .page { padding: 0; max-width: none; margin: 0; }

  a { color: inherit; text-decoration: none; }

  /* ----- Cover: one page ----- */
  .cover {
    height: calc(100vh - 2px);
    min-height: 0;
    page-break-after: always;
    padding: 20mm 28mm;
    box-sizing: border-box;
  }
  .cover-title h1 { font-size: 42pt; line-height: 1.05; }
  .cover-title p { font-size: 14pt; }
  .cover-meta { gap: 24mm; }

  /* ----- About + TOC share pages ----- */
  #about { page-break-after: always; padding-top: 0 !important; margin-top: 0 !important; }
  #toc { page-break-after: always; padding-top: 0 !important; margin-top: 0 !important; }
  .toc-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .toc-col ol li { padding: 3px 0; font-size: 10pt; }

  /* ----- Part divider: own page ----- */
  .part-divider {
    page-break-before: always;
    page-break-after: always;
    margin: 0;
    padding: 40mm 30mm;
    height: calc(100vh - 2px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
  }
  .part-divider h2 { font-size: 36pt; }
  .part-divider p { font-size: 13pt; max-width: 520px; }
  .part-divider::before { font-size: 200pt; top: 30mm; right: 30mm; }

  /* ----- Each section on its own page ----- */
  .section {
    page-break-before: always;
    page-break-inside: avoid;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
  }
  /* first section after part-divider shouldn't add another break (the divider already breaks after) */
  .part-divider + .section { page-break-before: auto; }

  .section-head { margin-bottom: 10px; page-break-after: avoid; }
  .section-head h3 { font-size: 18pt; line-height: 1.25; margin: 0 0 4px; }
  .section-crumb { font-size: 8pt; margin-bottom: 2px; }
  .section-num { font-size: 9pt; padding: 3px 8px; }
  .section h4 {
    font-size: 11pt; margin: 12px 0 6px;
    padding-left: 8px; border-left-width: 3px;
  }
  .section p { margin: 0 0 6px; font-size: 9.5pt; }

  /* ----- Shrink imagery so it fits ----- */
  .screens { gap: 14px; margin: 10px 0; }
  .iphone {
    width: 190px;
    padding: 6px;
    border-radius: 26px;
  }
  .iphone::before { width: 80px; height: 16px; top: 6px; }
  .iphone-screen { max-height: 330px; border-radius: 20px; }
  .iphone-caption { font-size: 8pt; margin-top: 4px; }

  .browser { border-radius: 6px; box-shadow: none; margin-bottom: 10px; }
  .browser-bar { padding: 6px 10px; }
  .browser-dots span { width: 8px; height: 8px; }
  .browser-url { font-size: 8pt; }
  .browser-body { max-height: 340px; }
  .browser-body img { max-height: 340px; width: auto; max-width: 100%; }
  .browser-caption { padding: 5px 10px; font-size: 8pt; }

  /* ----- Steps & lists ----- */
  .steps { margin: 8px 0 10px; }
  .steps li {
    padding: 8px 12px 8px 44px;
    margin-bottom: 6px;
    font-size: 9pt;
    line-height: 1.55;
    page-break-inside: avoid;
    border-radius: 8px;
  }
  .steps li::before {
    width: 22px; height: 22px;
    font-size: 10pt;
    left: 10px; top: 8px;
  }
  .steps li:not(:last-child)::after {
    bottom: -10px;
    font-size: 9pt;
    left: 17px;
  }
  .steps li ul { margin-top: 3px; font-size: 8.5pt; }

  /* ----- Notes ----- */
  .note {
    padding: 10px 14px 10px 44px;
    margin: 10px 0;
    font-size: 9pt;
    line-height: 1.55;
    page-break-inside: avoid;
    border-radius: 7px;
  }
  .note::before {
    width: 22px; height: 22px;
    font-size: 11pt;
    left: 12px; top: 10px;
  }
  .note .note-title { font-size: 9pt; margin-bottom: 3px; }
  .note ul { padding-left: 14px; }
  .note li { margin: 1px 0; }

  /* ----- Tables ----- */
  .tbl {
    margin: 8px 0 10px;
    font-size: 8.5pt;
    page-break-inside: avoid;
  }
  .tbl thead { display: table-header-group; }
  .tbl thead th { padding: 6px 10px; font-size: 8.5pt; }
  .tbl tbody td { padding: 5px 10px; }
  .tbl tr { page-break-inside: avoid; }

  /* ----- Stage flow (9 段階) ----- */
  .stage-flow { grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
  .stage-flow .stg {
    padding: 8px 10px 8px 32px;
    font-size: 8.5pt;
    page-break-inside: avoid;
  }
  .stage-flow .stg::before { font-size: 13pt; left: 7px; top: 7px; }
  .stage-flow .stg strong { font-size: 9pt; }
  .stage-flow .stg small { font-size: 7.5pt; }

  /* ----- Bullet lists ----- */
  .bullet-plain { margin: 4px 0 8px; }
  .bullet-plain li { padding: 2px 0 2px 14px; font-size: 9pt; }
  .bullet-plain li::before { top: 10px; }

  /* ----- Side-by-side layout for sections with screenshots ----- */
  /* The first `.screens` block in a section becomes a two-column layout:
     screenshot(s) on the left, steps/content beside it */
  .iphone { box-shadow: none; }

  /* ----- FAQ ----- */
  .faq-item { padding: 8px 0; page-break-inside: avoid; }
  .faq-q, .faq-a { font-size: 9pt; }
  .faq-group-title { margin: 14px 0 4px; font-size: 9pt; }

  /* ----- Intro card ----- */
  .intro-card { padding: 14px 18px; margin: 14px 0; }
  .pair { font-size: 9pt; }
  .pair > dt, .pair > dd { padding: 6px 10px; }

  img { image-rendering: auto; max-width: 100%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .page { padding: 32px 24px 64px; }
  .toc-grid { grid-template-columns: 1fr; gap: 24px; }
  .stage-flow { grid-template-columns: 1fr 1fr; }
  .cover-title h1 { font-size: 44px; }
  .cover-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
}
