/* Magpie Search — site styles. One file, no build step. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --wash: #faf6ef;
  --surface: #ffffff;
  --text: #2e2f34;
  --text-2: #55565e;
  --text-3: #6b6c74;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0f6cbd;
  --accent-soft: rgba(15, 108, 189, 0.1);
  --mark: #fde68a;
  --btn: #1d1d1f;
  --btn-hover: #000000;
  --btn-text: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.12);
  --ink-bg: #0b0b0c;
  --ink-text: #ededee;
  --ink-text-2: #a9a9b0;
  --ink-line: rgba(255, 255, 255, 0.12);

  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 12px;
  --wrap: 1120px;
  --text-col: 760px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0c;
    --bg-alt: #141416;
    --wash: #121110;
    --surface: #161618;
    --text: #ededee;
    --text-2: #b4b4ba;
    --text-3: #9a9aa2;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: #6cb6ff;
    --accent-soft: rgba(108, 182, 255, 0.14);
    --mark: #7a5c00;
    --btn: #ededee;
    --btn-hover: #ffffff;
    --btn-text: #0b0b0c;
    --nav-bg: rgba(22, 22, 24, 0.72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55);
    --ink-bg: #1a1a1d;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-alt: #141416;
  --wash: #121110;
  --surface: #161618;
  --text: #ededee;
  --text-2: #b4b4ba;
  --text-3: #9a9aa2;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #6cb6ff;
  --accent-soft: rgba(108, 182, 255, 0.14);
  --mark: #7a5c00;
  --btn: #ededee;
  --btn-hover: #ffffff;
  --btn-text: #0b0b0c;
  --nav-bg: rgba(22, 22, 24, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55);
  --ink-bg: #1a1a1d;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 32px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.38em; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0.05em 0.4em; background: var(--surface); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--btn); color: var(--btn-text); padding: 10px 16px; border-radius: 980px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--text-col); margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 15px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; }
.nav {
  max-width: 1040px; margin: 0 auto; height: 56px;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px;
  background: var(--nav-bg); border: 1px solid var(--line); border-radius: 980px;
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.is-scrolled .nav { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); font-size: 15px; padding: 8px 12px; border-radius: 980px; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 980px; background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
[data-theme-effective="dark"] .theme-toggle .i-sun { display: block; }
[data-theme-effective="dark"] .theme-toggle .i-moon { display: none; }
html:not(.js) .theme-toggle, html:not(.js) .menu-btn { display: none !important; }
.menu-btn { display: none; font: inherit; font-size: 15px; color: var(--text); background: var(--bg-alt); border: 0; border-radius: 980px; padding: 8px 14px; cursor: pointer; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 15px; }

.menu-sheet[hidden] { display: none; }
.menu-sheet { position: fixed; inset: 0; z-index: 60; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }
.menu-panel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 12px 12px 16px; animation: sheet-in 0.3s var(--ease);
}
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 8px; height: 44px; }
.menu-panel ul { list-style: none; margin: 8px 0 12px; padding: 0; }
.menu-panel li a { display: block; padding: 12px 8px; color: var(--text); font-size: 19px; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu-panel .btn { width: 100%; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: inline-block; }
  html:not(.js) .nav .btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 980px; border: 1px solid transparent;
  background: var(--btn); color: var(--btn-text); font: 500 17px/1 var(--font); letter-spacing: -0.01em;
  cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn svg { width: 18px; height: 18px; }
.link-chev { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; }
.link-chev::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform 0.2s ease; }
.link-chev:hover::after { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.actions.left { justify-content: flex-start; }
.store-badge { display: inline-block; line-height: 0; border-radius: 6px; transition: transform 0.2s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { width: 176px; height: 48px; }
.store-badge .on-dark { display: none; }
[data-theme-effective="dark"] .store-badge .on-light { display: none; }
[data-theme-effective="dark"] .store-badge .on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme-effective]) .store-badge .on-light { display: none; }
  html:not([data-theme-effective]) .store-badge .on-dark { display: block; }
}
.dl-note { font-size: 14px; color: var(--text-3); margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: var(--text-col); margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--text-2); }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0.02em; margin-bottom: 12px; }
@media (max-width: 640px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 40% 0; z-index: -1;
  background: radial-gradient(60% 70% at 50% 0%, var(--wash), transparent 75%);
}
.app-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 980px; background: var(--surface); font-size: 14px; color: var(--text-2); }
.app-badge img { width: 24px; height: 24px; border-radius: 6px; }
.hero h1 { max-width: 900px; margin: 0 auto; }
.hero .lede { max-width: 620px; margin: 22px auto 34px; font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--text-3); }
.trust li:not(:last-child)::after { content: "·"; margin: 0 10px; }

.scene { position: relative; max-width: 1040px; margin: 64px auto 0; aspect-ratio: 1222 / 860; }
.scene .layer { position: absolute; transition: transform 1.15s var(--ease), opacity 1.15s var(--ease); }
.scene .front { left: 7%; right: 7%; top: 10%; z-index: 2; }
.scene .back-l { left: 0; width: 46%; top: 0; z-index: 1; transform: rotate(-3deg) translate(-2%, 2%); }
.scene .back-r { right: 0; width: 25%; top: 40%; z-index: 3; transform: rotate(2.5deg) translate(3%, 8%); }
.js .scene:not(.is-in) .front { transform: translateY(24px) scale(0.97); opacity: 0; }
.js .scene:not(.is-in) .back-l { transform: rotate(0) translate(12%, 8%) scale(0.94); opacity: 0; }
.js .scene:not(.is-in) .back-r { transform: rotate(0) translate(-12%, 4%) scale(0.94); opacity: 0; }
.scene .back-l { transition-delay: 0.08s; }
.scene .back-r { transition-delay: 0.16s; }
@media (max-width: 640px) {
  .scene { aspect-ratio: 1222 / 900; margin-top: 44px; }
  .scene .front { left: 0; right: 0; top: 12%; }
  .scene .back-l { width: 58%; }
  .scene .back-r { width: 32%; top: 50%; }
}

/* ---------- Screenshots ---------- */
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); overflow: hidden; }
.shot img { width: 100%; }
.shot.lg { box-shadow: var(--shadow-lg); }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--text-3); text-align: center; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-num { width: 32px; height: 32px; border-radius: 980px; display: grid; place-items: center; background: var(--btn); color: var(--btn-text); font-weight: 600; font-size: 15px; }
.step p { color: var(--text-2); margin: 0; }
.step .shot { margin-top: auto; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Cards and grids ---------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid.four { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card .exts { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.ficon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text); }
.section.alt .ficon { background: var(--bg); }
.ficon svg { width: 22px; height: 22px; }
.note-line { text-align: center; color: var(--text-3); font-size: 15px; margin: 32px auto 0; max-width: var(--text-col); }

/* ---------- Feature blocks ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 18px; }
.feature-text p { color: var(--text-2); }
.feature-text ul { padding: 0; margin: 20px 0 0; list-style: none; }
.feature-text li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--text-2); }
.feature-text li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 80px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.feature-text .chip { padding: 6px 12px; margin: 0; color: var(--text); }
.feature-text .chip::before { display: none; }
.chip { font-family: var(--mono); font-size: 14px; padding: 6px 12px; border-radius: 980px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }

/* OCR illustration with a short scan line */
.ocr-frame { position: relative; }
.scanline { position: absolute; left: 1px; right: 1px; top: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; box-shadow: 0 0 12px var(--accent); }
.ocr-frame.is-in .scanline { animation: scan 2.4s var(--ease) 0.4s 3 both; }
@keyframes scan { 0% { top: 6%; opacity: 0; } 15% { opacity: 0.7; } 85% { opacity: 0.7; } 100% { top: 94%; opacity: 0; } }

/* ---------- Statement ---------- */
.statement { max-width: 860px; margin: 0 auto; text-align: center; }
.statement .statement-title { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; list-style: none; padding: 0; margin: 48px 0 0; text-align: left; }
.facts li { padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.statement-link { margin: 40px 0 0; }
.facts strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ---------- Ink section ---------- */
.ink { background: var(--ink-bg); color: var(--ink-text); }
.ink h2 { color: var(--ink-text); font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.ink p { color: var(--ink-text-2); }
.ink .section-head p { color: var(--ink-text-2); }
.ink .shot { border-color: var(--ink-line); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); background: #0b0b0c; }
.ink a { color: #6cb6ff; }

/* ---------- Free ---------- */
.price { font-size: clamp(56px, 9vw, 88px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 8px 0 12px; }
.free-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 36px auto 0; max-width: 820px; }
.free-list li { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 980px; background: var(--surface); font-size: 16px; }
.free-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--text-col); margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 4px 22px; color: var(--text-2); overflow: hidden; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.cta p { color: var(--text-2); font-size: 19px; margin: 18px auto 34px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--text-3); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-about p { max-width: 280px; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding: 64px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(36px, 5.5vw, 52px); }
.page-head .lede { margin: 18px auto 0; max-width: 640px; font-size: 19px; color: var(--text-2); }
.page-body { padding: 0 0 96px; }

.prose { max-width: var(--text-col); margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 2.4em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--text-3); }
.prose figure { margin: 2em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line-strong); color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose pre { margin: 0 0 1.4em; padding: 16px 18px; overflow-x: auto; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.prose li > pre { margin-top: 0.6em; }
.diagram { width: 100%; height: auto; color: var(--text); }
.table-wrap { overflow-x: auto; margin: 1.5em 0 2em; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-weight: 600; color: var(--text); }
tr:last-child td { border-bottom: 0; }

.callout { border: 1px solid var(--line); background: var(--bg-alt); border-radius: 16px; padding: 22px 24px; margin: 2em 0; }
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }
.try-box { text-align: center; padding: 32px 24px; }
.try-box h2 { margin: 0 0 8px; font-size: 28px; }
.try-box .actions { margin: 20px 0 4px; }
.try-box p { color: var(--text-2); }

.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { color: var(--text-2); }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; color: var(--text-3); }
.meta li:not(:last-child)::after { content: "·"; margin: 0 10px; }

.toc { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 2.2em; }
.toc h2 { font-size: 15px; margin: 0 0 8px; letter-spacing: 0; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 16px; }
.toc li { margin-bottom: 4px; }

.guide-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); list-style: none; padding: 0; margin: 0; }
.guide-card { display: flex; flex-direction: column; height: 100%; color: var(--text); }
.guide-card:hover { text-decoration: none; }
.guide-card h2, .guide-card h3 { font-size: 19px; margin: 0 0 8px; line-height: 1.25; }
.guide-card p { flex: 1; }
.guide-card .rt { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.related { max-width: var(--text-col); margin: 64px auto 0; }
.related .guide-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related > h2 { font-size: 22px; margin-bottom: 16px; }

.dl-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0 auto; max-width: 960px; }
.dl-grid .card { display: flex; flex-direction: column; gap: 10px; }
.dl-grid .card h2 { font-size: 20px; margin: 0; }
.dl-grid .card p { flex: 1; }
.dl-grid .card .btn, .dl-grid .card .store-badge { align-self: flex-start; margin-top: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); align-self: flex-start; }

.changelog article { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px; }
.changelog article:first-child { margin-top: 0; }
.changelog h2 { margin-top: 0; }
.changelog .date { color: var(--text-3); font-size: 15px; margin: 6px 0 16px; }

.notfound { padding: 120px 0; text-align: center; }
.notfound .actions { margin-top: 32px; }

/* ---------- Scroll reveal (classes only added by JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .scene .layer { opacity: 1 !important; }
  .js .reveal { transform: none !important; }
  .js .scene:not(.is-in) .front { transform: none; }
  .js .scene:not(.is-in) .back-l { transform: rotate(-3deg) translate(-2%, 2%); }
  .js .scene:not(.is-in) .back-r { transform: rotate(2.5deg) translate(3%, 8%); }
  .scanline { display: none; }
}

@media print {
  .site-header, .site-footer, .try-box { display: none; }
  body { background: #fff; color: #000; }
}
