*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
:root {
  color-scheme: dark light;
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a6a6a6;
  --line: #2a2a2a;
  --panel: #141414;
  --outline: #5c5c5c;
  --contact-bg: #ffffff;
  --contact-fg: #000000;
  --contact-muted: #5c5c5c;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff;
    --fg: #000000;
    --muted: #5c5c5c;
    --line: #e4e4e2;
    --panel: #f4f4f2;
    --outline: #bdbdbd;
    --contact-bg: #000000;
    --contact-fg: #ffffff;
    --contact-muted: #a6a6a6;
  }
}
/* Same light palette, chosen with the theme button */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #5c5c5c;
  --line: #e4e4e2;
  --panel: #f4f4f2;
  --outline: #bdbdbd;
  --contact-bg: #000000;
  --contact-fg: #ffffff;
  --contact-muted: #a6a6a6;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-toggle svg { transition: none; }
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Geologica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { opacity: 0.75; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; }
.nav__logo { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.nav__links { display: flex; flex-wrap: wrap; gap: 24px; }
.nav__links { align-items: center; }
.nav__links a { text-decoration: none; padding: 10px 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.theme-toggle:hover { opacity: 0.75; }
.theme-toggle:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 50%; }
.theme-toggle { display: inline-grid; }
.theme-toggle svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: currentColor; transition: transform 0.3s ease, opacity 0.3s ease; }
.theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
:root[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
  :root:not([data-theme="dark"]) .theme-toggle__moon { opacity: 1; transform: none; }
}
.footer__credit { flex-basis: 100%; font-size: 12px; }

.hero { padding: 72px 0 88px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.03em; max-width: 820px; }
.lead { font-size: 20px; max-width: 620px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 24px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn svg { flex: none; }
.btn_primary { background: var(--fg); color: var(--bg); }
.btn_outline { border: 1.5px solid var(--outline); font-weight: 500; }

.section { padding: 88px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.section h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.section__intro { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section__intro p { font-size: 18px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px 32px; padding: 0; list-style: none; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 20px; font-weight: 500; }
.step h3::before { counter-increment: step; content: counter(step) " · "; color: var(--muted); }
.step p { color: var(--muted); }

/* Phone mockups: coordinates traced from 1080-wide app screenshots, scaled to a 232px screen */
.flow { display: grid; grid-template-columns: repeat(4, 260px); justify-content: space-between; gap: 32px; padding: 0; list-style: none; counter-reset: step; }
.flow__step { display: flex; flex-direction: column; gap: 10px; }
.flow__step h3 { margin-top: 18px; font-size: 20px; font-weight: 500; }
.flow__step h3::before { counter-increment: step; content: counter(step) " · "; color: var(--muted); }
.flow__step p { color: var(--muted); }
.flow__note { max-width: 720px; font-size: 18px; color: var(--muted); }

.device { position: relative; width: 260px; height: 532px; flex: none; }
.device__frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.phone { position: absolute; left: 14px; top: 13px; width: 232px; height: 506px; overflow: hidden; border-radius: 34px; background: #ffffff; color: #000000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.phone img { display: block; }
.phone_camera { background: #a9a9a9; color: #ffffff; }
.phone__icon { position: absolute; width: 22px; height: 22px; }
.phone__icon_tl { left: 12px; top: 37px; }
.phone__icon_tr { right: 12px; top: 37px; }
.phone__icon_bl { left: 25px; top: 453px; }
.phone__icon_br { right: 25px; top: 453px; }
.phone__viewfinder { position: absolute; left: 0; right: 0; top: 156px; height: 232px; }
.phone__viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.phone__viewfinder::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255,255,255,.8) calc(33.33% - 0.5px), rgba(255,255,255,.8) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.8) calc(66.66% - 0.5px), rgba(255,255,255,.8) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
  linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255,255,255,.8) calc(33.33% - 0.5px), rgba(255,255,255,.8) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.8) calc(66.66% - 0.5px), rgba(255,255,255,.8) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)); }
.phone__shutter { position: absolute; left: 96px; top: 444px; width: 40px; height: 40px; border-radius: 50%; background: #ffffff; box-shadow: inset 0 0 0 4px #ffffff, inset 0 0 0 8px #000000; }
.phone__back { position: absolute; left: 12px; top: 37px; width: 22px; height: 22px; }
.phone__print { position: absolute; left: 12px; top: 106px; width: 208px; height: 252px; background: linear-gradient(#e8e8e6, #d9d9d7); }
.phone__print img { position: absolute; left: 11px; top: 14px; width: 186px; height: 186px; object-fit: cover; }
.phone__place { position: absolute; left: 0; right: 0; top: 214px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: #2b2b2b; }
.pin { width: 13px; height: 13px; }
.phone__buttons { position: absolute; left: 12px; right: 12px; top: 457px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.phone_received .phone__buttons { top: 424px; }
.phone__btn { display: flex; align-items: center; justify-content: center; height: 29px; border-radius: 15px; border: 1px solid #9a9a9a; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.phone__btn_dark { background: #000000; border-color: #000000; color: #ffffff; }
.phone__link { position: absolute; left: 0; right: 0; text-align: center; font-size: 8px; text-transform: uppercase; }
.phone__link_report { top: 467px; }
.phone__link_block { top: 484px; }
.phone__exchange { position: absolute; left: 44px; top: 196px; width: 144px; height: 144px; }
.phone__status { position: absolute; left: 0; right: 0; top: 374px; text-align: center; font-size: 10px; }

@media (max-width: 1079px) {
  .flow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 260px; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 6px 16px; margin: -8px -6px 0; }
  .flow__step { scroll-snap-align: start; }
}
.step p { color: var(--muted); }

.rules { display: flex; flex-wrap: wrap; gap: 32px; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 4px; background: var(--panel); }
.panel_do { flex: 1 1 300px; }
.panel_dont { flex: 2 1 420px; }
.panel h3 { font-size: 22px; }
.panel ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.verdict { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.verdict__title { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.verdict p:last-child { color: var(--muted); }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.faq__item { display: flex; flex-direction: column; gap: 8px; }
.faq__item h3 { font-size: 18px; }
.faq__item p { color: var(--muted); }

.contact { margin-bottom: 88px; padding: 56px 48px; border-radius: 4px; background: var(--contact-bg); color: var(--contact-fg); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.contact__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.contact h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.contact p { font-size: 17px; color: var(--contact-muted); }
.contact .btn { background: var(--contact-fg); color: var(--contact-bg); min-height: 52px; padding: 0 28px; font-size: 17px; }

.footer { border-top: 1px solid var(--line); }
.footer .container { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 600px) {
  .doc { padding: 32px 0 64px; font-size: 18px; }
  .hero { padding: 48px 0 64px; }
  .lead { font-size: 18px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 32px; }
  .panel { padding: 24px; }
  .contact { padding: 32px 24px; margin-bottom: 64px; }
  .contact h2 { font-size: 28px; }
}

.notes { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.notes li { color: var(--muted); }

/* "#top" is the HTML spec's built-in anchor for the top of the document */
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.to-top svg { width: 14px; height: 14px; }
.doc .to-top { margin-top: 40px; text-decoration: none; }
main > .to-top { margin: -48px 0 88px; }

/* Legal docs are mostly read inside the app's in-app browser on phones: larger text, short measure */
.doc { max-width: 720px; padding: 48px 0 88px; font-size: 17px; line-height: 1.65; }
.doc h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.doc h2, .doc h3 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; }
.doc p, .doc ul, .doc ol { margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
