/* Helmshell landing page. Colors come from the logo: navy helm (#1F4E79), orange hub (#D97757),
   light tile (#E3EEF8). No web font, no external request. */

/* ------------------------------------------------------------------ tokens */
:root {
  --navy: #1F4E79;
  --orange: #D97757;
  --tile: #E3EEF8;

  --bg: #F6F9FC;
  --bg-alt: #EBF2F9;
  --surface: #FFFFFF;
  --surface-2: #F1F6FB;
  --border: #D3DFEB;
  --border-strong: #B4C6D8;
  --text: #0F2337;
  --muted: #475B70;
  --primary: #1F4E79;
  --on-primary: #FFFFFF;
  --primary-soft: #E3EEF8;
  --accent: #D97757;
  --accent-text: #A6461F;
  --accent-soft: #FBE9E2;
  --ok: #1B873F;
  --warn: #B26A00;
  --code-bg: #0F1F30;
  --code-text: #E3EEF8;
  --code-muted: #8EA6BE;
  --focus: #1F4E79;
  --shadow-sm: 0 1px 2px rgba(15, 35, 55, .06), 0 1px 1px rgba(15, 35, 55, .04);
  --shadow: 0 12px 32px -12px rgba(15, 35, 55, .22), 0 2px 6px rgba(15, 35, 55, .06);
  --shadow-lg: 0 40px 80px -30px rgba(15, 35, 55, .35), 0 12px 24px -12px rgba(15, 35, 55, .18);
  --glow-1: rgba(31, 78, 121, .14);
  --glow-2: rgba(217, 119, 87, .16);
  --topbar: rgba(246, 249, 252, .82);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1520;
  --bg-alt: #0D1B29;
  --surface: #112131;
  --surface-2: #15283B;
  --border: #213850;
  --border-strong: #2E4B68;
  --text: #E6EEF7;
  --muted: #A2B4C7;
  --primary: #A9CBEE;
  --on-primary: #0A1F33;
  --primary-soft: #16324D;
  --accent: #E58B6B;
  --accent-text: #F2A98C;
  --accent-soft: #3A2219;
  --ok: #5FD38A;
  --warn: #F2B35C;
  --code-bg: #07111B;
  --code-text: #E3EEF8;
  --code-muted: #8299B0;
  --focus: #A9CBEE;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 12px 24px -12px rgba(0, 0, 0, .5);
  --glow-1: rgba(84, 145, 204, .22);
  --glow-2: rgba(229, 139, 107, .14);
  --topbar: rgba(10, 21, 32, .78);
  color-scheme: dark;
}

/* Without JavaScript the inline script never runs: follow the system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme-pref]) {
    --bg: #0A1520; --bg-alt: #0D1B29; --surface: #112131; --surface-2: #15283B; --border: #213850;
    --border-strong: #2E4B68; --text: #E6EEF7; --muted: #A2B4C7; --primary: #A9CBEE; --on-primary: #0A1F33;
    --primary-soft: #16324D; --accent: #E58B6B; --accent-text: #F2A98C; --accent-soft: #3A2219; --ok: #5FD38A;
    --warn: #F2B35C; --code-bg: #07111B; --focus: #A9CBEE; --glow-1: rgba(84, 145, 204, .22);
    --glow-2: rgba(229, 139, 107, .14); --topbar: rgba(10, 21, 32, .78); color-scheme: dark;
  }
}

/* --------------------------------------------------------- language blocks */
:root[lang="en"] body [lang="fr"],
:root[lang="fr"] body [lang="en"] { display: none !important; }

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .88em; padding: .1em .38em; border-radius: 6px; background: var(--primary-soft); color: var(--text); overflow-wrap: anywhere; }
kbd {
  font-size: .82em; padding: .1em .45em; border-radius: 6px; border: 1px solid var(--border-strong);
  border-bottom-width: 2px; background: var(--surface); color: var(--text); white-space: nowrap;
}
b, strong { font-weight: 650; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: none; gap: 4px; margin-left: 16px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .94rem; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 860px) { .nav { display: flex; } }
@media (max-width: 400px) { .brand-name { display: none; } }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 650;
  min-width: 32px; height: 30px; padding: 0 9px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button .i { width: 17px; height: 17px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.seg.small button { height: 32px; padding: 0 14px; font-size: .85rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px;
  color: var(--text); border: 1px solid var(--border); background: var(--surface-2);
}
.icon-btn:hover { background: var(--surface); }
@media (max-width: 380px) { .tools { gap: 6px; } .seg button { min-width: 28px; padding: 0 7px; } }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 8%, var(--glow-1), transparent 70%),
    radial-gradient(45% 40% at 85% 18%, var(--glow-2), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--bg-alt) 100%);
}
.hero-bg::after {
  /* helm wheel watermark */
  content: ""; position: absolute; width: 760px; height: 760px; left: 50%; top: -260px; transform: translateX(-50%);
  background: url("logo.svg") center / contain no-repeat; opacity: .045; filter: grayscale(.2);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%); mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  animation: spin 160s linear infinite;
}
:root[data-theme="dark"] .hero-bg::after { opacity: .05; }
:root[data-theme="dark"] .phone { box-shadow: var(--shadow-lg), inset 0 0 0 2px #3A5470, 0 0 0 1px #2E4B68; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 22px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
.tagline { margin-top: 10px; font-size: clamp(1.25rem, 3.6vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; max-width: 36ch; text-wrap: balance; }
.lede { margin-top: 16px; font-size: 1.06rem; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.lede strong { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 650; font-size: .98rem; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn.primary .i { color: var(--orange); }
:root[data-theme="dark"] .btn.primary .i { color: #B4532F; }
.btn .i { width: 18px; height: 18px; }

/* --------------------------------------------------------------- showcase */
.showcase { margin-top: 52px; }
.tabs { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  appearance: none; flex: none; font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap;
}
.tabs [role="tab"]:hover { color: var(--text); background: var(--surface-2); }
.tabs [role="tab"][aria-selected="true"] { color: var(--on-primary); background: var(--primary); }
.shot-tabs { justify-content: flex-start; margin: 0 auto 18px; width: max-content; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); }

.devices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1040px) { .devices { grid-template-columns: minmax(0, 1fr) 248px; gap: 32px; align-items: center; } }
.devices figure { margin: 0; }

.browser { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.dots i:first-child { background: #EC6A5E; } .dots i:nth-child(2) { background: #F4BF4F; } .dots i:nth-child(3) { background: #61C554; }
.url {
  flex: 1; max-width: 360px; margin: 0 auto; text-align: center; font-family: var(--mono); font-size: .76rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.screen { aspect-ratio: 1440 / 900; background: var(--surface-2); overflow: hidden; }
.screen img, .phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.screen img { opacity: 0; transition: opacity .35s ease; }
.screen img.in { opacity: 1; }
.caption { padding: 14px 18px; font-size: .93rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); min-height: 4.4em; }
.caption b { color: var(--text); }

.phone-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  width: 248px; max-width: 72vw; padding: 10px; border-radius: 42px; background: #0B1520;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #26384A; position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 72px; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #0B1520; z-index: 2; }
.phone-screen { aspect-ratio: 390 / 844; border-radius: 33px; overflow: hidden; background: var(--surface-2); }
.phone-col figcaption { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.phone-note { font-size: .86rem; color: var(--muted); max-width: 24ch; }

/* ---------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.section h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); font-weight: 750; text-wrap: balance; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.06rem; text-wrap: pretty; }
@media (max-width: 640px) { .section { padding: 64px 0; } .hero { padding: 40px 0 56px; } }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { font-size: 1.08rem; font-weight: 700; margin: 14px 0 6px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .95rem; }
.ic {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); position: relative;
}
.ic::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.ic .i { width: 22px; height: 22px; }

.light-band {
  margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-soft), var(--surface)); border: 1px solid var(--border);
}
.light-band .i { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.light-band p { color: var(--muted); }
.light-band b { color: var(--text); }

/* split layout (agents, deploy) */
.split { display: grid; gap: 44px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .split.rev > :first-child { order: 0; } }
@media (max-width: 959px) { .split.rev > :first-child { order: 2; } }
.split .sub { margin-bottom: 22px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li b { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97757' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* agent panes illustration */
.panes {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; background: var(--code-bg);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-family: var(--mono); font-size: .78rem; color: var(--code-muted);
}
.pane + .pane { border-left: 1px solid rgba(227, 238, 248, .12); }
.pane-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--code-text); font-weight: 600; border-bottom: 1px solid rgba(227, 238, 248, .1); min-width: 0; }
.pane-proj { margin-left: auto; color: var(--code-muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.claude { background: #D97757; } .dot.codex { background: #7FB2E5; }
.pane-body { display: flex; flex-direction: column; gap: 9px; padding: 16px 14px 18px; min-height: 230px; }
.ln { display: block; height: 7px; border-radius: 4px; background: rgba(227, 238, 248, .14); }
.ln.hl { background: rgba(217, 119, 87, .55); }
.ln.hl2 { background: rgba(127, 178, 229, .55); }
.w30 { width: 30%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; }
.prompt { margin-top: auto; color: var(--code-text); display: flex; align-items: center; gap: 4px; }
.caret { display: inline-block; width: 8px; height: 14px; background: var(--code-text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tmux-bar { grid-column: 1 / -1; display: flex; gap: 14px; padding: 6px 14px; background: #1F4E79; color: #E3EEF8; font-size: .74rem; }
.tmux-bar span:first-child { color: #FFC9B5; font-weight: 700; }
.tmux-bar .grow { flex: 1; }
@media (max-width: 520px) { .panes { grid-template-columns: 1fr; } .pane + .pane { border-left: 0; border-top: 1px solid rgba(227, 238, 248, .12); } .pane-body { min-height: 150px; } }

/* deploy illustration */
.deploy-visual { display: flex; flex-direction: column; gap: 14px; max-width: 460px; width: 100%; justify-self: center; }
.dv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.dv-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; }
.dv-row + .dv-row { border-top: 1px solid var(--border); border-radius: 0; }
.dv-row b { font-family: var(--mono); font-size: .92rem; font-weight: 600; }
.dv-row .muted { margin-left: auto; color: var(--muted); font-size: .85rem; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pill { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dv-head { display: flex; justify-content: space-between; padding: 8px 12px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.pill.ok { background: var(--ok); } .pill.warn { background: var(--warn); }
.dv-actions { display: flex; gap: 8px; padding: 12px 8px 4px; flex-wrap: wrap; }
.dv-actions span { font-size: .84rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.dv-actions span:first-child { background: var(--primary); color: var(--on-primary); }
.dv-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dv-tags span { font-size: .82rem; padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--border-strong); color: var(--muted); }

/* security */
.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; margin-bottom: 24px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text);
}
.callout .i { width: 26px; height: 26px; color: var(--accent-text); margin-top: 1px; }
.callout a { color: var(--accent-text); font-weight: 600; }

/* install */
.install { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .install { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; } }
.prereq, .methods { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); min-width: 0; }
@media (max-width: 520px) { .prereq, .methods { padding: 18px 16px; } }
.prereq h3, .after h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.steps { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: var(--on-primary); background: var(--primary);
}
.small { font-size: .9rem; color: var(--muted); }
.prereq .small a, .more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.prereq .small a .i, .more a .i { width: 16px; height: 16px; }

.inst-tabs { margin: -6px -6px 18px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.ipanel { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.ipanel > * { min-width: 0; }
.ipanel > p:first-child { color: var(--muted); }
.ipanel > p:first-child b { color: var(--text); }
.ipanel .steps { margin: 0; }

.code { position: relative; border-radius: 12px; background: var(--code-bg); border: 1px solid rgba(227, 238, 248, .1); }
.code pre { margin: 0; padding: 16px 18px; padding-right: 96px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(227, 238, 248, .25) transparent; color: var(--code-text); font-size: .84rem; line-height: 1.7; tab-size: 2; }
.code pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.copy {
  position: absolute; top: 9px; right: 9px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 8px; border: 1px solid rgba(227, 238, 248, .2); background: #1A2C3F; color: var(--code-text); box-shadow: -10px 0 12px 2px var(--code-bg);
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.copy:hover { background: #243A51; }
.opts code { white-space: nowrap; }
.copy:focus-visible { outline-color: #A9CBEE; }
.copy .i { width: 15px; height: 15px; }
.copy .c-done { display: none; }
.copy.done .c-done { display: inline; color: #8EE3AE; }
.copy.done .c-label { display: none; }
@media (max-width: 520px) { .code pre { padding-right: 18px; padding-top: 48px; } }

.after { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .after { grid-template-columns: 1fr 1fr; } }
.after h3 { margin-bottom: 6px; font-size: 1rem; }
.after p { color: var(--muted); font-size: .93rem; }
.more { margin-top: 20px; font-size: .95rem; }

/* final call to action */
.final { padding: 88px 0; text-align: center; background:
  radial-gradient(50% 80% at 50% 0%, var(--glow-1), transparent 70%), var(--bg); }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final img { width: 56px; height: 56px; border-radius: 16px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.final p { color: var(--muted); font-size: 1.06rem; }
.final .cta { margin-top: 10px; }

/* footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 36px 0 44px; }
.footer-in { display: grid; gap: 18px; }
.f-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.f-brand img { width: 28px; height: 28px; border-radius: 8px; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.f-links a { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 550; }
.f-links a:hover { color: var(--primary); text-decoration: underline; }
.f-legal { font-size: .84rem; color: var(--muted); max-width: 90ch; }
@media (min-width: 860px) { .footer-in { grid-template-columns: auto 1fr; align-items: center; } .f-links { justify-content: flex-end; } .f-legal { grid-column: 1 / -1; } }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .topbar, .hero-bg, .copy, .tabs { display: none !important; }
  .ipanel[hidden] { display: grid !important; }
}
