/* kwant site. Colours are sampled from the product UI (frontend, main 69089c2). */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0a1d;
  --bg-2: #120d26;
  --surface: #171332;
  --surface-2: #1c173d;
  --line: #2c2552;
  --line-soft: #221c45;
  --text: #ecebfa;
  --muted: #b3afd3;
  --dim: #8c86b3;
  --accent: #6c58e0;
  --accent-hi: #7d6bea;
  --accent-text: #ada2ff;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.875em; }
::selection { background: rgba(108, 88, 224, 0.45); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }
.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;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 29, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); text-decoration: none; }
.nav .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px;
  font: 600 15px/1.2 var(--sans); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px -8px rgba(108, 88, 224, 0.7); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: #3a3268; }
.nav .btn { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.nav .btn-ghost { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(48% 52% at 50% 0%, rgba(108, 88, 224, 0.28), transparent 70%),
    radial-gradient(30% 40% at 82% 18%, rgba(244, 157, 10, 0.08), transparent 70%);
}
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(28, 23, 61, 0.8); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
.grad {
  background: linear-gradient(92deg, #c9c1ff 0%, #8f7dff 45%, #f3b54a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(17px, 2vw, 19px); line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.install-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; max-width: 100%;
  padding: 10px 10px 10px 16px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  font: 500 13.5px/1.4 var(--mono); color: var(--muted);
}
.install-line code { font-size: inherit; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.install-line code::-webkit-scrollbar { display: none; }
.install-line .p { color: var(--dim); user-select: none; }

/* Window frame around product media */
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.frame-bar {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  background: #100c22; border-bottom: 1px solid var(--line-soft);
}
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2552; }
.frame-bar span { margin-left: 10px; color: var(--dim); font: 500 12px/1 var(--mono); }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--surface); }
.hero-media { margin: 44px auto 0; max-width: 1060px; }
.media-caption { margin: 14px 0 0; text-align: center; color: var(--dim); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { margin: 0 0 12px; color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 720; }
.section-head p:not(.kicker) { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line-soft); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.benefit h3 { font-size: 18px; font-weight: 650; margin-top: 18px; letter-spacing: -0.01em; }
.benefit p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(108, 88, 224, 0.16); border: 1px solid rgba(125, 107, 234, 0.35); color: #c3b9ff;
}
.icon svg { width: 22px; height: 22px; }

/* Showcase rows */
.showcase { display: grid; gap: 112px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.row.flip { grid-template-columns: 7fr 5fr; }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.row-copy > p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(108, 88, 224, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c3b9ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks code, .row-copy code, .card p code, .faq code {
  padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-soft); color: #d9d4ff;
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card .shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 0%); }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* Phones */
.phones { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; }
.phone {
  width: 260px; border-radius: 34px; padding: 10px; background: #0a0818;
  border: 1px solid var(--line); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9);
}
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
.phone.lift { transform: translateY(-28px); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.step h3 { margin-top: 18px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.step pre { margin: 16px 0 0; }

/* Code */
pre {
  position: relative; margin: 20px 0; padding: 16px 18px; overflow-x: auto;
  border-radius: var(--radius-sm); background: #0a0818; border: 1px solid var(--line-soft);
  color: #dcd8f5; line-height: 1.6; font-size: 13.5px; tab-size: 2;
}
pre code { font-size: inherit; }
pre .c { color: var(--dim); }
.copy {
  position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  font: 500 12px/1.5 var(--sans); cursor: pointer; opacity: 0; transition: opacity .15s ease;
}
pre:hover .copy, .copy:focus-visible { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-soft); }
.faq details[open] { border-color: var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

/* Closing CTA */
.closing {
  text-align: center; padding: 64px 32px; border-radius: 22px;
  background: radial-gradient(70% 120% at 50% 0%, rgba(108, 88, 224, 0.32), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.closing h2 { font-size: clamp(28px, 3.6vw, 40px); }
.closing p { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 48px; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--muted); }
.site-footer p { margin: 8px 0 0; max-width: 440px; }

/* Lightbox */
.zoom { cursor: zoom-in; }
dialog.lightbox {
  width: min(1400px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-2); color: var(--text); overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(6, 4, 15, 0.86); }
dialog.lightbox img { width: 100%; max-height: calc(94vh - 52px); object-fit: contain; }
dialog.lightbox .lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; font-size: 14px; color: var(--muted); }
dialog.lightbox button { min-height: 32px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 500 13px var(--sans); cursor: pointer; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 24px 96px; }
.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-nav h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px 12px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-group + .docs-group { margin-top: 18px; }
.docs-group h3 { margin: 0 0 6px 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.docs-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.docs-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.docs-nav a[aria-current="page"] { background: rgba(108, 88, 224, 0.16); color: #e4e0ff; box-shadow: inset 2px 0 0 var(--accent-hi); }
.prose { max-width: 760px; }
.prose .kicker { margin-bottom: 10px; }
.prose h1 { font-size: clamp(32px, 4.2vw, 44px); font-weight: 740; letter-spacing: -0.03em; }
.prose .intro { margin: 16px 0 8px; color: var(--muted); font-size: 18.5px; }
.prose h2 { font-size: 25px; font-weight: 680; margin: 52px 0 0; padding-top: 4px; letter-spacing: -0.02em; }
.prose h3 { font-size: 18.5px; font-weight: 650; margin: 32px 0 0; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; color: #d6d3ee; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); font-weight: 620; }
.prose :not(pre) > code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-soft); color: #dcd7ff; overflow-wrap: anywhere; }
.prose h2 a.anchor, .prose h3 a.anchor { color: inherit; }
.prose figure { margin: 28px 0; }
.prose figure .frame img { aspect-ratio: auto; }
.prose figcaption { margin-top: 10px; color: var(--dim); font-size: 14px; }
.table-wrap { margin: 20px 0 0; overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); }
.table-wrap table { min-width: 560px; }
.table-wrap:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th { background: var(--surface); color: var(--text); font-weight: 600; white-space: nowrap; }
td { color: #d6d3ee; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.note {
  margin: 22px 0 0; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(108, 88, 224, 0.1); border: 1px solid rgba(125, 107, 234, 0.3); color: #dcd8f5;
}
.note.warn { background: rgba(244, 157, 10, 0.08); border-color: rgba(244, 157, 10, 0.32); }
.note strong:first-child { color: var(--text); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.pager a {
  display: block; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); font-weight: 600;
}
.pager a:hover { border-color: var(--line); text-decoration: none; }
.pager small { display: block; color: var(--dim); font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.pager .next { text-align: right; grid-column: 2; }
.source { margin-top: 40px; color: var(--dim); font-size: 14px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound .code { font: 700 96px/1 var(--mono); color: var(--line); letter-spacing: -0.04em; }


/* "What makes kwant different" tiles: whole tile links to its section */
.benefit.link { display: flex; flex-direction: column; color: inherit; transition: border-color .2s ease, transform .2s ease; }
.benefit.link:hover { text-decoration: none; border-color: var(--line); transform: translateY(-2px); }
.benefit .more { margin-top: auto; padding-top: 14px; color: var(--accent-text); font-size: 14.5px; font-weight: 600; }
.benefit.link:hover .more { text-decoration: underline; text-underline-offset: 3px; }
.section-foot { margin: 40px 0 0; text-align: center; }
.row-copy .more-link { display: inline-block; margin-top: 22px; font-weight: 600; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Tags for honest status notes */
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: 3px; color: #f7d08a; background: rgba(244, 157, 10, 0.12); border: 1px solid rgba(244, 157, 10, 0.35); }
/* Features page */
.page-head { padding: 72px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.06; }
.page-head .lede { margin-top: 18px; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px auto 0; padding: 0; list-style: none; max-width: 900px; }
.jump a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--muted); font-size: 14.5px; font-weight: 500; }
.jump a:hover { color: var(--text); border-color: var(--line); text-decoration: none; }
.fgroup { padding: 72px 0 0; }
.fgroup:last-of-type { padding-bottom: 96px; }
.fgroup .section-head { margin-bottom: 32px; }
.fgroup h2 { font-size: clamp(26px, 3.2vw, 34px); }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 32px 0 0; padding: 0; list-style: none; }
.flist li { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.flist h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.flist p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.flist p code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-soft); color: #d9d4ff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .benefits, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { padding-top: 56px; }
  .row, .row.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row.flip .row-copy { order: 0; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones .section-head { grid-column: 1 / -1; margin-bottom: 0; }
  .phone { justify-self: center; }
  .phone.lift { transform: none; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 20px; }
  .docs-nav { position: static; max-height: none; margin: 0 -24px; padding: 0 24px 12px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
  .docs-nav h2 { display: none; }
  .docs-nav { display: flex; gap: 6px; }
  .docs-group { display: contents; }
  .docs-group h3 { display: none; }
  .docs-nav ul { display: contents; }
  .docs-nav a { white-space: nowrap; padding: 7px 12px; border: 1px solid var(--line-soft); font-size: 14px; }
  .docs-nav a[aria-current="page"] { box-shadow: none; border-color: rgba(125, 107, 234, 0.5); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav .hide-sm { display: none; }
  section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .benefits, .grid, .grid.two, .flist { grid-template-columns: minmax(0, 1fr); }
  .showcase { gap: 80px; }
  .fgroup { padding-top: 56px; }
  .frame-bar { height: 28px; }
  .frame-bar i { width: 9px; height: 9px; }
  .frame-bar span { display: none; }
  .phone { width: 100%; max-width: 230px; border-radius: 28px; padding: 8px; }
  .phone img { border-radius: 21px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { gap: 10px; }
  .nav a { padding: 8px 9px; }
  .nav .btn { margin-left: 2px; padding: 8px 11px; }
  .cta .btn { flex: 1 1 100%; }
  .install-line { font-size: 12.5px; }
  .phones { gap: 16px; }
  .phone { border-radius: 22px; padding: 6px; }
  .phone img { border-radius: 17px; }
  .docs { padding-left: 18px; padding-right: 18px; }
  .docs-nav { margin: 0 -18px; padding: 0 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
.tight-top { padding-top: 0; }
