/* POps product page. One accent, system fonts, no external requests. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --card: #ffffff;
  --text: #0b1324;
  --muted: #475467;
  --line: #e2e7f0;
  --line-strong: #cfd7e4;
  --accent: #2357d9;
  --accent-hover: #1a46b8;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --glow: rgba(35, 87, 217, .16);
  --ok: #138a4b;
  --code-bg: #0d1424;
  --code-text: #e2e8f0;
  --code-muted: #94a3b8;
  --note-bg: #fff8eb;
  --note-line: #f2d39b;
  --note-text: #73390a;
  --foot-bg: #0b1220;
  --foot-text: #d5dbe6;
  --foot-muted: #9aa6b8;
  --foot-line: #1f2a3d;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .05), 0 2px 8px -2px rgba(11, 19, 36, .06);
  --shadow: 0 1px 2px rgba(11, 19, 36, .06), 0 18px 40px -16px rgba(11, 19, 36, .22);
  --shadow-lg: 0 2px 4px rgba(11, 19, 36, .05), 0 40px 80px -24px rgba(11, 19, 36, .32);
  --radius: 14px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f18;
    --bg-soft: #0f1623;
    --card: #131c2b;
    --text: #edf1f7;
    --muted: #a6b0c0;
    --line: #223047;
    --line-strong: #2d3d58;
    --accent: #7ea9ff;
    --accent-hover: #a2c0ff;
    --accent-ink: #0a0f18;
    --accent-soft: #172440;
    --glow: rgba(126, 169, 255, .14);
    --ok: #4ade80;
    --code-bg: #060a11;
    --note-bg: #221a0e;
    --note-line: #5a3f13;
    --note-text: #f5c98b;
    --foot-bg: #060a11;
    --foot-line: #1a2436;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px -2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 40px 80px -24px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.1rem + 4.2vw, 4.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.1; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .05em .38em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); }
@supports not (background: color-mix(in srgb, red, blue)) { .top { background: var(--bg); } }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 600; }
.nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: .82rem; font-weight: 700; background: var(--card); }
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); line-height: 1.4; }
.lang a:hover { color: var(--text); }
.lang [aria-current] { background: var(--text); color: var(--bg); }
.top .gh-top { display: none; }
.top .btn { padding: 8px 15px; font-size: .9rem; }
@media (min-width: 1040px) { .nav { display: flex; } }
@media (min-width: 1240px) { .top .gh-top { display: inline-flex; } }
@media (max-width: 420px) { .brand small { display: none; } .top .wrap { gap: 10px; } .top .btn { padding: 7px 11px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; padding: 13px 22px; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 1px solid transparent; line-height: 1.2; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn .count { font-weight: 700; color: var(--muted); padding-left: 9px; border-left: 1px solid var(--line); }

/* Bands */
.band { padding: 76px 0; }
.band.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .band { padding: 52px 0; } }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.head { margin-bottom: 36px; }
.head p { color: var(--muted); margin-top: 12px; font-size: 1.1rem; max-width: 66ch; }
@media (min-width: 1000px) {
  .head.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
  .head.split p { margin-top: 0; }
}

/* Hero */
.hero { position: relative; padding: 64px 0 0; text-align: center; background:
  radial-gradient(1100px 520px at 50% -8%, var(--glow), transparent 70%),
  radial-gradient(700px 420px at 92% 30%, var(--glow), transparent 70%),
  linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.hero .pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; font-size: .84rem; color: var(--muted); margin-bottom: 22px; background: var(--card); box-shadow: var(--shadow-sm); }
.hero .pill b { color: var(--text); font-weight: 750; }
.hero .dot { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; width: 7px; height: 7px; border-radius: 50%; background: #e08a00; }
.hero h1 { max-width: 1060px; margin: 0 auto; }
.hero .lead { max-width: 68ch; margin: 22px auto 0; color: var(--muted); font-size: clamp(1.06rem, .95rem + .5vw, 1.3rem); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hint { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hint code { font-size: .85em; }
.live { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 26px auto 0; max-width: 1220px; font-size: .86rem; }
.live .lbl { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; color: var(--ok); }
.live .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.live a, .live span.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-sm); }
.live a:hover { border-color: var(--line-strong); }
.live svg { width: 15px; height: 15px; color: var(--muted); }
.live small { color: var(--muted); font-weight: 500; font-size: 1em; }
.wrap.wide { max-width: calc(1480px + 2 * var(--gutter)); }
.shot-hero { position: relative; z-index: 2; margin: 48px auto -180px; }
.hero + .band { padding-top: 250px; border-top: 0; }
.phone { display: none; }
@media (min-width: 1100px) {
  .phone { display: block; position: absolute; right: -14px; bottom: -48px; width: 250px; border-radius: 30px; padding: 8px; background: #0b0f17; box-shadow: var(--shadow-lg); }
  .phone img { border-radius: 23px; }
}
@media (max-width: 760px) { .shot-hero { margin-bottom: -60px; margin-top: 36px; } .hero + .band { padding-top: 108px; } }

/* Browser frame */
.frame { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.shot-hero .frame { box-shadow: var(--shadow-lg); border-radius: 16px; }
.frame .bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); flex: none; }
.frame .bar span { margin: 0 auto; font: 600 .74rem/1 var(--font); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 6px 16px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; aspect-ratio: 16 / 10; }

/* Feature cards */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1179px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-top: 8px; font-size: .97rem; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.icon svg { width: 21px; height: 21px; }
.also { margin-top: 24px; color: var(--muted); font-size: .97rem; max-width: 110ch; }
.also b { color: var(--text); font-weight: 700; }

/* Tour: alternating rows */
.rows { display: grid; gap: 64px; }
.row { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 940px) {
  .row { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; }
  .row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
  .row.flip .text { order: -1; }
}
.row .num { font: 800 .78rem/1 var(--font); letter-spacing: .14em; color: var(--accent); }
.row h3 { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.row p { color: var(--muted); margin-top: 12px; font-size: 1.04rem; max-width: 52ch; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: .97rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232357d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (prefers-color-scheme: dark) { .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ea9ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); } }

/* Points (schools, security) */
.points { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.points > div { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.points p { color: var(--muted); margin-top: 8px; font-size: .97rem; }
.more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 700; font-size: .97rem; }
.more a, .links a, .card a.go { text-decoration: none; }
.more a:hover, .links a:hover, .card a.go:hover { text-decoration: underline; }

/* Get started */
.start { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 940px) { .start { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps p { color: var(--muted); margin-top: 4px; font-size: .97rem; }
.term { border-radius: var(--radius); background: var(--code-bg); color: var(--code-text); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #1c2638; }
.term .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 600 .75rem/1 var(--font); color: var(--code-muted); align-items: center; }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.term .bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 400 .93rem/1.8 var(--mono); }
.term code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }
.term pre .c { color: var(--code-muted); }
.term pre .p { color: #7dd3a7; user-select: none; }
.links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: .97rem; }
.start .cta { justify-content: flex-start; margin-top: 24px; }
.start .hint { text-align: left; }

/* What's new */
.news { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 28px; }
.news header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.news header h3 { font-size: 1.25rem; font-weight: 800; }
.news .tag { font: 700 .82rem/1 var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 10px; }
.news header small { color: var(--muted); font-size: .88rem; }
.news header a { margin-left: auto; font-weight: 700; font-size: .95rem; text-decoration: none; }
.news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .news ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news li { padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: .96rem; }
.news li b { color: var(--text); font-weight: 700; }

/* Community */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat b.small { font-size: 1.15rem; padding: 6px 0 3px; white-space: normal; }
.stat span { color: var(--muted); font-size: .86rem; }
.stats-note { color: var(--muted); font-size: .85rem; margin: -6px 0 26px; }
.card h3 { font-size: 1.08rem; }
.card a.go { display: inline-block; margin-top: 14px; font-weight: 700; }
.note { margin-top: 36px; border: 1px solid var(--note-line); background: var(--note-bg); color: var(--note-text); border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 14px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .note { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.note h3 { color: inherit; font-size: 1.2rem; font-weight: 800; }
.note p { margin-top: 8px; }
.note ul { margin: 0; padding-left: 1.2em; display: grid; gap: 5px; }
.note a { color: inherit; font-weight: 700; }
.origin { margin-top: 26px; color: var(--muted); font-size: .97rem; max-width: 90ch; }

/* Footer */
footer { background: var(--foot-bg); color: var(--foot-muted); padding: 56px 0 36px; font-size: .95rem; }
.cols { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
footer h2 { font-size: .74rem; color: var(--foot-text); margin-bottom: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a { color: var(--foot-muted); text-decoration: none; }
footer a:hover { color: #ffffff; text-decoration: underline; }
footer .brand, footer .brand:hover { color: #ffffff; margin-bottom: 12px; }
footer p { max-width: 42ch; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--foot-line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* Zoomable screenshots */
a.zoom { position: relative; display: block; color: inherit; text-decoration: none; border-radius: var(--radius); cursor: zoom-in; }
a.zoom .frame { transition: box-shadow .2s, border-color .2s; }
a.zoom:hover .frame { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.zoom-hint { position: absolute; right: 14px; top: 50px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(11, 19, 36, .78); color: #fff; font-size: .8rem; font-weight: 700; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.zoom-hint svg { width: 14px; height: 14px; }
a.zoom:hover .zoom-hint, a.zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: .9; transform: none; } }

/* Lightbox */
.lb-open { overflow: hidden; }
dialog.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 8, 14, .96); color: #fff; }
dialog.lb::backdrop { background: rgba(5, 8, 14, .6); }
dialog.lb[open] { animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 72px 24px; }
.lb-fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.lb-fig img { width: auto; height: auto; max-width: min(1440px, calc(100vw - 144px)); max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); background: #fff; }
.lb-fig figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; max-width: 900px; text-align: center; font-size: .95rem; color: #dfe5ee; }
.lb-count { color: #9aa6b8; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:focus-visible { outline: 3px solid #7ea9ff; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-stage { padding: 64px 10px 80px; }
  .lb-fig img { max-width: calc(100vw - 20px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) { dialog.lb[open] { animation: none; } a.zoom .frame, .zoom-hint { transition: none; } }

/* FAQ */
.faq { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary h3 { font-size: 1.04rem; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: .98rem; }
