:root {
  --ink: #17202b;
  --muted: #6b7685;
  --line: #dde3ea;
  --paper: #f5f7fa;
  --white: #fff;
  --blue: #1769e8;
  --blue-soft: #e9f1ff;
  --green: #178355;
  --green-soft: #e4f5ec;
  --amber: #a56608;
  --amber-soft: #fff4dc;
  --red: #b23b42;
  --red-soft: #fff0f1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 730; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--ink); font-size: 11px; font-weight: 800; }
.channel-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.channel-state > span { width: 7px; height: 7px; border-radius: 50%; background: #9da9b8; }
.channel-state.ready > span { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.channel-state.blocked > span { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

.hero { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); align-items: center; gap: 80px; padding: 74px 0 65px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(46px, 6.3vw, 78px); line-height: .98; letter-spacing: -.04em; }
.hero-text { max-width: 590px; margin-bottom: 29px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 700; transition: transform .16s, box-shadow .16s, opacity .16s; }
.button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(23,32,43,.12); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { color: white; background: var(--blue); }
.button-secondary { border-color: var(--line); color: var(--ink); background: white; }
.button-dark { width: 100%; color: white; background: var(--ink); }
.button-icon { font-size: 19px; line-height: 1; }
.install-message { min-height: 20px; margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.install-message.warn { color: var(--amber); }
.install-message.good { color: var(--green); }

.installer-preview { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; border: 1px solid var(--line); border-radius: 25px; background: var(--white); box-shadow: 0 24px 60px rgba(23,32,43,.09); }
.phone-bar { width: 100%; position: absolute; top: 19px; display: flex; justify-content: space-between; padding: 0 22px; color: #8b95a2; font-size: 9px; }
.installer-preview { position: relative; }
.app-icon-wrap { position: relative; margin-bottom: 20px; }
.app-icon { width: 96px; height: 96px; display: block; border-radius: 22px; box-shadow: 0 10px 24px rgba(23,32,43,.15); }
.verified-dot { position: absolute; right: -5px; bottom: -5px; width: 27px; height: 27px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: var(--blue); font-size: 12px; font-weight: 800; }
.installer-preview strong { margin-bottom: 7px; font-size: 20px; }
.app-version { color: var(--muted); font-size: 11px; }
.preview-status { display: flex; align-items: center; gap: 7px; margin-top: 35px; padding: 7px 11px; border-radius: 100px; color: var(--muted); background: #eef2f6; font-size: 11px; font-weight: 700; }
.preview-status > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #9da9b8; }
.preview-status.ready { color: var(--green); background: var(--green-soft); }
.preview-status.ready > span:first-child { background: var(--green); }
.preview-status.blocked { color: var(--amber); background: var(--amber-soft); }
.preview-status.blocked > span:first-child { background: var(--amber); }

.device-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.device-strip > div { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 16px 22px; border-right: 1px solid var(--line); }
.device-strip > div:last-child { border-right: 0; }
.strip-label { margin-bottom: 7px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.device-strip strong { font-size: 13px; }

.process-section, .compat-section, .facts-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2 { margin-bottom: 0; font-size: 30px; letter-spacing: -.03em; }
.section-note { color: var(--muted); font-size: 11px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.process-step { min-height: 265px; position: relative; padding: 26px; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.step-number { position: absolute; top: 19px; right: 21px; color: #a3aeba; font-size: 10px; font-weight: 750; }
.step-symbol { width: 44px; height: 44px; display: grid; place-items: center; margin: 38px 0 42px; border: 1px solid #cbd4df; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 14px; font-weight: 800; }
.process-step h3 { margin-bottom: 8px; font-size: 16px; }
.process-step p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.compat-section { display: grid; grid-template-columns: 1fr .72fr; gap: 60px; align-items: center; }
.compat-copy > p:not(.eyebrow) { max-width: 570px; margin: 15px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; font-size: 12px; font-weight: 700; }
.text-button span { margin-left: 7px; }
.compat-result { min-height: 105px; display: flex; align-items: center; gap: 17px; padding: 23px; border: 1px solid var(--line); background: white; }
.result-light { width: 38px; height: 38px; flex: 0 0 auto; border: 10px solid #edf1f5; border-radius: 50%; background: #a3adba; }
.compat-result.good .result-light { border-color: var(--green-soft); background: var(--green); }
.compat-result.bad .result-light { border-color: var(--red-soft); background: var(--red); }
.compat-result.warn .result-light { border-color: var(--amber-soft); background: var(--amber); }
.compat-result div { display: flex; flex-direction: column; gap: 6px; }
.compat-result div span { color: var(--muted); font-size: 10px; }
.compat-result strong { font-size: 15px; }

.facts-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fact span { display: block; margin-bottom: 11px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.fact strong { font-size: 15px; }
.fact p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 27px 0 42px; color: var(--muted); font-size: 11px; }
.footer a:hover { color: var(--blue); }

dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 25px 70px rgba(23,32,43,.24); }
dialog::backdrop { background: rgba(23,32,43,.48); backdrop-filter: blur(3px); }
.dialog-card { padding: 25px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }
.close-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; cursor: pointer; font-size: 20px; }
.dialog-card label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.dialog-card select { width: 100%; height: 45px; padding: 0 11px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 6px; background: white; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 600px); }
  .topbar { height: 68px; }
  .channel-state { font-size: 10px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 37px; padding: 56px 0; }
  h1 { font-size: 50px; }
  .hero-text { font-size: 15px; }
  .installer-preview { min-height: 310px; }
  .device-strip { grid-template-columns: repeat(2, 1fr); }
  .device-strip > div:nth-child(2) { border-right: 0; }
  .device-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-grid, .facts-section { grid-template-columns: 1fr; }
  .process-step { min-height: 215px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .step-symbol { margin: 28px 0 28px; }
  .compat-section { grid-template-columns: 1fr; gap: 28px; }
  .footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 410px) {
  .brand { font-size: 13px; }
  h1 { font-size: 43px; }
  .hero-actions .button { width: 100%; }
  .device-strip > div { padding: 14px; }
  .device-strip strong { font-size: 11px; }
  .section-heading { align-items: start; flex-direction: column; }
}
