/* WiraPass public site (landing, legal pages, credits, developer docs).
   Light theme only, mobile first: the base rules are the phone design
   (390 px), then 720 px (tablet), 1024 px and 1200 px (the desktop design,
   drawn at 1440 px). No inline styles anywhere (strict CSP).

   Roboto (variable, latin and latin-ext subsets) is self-hosted from the
   Google Fonts build (v51), licensed under the SIL Open Font License 1.1:
   /assets/fonts/OFL.txt. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #16272c;
  --ink-deep: #0a2f3a;
  --body: #2d4046;
  --muted: #52676d;
  --faint: #7f9297;
  --brand: #0d6478;
  --brand-deep: #0a4c60;
  --tint: #d8ecef;
  --tint-soft: #e6f1f3;
  --outline: #b8d4da;
  --line: #dde3e6;
  --line-soft: #eef1f3;
  --table-head: #eef3f4;
  --dot: #4db9c0;
  --sky: #7ccfda;
  --pale: #b8dde3;
  --night: #0a2f3a;
  --night-line: #1f4d5a;
  --night-text: #a9c6cc;
  --danger: #c4302b;
  --phone: #0b1418;
  --track: #e3e8eb;

  --gutter: 16px;
  --band-gap: 8px;

  color-scheme: light;
  accent-color: var(--brand);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --band-gap: 16px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
    --band-gap: 20px;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-deep);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 16px;
}

/* Hero decorations stick out of their boxes; the page never scrolls sideways. */
.page {
  overflow-x: clip;
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.band {
  width: min(1360px, 100% - 2 * var(--band-gap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--brand);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* The phone design has shorter copy in places: both are in the page, one shows. */
@media (max-width: 719.98px) {
  .v-wide,
  .wide-only {
    display: none !important;
  }
}

@media (min-width: 720px) {
  .v-narrow {
    display: none !important;
  }
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.3;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--ink-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
  padding: 16px 26px;
}

.button-primary:hover {
  background: var(--brand-deep);
  color: #ffffff;
}

.button-outline {
  color: var(--brand-deep);
  padding: 16px 22px;
  border: 1.5px solid var(--outline);
}

.button-outline:hover {
  background: var(--card);
  color: var(--brand-deep);
}

.button-light {
  background: #ffffff;
  color: var(--brand-deep);
  font-weight: 800;
  padding: 16px;
}

.button-light:hover {
  background: var(--tint);
  color: var(--brand-deep);
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
}

.avatar svg {
  width: 100%;
  height: 100%;
}

.av-0 { background: #d8ecef; }
.av-1 { background: #d5f0ec; }
.av-2 { background: #ede3fb; }
.av-3 { background: #e4e4fb; }
.av-4 { background: #dce8fb; }
.av-5 { background: #fde5d6; }
.av-6 { background: #e3e8ed; }
.av-7 { background: #fbefd2; }
.av-8 { background: #fbe1e7; }
.av-9 { background: #ddf3e2; }

/* Eyebrows and section titles grow with the screen, on every page. */
@media (min-width: 720px) {
  .eyebrow {
    font-size: 14px;
  }

  .section-title {
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -1px;
  }
}

@media (min-width: 1200px) {
  .section-title {
    font-size: 44px;
    letter-spacing: -1.2px;
  }
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.site-nav {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-cta {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  background: var(--brand);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-deep);
  color: #ffffff;
}

.lang-button {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-deep);
  padding: 8px 14px;
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.lang-button:hover {
  background: var(--card);
  color: var(--brand-deep);
}

/* Legal pages: the document switcher gets its own row on phones. */
.document .site-header {
  flex-wrap: wrap;
  row-gap: 10px;
  padding-block: 12px;
}

.doc-switch {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 4px;
  background: var(--card);
  padding: 4px;
  border-radius: 999px;
}

.doc-switch a {
  flex: 1 1 auto;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  padding: 9px 8px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.doc-switch a:hover {
  color: var(--brand);
}

.doc-switch a[aria-current='page'] {
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

@media (min-width: 720px) {
  .site-header {
    min-height: 84px;
  }

  .brand {
    gap: 12px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 21px;
  }

  .nav-cta {
    font-size: 15px;
    padding: 12px 22px;
  }

  .lang-button {
    font-size: 14px;
    padding: 10px 16px;
  }

  .document .site-header {
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .doc-switch {
    order: 0;
    flex: none;
    gap: 8px;
    padding: 6px;
  }

  .doc-switch a {
    flex: none;
    font-size: 14px;
    padding: 10px 18px;
  }
}

@media (min-width: 1024px) {
  .home .site-header {
    gap: 36px;
  }

  .home .site-nav {
    display: block;
    margin-left: auto;
  }
}

/* ---------- Landing: design "Bento" (2026-09-28) ---------- */
/* Phone first (390 px), then 720 px, 1024 px and 1200 px. White page; the
   stage, tiles and cards carry the colour. */

.home {
  background: #ffffff;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-lang {
  min-width: 44px;
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.nav-lang:hover {
  color: var(--brand);
}

.home .nav-cta {
  background: var(--ink-deep);
}

.home .nav-cta:hover {
  background: var(--brand-deep);
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid #c9dde1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
}

.hero-title {
  margin: 18px auto 0;
  max-width: 940px;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.3px;
  color: var(--ink-deep);
}

.hero-lead {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button-soon {
  padding: 15px 22px;
  border: 1.5px solid #c9d6da;
  color: var(--muted);
  cursor: default;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Stage: the app with floating cards */
.stage {
  position: relative;
  margin-top: 34px;
  height: 470px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 30%, #ddeff1 0, #eef5f6 55%, var(--bg) 100%);
  overflow: hidden;
}

.phone {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 200px;
  height: 440px;
  transform: translateX(-50%);
  padding: 8px;
  border-radius: 32px;
  background: var(--phone);
  box-shadow: 0 30px 60px rgba(10, 47, 58, 0.3);
}

.phone-screen {
  height: 100%;
  padding: 14px 9px;
  border-radius: 25px;
  background: var(--bg);
  overflow: hidden;
}

.phone-title {
  margin: 0 4px 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-deep);
}

.codes {
  list-style: none;
  padding: 0;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px;
  border-bottom: 1px solid var(--line-soft);
}

.code-row:last-child {
  border-bottom: 0;
}

.code-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
}

.code-icon .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring-track {
  stroke: var(--track);
  stroke-width: 3;
}

.ring-left {
  stroke: var(--brand);
  stroke-width: 3;
}

.ring-urgent .ring-left {
  stroke: var(--danger);
}

.code-avatar {
  position: absolute;
  inset: 5px;
}

.code-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.code-name {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.code-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.code-copy {
  display: flex;
  color: var(--brand);
}

.float {
  position: absolute;
  padding: 12px 14px;
  border: 1px solid #e6eef0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(10, 47, 58, 0.14);
  text-align: left;
}

.float-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.float-app {
  width: 18px;
  height: 18px;
}

.float-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-deep);
}

.float-sub {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.float-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.float-deny,
.float-approve {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 700;
}

.float-deny {
  background: #eef2f3;
  color: var(--ink);
}

.float-approve {
  background: var(--brand);
  color: #ffffff;
}

.float-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-deep);
}

.float-check {
  display: flex;
  color: var(--brand);
}

.float-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand-deep);
}

.float-bar {
  display: block;
  height: 5px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--brand);
}

.float-request {
  left: 12px;
  top: 16px;
  width: 204px;
}

.float-face {
  left: 12px;
  bottom: 20px;
}

/* On a phone this card would cover the codes; the backup tile shows it instead */
.float-restored {
  display: none;
}

.float-offline {
  right: 15%;
  top: 370px;
}

/* Section heads of the landing sit centred */
.home .section-head {
  align-items: center;
  text-align: center;
}

.features,
.how,
.faq {
  padding-top: 64px;
}

/* Features: the bento grid */
.bento {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 20px;
  border-radius: 24px;
  background: var(--bg);
}

.tile h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--ink-deep);
}

.tile > p,
.tile-text > p {
  margin-top: 6px;
  max-width: 440px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.tile-icon {
  display: none;
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--brand);
}

.tile-approve,
.tile-backup,
.tile-security {
  grid-column: span 2;
}

.tile-approve {
  min-height: 320px;
  padding: 0;
  background: var(--ink-deep);
}

.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.tile-text {
  position: relative;
  padding: 22px;
}

.tile-approve h3 {
  font-size: 23px;
  color: #ffffff;
}

.tile-approve .tile-text p {
  color: var(--tint);
}

.float-approved {
  left: 22px;
  bottom: 22px;
  width: 230px;
}

.tile-backup {
  background: #e8f3f4;
}

.float-tile {
  position: relative;
  max-width: 260px;
  margin-top: 16px;
  box-shadow: 0 10px 24px rgba(10, 47, 58, 0.1);
}

.tile-security {
  background: var(--night);
}

.tile-security h3 {
  color: #ffffff;
}

.tile-security > p {
  color: var(--night-text);
}

.tile p.tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.tile-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--sky);
}

.tile-links a:hover {
  color: #ffffff;
}

/* How it works */
.how-steps {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.how-step {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.how-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.how-step h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-deep);
}

.how-step p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Questions: native disclosure, no script */
.faq-grid {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  align-items: start;
}

.faq-item {
  border-radius: 16px;
  background: var(--bg);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 16px;
}

.faq-item summary h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-deep);
}

.faq-item summary .icon {
  flex: none;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Download card */
.download {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 64px;
  padding: 32px 22px;
  border-radius: 30px;
  background: var(--ink-deep);
  color: #ffffff;
}

.download h2 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.download-text > p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--night-text);
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.download .button-soon {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.download-text > p.download-version {
  margin-top: 14px;
  font-size: 13px;
}

.download-text > p.download-date {
  margin-top: 2px;
  font-size: 13px;
}

.download-verify {
  margin-top: 8px;
  font-size: 13px;
  color: var(--night-text);
}

.download-verify summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--sky);
  cursor: pointer;
}

.download-verify summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 8px;
}

.download-verify p {
  line-height: 1.5;
}

.download-verify code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #ffffff;
  word-break: break-all;
}

/* A phone cannot scan its own screen: the QR is for desktop visitors. */
.download-qr {
  display: none;
}

/* HTML 404 */
.missing {
  padding: 72px 0 96px;
  text-align: center;
}

.missing .section-title {
  margin-top: 10px;
}

.missing-lead {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
}

.missing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary .icon {
    transition: none;
  }
}

@media (min-width: 720px) {
  .hero {
    padding-top: 48px;
  }

  .hero-title {
    font-size: 60px;
    letter-spacing: -2px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .stage {
    height: 520px;
    border-radius: 36px;
  }

  .phone {
    top: 50px;
    width: 250px;
    height: 520px;
    padding: 10px;
    border-radius: 38px;
  }

  .phone-screen {
    padding: 18px 12px;
    border-radius: 29px;
  }

  .phone-title {
    font-size: 22px;
  }

  .code-row {
    padding: 10px 12px;
  }

  .code-icon {
    width: 42px;
    height: 42px;
  }

  .code-name {
    font-size: 12px;
  }

  .code-value {
    font-size: 21px;
  }

  .float-request {
    left: 5%;
    top: 70px;
    width: 250px;
  }

  .float-face {
    left: 7%;
    bottom: 60px;
  }

  .float-restored {
    display: block;
    right: 5%;
    top: 90px;
    width: 230px;
  }

  .float-offline {
    right: 7%;
    top: auto;
    bottom: 70px;
  }

  .features,
  .how,
  .faq {
    padding-top: 96px;
  }

  .bento {
    gap: 16px;
    margin-top: 40px;
  }

  .tile {
    min-height: 200px;
    padding: 26px;
  }

  .tile h3 {
    font-size: 20px;
  }

  .tile > p,
  .tile-text > p {
    font-size: 15px;
    padding-right: 64px;
  }

  .tile-icon {
    display: block;
  }

  .tile-approve {
    min-height: 380px;
    padding: 0;
  }

  .tile-text > p,
  .tile-backup > p,
  .tile-security > p {
    padding-right: 0;
  }

  .tile-text {
    padding: 30px;
  }

  .tile-approve h3 {
    font-size: 28px;
  }

  .float-approved {
    left: 30px;
    bottom: 30px;
    width: 280px;
  }

  .how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .how-step {
    flex-direction: column;
    padding: 26px;
    border-radius: 24px;
  }

  .how-step h3 {
    font-size: 19px;
  }

  .how-step p {
    font-size: 15px;
  }

  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
  }

  .faq-item summary h3 {
    font-size: 16.5px;
  }

  .download {
    margin-top: 96px;
    padding: 44px 40px;
    border-radius: 36px;
  }

  .download h2 {
    font-size: 38px;
  }

  .download-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .home .nav-links {
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: var(--bg);
  }

  .home .nav-links a {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
  }

  .home .nav-links a:hover {
    background: #ffffff;
  }

  .hero-title {
    font-size: 76px;
    letter-spacing: -2.6px;
  }

  .stage {
    height: 560px;
    margin-top: 54px;
    border-radius: 40px;
  }

  .phone {
    width: 270px;
    height: 560px;
  }

  .code-value {
    font-size: 22px;
  }

  .float-request {
    left: 12%;
    top: 90px;
    width: 270px;
  }

  .float-face {
    left: 16%;
    bottom: 110px;
  }

  .float-restored {
    right: 12%;
    top: 110px;
    width: 250px;
  }

  .float-offline {
    right: 15%;
    bottom: 120px;
  }

  .features,
  .how,
  .faq {
    padding-top: 120px;
  }

  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(230px, auto);
    gap: 18px;
    margin-top: 44px;
  }

  .tile {
    min-height: 0;
    padding: 28px;
    border-radius: 28px;
  }

  .tile h3 {
    font-size: 22px;
    letter-spacing: -0.3px;
  }

  .tile-approve {
    grid-row: span 2;
    padding: 0;
  }

  .tile-text {
    padding: 34px;
  }

  .tile-approve h3 {
    font-size: 30px;
  }

  .float-approved {
    left: 34px;
    bottom: 34px;
  }

  .tile-backup > p {
    max-width: 300px;
  }

  .float-tile {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 250px;
    margin-top: 0;
  }

  .tile-security > p {
    max-width: 520px;
  }

  .how-step {
    padding: 28px;
  }

  .how-number {
    width: 40px;
    height: 40px;
  }

  .download {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-top: 120px;
    padding: 56px 60px;
    border-radius: 40px;
  }

  .download-text {
    max-width: 700px;
  }

  .download h2 {
    font-size: 46px;
    letter-spacing: -1.2px;
  }

  .download-text > p {
    font-size: 17px;
  }

  .download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: none;
    margin: 0;
  }

  .download-qr img {
    width: 190px;
    height: 190px;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
  }

  .download-qr figcaption {
    font-size: 13px;
    color: var(--night-text);
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 80px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.footer-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.footer-by,
.footer-head,
.footer-home-link {
  display: none;
}

/* Phones: one wrapped row of links (legal, docs, contact), no columns. */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  line-height: 1.2;
}

.footer-col,
.footer-col ul {
  display: contents;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-legal li {
  order: 1;
}

.footer-docs {
  order: 2;
}

.footer-contact li {
  order: 3;
}

.footer-copy {
  font-size: 12px;
  color: var(--faint);
}

.footer-copy a {
  color: inherit;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .site-footer {
    margin-top: 80px;
    padding: 48px 0 64px;
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-name {
    font-size: 18px;
  }

  .footer-icon {
    width: 32px;
    height: 32px;
  }

  .footer-by {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
  }

  .footer-links {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-col,
  .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-col ul {
    padding: 0;
  }

  .footer-head,
  .footer-home-link {
    display: block;
  }

  .footer-head {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--ink);
  }

  .footer-links a {
    font-size: 15px;
    text-decoration: none;
  }

  .footer-contact a {
    overflow-wrap: anywhere;
  }

  .footer-copy {
    grid-column: 1 / -1;
    font-size: 13px;
  }
}

@media (min-width: 1200px) {
  .footer-grid,
  .footer-links {
    column-gap: 40px;
  }
}

/* ---------- Documents: legal pages, credits ---------- */

.doc-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  background: var(--night);
  border-radius: 26px;
  padding: 28px 22px;
}

.doc-rings {
  position: absolute;
  right: -50px;
  top: -60px;
  width: 200px;
  height: 200px;
  max-width: none;
  opacity: 0.18;
  stroke: var(--sky);
}

.doc-band .eyebrow {
  position: relative;
  color: var(--sky);
}

.doc-band h1 {
  position: relative;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #ffffff;
}

.doc-meta {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: var(--night-text);
}

.doc-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}

.toc ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.toc a:hover {
  background: var(--bg);
  color: var(--brand-deep);
}

.toc-side {
  display: none;
}

.toc-top {
  background: var(--card);
  border-radius: 18px;
}

.toc-top summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.toc-top summary::-webkit-details-marker {
  display: none;
}

.toc-top summary .icon {
  flex: none;
  color: var(--muted);
}

.toc-top[open] summary .icon {
  transform: rotate(180deg);
}

.toc-top nav {
  padding: 0 8px 10px;
}

.doc {
  width: 100%;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

.doc p,
.doc ul,
.doc ol,
.doc .table {
  margin: 0 0 10px;
}

.doc .lead {
  font-size: 17px;
  color: var(--ink);
}

.doc h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink-deep);
}

.doc ul,
.doc ol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
}

.doc strong {
  font-weight: 700;
  color: var(--ink);
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
}

/* Phones: every row is a card, the label above its value. */
@media (max-width: 719.98px) {
  .table table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .table tr {
    background: var(--card);
    border-radius: 16px;
    padding: 14px 16px;
  }

  .table td:first-child {
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--ink);
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 18px;
  padding: 16px 18px;
}

.contact-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand-deep);
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.contact-text a {
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-punct {
  display: none;
}

.doc-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.doc-footer p {
  margin: 0;
}

@media (min-width: 720px) {
  .doc-band {
    gap: 12px;
    margin-top: 16px;
    border-radius: 32px;
    padding: 48px 56px;
  }

  .doc-rings {
    right: 40px;
    top: -70px;
    width: 300px;
    height: 300px;
  }

  .doc-band h1 {
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -1.2px;
  }

  .doc-meta {
    font-size: 15px;
  }

  .doc-layout {
    padding-top: 40px;
  }

  .doc h2 {
    font-size: 22px;
  }

  .table {
    overflow: hidden;
    background: var(--card);
    border-radius: 20px;
  }

  .table table {
    table-layout: fixed;
  }

  .table th,
  .table td {
    padding: 14px 8px;
  }

  .table th:first-child,
  .table td:first-child {
    width: 206px;
    padding-left: 18px;
  }

  .table th:last-child,
  .table td:last-child {
    padding-right: 18px;
  }

  .table thead tr {
    background: var(--table-head);
  }

  .table th {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
  }

  .table td {
    border-top: 1px solid var(--line-soft);
  }

  .table td:first-child {
    font-weight: 700;
    color: var(--ink);
  }
}

/* Contents in the left column; the link of the section in view is marked
   where the browser supports scroll markers (no script). */
@media (min-width: 1024px) {
  .doc-layout {
    padding-top: 48px;
  }

  .doc-layout.has-toc {
    display: grid;
    grid-template-columns: 220px minmax(0, 680px);
    align-items: start;
    gap: 40px;
  }

  .toc-top {
    display: none;
  }

  .toc-side {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--card);
    border-radius: 22px;
    padding: 18px 14px;
    scroll-target-group: auto;
  }

  .toc-label {
    padding: 4px 10px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--faint);
  }

  .toc-side ul {
    gap: 4px;
  }

  .toc-side a:target-current {
    background: var(--tint);
    color: var(--brand-deep);
    font-weight: 700;
  }
}

@media (min-width: 1200px) {
  .doc-layout.has-toc {
    grid-template-columns: 260px minmax(0, 680px);
    gap: 72px;
  }
}
