/* autologin-mcp website. Dark theme shared by the landing page and the documentation pages. */
:root {
  --bg: #09090b;
  --bg-1: #0f0f12;
  --bg-2: #161619;
  --bg-3: #1c1c20;
  --text: #e7e7e7;
  --soft: #c9c9cf;
  --muted: #9b9ba5;
  --dim: #6b6b75;
  --border: #25252b;
  --border-2: #34343c;
  --accent: #ffa733;
  --accent-ink: #1a1206;
  --claude: #e08a6a;
  --green: #4ade80;
  --red: #f87171;
  --blue: #93c5fd;
  --violet: #c4b5fd;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --code: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 16px;
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffbd66; }
img { max-width: 100%; }
code, pre, kbd, samp { font-family: var(--code); }
:not(pre) > code { font-size: .86em; padding: .12em .4em; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--border-2); color: #f4f4f5; }
pre { margin: 1.2em 0; padding: 18px 20px; overflow-x: auto; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--border); color: #e4e4e7; font-size: 14px; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94em; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text); font-weight: 600; background: var(--bg-2); }
blockquote { margin: 1.2em 0; padding: 6px 18px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; color: var(--soft); }
hr { border: 0; border-top: 1px solid var(--border); }
::selection { background: rgba(255, 167, 51, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 8px; border: 1px solid var(--border-2); background: transparent; color: var(--text); font: 500 17px/1.2 var(--display); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { color: var(--text); border-color: #55555f; background: var(--bg-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: #ffbd66; border-color: #ffbd66; color: var(--accent-ink); }
.btn.small { padding: 9px 16px; font-size: 15.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(9, 9, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled, .doc-page .topbar { border-bottom-color: var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 20px/1 var(--display); letter-spacing: -.4px; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; }
.topnav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.topnav a:not(.btn) { color: #d4d4d8; text-decoration: none; font-size: 16px; }
.topnav a:not(.btn):hover, .topnav a[aria-current="page"] { color: #fff; }

/* Barely-there warm glow behind headings */
.dots { position: relative; isolation: isolate; }
.dots::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: min(900px, 100vw); height: 560px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 167, 51, .055), rgba(255, 167, 51, .018) 55%, transparent 100%);
}

/* Section scaffolding */
section { padding: 120px 0 0; }
.display { font: 800 clamp(40px, 6.2vw, 72px)/1.12 var(--display); letter-spacing: -2px; margin: 0 0 22px; color: var(--text); }
.display.center { text-align: center; }
.lead-mono { font: 400 17px/1.7 var(--mono); color: var(--soft); max-width: 900px; margin: 0 0 56px; }
.lead-mono.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead-mono strong { color: var(--text); font-weight: 500; }
.keycap { display: inline-flex; align-items: center; padding: 0 .22em; margin-left: .12em; border: 2px solid var(--text); border-radius: .2em; font-weight: 400; font-size: .78em; line-height: 1.15; letter-spacing: -1px; vertical-align: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 999px; font: 400 14px/1 var(--mono); color: var(--soft); margin-bottom: 30px; }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* Hero */
.hero { padding-top: 84px; padding-bottom: 80px; }
.hero h1 { font: 700 clamp(44px, 7.4vw, 84px)/1.12 var(--display); letter-spacing: -2.4px; margin: 0 0 30px; max-width: 1080px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { font: 400 clamp(17px, 1.7vw, 21px)/1.7 var(--mono); color: var(--soft); max-width: 900px; margin: 0 0 44px; }
.hero .lead strong { color: var(--text); font-weight: 500; }

.install-area { display: grid; gap: 18px; max-width: 900px; }
.install-label { font: 500 14px/1 var(--mono); color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.install {
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 24px; border-radius: 14px;
  background: linear-gradient(180deg, #17171b, #111114); border: 1px solid rgba(255, 167, 51, .45);
  box-shadow: 0 0 0 4px rgba(255, 167, 51, .07), 0 18px 60px -20px rgba(255, 167, 51, .35);
  font: 400 clamp(16px, 2vw, 21px)/1.4 var(--code);
}
.install .prompt { color: var(--accent); user-select: none; }
.install code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; color: #fff; font-size: 1em; }
.install button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 9px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--display); cursor: pointer; }
.install button:hover { background: #ffbd66; }
.install button svg { width: 16px; height: 16px; }
.install-next { font: 400 15px/1.6 var(--mono); color: var(--muted); margin: 0; }
.install-next code { font-size: .95em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 34px 0 0; list-style: none; font: 400 14px/1.4 var(--mono); color: var(--muted); }
.facts li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

/* Demo stage: a simulated Claude Code session */
.stage-wrap { padding: 0 32px; }
.stage {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 64px 56px 40px; border-radius: 30px; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 0%, rgba(255, 167, 51, .16), transparent 70%), radial-gradient(40% 50% at 90% 100%, rgba(99, 102, 241, .16), transparent 70%), #17171a;
  border: 1px solid var(--border);
}
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.stage figcaption { margin: 30px auto 0; max-width: 820px; text-align: center; font: 400 14.5px/1.65 var(--mono); color: var(--muted); }
.stage .replay { position: absolute; right: 22px; top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(9, 9, 11, .6); color: var(--soft); font: 500 14px/1 var(--display); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.stage .replay.show { opacity: 1; pointer-events: auto; }
.stage .replay:hover { color: #fff; border-color: #55555f; }

.term { border-radius: 14px; background: #0c0c0e; border: 1px solid #2c2c33; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #141417; border-bottom: 1px solid #24242a; }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { flex: 1; text-align: center; margin-right: 52px; font: 400 13px/1 var(--code); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body { padding: 18px 20px 16px; font: 400 13.5px/1.62 var(--code); color: #d4d4d8; min-height: 560px; display: flex; flex-direction: column; }
.term-body p { margin: 0 0 10px; overflow-wrap: anywhere; }
.welcome { border: 1px solid var(--claude); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.welcome b { color: var(--claude); font-weight: 600; }
.welcome span { color: var(--dim); display: block; }
.t-user { background: #1d1d22; border-radius: 4px; padding: 2px 8px; color: #f4f4f5; }
.t-user .gt { color: var(--dim); }
.t-dot { color: #f4f4f5; }
.t-dot.ok { color: var(--green); }
.t-tool { font-weight: 700; color: #fff; }
.t-args { color: var(--muted); }
.t-out { display: block; padding-left: 2ch; color: var(--muted); margin-top: -8px !important; }
.t-out .ret { color: var(--dim); }
.t-ok { color: var(--green); }
.t-key { color: var(--blue); }
.t-str { color: #fcd9a8; }
.t-dim { color: var(--dim); }
.t-strong { color: #fff; }
.term-foot { margin-top: auto; }
.spin { display: flex; gap: 8px; align-items: center; height: 24px; color: var(--claude); visibility: hidden; }
.spin.on { visibility: visible; }
.spin .glyph { display: inline-block; width: 1.2ch; text-align: center; }
.spin .esc { color: var(--dim); }
.input { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #3b3b44; border-radius: 8px; padding: 9px 12px; margin-top: 6px; min-height: 42px; color: #f4f4f5; }
.input .gt { color: var(--dim); }
.input .caret { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: #d4d4d8; animation: blink 1s steps(1) infinite; }
.hints { display: flex; justify-content: space-between; padding: 6px 4px 0; font-size: 12px; color: var(--dim); }
@keyframes blink { 50% { opacity: 0; } }

.browser { border-radius: 14px; background: #f8fafc; color: #0f172a; border: 1px solid #2c2c33; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); font-family: var(--display); position: relative; display: flex; flex-direction: column; }
.browser .win-bar { background: #e9edf2; border-bottom-color: #d7dde5; }
.browser .url { flex: 1; margin-left: 10px; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid #d7dde5; font: 400 12.5px/1.2 var(--code); color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .url .lock { color: #16a34a; margin-right: 6px; }
.b-body { position: relative; flex: 1; min-height: 420px; padding: 26px 26px 30px; }
.b-view { display: none; }
.browser[data-state="blank"] .v-blank, .browser[data-state="login"] .v-login, .browser[data-state="filling"] .v-login, .browser[data-state="done"] .v-done { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.v-blank { padding-top: 140px; text-align: center; color: #94a3b8; font-size: 14px; }
.shop { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.3px; margin-bottom: 18px; }
.shop i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.shop small { margin-left: auto; font-weight: 500; font-size: 11px; color: #64748b; background: #e2e8f0; border-radius: 999px; padding: 3px 8px; }
.expired { font-size: 13px; padding: 9px 12px; border-radius: 8px; background: #fef3c7; color: #92400e; border: 1px solid #ffbd66; margin-bottom: 16px; }
.b-form { display: grid; gap: 12px; }
.b-label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: #334155; }
.b-field { height: 40px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; padding: 0 12px; display: flex; align-items: center; font-size: 14px; color: #0f172a; font-family: var(--display); transition: border-color .2s, box-shadow .2s; }
.b-field.focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }
.b-field .pw { letter-spacing: 2px; }
.b-submit { display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 6px; border-radius: 8px; border: 0; background: #0f172a; color: #fff; font: 600 14px/1 var(--display); transition: transform .15s, background .15s; }
.b-submit.press { transform: scale(.97); background: #334155; }
.agent-pill { position: absolute; display: flex; align-items: center; gap: 4px; left: 52%; top: 214px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s, top .5s ease; pointer-events: none; }
.agent-pill svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.agent-pill span { margin-top: 18px; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--display); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); white-space: nowrap; }
.browser[data-state="filling"] .agent-pill { opacity: 1; transform: none; }
.agent-pill.at-submit { top: 300px; }
.v-done h4 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.3px; }
.toast { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 12px; border-radius: 8px; background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; margin-bottom: 16px; }
.cart { display: grid; gap: 10px; font-size: 14px; }
.cart div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; }
.cart .total { font-weight: 700; background: #f1f5f9; }
.b-pay { display: flex; align-items: center; justify-content: center; margin-top: 16px; height: 42px; width: 100%; border-radius: 8px; border: 0; background: #6366f1; color: #fff; font: 600 14px/1 var(--display); }
.secret-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(255, 167, 51, .45); background: rgba(255, 167, 51, .06); font: 400 13.5px/1.55 var(--mono); color: var(--soft); }
.secret-note svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* Demo animation states (set by the script; without JavaScript the full transcript is shown) */
.demo-js [data-step] { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.demo-js [data-step].shown { opacity: 1; transform: none; }

/* Bento cards */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > * { grid-column: span 6; }
.bento .w5 { grid-column: span 5; }
.bento .w7 { grid-column: span 7; }
.bento .w4 { grid-column: span 4; }
.bento .w8 { grid-column: span 8; }
.tile { position: relative; padding: 14px; border-radius: 26px; background: #0d0d10; border: 1px solid var(--border); display: flex; flex-direction: column; }
.tile .vis { position: relative; flex: 1; min-height: 210px; border-radius: 16px; border: 1px solid var(--border-2); background: radial-gradient(80% 90% at 50% 0%, #1b1b20, #0b0b0d); padding: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; font: 400 13px/1.6 var(--code); color: var(--muted); }
.tile .txt { padding: 20px 12px 8px; margin: 0; font: 400 15px/1.65 var(--mono); color: var(--muted); }
.tile .txt strong { color: var(--text); font-weight: 600; }
.tile h3 { display: inline; font: inherit; font-weight: 600; color: var(--text); margin: 0; }
.tile.good { border-color: rgba(255, 167, 51, .35); background: linear-gradient(180deg, rgba(255, 167, 51, .06), #0d0d10 55%); }
.vis .row { display: flex; gap: 12px; white-space: nowrap; }
.vis .bad { color: var(--red); }
.vis .ok { color: var(--green); }
.vis .y { color: var(--accent); }
.bubble { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #2a2a31; color: #f4f4f5; font-family: var(--display); font-size: 14px; }
.bubble.ai { align-self: flex-start; border-radius: 14px 14px 14px 4px; background: #1b1b20; border: 1px solid var(--border-2); color: var(--soft); }
.leak { align-self: flex-end; font-size: 12px; color: var(--red); }

/* Numbered steps with a live panel */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.steps li { position: relative; border-bottom: 1px solid var(--border); }
.steps button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 22px; width: 100%; padding: 24px 0; cursor: pointer; font: 700 clamp(20px, 2.2vw, 25px)/1.25 var(--display); letter-spacing: -.4px; color: #6f6f78; transition: color .2s; }
.steps button:hover, .steps li.active button { color: var(--text); }
.steps .num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #3a3a41; color: #0b0b0d; font: 700 12px/1 var(--mono); letter-spacing: 0; transition: background .2s; }
.steps li.active .num { background: var(--text); }
.steps .body { padding: 0 0 26px 52px; font: 400 15.5px/1.75 var(--mono); color: var(--soft); }
.steps .body p { margin: 0; }
.js .steps li:not(.active) .body { display: none; }
.steps .bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); }
.steps li.active .bar { animation: progress var(--step-ms, 7000ms) linear forwards; }
.steps.paused li.active .bar { animation: none; width: 100%; }
@keyframes progress { to { width: 100%; } }
.panel { position: sticky; top: 110px; border-radius: 18px; border: 1px solid var(--border-2); background: #0c0c0e; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(255, 167, 51, .18); }
.panel .shot { display: block; padding: 22px 24px 26px; margin: 0; border: 0; border-radius: 0; background: none; font-size: 13.5px; line-height: 1.75; min-height: 330px; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel .shot + .shot { border-top: 1px solid var(--border); }
.js .panel .shot { display: none; border-top: 0; }
.js .panel .shot.active { display: block; animation: fade .35s ease; }
.panel .cap { display: block; padding: 0 0 12px; color: var(--dim); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.cdp-note { margin: 34px 0 0; font: 400 15px/1.7 var(--mono); color: var(--muted); }

/* Quick start terminal */
.qs { border-radius: 22px; background: #1b1b1e; border: 1px solid var(--border); overflow: hidden; }
.qs .bar3 { display: flex; gap: 8px; padding: 18px 20px; border-bottom: 1px solid #2a2a2f; }
.qs .bar3 i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; }
.qs .bar3 i:nth-child(2) { background: #46465a; }
.qs .bar3 i:nth-child(3) { background: #2aa876; }
.qs pre { margin: 0; padding: 30px 34px 34px; border: 0; border-radius: 0; background: none; font: 400 clamp(14px, 1.6vw, 18px)/1.85 var(--code); color: var(--claude); }
.qs .c { color: #75757f; font-style: italic; }
.qs .p { color: #75757f; user-select: none; }
.qs .a { color: #a1a1aa; }
.qs-links { margin: 24px 0 0; font: 400 15px/1.7 var(--mono); color: var(--muted); }

/* Feature cards */
.cards3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fcard { border-radius: 16px; border: 1px solid var(--border-2); background: linear-gradient(180deg, #232327, #121215 70%); padding: 26px 24px 0; display: flex; flex-direction: column; overflow: hidden; }
.fcard h3 { margin: 0 0 8px; font: 600 23px/1.25 var(--display); letter-spacing: -.3px; color: var(--text); }
.fcard p { margin: 0 0 22px; font: 400 14.5px/1.7 var(--mono); color: var(--muted); }
.fcard pre { margin: auto -1px 0; border-radius: 12px 12px 0 0; border-bottom: 0; background: #09090b; font-size: 12.5px; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2); font: 400 14px/1.3 var(--mono); color: var(--soft); }

/* Security grid */
.sec { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec article { padding: 26px; border-radius: 18px; border: 1px solid var(--border); background: #0d0d10; }
.sec .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 167, 51, .1); border: 1px solid rgba(255, 167, 51, .3); color: var(--accent); margin-bottom: 18px; }
.sec .ic svg { width: 21px; height: 21px; }
.sec h3 { margin: 0 0 8px; font: 600 20px/1.3 var(--display); letter-spacing: -.2px; }
.sec p { margin: 0; font: 400 14.5px/1.7 var(--mono); color: var(--muted); }

/* Comparison cards */
.compare { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.plan { display: flex; flex-direction: column; padding: 30px 26px 28px; border-radius: 18px; border: 1px solid var(--border-2); background: #0b0b0d; }
.plan.best { background: #1f1f22; }
.plan h3 { margin: 0; height: 96px; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 22px/1.25 var(--display); letter-spacing: -.4px; }
.plan.best h3 { font-size: 28px; color: #fff; }
.plan .note { margin: -8px 0 22px; font: 400 13px/1.6 var(--mono); color: var(--muted); }
.plan .tag { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; font: 400 14px/1 var(--mono); color: var(--soft); white-space: nowrap; }
.plan .tag::before, .plan .tag::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #55555f, transparent); }
.plan dl { margin: 0 0 24px; }
.plan dl div { display: grid; gap: 6px; padding: 15px 0; border-bottom: 1px solid var(--border-2); }
.plan dt { color: var(--muted); font: 400 13px/1.5 var(--mono); }
.plan dd { margin: 0; color: var(--text); font: 600 16px/1.35 var(--display); }
.plan dd.good { color: var(--green); }
.plan dd.bad { color: var(--red); }
.plan .btn { margin-top: auto; width: 100%; }

/* FAQ */
.faq-list { max-width: 940px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 clamp(18px, 2vw, 21px)/1.4 var(--display); letter-spacing: -.2px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font: 400 26px/1 var(--mono); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 26px; max-width: 820px; font: 400 15.5px/1.75 var(--mono); color: var(--soft); }
.faq-more { margin: 30px 0 0; font: 400 15px/1.7 var(--mono); color: var(--muted); }

/* Footer */
footer.site { margin-top: 140px; padding: 48px 0 60px; border-top: 1px solid var(--border); }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 22px 40px; }
footer.site .by { margin: 14px 0 0; font: 400 14.5px/1.6 var(--mono); color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 14px 30px; }
footer.site nav a { color: #d4d4d8; text-decoration: none; font-size: 16px; }
footer.site nav a:hover { color: #fff; }

/* Documentation pages */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.sidebar nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.sidebar .label { font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .6px; color: var(--dim); margin: 0 0 12px 12px; }
.sidebar a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15.5px; }
.sidebar a:hover { background: var(--bg-2); color: var(--text); }
.sidebar a[aria-current="page"] { background: var(--bg-3); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.prose { min-width: 0; max-width: 840px; color: var(--soft); }
.prose h1 { font: 800 clamp(34px, 4.6vw, 52px)/1.12 var(--display); letter-spacing: -1.4px; margin: 6px 0 24px; color: var(--text); }
.prose h2 { font: 700 28px/1.25 var(--display); letter-spacing: -.5px; margin: 52px 0 14px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text); }
.prose h3 { font: 700 20px/1.3 var(--display); margin: 34px 0 10px; color: var(--text); }
.prose strong { color: var(--text); }
.prose li { margin: 4px 0; }
.prose h1 code, .prose h2 code, .prose h3 code { background: none; border: 0; padding: 0; font-size: .92em; color: inherit; }
.prose .edit { margin-top: 56px; font: 400 14.5px/1.6 var(--mono); }

/* Motion: content reveals on scroll (enabled by the page script; without it everything is visible) */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
section { scroll-margin-top: 76px; }
.tile, .fcard, .sec article, .plan { transition: translate .45s var(--ease), border-color .35s ease, box-shadow .45s var(--ease); }
.tile:hover, .fcard:hover, .sec article:hover, .plan:hover { translate: 0 -4px; border-color: #3d3d46; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); }
.tile.good:hover, .plan.best:hover { border-color: rgba(255, 167, 51, .55); box-shadow: 0 24px 70px -34px rgba(255, 167, 51, .45); }
.sec .ic { transition: transform .45s var(--ease), background .3s ease; }
.sec article:hover .ic { transform: rotate(-8deg) scale(1.08); background: rgba(255, 167, 51, .18); }
.btn { transition: background .2s ease, border-color .2s ease, translate .3s var(--ease), box-shadow .3s ease; }
.btn:hover { translate: 0 -1px; }
.btn.primary:hover { box-shadow: 0 10px 30px -10px rgba(255, 167, 51, .7); }
.install { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 167, 51, .07), 0 18px 60px -20px rgba(255, 167, 51, .35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 167, 51, .1), 0 22px 70px -18px rgba(255, 167, 51, .5); }
}

.reveal [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), filter 1s var(--ease) var(--d, 0ms),
    translate .45s var(--ease), border-color .35s ease, box-shadow .45s var(--ease);
}
.reveal [data-reveal="title"] { transform: translateY(26px); filter: blur(10px); }
.reveal [data-reveal="zoom"] { transform: translateY(48px) scale(.96); }
.reveal [data-reveal].in { opacity: 1; transform: none; filter: none; }

.reveal .tile .vis > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal .tile.in .vis > * { opacity: 1; transform: none; }
.reveal .tile.in .vis > :nth-child(1) { transition-delay: calc(var(--d, 0ms) + 250ms); }
.reveal .tile.in .vis > :nth-child(2) { transition-delay: calc(var(--d, 0ms) + 420ms); }
.reveal .tile.in .vis > :nth-child(3) { transition-delay: calc(var(--d, 0ms) + 590ms); }
.reveal .tile.in .vis > :nth-child(4) { transition-delay: calc(var(--d, 0ms) + 760ms); }

.reveal .hero .eyebrow, .reveal .hero h1, .reveal .hero .lead, .reveal .hero .install-area, .reveal .hero .facts { animation: rise 1.1s var(--ease) both; }
.reveal .hero h1 { animation-name: rise-blur; animation-delay: .08s; }
.reveal .hero .lead { animation-delay: .22s; }
.reveal .hero .install-area { animation-delay: .36s; }
.reveal .hero .facts { animation-delay: .5s; }
.reveal .topbar { animation: fade .8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-blur { from { opacity: 0; transform: translateY(26px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.doc-page .prose { animation: rise .8s var(--ease) both; }
.doc-page .sidebar { animation: fade .6s ease both; }

/* Smooth FAQ open and close where the browser supports animating to auto height */
:root { interpolate-size: allow-keywords; }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.faq-list summary::after { transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(180deg); }

/* Responsive */
@media (max-width: 1080px) {
  .stage-grid { grid-template-columns: 1fr; }
  .term-body { min-height: 0; }
  .b-body { min-height: 380px; }
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; gap: 36px; }
  .panel { position: relative; top: 0; }
}
@media (max-width: 900px) {
  .bento > *, .bento .w4, .bento .w5, .bento .w7, .bento .w8 { grid-column: span 12; }
  .cards3, .sec { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .sidebar nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .label { width: 100%; }
  .topnav .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .brand { font-size: 18px; }
  .term-body { padding: 14px 12px 12px; font-size: 12px; }
  .b-body { min-height: 340px; padding: 20px 18px 24px; }
  .stage-wrap { padding: 0 12px; }
  .stage { padding: 52px 14px 26px; border-radius: 22px; }
  .hero { padding-top: 64px; }
  section { padding-top: 90px; }
  .install { flex-wrap: wrap; padding: 14px; }
  .install button { width: 100%; justify-content: center; }
  .compare { grid-template-columns: 1fr; }
  .topnav { gap: 16px; }
  .topbar .btn.small { padding: 8px 12px; }
  .qs pre { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
