:root {
  color-scheme: light;
  --ink: #171817;
  --muted: #666a64;
  --soft: #8d918b;
  --paper: #f7f5f1;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #fff;
  --line: rgba(24, 26, 23, .11);
  --line-strong: rgba(24, 26, 23, .17);
  --red: #e9342b;
  --red-dark: #c9251d;
  --green: #27a764;
  --amber: #b97917;
  --blue: #4f78d6;
  --shadow: 0 28px 80px rgba(30, 31, 28, .13);
  --shadow-soft: 0 16px 44px rgba(30, 31, 28, .08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 6%, rgba(233, 52, 43, .075), transparent 30rem),
    radial-gradient(circle at 20% 45%, rgba(81, 118, 205, .035), transparent 26rem),
    linear-gradient(180deg, #fbfaf7 0, var(--paper) 45rem, #f4f2ee 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; color: #fff; background: #111; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.topbar {
  position: relative;
  z-index: 20;
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { display: block; border-radius: 11px; filter: drop-shadow(0 6px 12px rgba(20, 20, 20, .12)); }
.brand span { display: flex; align-items: baseline; gap: 8px; }
.brand strong { font-size: 19px; letter-spacing: -.025em; }
.brand small { color: var(--muted); font-size: 13px; }
nav { display: flex; align-items: center; gap: 27px; }
nav a { color: #50534e; font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--ink); }
.release-chip { padding: 7px 11px; color: #85520e; background: #fff0d6; border: 1px solid rgba(185, 121, 23, .2); border-radius: 999px; font-size: 12px; font-weight: 750; }

main, footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #5d615b; font-size: 12px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 19px; height: 2px; background: var(--red); border-radius: 2px; }
h1 { margin: 20px 0 24px; font-size: clamp(54px, 5.6vw, 78px); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--red); font-style: normal; }
.hero { min-height: 690px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 68px; padding: 74px 0 90px; }
.hero-lead { max-width: 540px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.release-panel { width: fit-content; display: flex; align-items: center; gap: 12px; margin: 28px 0 18px; padding: 12px 15px; color: #684817; background: rgba(255, 241, 217, .7); border: 1px solid rgba(185, 121, 23, .18); border-radius: 14px; }
.release-panel > div { display: flex; flex-direction: column; gap: 3px; }
.release-panel strong { font-size: 13px; }
.release-panel small { color: #8a6b3b; font-size: 11px; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 5px rgba(185, 121, 23, .1); }
.release-panel.is-ready { color: #216743; background: rgba(225, 246, 234, .76); border-color: rgba(39, 167, 100, .2); }
.release-panel.is-ready .status-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(39, 167, 100, .1); }
.primary-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 720; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button svg { width: 19px; height: 19px; }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 11px 26px rgba(233, 52, 43, .22); }
.button-primary:hover:not(:disabled) { background: var(--red-dark); box-shadow: 0 14px 32px rgba(233, 52, 43, .27); }
.button-primary:disabled, .button:disabled { color: rgba(255, 255, 255, .9); background: #a9aba7; box-shadow: none; cursor: not-allowed; opacity: .78; transform: none; }
.button-secondary, .button-quiet { color: var(--ink); background: rgba(255, 255, 255, .72); border-color: var(--line); }
.button-secondary:hover:not(:disabled), .button-quiet:hover:not(:disabled) { background: #fff; box-shadow: var(--shadow-soft); }
.button-quiet:disabled { color: #81847e; background: #ecece8; }
.button-light { color: #151615; background: #fff; }
.button-outline-light { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.release-line { display: flex; flex-wrap: wrap; gap: 8px 19px; margin-top: 14px; color: var(--soft); font-size: 12px; }
.release-line span + span { position: relative; }
.release-line span + span::before { content: ""; position: absolute; width: 3px; height: 3px; left: -11px; top: 6px; background: #b8bab5; border-radius: 50%; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 29px; color: var(--muted); font-size: 13px; }
.share-row button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; color: #353735; background: transparent; border: 0; border-bottom: 1px solid #bfc1bc; cursor: pointer; }
.share-row svg { width: 15px; height: 15px; }

.hero-visual { position: relative; min-width: 0; padding: 46px 0 34px; }
.visual-glow { position: absolute; inset: 8% 5% 0; background: radial-gradient(circle, rgba(233, 52, 43, .16), rgba(75, 121, 216, .06) 45%, transparent 70%); filter: blur(22px); }
.app-preview { position: relative; z-index: 2; overflow: hidden; background: #fff; border: 1px solid rgba(30, 30, 30, .14); border-radius: 20px; box-shadow: var(--shadow); transform: rotate(.45deg); }
.preview-titlebar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #777; background: rgba(248, 248, 247, .96); border-bottom: 1px solid #e6e6e3; font-size: 11px; }
.preview-titlebar i { width: 9px; height: 9px; background: #ff5f57; border-radius: 50%; }
.preview-titlebar i:nth-child(2) { background: #febc2e; }
.preview-titlebar i:nth-child(3) { background: #28c840; }
.preview-titlebar span { margin-left: auto; margin-right: auto; }
.app-preview img { width: 100%; display: block; }
.connection-pill { position: absolute; z-index: 3; min-width: 176px; display: grid; grid-template-columns: 34px 1fr 8px; align-items: center; gap: 10px; padding: 11px 13px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(28, 30, 27, .1); border-radius: 15px; box-shadow: 0 14px 38px rgba(20, 20, 20, .14); backdrop-filter: blur(16px); }
.connection-pill svg { width: 25px; height: 25px; padding: 4px; color: #3e413d; background: #f0f1ed; border-radius: 9px; }
.connection-pill span { display: flex; flex-direction: column; gap: 2px; }
.connection-pill strong { font-size: 13px; }
.connection-pill small { color: var(--soft); font-size: 10px; }
.connection-pill b { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.connection-pill-wifi { left: -26px; bottom: 5px; }
.connection-pill-bluetooth { right: -22px; top: 16px; }

.confidence-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confidence-strip > div { position: relative; min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 20px 42px; }
.confidence-strip > div + div { border-left: 1px solid var(--line); }
.confidence-strip > div::before { content: ""; position: absolute; left: 22px; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.confidence-strip strong { font-size: 14px; }
.confidence-strip small { margin-top: 5px; color: var(--soft); font-size: 12px; }

.section { padding: 116px 0; }
.section-heading > span, .connection-copy > span, .support-banner span, .guide-heading > span, .help-contact span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.section-heading h2, .connection-copy h2, .support-banner h2, .guide-heading h2, .help-contact h2 { margin: 12px 0 14px; font-size: clamp(35px, 4vw, 52px); line-height: 1.1; letter-spacing: -.05em; }
.section-heading p, .connection-copy p, .guide-heading p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.split-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 90px; margin-bottom: 44px; }
.split-heading h2 { max-width: 670px; }
.split-heading > p { max-width: 410px; margin: 0 0 6px; }
.feature-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 14px; }
.feature-card { min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.feature-card-wide { background: linear-gradient(145deg, #242622, #171917); color: #fff; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: auto; color: var(--red); background: rgba(233, 52, 43, .09); border-radius: 14px; }
.feature-card-wide .feature-icon { color: #fff; background: rgba(255,255,255,.1); }
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { margin: 34px 0 10px; font-size: 20px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.feature-card-wide p { color: #bec1bb; }

.install-choice-section { padding-left: 7%; padding-right: 7%; background: rgba(255,255,255,.45); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.compact-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.compact-heading p { margin: 0; }
.install-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.install-choice { position: relative; min-height: 290px; display: flex; flex-direction: column; padding: 27px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.install-choice.is-recommended { border-color: rgba(233,52,43,.26); box-shadow: 0 15px 42px rgba(233,52,43,.07); }
.choice-top { display: flex; align-items: center; justify-content: space-between; }
.choice-number { color: #b6b8b3; font-size: 12px; font-variant-numeric: tabular-nums; }
.choice-tag { padding: 6px 9px; color: #b32921; background: #ffe3df; border-radius: 999px; font-size: 11px; font-weight: 750; }
.choice-tag-quiet { color: #626660; background: #eeeeea; }
.install-choice h3 { margin: 35px 0 10px; font-size: 22px; letter-spacing: -.025em; }
.install-choice p { margin: 0 0 27px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.install-choice .button { width: 100%; margin-top: auto; }
.text-link { display: table; margin: 29px auto 0; color: var(--red); font-size: 14px; font-weight: 750; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }

.connection-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 84px; }
.connection-copy p { max-width: 470px; }
.connection-copy .text-link { margin-left: 0; }
.connection-board { min-height: 300px; display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; padding: 42px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(244,244,240,.76)); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.device-node { display: flex; flex-direction: column; align-items: center; text-align: center; }
.device-node img, .device-node svg { width: 58px; height: 58px; margin-bottom: 14px; }
.device-node svg { padding: 13px; color: #3f423e; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 22px rgba(20,20,20,.08); }
.device-node strong { font-size: 14px; }
.device-node small { margin-top: 4px; color: var(--soft); font-size: 11px; }
.route-lines { display: grid; gap: 15px; }
.route-lines span { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; color: #555953; border-top: 1px dashed #c4c7c0; font-size: 11px; }
.route-lines span b { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.support-banner { min-height: 235px; display: flex; align-items: center; justify-content: space-between; gap: 50px; margin: 25px 0 100px; padding: 45px 50px; color: #fff; background: linear-gradient(130deg, #e9342b, #c7241d); border-radius: var(--radius-xl); box-shadow: 0 24px 64px rgba(201, 36, 29, .2); }
.support-banner span { color: rgba(255,255,255,.68); }
.support-banner h2 { max-width: 650px; margin-bottom: 8px; }
.support-banner p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.support-actions { display: flex; gap: 10px; flex: 0 0 auto; }

footer { min-height: 116px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--line); }
.brand-footer { justify-self: start; }
footer p { color: var(--soft); font-size: 11px; text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 20px; font-size: 12px; }
footer a { text-decoration: none; }

/* Guide */
.guide-main { max-width: 1060px; }
.guide-hero { max-width: 820px; padding: 75px 0 70px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 13px; text-decoration: none; }
.guide-hero h1 { margin-top: 22px; font-size: clamp(52px, 6.2vw, 76px); }
.guide-hero > p { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.guide-release { margin-bottom: 0; }
.step-rail { position: sticky; top: 14px; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 13px; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.step-rail a { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 10px; text-decoration: none; }
.step-rail a + a::before { content: ""; position: absolute; left: 0; top: 25%; width: 1px; height: 50%; background: var(--line); }
.step-rail span { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: #252725; border-radius: 50%; font-size: 11px; font-weight: 750; }
.step-rail small { font-size: 12px; font-weight: 680; }
.guide-section { display: grid; grid-template-columns: 82px 1fr; gap: 35px; padding: 105px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.guide-index { padding-top: 8px; color: #c1c3be; font-size: 13px; font-weight: 760; font-variant-numeric: tabular-nums; }
.guide-content { min-width: 0; }
.guide-heading { max-width: 710px; margin-bottom: 36px; }
.guide-heading h2 { font-size: clamp(34px, 4.2vw, 49px); }
.guide-heading p { margin-bottom: 0; }
.instruction-grid { display: grid; gap: 12px; }
.instruction-grid article { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 23px 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.instruction-grid b { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-size: 12px; }
.instruction-grid h3 { margin: 2px 0 7px; font-size: 17px; }
.instruction-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.instruction-grid a { display: inline-block; margin-top: 9px; color: var(--red); font-size: 12px; font-weight: 750; }
.permission-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; align-items: center; }
.purpose-card { display: flex; gap: 18px; padding: 25px; background: #20221f; color: #fff; border-radius: var(--radius-lg); }
.purpose-card svg { width: 34px; height: 34px; flex: 0 0 auto; color: #ff736b; }
.purpose-card strong { font-size: 15px; }
.purpose-card p { margin: 8px 0 0; color: #bfc2bc; font-size: 13px; line-height: 1.7; }
.route-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route-choice-grid article { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 15px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.route-choice-grid svg { width: 42px; height: 42px; padding: 9px; color: var(--blue); background: #edf2ff; border-radius: 13px; }
.route-choice-grid strong { font-size: 15px; }
.route-choice-grid p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.route-choice-grid span { padding: 6px 9px; color: #32744f; background: #e4f5eb; border-radius: 999px; font-size: 10px; font-weight: 750; }
.pairing-note { display: flex; align-items: baseline; gap: 20px; margin-top: 13px; padding: 20px 23px; color: #6e4b17; background: #fff1da; border: 1px solid rgba(185,121,23,.17); border-radius: 16px; }
.pairing-note b { flex: 0 0 auto; font-size: 13px; }
.pairing-note p { margin: 0; font-size: 12px; line-height: 1.6; }
.completion-card { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 18px; }
.completion-card div { min-height: 100px; display: flex; align-items: center; gap: 12px; padding: 22px; }
.completion-card div + div { border-left: 1px solid var(--line); }
.completion-card span { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 12px; }
.completion-card strong { font-size: 13px; }
.help-inline { margin: 25px 0 0; color: var(--muted); font-size: 13px; }
.help-inline a { color: var(--red); font-weight: 750; }

/* Help */
.help-main { max-width: 980px; min-height: calc(100vh - 210px); padding: 70px 0 100px; }
.help-main .eyebrow { margin-top: 35px; }
.help-main h1 { max-width: 760px; font-size: clamp(52px, 6.5vw, 74px); }
.help-main > p { max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.help-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: 24px; }
.help-card-wide { grid-column: 1 / -1; }
.help-card.is-highlighted { border-color: rgba(233,52,43,.5); box-shadow: 0 0 0 4px rgba(233,52,43,.07); }
.help-card header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.help-card header span { padding: 6px 9px; color: #7c4d08; background: #fff0d7; border-radius: 8px; font-size: 11px; font-weight: 740; }
.help-card h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.help-card p, .help-card li { color: var(--muted); font-size: 13px; line-height: 1.75; }
.help-card ol { margin: 17px 0 0; padding-left: 21px; }
.help-card li + li { margin-top: 4px; }
.help-card strong { color: var(--ink); }
.help-action { display: inline-flex; margin-top: 12px; color: var(--red); font-size: 13px; font-weight: 750; }
.help-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 22px; }
.help-columns > div + div { padding-left: 38px; border-left: 1px solid var(--line); }
.help-columns p { margin-bottom: 0; }
.help-contact { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 28px; padding: 34px 38px; background: #20221f; color: #fff; border-radius: var(--radius-xl); }
.help-contact span { color: #ff6f67; }
.help-contact h2 { max-width: 620px; margin-bottom: 0; font-size: clamp(27px, 3.5vw, 38px); }

dialog { width: min(700px, calc(100% - 32px)); padding: 0; background: transparent; border: 0; }
dialog::backdrop { background: rgba(20,21,19,.58); backdrop-filter: blur(7px); }
.dialog-shell { padding: 27px; background: #fbfaf7; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-heading span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dialog-heading h2 { margin: 7px 0 0; font-size: 23px; letter-spacing: -.03em; }
.dialog-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: #777; background: #ecece8; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; }
.dialog-note { margin: 17px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.65; }
#agentTaskText { max-height: 310px; overflow: auto; margin: 0; padding: 18px; color: #d9ddd7; background: #1d1f1c; border-radius: 14px; font: 12px/1.7 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
.dialog-actions { display: flex; gap: 10px; margin-top: 17px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 26px; padding: 11px 16px; color: #fff; background: #222421; border-radius: 999px; box-shadow: 0 10px 28px rgba(0,0,0,.2); font-size: 13px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-action { display: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 16px; padding-top: 62px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(780px, 100%); margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-wide { grid-column: 1 / -1; }
  .connection-section { grid-template-columns: 1fr; gap: 36px; }
  .connection-copy { max-width: 720px; }
  .permission-layout { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p { grid-column: 1 / -1; grid-row: 2; padding-bottom: 20px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 16px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .topbar, main, footer { width: min(100% - 30px, 1180px); }
  .topbar { height: 72px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 12px; }
  nav a { display: none; }
  nav { gap: 9px; }
  .release-chip { font-size: 11px; }
  h1 { font-size: clamp(45px, 13.8vw, 62px); }
  .hero { min-height: auto; padding: 51px 0 70px; }
  .hero-lead { font-size: 16px; line-height: 1.68; }
  .release-panel { width: 100%; align-items: flex-start; }
  .primary-actions { display: grid; }
  .button { width: 100%; }
  .release-line { display: grid; gap: 5px; }
  .release-line span + span::before { display: none; }
  .share-row > span { width: 100%; }
  .hero-visual { padding-top: 36px; }
  .app-preview { border-radius: 15px; }
  .preview-titlebar { height: 30px; }
  .connection-pill { min-width: 143px; grid-template-columns: 27px 1fr 7px; padding: 8px 9px; }
  .connection-pill svg { width: 24px; height: 24px; }
  .connection-pill strong { font-size: 11px; }
  .connection-pill small { font-size: 9px; }
  .connection-pill-wifi { left: -3px; bottom: -3px; }
  .connection-pill-bluetooth { right: -3px; top: 8px; }
  .confidence-strip { grid-template-columns: 1fr; }
  .confidence-strip > div { min-height: 80px; padding-left: 46px; }
  .confidence-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .confidence-strip > div::before { left: 23px; }
  .section { padding: 82px 0; }
  .split-heading { grid-template-columns: 1fr; gap: 8px; }
  .split-heading > p { margin: 0; }
  .feature-grid, .install-choice-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .feature-card { min-height: 235px; }
  .install-choice-section { padding-left: 18px; padding-right: 18px; border-radius: 24px; }
  .compact-heading { text-align: left; }
  .install-choice { min-height: 260px; }
  .connection-board { min-height: 230px; padding: 22px 12px; border-radius: 22px; }
  .device-node img, .device-node svg { width: 45px; height: 45px; }
  .route-lines span { font-size: 9px; }
  .support-banner { align-items: stretch; flex-direction: column; margin-bottom: 65px; padding: 34px 25px; border-radius: 24px; }
  .support-actions { flex-direction: column; }
  footer { grid-template-columns: 1fr; padding: 28px 0; }
  footer p { grid-column: auto; grid-row: auto; padding: 0; text-align: left; }
  footer > div { flex-wrap: wrap; justify-content: flex-start; }
  .mobile-action { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: block; padding: 10px 15px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,249,246,.92); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
  .mobile-action .button { min-height: 48px; }

  .guide-hero { padding: 48px 0 55px; }
  .guide-hero h1 { font-size: clamp(44px, 13.5vw, 60px); }
  .step-rail { position: relative; top: auto; display: flex; overflow-x: auto; justify-content: flex-start; margin: 0 -15px; padding: 12px 15px; background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; backdrop-filter: none; scrollbar-width: none; }
  .step-rail::-webkit-scrollbar { display: none; }
  .step-rail a { flex: 0 0 115px; justify-content: flex-start; }
  .step-rail a + a::before { display: none; }
  .guide-section { grid-template-columns: 1fr; gap: 13px; padding: 78px 0; }
  .guide-index { padding: 0; }
  .guide-heading { margin-bottom: 28px; }
  .instruction-grid article { padding: 20px; }
  .route-choice-grid { grid-template-columns: 1fr; }
  .pairing-note { align-items: flex-start; flex-direction: column; gap: 7px; }
  .completion-card { grid-template-columns: 1fr; }
  .completion-card div { min-height: 76px; }
  .completion-card div + div { border-left: 0; border-top: 1px solid var(--line); }

  .help-main { padding: 48px 0 70px; }
  .help-main h1 { font-size: clamp(46px, 14vw, 61px); }
  .help-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .help-card-wide { grid-column: auto; }
  .help-card { padding: 23px 21px; }
  .help-columns { grid-template-columns: 1fr; gap: 22px; }
  .help-columns > div + div { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .help-contact { align-items: stretch; flex-direction: column; padding: 28px 23px; }
  .dialog-shell { padding: 21px 17px; }
  .dialog-actions { flex-direction: column; }
}

@media (max-width: 390px) {
  .brand span { gap: 5px; }
  .brand small { display: none; }
  .release-chip { padding: 6px 8px; }
  .connection-pill { min-width: 130px; }
  .connection-pill svg { display: none; }
  .connection-pill { grid-template-columns: 1fr 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
