:root {
  --bg: #f7f6f2;
  --bg-2: #efede6;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #4c4b47;
  --ink-3: #85837c;
  --line: rgba(20, 20, 20, 0.09);
  --line-2: rgba(20, 20, 20, 0.16);
  --dark: #141416;
  --dark-2: #1d1d21;
  --accent: #e6f36a;
  --accent-2: #d8e85a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
code { font: 500 0.88em var(--mono); background: rgba(20,20,20,.06); padding: 0.1em 0.35em; border-radius: 5px; }
kbd { font: 600 0.78em/1 var(--mono); display: inline-flex; align-items: center; justify-content: center; min-width: 1.7em; height: 1.7em; padding: 0 0.45em; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -1.5px 0 var(--line-2); color: var(--ink); vertical-align: 0.08em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 0; font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .swap { display: inline-flex; align-items: center; gap: 8px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 15px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(20,20,20,.08), 0 1px 2px rgba(20,20,20,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet { background: rgba(255,255,255,.08); color: #f2f2f3; }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: var(--accent-2); }
  .btn-dark:hover { background: #2a2a2e; }
  .btn-ghost:hover { background: rgba(20,20,20,.04); }
  .btn-quiet:hover { background: rgba(255,255,255,.14); }
}
.btn .ok { display: inline-grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }

/* Hero */
.hero { position: relative; padding: 48px 0 28px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle at 1px 1px, rgba(20,20,20,.08) 1px, transparent 0); background-size: 22px 22px; background-position: center top; height: 420px; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(40px, 5.8vw, 70px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 650; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.lede { max-width: 560px; margin-top: 18px; font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero-inner > * { animation: rise 520ms var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: 50ms; }
.hero-inner > :nth-child(3) { animation-delay: 100ms; }
.hero-inner > :nth-child(4) { animation-delay: 150ms; }
.hero-inner > :nth-child(5) { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-inner > * { animation-name: fade; }
  @keyframes fade { from { opacity: 0; } }
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2, .install h2, .narrow h2, .closing h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin-bottom: 14px; }
.fine { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }

/* Demo */
.demo { margin-top: 28px; }
.demo > * { animation: rise 520ms var(--ease-out) 200ms both; }
.hint-touch { display: none; }
.browser-bar .seg { margin: 0 auto; padding: 3px; background: var(--bg-2); box-shadow: none; border-radius: 11px; }
.browser-bar .seg button { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.icon-link { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease; }
.icon-link svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .icon-link:hover { background: rgba(20,20,20,.05); color: var(--ink); } }
@media (pointer: coarse) { .hint-key { display: none; } .hint-touch { display: inline; } }
.select-wrap { display: none; position: relative; flex: 1; }
.select-wrap select { width: 100%; height: 44px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 12px; padding: 0 40px 0 14px; font: 600 15px var(--sans); color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.select-wrap .chev { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; pointer-events: none; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(20,20,20,.04); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: 600 14px/1 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .seg button:hover { color: var(--ink); background: rgba(20,20,20,.04); } }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.seg button:focus-visible { outline-offset: -2px; }
.sw { width: 14px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(20,20,20,.18); }
.sw-original { background: linear-gradient(135deg, #6d61ff, #ff7ab6); }
.sw-bw { background: linear-gradient(135deg, #fff 50%, #141414 50%); }
.sw-sketch { background: #fbfaf5 repeating-linear-gradient(-45deg, transparent 0 3px, rgba(20,20,20,.5) 3px 4px); }
.sw-blueprint { background: #1d4b8f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 5px 5px; }
.sw-pastel { background: conic-gradient(#ffe0d3 0 25%, #d6e9ff 0 50%, #d9f1df 0 75%, #ebe1ff 0); }
.browser { border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(20,20,20,.35), 0 8px 24px -12px rgba(20,20,20,.15); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #dcd9d1; }
.url { flex: 1; max-width: 420px; margin: 0 auto; height: 28px; border-radius: 8px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.lock { width: 9px; height: 10px; border-radius: 2px; background: var(--ink-3); position: relative; flex: none; }
.lock::before { content: ""; position: absolute; left: 1.5px; top: -4px; width: 6px; height: 6px; border: 1.5px solid var(--ink-3); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
#demo-frame { display: block; width: 100%; height: min(760px, 82vh); border: 0; background: #f6f7fb; }
.demo-foot { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }
.demo-foot kbd { font-size: 0.85em; }

/* Theme cards */

/* Install */
.install { background: var(--dark); color: #f2f2f3; border-radius: 28px; width: min(1220px, 100% - 16px); margin: 24px auto; }
.install .eyebrow { color: #8d8d95; }
.install-inner { max-width: 1040px; }
.install-lede { color: #b4b4bb; margin-top: 14px; max-width: 640px; }
.install code { background: rgba(255,255,255,.08); color: #f2f2f3; }
.install kbd { background: #26262b; color: #f2f2f3; box-shadow: inset 0 -1.5px 0 rgba(0,0,0,.4); }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 28px; color: #b4b4bb; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #26262b; color: var(--accent); font-weight: 650; font-size: 14px; }
.steps strong { color: #f2f2f3; font-weight: 600; }
.install-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.install .btn-ghost { color: #f2f2f3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
@media (hover: hover) and (pointer: fine) { .install .btn-ghost:hover { background: rgba(255,255,255,.06); } }
.install .fine { color: #8d8d95; }
.install .disclosure { border-top-color: rgba(255,255,255,.1); }
.install .disclosure > summary { color: #f2f2f3; }
.install .code { background: var(--dark-2); color: #d8d8dc; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.install .code .c { color: #8d8d95; }
.prompt-card { margin-top: 4px; background: var(--dark-2); border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13.5px; font-weight: 600; color: #b4b4bb; }
.prompt-card pre { margin: 0; padding: 18px; max-height: 440px; overflow: auto; font: 13px/1.6 var(--mono); color: #d8d8dc; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: #3a3a40 transparent; }
.prompt-card pre:focus-visible { outline-color: var(--accent); outline-offset: -3px; }

.code { margin: 0; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 13.5px/1.65 var(--mono); overflow-x: auto; color: var(--ink); }
.code code { background: none; padding: 0; font: inherit; }
.code .c { color: var(--ink-3); }

.narrow { max-width: 760px; }
.narrow > p { margin-top: 14px; color: var(--ink-2); }
.narrow .url-line { margin-top: 20px; }
.disclosure { border-top: 1px solid var(--line); margin-top: 22px; }
.disclosure + .disclosure { margin-top: 0; }
.disclosure > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; font-weight: 600; font-size: 16px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .chev { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.disclosure[open] > summary .chev { transform: rotate(180deg); }
.disclosure-body { padding: 4px 0 24px; }
.disclosure-body > p { color: var(--ink-2); margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .disclosure > summary .chev { transition: none; } }
.url-line { display: block; background: var(--bg-2); padding: 12px 14px; border-radius: 10px; overflow-wrap: break-word; word-break: normal; line-height: 1.6; font-size: 13px; }
.url-line mark { background: rgba(230,243,106,.75); color: inherit; border-radius: 3px; padding: 1px 0; }

.links .section-head { margin-bottom: 28px; }

.fidelity { margin: 0; }
.fidelity figcaption { margin: 0 0 22px; max-width: 640px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.fidelity-flow { display: flex; align-items: center; gap: 18px; }
.fidelity-themes { display: flex; gap: 12px; min-width: 0; }
.mini { width: 148px; flex: none; }
.mini-chrome { display: flex; gap: 5px; padding: 8px 10px 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.mini-chrome i { width: 7px; height: 7px; border-radius: 50%; background: #d8d5cc; }
.mini-body { padding: 10px 10px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; min-height: 118px; display: flex; flex-direction: column; gap: 6px; }
.mini-kicker { font-size: 10px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.mini-body strong { font-size: 13px; letter-spacing: -0.02em; }
.mini-row { display: block; height: 6px; border-radius: 99px; width: 88%; opacity: 0.55; }
.mini-row.short { width: 58%; }
.mini-btn { margin-top: auto; align-self: flex-start; font-size: 11px; font-weight: 650; padding: 5px 9px; border-radius: 7px; }
.mini-label { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mini-original .mini-body { background: #f6f7fb; color: #1d2433; }
.mini-original .mini-kicker { color: #6d61ff; }
.mini-original .mini-row { background: #c9cde0; }
.mini-original .mini-btn { background: #6d61ff; color: #fff; }
.mini-sketch .mini-chrome, .mini-sketch .mini-body { background: #fbfaf5; border-color: #2a2a2a; }
.mini-sketch .mini-body { color: #232323; }
.mini-sketch .mini-kicker { color: #2563c9; }
.mini-sketch .mini-row { background: repeating-linear-gradient(-45deg, transparent 0 3px, rgba(42,42,42,.45) 3px 4px), #efece3; }
.mini-sketch .mini-btn { background: #fff; color: #232323; box-shadow: inset 0 0 0 1.4px #2a2a2a; }
.mini-blueprint .mini-chrome, .mini-blueprint .mini-body { background: #1d4b8f; border-color: #d4e4fb; color: #f2f7ff; }
.mini-blueprint .mini-chrome i { background: #9bb8e0; }
.mini-blueprint .mini-kicker { color: #ffe08f; }
.mini-blueprint .mini-row { background: rgba(212,228,251,.35); }
.mini-blueprint .mini-btn { background: transparent; color: #f2f7ff; box-shadow: inset 0 0 0 1px #d4e4fb; }
.mini-blueprint .mini-label { color: #1d4b8f; }
.fidelity-arrow { width: 40px; height: 20px; flex: none; color: var(--ink-3); }
.fidelity-share { flex: 1 1 240px; min-width: 0; }
.fidelity-share .url-line { margin: 0; }
.fidelity-share p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

.faq .faq-list { border-bottom: 1px solid var(--line); }
.faq .disclosure { margin-top: 0; }
.faq .disclosure > summary { font-size: 17px; letter-spacing: -0.015em; }

.closing { padding: 24px 0 72px; }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding: 72px 24px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); background-image: radial-gradient(circle at 1px 1px, rgba(20,20,20,.07) 1px, transparent 0); background-size: 20px 20px; }
.footer { border-top: 1px solid var(--line); padding: 22px 0 36px; font-size: 14px; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 28px; flex-wrap: wrap; }
.footer-credit { color: var(--ink-2); }
.footer a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-credit > a:first-of-type { color: var(--ink); font-weight: 500; }
.footer-sep { margin: 0 0.35em; color: var(--ink-3); text-decoration: none; }
.footer-ver { margin-left: 0.55em; color: var(--ink-3); }
.footer-copy { margin: 0; color: var(--ink-3); }

/* Toast — enters and leaves through the same edge; transitions so rapid copies retarget. */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 14px; border-radius: 14px; background: var(--dark); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .toast, .toast.show { transform: translate(-50%, 0); } }

@media (max-width: 640px) {
  .wrap { width: min(1120px, 100% - 28px); }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 36px 0 16px; }
  .demo { margin-top: 28px; }
  .seg { display: none; }
  .select-wrap { display: block; }
  section { padding: 56px 0; }
  .url { display: none; }
  .browser-bar { justify-content: space-between; }
  #demo-frame { height: 560px; }
  .install { border-radius: 22px; }
  .btn-lg { width: 100%; }
  .hero-cta { width: 100%; }
  .fidelity-flow { flex-direction: column; align-items: stretch; }
  .fidelity-themes { flex-direction: column; align-items: center; gap: 14px; width: 100%; }
  .mini { width: min(220px, 100%); }
  .mini-body { min-height: 96px; padding: 8px; }
  .mini-body strong { font-size: 11px; }
  .fidelity-arrow { align-self: center; transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .nav-inner { gap: 8px; }
  .nav .btn-sm { padding: 0 8px; font-size: 12.5px; }
}

/* Configurator: a slice of the real panel driving a live preview */
.cfg { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.cfg-panel { position: sticky; top: 80px; background: var(--dark); color: #f4f4f5; border-radius: 22px; padding: 6px 14px 16px; box-shadow: 0 24px 60px -24px rgba(20,20,20,.45); font-size: 13px; }
.cfg-head { display: flex; align-items: center; justify-content: space-between; height: 46px; margin-bottom: 4px; }
.cfg-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.cfg-brand svg { width: 18px; height: 18px; color: var(--accent); }
.cfg-reset { border: 0; background: #1d1d21; color: #b8b8c0; font: 600 12px var(--sans); height: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .cfg-reset:hover { background: #26262b; color: #f4f4f5; } }
.cfg-field { display: flex; flex-direction: column; gap: 7px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.cfg-label { font-weight: 600; color: #f4f4f5; }
.cfg-row { display: flex; align-items: baseline; gap: 8px; }
.cfg-hint { color: #8f8f98; font-size: 12px; }
.cfg-val { margin-left: auto; color: #b8b8c0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cfg-seg { display: flex; gap: 2px; padding: 2px; background: #1d1d21; border-radius: 10px; }
.cfg-seg button { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: #b8b8c0; font: 600 12px var(--sans); white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .cfg-seg button:hover { color: #f4f4f5; } }
.cfg-seg button[aria-checked="true"] { background: #303036; color: #f4f4f5; }
.cfg-seg button:focus-visible, .cfg-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cfg-details input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.cfg-details input::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0 var(--p, 50%), #303036 var(--p, 50%)); }
.cfg-details input::-moz-range-track { height: 6px; border-radius: 999px; background: #303036; }
.cfg-details input::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.cfg-details input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
.cfg-details input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.cfg-details input:focus-visible { outline: none; }
.cfg-details input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent); }
.cfg-preview iframe { display: block; width: 100%; height: 560px; border: 0; background: #fbfaf5; }
@media (max-width: 1000px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-panel { position: static; }
  .fidelity-flow { flex-wrap: wrap; }
  .fidelity-arrow { display: none; }
  .fidelity-share { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .browser-bar .select-wrap { flex: 1; }
  .browser-bar .select-wrap select { height: 36px; border-radius: 10px; font-size: 14px; }
  .cfg-preview iframe { height: 480px; }
  .fidelity-flow { flex-wrap: nowrap; }
  .fidelity-arrow { display: block; width: 24px; height: 40px; }
}

/* Install paths */
.install .fine code { font-size: 12px; word-break: break-all; }
.paths { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 30px; }
.path { min-width: 0; padding: 24px; border-radius: 22px; background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.path h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; color: #f2f2f3; }
.path > p { color: #b4b4bb; margin: 10px 0 18px; font-size: 15px; }
.path .disclosure { margin-top: 18px; }
.path .disclosure > summary { min-height: 44px; font-size: 14.5px; }
.prompt-text { margin: 0 0 4px; padding: 16px; max-height: 360px; overflow: auto; border-radius: 14px; background: var(--dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); font: 12.5px/1.6 var(--mono); color: #d8d8dc; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: #3a3a40 transparent; }
.prompt-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.manual { margin-top: 26px; }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 8px; }
.manual-grid > div { min-width: 0; }
.manual-grid h4 { font-size: 15px; font-weight: 650; color: #f2f2f3; }
.manual-grid p { color: #b4b4bb; font-size: 14.5px; margin: 6px 0 12px; }
.manual-grid a, .manual-foot a { color: #f2f2f3; }
.manual-grid .code { padding: 16px; font-size: 12.5px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.manual-foot { margin: 0 0 22px; }
@media (max-width: 860px) {
  .paths, .manual-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .path { padding: 18px; border-radius: 18px; }
}

/* Install actions and commands */
.hero-actions { display: flex; flex-direction: column; align-items: center; margin-top: 22px; width: 100%; }
.hero-hint { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.cmd-row { display: flex; align-items: stretch; gap: 8px; width: min(640px, 100%); margin-top: 14px; }
.cmd-box { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--dark); }
.cmd-text { flex: 1 1 auto; min-width: 0; display: block; overflow-x: auto; overflow-y: hidden; white-space: nowrap; text-align: left; padding: 13px 0 11px; background: none; border-radius: 0; color: #e7e7ea; font: 500 13.5px/1.5 var(--mono); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.cmd-text::-webkit-scrollbar { height: 6px; }
.cmd-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 3px; }
.cmd-text.overflows { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.cmd-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmd-copy { flex: none; height: auto; min-height: 46px; min-width: 92px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .cmd-copy:hover { background: var(--bg-2); } }
.install .cmd-row { width: 100%; margin-top: 14px; }
.install .cmd-box { background: var(--dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.install .cmd-text { background: none; }
.install .cmd-copy { background: rgba(255,255,255,.08); color: #f2f2f3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
@media (hover: hover) and (pointer: fine) { .install .cmd-copy:hover { background: rgba(255,255,255,.14); } }
.path .fine { margin-top: 12px; }
.path .fine + .fine { margin-top: 6px; }
@media (max-width: 640px) {
  .hero-actions .btn-lg { width: 100%; }
  .cmd-row { width: 100%; }
  .cmd-copy { min-width: 0; padding: 0 14px; }
}
@media (max-width: 480px) {
  .install .cmd-row { flex-wrap: wrap; }
  .install .cmd-box { flex-basis: 100%; }
  .install .cmd-copy { flex: 1 1 auto; }
}
