/* XcodeSentinel — DESIGN.md design system
   Brutalist editorial: warm canvas, flat surfaces, no shadows, mint accent.
   System fonts only (CLAUDE.md §14.1: no external CDN).
   ─────────────────────────────────────────────────────────────────────── */

/* ── 0. Design tokens ──────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --canvas:   #e5e5e5;   /* page background (warm canvas) */
  --card:     #ffffff;   /* card, panel surface */
  --mist:     #f3f3f3;   /* subtle panel, nav pill bg */
  --inv:      #000000;   /* inverted sections */
  --inv-text: #ffffff;

  /* Text */
  --ink:    #000000;
  --slate:  #444444;
  --smoke:  #979797;
  --ash:    #c6c6c6;     /* borders / hairlines */

  /* Accents */
  --mint:   #d1ffca;     /* primary accent */
  --yellow: #fff100;     /* micro highlight */
  --green:  #30d158;
  --red:    #ff3b30;
  --orange: #ff9f0a;

  /* Semantic aliases (keep old names working) */
  --fg:          var(--ink);
  --bg:          var(--canvas);
  --border:      var(--ash);
  --muted:       var(--smoke);
  --subtle:      var(--ash);
  --accent:      var(--mint);
  --accent-fg:   var(--ink);
  --accent-light:#eefce9;
  --shadow-md:   none;   /* flat design — no shadows */
  --shadow-lg:   none;

  /* Typography */
  --font-body:    system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Radius */
  --radius:    12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Layout */
  --max-w:  1200px;
  --nav-h:  72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas:   #1c1c1e;
    --card:     #2c2c2e;
    --mist:     #3a3a3c;
    --inv:      #000000;
    --ink:      #f2f2f7;
    --slate:    #ebebf0;
    --smoke:    #8e8e93;
    --ash:      #3a3a3c;
    --mint:     #b8f0b0;
    --yellow:   #ffe600;
    --accent-light: #1a3018;
    --bg:       var(--canvas);
  }
}

/* ── 1. Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--mist);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--ink);
}
pre { background: var(--mist); border-radius: 8px; padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; font-size: 13px; }

/* ── 2. Skip link ──────────────────────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--card);
  padding: 8px 16px; border-radius: 4px; z-index: 999;
  font-size: 14px; font-weight: 600;
}
.skip:focus { left: 8px; }

/* ── 3. Layout ─────────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 4. Navigation ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--canvas);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; opacity: 0.8; }

/* Pill-shaped nav ─ no changes to HTML, pure CSS */
.site-header nav {
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}
.site-header nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-header nav a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.site-header nav a.active {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
}
.lang-switch { flex-shrink: 0; }
.lang-switch a {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ash);
  transition: background 0.15s, color 0.15s;
}
.lang-switch a:hover { background: var(--card); color: var(--ink); text-decoration: none; }

/* ── 5. Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--canvas);
  padding: 80px 0 64px;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { max-width: 540px; }
.hero-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  color: var(--smoke);
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--card);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-hero:hover { opacity: 0.8; text-decoration: none; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--slate);
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.hero-meta {
  font-size: 11px;
  color: var(--smoke);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── 6. App mockup (hero right column) ─────────────────────────────────── */
.hero-visual { display: flex; justify-content: center; align-items: flex-start; }
.app-mockup { position: relative; }
.mk-popover {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--ash);
  width: 288px;
  overflow: hidden;
}
.mk-header {
  background: var(--mist);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--ash);
}
.mk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mist);
}
.mk-row.quit { opacity: 0.6; }
.mk-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.mk-dot.on  { background: var(--green); }
.mk-dot.off { background: var(--ash); }
.mk-item-body { flex: 1; min-width: 0; }
.mk-name  { font-size: 12px; font-weight: 600; color: var(--ink); }
.mk-sub   { font-size: 10px; color: var(--smoke); margin-top: 1px; }
.mk-msg   { font-size: 10px; color: var(--smoke); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-toggle {
  width: 30px; height: 18px; border-radius: 9px; flex-shrink: 0;
}
.mk-toggle.on  { background: #007aff; }
.mk-toggle.off { background: var(--ash); }
.mk-divider { height: 1px; background: var(--ash); }
.mk-section-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--smoke);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px 4px;
}
.mk-log-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 10px;
}
.mk-log-icon { font-size: 9px; flex-shrink: 0; }
.mk-log-icon.ok   { color: var(--green); }
.mk-log-icon.warn { color: var(--orange); }
.mk-log-name { font-weight: 600; color: var(--ink); flex-shrink: 0; }
.mk-log-msg  { color: var(--smoke); flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mk-log-time { color: var(--ash); font-size: 9px; flex-shrink: 0; margin-left: auto; font-family: var(--font-mono); }
.mk-action { cursor: default; }
.mk-action-icon { font-size: 13px; color: var(--smoke); width: 16px; text-align: center; flex-shrink: 0; }

/* ── 7. Stats bar (inverted dark block) ─────────────────────────────────── */
.stats-bar {
  background: var(--inv);
  color: var(--inv-text);
  padding: 32px 0;
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-val {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--smoke);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── 8. Section content area ────────────────────────────────────────────── */
.site-body { padding: 0; }
.site-body .wrap > section,
.site-body .wrap > h2,
.site-body .wrap > div,
.site-body .wrap > p { margin-bottom: 0; }

/* Index page sections */
.site-body section { padding: 64px 0; }

h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
}
[lang="ja"] h2 { text-transform: none; }
/* Japanese h1: break only at spaces (keep-all), never mid-CJK-word.
   overflow-wrap:break-word handles extreme narrow widths as last resort. */
[lang="ja"] h1 { word-break: keep-all; overflow-wrap: break-word; }
h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Inner-page content sections */
.page-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--ash);
  margin-bottom: 40px;
}
.page-header h1 { font-size: clamp(28px, 5vw, 56px); margin-bottom: 12px; }
.page-header p  { font-size: 18px; color: var(--slate); }

/* ── 9. Scenario section ────────────────────────────────────────────────── */
.scenario-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.scenario-resolution {
  background: var(--mint);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-weight: 600;
  margin-top: 16px;
}

/* ── 10. Flow (3-step visual) ───────────────────────────────────────────── */
.flow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.flow-step {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 24px;
  flex: 1;
  min-width: 200px;
}
.flow-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.flow-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.flow-desc { font-size: 13px; color: var(--slate); line-height: 1.5; }
.flow-arrow {
  font-size: 20px;
  color: var(--ash);
  align-self: center;
  flex-shrink: 0;
  padding-top: 4px;
}

/* ── 11. Feature cards grid ─────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.card-icon { font-size: 26px; margin-bottom: 14px; display: block; }
.card h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.card p { font-size: 13px; color: var(--slate); line-height: 1.5; }

/* ── 12. Screenshot images inside showcase panels ───────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.showcase-panel {
  background: var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.2s;
}
.showcase-panel:hover { transform: translateY(-3px); }
.showcase-titlebar {
  background: var(--mist);
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.showcase-wintitle {
  margin-left: 8px;
  font-size: 11px;
  color: var(--smoke);
  font-weight: 600;
}
.showcase-body {
  background: var(--card);
  padding: 14px;
  min-height: 200px;
}
.showcase-caption {
  text-align: center;
  font-size: 12px;
  color: var(--smoke);
  padding: 10px 14px 12px;
  background: var(--card);
  border-top: 1px solid var(--ash);
  letter-spacing: 0.02em;
}
.showcase-ss-img {
  width: 100%;
  height: auto;
  display: block;
  background: #f5f5f7;
  border-bottom: 1px solid var(--ash);
}
.showcase-ss-popover-wrap {
  background: #f0f0f2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  border-bottom: 1px solid var(--ash);
}
.showcase-ss-popover-wrap img { width: 100%; max-width: 320px; height: auto; }
@media (prefers-color-scheme: dark) {
  .showcase-ss-img { background: #1c1c1e; }
  .showcase-ss-popover-wrap { background: #2c2c2e; }
}

/* ── 13. Install steps ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.step {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.step-body { flex: 1; }
.step-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step-body p  { font-size: 13px; color: var(--slate); line-height: 1.5; }
.step-body a  { color: var(--ink); text-decoration: underline; }
.step-body code { font-size: 12px; }

/* ── 14. Note / alert boxes ─────────────────────────────────────────────── */
.note {
  background: var(--card);
  border-left: 3px solid var(--ash);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--slate);
  margin: 10px 0;
  line-height: 1.5;
}
.note.note-ok { border-left-color: var(--green); }
.note code { font-size: 12px; }

/* ── 15. Buttons (generic) ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  transition: opacity 0.15s;
  cursor: pointer;
}
.btn:hover { opacity: 0.8; text-decoration: none; }
.btn.secondary {
  background: var(--mist);
  color: var(--ink);
  border: 1px solid var(--ash);
}
.btn.secondary:hover { background: var(--card); }

/* ── 16. Contact box ────────────────────────────────────────────────────── */
.contact-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin: 24px 0;
}
.contact-box-icon { font-size: 32px; flex-shrink: 0; }
.contact-box-body h3 { margin-bottom: 8px; }
.contact-box-body p  { font-size: 14px; color: var(--slate); line-height: 1.5; }
.contact-box-body a  { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ── 17. Divider ────────────────────────────────────────────────────────── */
hr, .divider {
  border: none;
  border-top: 1px solid var(--ash);
  margin: 40px 0;
}

/* ── 18. Author / portfolio section ─────────────────────────────────────── */
.portfolio-section { margin: 40px 0; }
.portfolio-section h2 { font-size: 22px; }

/* ── 19. Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--inv);
  color: var(--inv-text);
  padding: 32px 0;
  margin-top: 80px;
}
.site-footer p {
  font-size: 12px;
  color: var(--smoke);
  line-height: 1.7;
}
.site-footer a { color: var(--mint); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── 20. Traffic lights (window decorations) ────────────────────────────── */
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

/* ── 21. Inner page body ─────────────────────────────────────────────────── */
.wrap .page-content { max-width: 760px; }
.page-content h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.page-content h3 { font-size: 17px; margin-top: 28px; margin-bottom: 8px; }
.page-content p  { font-size: 15px; color: var(--slate); line-height: 1.65; margin-bottom: 16px; }
.page-content ul, .page-content ol { font-size: 15px; color: var(--slate); margin-bottom: 16px; }
.page-content li { margin-bottom: 6px; line-height: 1.6; }
.page-content a  { color: var(--ink); text-decoration: underline; }
.page-content table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
.page-content th { background: var(--mist); font-weight: 700; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--ash); }
.page-content td { padding: 8px 12px; border-bottom: 1px solid var(--mist); color: var(--slate); }

/* ── 22. FAQ ────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}
details {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--smoke);
  flex-shrink: 0;
}
details[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}
.faq-answer a { color: var(--ink); text-decoration: underline; }
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── 23. Changelog ──────────────────────────────────────────────────────── */
.changelog-body h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 8px;
  text-transform: none;
}
.changelog-body h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--smoke);
  margin-top: 20px;
}
.changelog-body ul { font-size: 14px; color: var(--slate); margin-bottom: 12px; }

/* ── 24. Privacy / guide common content ─────────────────────────────────── */
.privacy-body, .guide-body, .troubleshooting-body, .getting-started-body {
  max-width: 760px;
}

/* ── 25. Inline tags / badges ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--mint);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-yellow { background: var(--yellow); }

/* ── 26. Mini form mockup (legacy compatibility for any remaining use) ────── */
.mk-form-row { margin-bottom: 10px; }
.mk-form-label {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--smoke); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 3px;
}
.mk-form-field {
  background: var(--canvas); border: 1px solid var(--ash);
  border-radius: 6px; padding: 6px 10px; font-size: 12px;
  color: var(--ink); width: 100%; display: flex; align-items: center;
}
.mk-btn-row { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.mk-btn { padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.mk-btn.primary { background: var(--ink); color: var(--card); }
.mk-btn.secondary { background: var(--canvas); border: 1px solid var(--ash); color: var(--ink); }
.mk-log-table { width: 100%; border-collapse: collapse; }
.mk-log-table tr { border-bottom: 1px solid var(--ash); }
.mk-log-table tr:last-child { border-bottom: none; }
.mk-log-table td { padding: 6px 4px; font-size: 11px; vertical-align: middle; }
.mk-log-table .col-time { color: var(--smoke); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-log-table .col-target { font-weight: 600; }
.mk-log-table .col-msg { color: var(--smoke); }
.badge-ok   { background: #d1fae5; color: #065f46; border-radius: 4px; padding: 1px 5px; }
.badge-warn { background: #fef3c7; color: #92400e; border-radius: 4px; padding: 1px 5px; }
.badge-err  { background: #fee2e2; color: #991b1b; border-radius: 4px; padding: 1px 5px; }

/* ── 27. Screenshots (legacy screenshot-frame) ───────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.screenshot-frame {
  background: var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.screenshot-frame .macos-bar {
  height: 36px;
  background: var(--mist);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
  border-bottom: 1px solid var(--ash);
}
.screenshot-frame img { width: 100%; height: auto; display: block; }
.screenshot-placeholder {
  background: var(--mist);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--smoke);
  font-size: 13px;
}
.screenshot-placeholder span { font-size: 1.6rem; }

/* ── 28. Requirements / notes tables ─────────────────────────────────────── */
.requirements-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.requirements-table th {
  background: var(--mist); font-weight: 700; padding: 10px 14px;
  text-align: left; border-bottom: 2px solid var(--ash);
}
.requirements-table td { padding: 10px 14px; border-bottom: 1px solid var(--mist); color: var(--slate); }

/* ── 29. Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: none; }
  .hero-visual { display: none; }
  .hero-cta { justify-content: flex-start; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  h1 { font-size: clamp(32px, 8vw, 56px); }
  h2 { font-size: clamp(22px, 5vw, 32px); }
  .site-header nav a { padding: 5px 9px; font-size: 12px; }
  .flow { flex-direction: column; }
  .flow-arrow { display: none; }
  .stats-inner { gap: 16px; }
  .hero { padding: 48px 0 40px; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 16px; }
  .site-header nav { display: none; }
  .hero-badge { font-size: 10px; }
  .lead { font-size: 16px; }
  .btn-hero, .btn-ghost { font-size: 14px; padding: 12px 18px; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
}

/* ── 30. Download box (inverted CTA card per DESIGN.md) ─────────────────── */
.download-box {
  background: var(--inv);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 80px;
}
.download-box-icon { font-size: 48px; flex-shrink: 0; }
.download-box-text { flex: 1; min-width: 180px; }
.download-box-text h3 {
  color: var(--inv-text);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.download-box-text p { font-size: 14px; color: var(--smoke); line-height: 1.55; }
.download-box .btn {
  background: var(--mint);
  color: var(--ink);
  flex-shrink: 0;
  font-size: 15px;
  padding: 14px 28px;
}
.download-box .btn:hover { opacity: 0.85; }
@media (max-width: 600px) {
  .download-box { padding: 24px; gap: 20px; flex-direction: column; align-items: flex-start; }
}

/* ── 31. Scenario section ────────────────────────────────────────────────── */
.scenario {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 40px;
}
.scenario-quote {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 16px;
}
.scenario-quote em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}

/* ── 32. Section gaps (80px per DESIGN.md §Layout) ──────────────────────── */
.site-body .wrap > h2 { margin-top: 80px; }
.site-body .wrap > p.note { margin-top: 12px; }

/* ── Dark-mode adjustments ───────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .site-header nav a.active { background: #3a3a3c; }
}
