/* RELIO website. Mobile first; logical properties, so one sheet serves every language and both directions. html carries the
   language, data-script (latin, arab, hans), data-nav="wide" where the menu's words are long, and data-device (i18n, site.py).
   Two layouts: "doc" (licence pages: checkout, receipt, legal, one narrow column on grouped grey) and "site" (product
   and help pages: full-width sections). */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-wght.4e3fa217d3.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f2f2f7;
  --page: #fbfbfd;
  --alt: #f2f2f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, .16);
  --chip: rgba(118, 118, 128, .12);
  --segment: #ffffff;
  --navy: #18324c;
  --teal: #3fb8a8;
  --teal-soft: rgba(110, 214, 200, .18);
  --accent: #0a7a6e;
  --primary: #18324c;
  --on-primary: #ffffff;
  --ok: #1d7a35;
  --ok-soft: rgba(52, 199, 89, .14);
  --part: #0062cc;
  --part-soft: rgba(0, 122, 255, .11);
  --bad: #d70015;
  --bad-soft: rgba(255, 59, 48, .12);
  --warn: #a14a00;
  --warn-soft: rgba(255, 159, 10, .16);
  --focus: #0a84ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(24, 50, 76, .07);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 40px rgba(24, 50, 76, .12);
  --bezel: #1d1d1f;
  --radius: 18px;
  --latin: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --page: #000000;
    --alt: #0e0e10;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(84, 84, 88, .55);
    --chip: rgba(118, 118, 128, .24);
    --segment: #636366;
    --teal: #6ed6c8;
    --teal-soft: rgba(110, 214, 200, .14);
    --accent: #6ed6c8;
    --primary: #6ed6c8;
    --on-primary: #0c1c2c;
    --ok: #30d158;
    --ok-soft: rgba(48, 209, 88, .16);
    --part: #64a8ff;
    --part-soft: rgba(10, 132, 255, .2);
    --bad: #ff6961;
    --bad-soft: rgba(255, 69, 58, .16);
    --warn: #ffb340;
    --warn-soft: rgba(255, 159, 10, .18);
    --shadow: none;
    --shadow-lift: 0 0 0 1px rgba(255, 255, 255, .08);
    --bezel: #3a3a3c;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.site { background: var(--page); }

/* Only pages in Arabic letters load Vazirmatn; elsewhere the language menu draws those names in a system font. */
html[data-script="latin"] body {
  font-family: var(--latin);
  line-height: 1.55;
}
html[data-script="hans"] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; line-height: 1.7; line-break: strict; overflow-wrap: anywhere; }
/* Long words: running text may break them at four letters or more from each end; headings, questions, captions, buttons and menus
   never. Product names stay whole (site.keep_names_whole, .nb). English stays as it was set. */
html[data-script="latin"]:not([lang="en"]) :is(main p, main li) {
  hyphens: auto; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word;
}
html[data-script="latin"]:not([lang="en"]) main :is(h1, h2, h3, h4, summary, figcaption, .btn, .more, .chip, .seg, .sc-stage, .illus),
html[data-script="latin"]:not([lang="en"]) main :is(h1, h2, h3, h4, summary, figcaption, .illus) :is(p, li, span) { hyphens: manual; overflow-wrap: break-word; }
@media (max-width: 339px) {
  html[data-script="latin"]:not([lang="en"]) .doc h1 { font-size: 24px; }
  html[data-script="latin"]:not([lang="en"]) figcaption li { font-size: 12.5px; }
}
.nb.nb { hyphens: none; -webkit-hyphens: none; white-space: nowrap; }

a { color: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 640px; margin-inline: auto; padding-inline: 16px; }
.wrap.wide { max-width: 1080px; }
@media (min-width: 1240px) { .wrap.wide { max-width: 1200px; } }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }

.ic { width: 20px; height: 20px; flex: none; }
.chev { width: 14px; height: 14px; }
[dir="rtl"] .chev { transform: scaleX(-1); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 8px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.top .bar { display: flex; align-items: center; gap: 18px; height: 56px; }
/* A language that was guessed, or that the address named: this one and the other, one tap each (site.language_bar). */
.lang-bar { display: flex; justify-content: center; min-height: 44px; background: var(--teal-soft); }
.lang-bar form { display: flex; gap: 4px; }
.lang-bar button { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.lang-bar button[aria-current] { color: var(--text); }
.lang-bar .ic { width: 16px; height: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .04em; flex: none; }
.navbar { display: none; flex: 1; justify-content: center; gap: 4px; }
.navbar a {
  text-decoration: none; font-size: 14px; color: var(--muted); padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.navbar a:hover, .navbar a[aria-current] { color: var(--text); }
.navbar a[aria-current] { font-weight: 700; }
.tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
/* The language menu: a globe and this page's language; it opens every language by its own name, in one form (POST /lang). */
.langs { position: relative; flex: none; background: none; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
.langs summary {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 0 11px; border-radius: 999px; cursor: pointer;
  background: var(--chip); color: var(--text); font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap;
}
.langs summary .ic { width: 17px; height: 17px; }
.langs summary::after, .langs[open] summary::after { content: ""; position: absolute; inset-inline: -2px; top: calc(50% - 22px); height: 44px; }
.lang-list {
  position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 10px); width: 340px; padding: 8px; border-radius: 18px;
  background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 50px rgba(0, 0, 0, .22); border: 1px solid var(--line);
}
.lang-list form { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none;
  font: inherit; font-size: 15px; color: var(--text); text-align: start; cursor: pointer; white-space: nowrap;
}
.lang-list button:hover { background: var(--chip); }
.lang-list button[aria-current] { font-weight: 700; background: var(--teal-soft); }
.lang-list .tick, .lang-bar .tick { flex: none; color: var(--accent); }
.lang-list .tick { width: 18px; height: 18px; }
html:not([data-script="arab"]) :is(.langs, .lang-bar) :is([lang="fa"], [lang="ar"], [lang="ur"]) { font-family: Tahoma, "Geeza Pro", "Segoe UI", "Noto Sans Arabic", sans-serif; }
html:not([data-script="hans"]) :is(.langs, .lang-bar) [lang="zh-Hans"] { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
@media (max-width: 719px) {
  .langs { position: static; }
  .lang-list { inset-inline: 0; top: 100%; width: auto; padding: 10px 16px 16px; border-radius: 0; border-width: 1px 0; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; }
}
.btn-dl {
  text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
  background: var(--primary); color: var(--on-primary); padding: 6px 14px; border-radius: 999px;
}
.menu { background: none; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; color: var(--text); padding: 0;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after, .menu[open] summary::after { content: none; }
.menu .shut, .menu[open] .open { display: none; }
.menu[open] .shut { display: block; }
.menu .ic { width: 22px; height: 22px; }
/* The header's backdrop filter makes it the containing block, so the drawer hangs from the header itself. */
.btn-dl, .jump a, .mchip { position: relative; }
.btn-dl::after, .jump a::after, .mchip::after { content: ""; position: absolute; inset-inline: -2px; top: calc(50% - 22px); height: 44px; }
.drawer {
  position: absolute; inset-inline: 0; top: 100%; height: calc(100vh - 56px); height: calc(100dvh - 56px); overflow-y: auto;
  background: var(--page); padding: 12px 24px 40px; border-top: 1px solid var(--line);
}
.drawer a {
  display: block; text-decoration: none; font-size: 22px; font-weight: 700; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.drawer a[aria-current] { color: var(--accent); }
@media (min-width: 1000px) {
  html:not([data-nav="wide"]) .navbar { display: flex; }
  html:not([data-nav="wide"]) .menu { display: none; }
  html:not([data-nav="wide"]) .tools { margin-inline-start: 0; }
}
@media (min-width: 1180px) {
  .navbar { display: flex; }
  .menu { display: none; }
  .tools { margin-inline-start: 0; }
}
/* Narrow headers: the globe alone, and Download stays. Long words: the mark alone stands for the name. */
@media (max-width: 420px) {
  .langs summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .langs summary { width: 36px; padding: 0; }
  .top .bar { gap: 8px; }
  .tools { gap: 4px; }
  html[data-nav="wide"] .top .brand { width: 30px; overflow: hidden; }
  html[data-nav="wide"] .btn-dl { padding-inline: 11px; font-size: 13px; }
}
@media (max-width: 340px) { html[data-nav="wide"] .menu summary { width: 38px; } html[data-nav="wide"] .btn-dl { padding-inline: 9px; font-size: 12px; } }

/* The bar at the bottom of a phone's screen: site.js shows it once the page's first button has left. It stands over nothing:
   the page ends that much lower. --bottom-bar lifts the Pause button above it. */
.bottom-bar { display: none; }
@media (max-width: 719px) {
  html.js body.site footer { padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }
  html.bar-on { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .bottom-bar:not([hidden]) {
    position: fixed; z-index: 18; inset-inline: 0; bottom: 0; display: flex; padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--page) 86%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    transform: translateY(110%); visibility: hidden; transition: transform var(--d-base) var(--ease-out), visibility 0s linear var(--d-base);
  }
  html.bar-on .bottom-bar { transform: none; visibility: visible; transition-delay: 0s; }
  .bottom-bar a {
    flex: 1; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 2px; height: 58px; text-decoration: none;
    font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--muted); -webkit-tap-highlight-color: transparent;
  }
  .bottom-bar .ic { width: 22px; height: 22px; }
  .bottom-bar a[aria-current] { color: var(--accent); }
  .bottom-bar a:last-child { color: var(--on-primary); position: relative; isolation: isolate; }
  .bottom-bar a:last-child::before { content: ""; position: absolute; z-index: -1; inset: 6px 4px; border-radius: 16px; background: var(--primary); }
  .bottom-bar a:active { opacity: .7; }
}
@media print { .bottom-bar { display: none !important; } }

.test-ribbon {
  background: var(--warn-soft); color: var(--warn); text-align: center;
  font-size: 13px; font-weight: 700; padding: 6px 16px;
}

main { padding-block: 20px 40px; }
body.site main { padding: 0; }

h1 { font-size: 28px; line-height: 1.35; margin: 8px 0 6px; font-weight: 800; }
h2 { font-size: 19px; margin: 28px 4px 10px; font-weight: 800; }
h3 { font-size: 16px; margin: 0 0 4px; font-weight: 700; }
html[data-script="latin"] :is(h1, h2) { letter-spacing: -.015em; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.num { font-feature-settings: "tnum"; unicode-bidi: plaintext; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Cards and grouped rows (iOS inset grouped list) */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 14px;
}
.group { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; min-height: 52px; }
.row + .row { border-top: 1px solid var(--line); margin-inline-start: 18px; padding-inline-start: 0; }
.row .k { color: var(--muted); font-size: 15px; }
.row .v { font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.caption { font-size: 13px; color: var(--muted); margin: -6px 18px 16px; }


.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 8px; }
.steps li { position: relative; padding-inline-start: 44px; margin-bottom: 14px; min-height: 30px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--navy); font-weight: 800; font-size: 14px; line-height: 1;
}
:root[lang="fa"] .steps li::before { content: counter(step, persian); }
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--teal); } }

/* Plans */
.plans { display: grid; gap: 12px; margin-bottom: 14px; }
.plan {
  position: relative; display: block; cursor: pointer;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; border: 2px solid transparent;
  transition: border-color .18s ease, transform .18s ease;
}
.plan:active { transform: scale(.99); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan .name { font-weight: 800; font-size: 17px; }
.plan .price { font-weight: 800; font-size: 18px; white-space: nowrap; }
.plan .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.plan .badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--teal-soft);
  border-radius: 999px; padding: 1px 10px; margin-inline-start: 6px; vertical-align: 2px;
}
@media (prefers-color-scheme: dark) { .plan .badge { color: var(--teal); } }
.plan .tick {
  position: absolute; inset-inline-end: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); display: none;
}
.plan:has(input:checked), .plan.on { border-color: var(--teal); }
.plan input:focus-visible ~ .line .name { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.static .plan { cursor: default; }
.sec .plans .plan { padding: 22px 24px; }
.sec .plans .plan .price { font-size: 22px; }

/* Forms */
label.field { display: block; font-size: 14px; color: var(--muted); margin: 0 4px 6px; }
.inline { display: flex; gap: 8px; }
input[type="text"], input[type="search"] {
  flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none;
}
input[type="text"]:focus, input[type="search"]:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(10, 132, 255, .18); }
input.code { direction: ltr; text-align: center; letter-spacing: .08em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 14px; padding: 12px 18px; min-height: 48px;
  background: var(--teal-soft); color: var(--text);
  transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn.primary { background: var(--primary); color: var(--on-primary); width: 100%; font-size: 17px; min-height: 54px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite;
}
.btn.pill, .btn.primary.pill { width: auto; border-radius: 999px; padding: 12px 24px; min-height: 50px; font-size: 16px; }
.btn.quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.quiet:hover { background: var(--teal-soft); }
.btn.primary:hover { opacity: .92; }
.btn.off { opacity: .6; cursor: default; color: var(--muted); }
.btn .ic { width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: grid; gap: 10px; margin-top: 6px; }

/* Summary */
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; }
.total .v { font-size: 22px; font-weight: 800; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 500; }

/* Notices */
.note { border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-size: 15px; background: var(--chip); }
.note:has(> .ic) { display: flex; gap: 10px; align-items: flex-start; }
.note > .ic { margin-top: 3px; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.info { background: var(--teal-soft); }
.note .more { margin-inline-start: 4px; }

/* Result header (receipt) */
.result { text-align: center; padding: 26px 16px 8px; }
.result .icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; }
.result .icon svg { width: 34px; height: 34px; }
.result.ok .icon { background: var(--ok-soft); color: var(--ok); }
.result.bad .icon { background: var(--bad-soft); color: var(--bad); }
.result.wait .icon { background: var(--warn-soft); color: var(--warn); }
.result.wait .icon svg { animation: spin 1.6s linear infinite; }
.result h1 { font-size: 24px; }

/* Legal text */
.doc h2 { margin-top: 22px; font-size: 17px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-inline-start: 20px; margin: 0 0 12px; }

/* Disclosures (FAQ, troubleshooting) */
details { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; gap: 12px; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1.2; flex: none; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 6px; }
details .answer { padding-bottom: 8px; }
details .answer h3 { font-size: 14px; color: var(--muted); margin-top: 6px; }
details .answer p { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); background: var(--bg); }
body.site footer { background: var(--alt); }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin-bottom: 20px; }
.fcol h2 { font-size: 13px; color: var(--text); margin: 0 0 8px; letter-spacing: 0; }
.fcol ul { list-style: none; padding: 0; margin: 0 0 12px; }
.fcol li { margin-bottom: 6px; }
.fcol a, footer nav a { text-decoration: none; }
.fcol a:hover { color: var(--text); text-decoration: underline; }
.fnote { max-width: 60em; }
.fend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.fend a { color: inherit; padding: 4px 0; }
.trust { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.trust img { width: 72px; height: auto; background: #fff; border-radius: 10px; }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Site layout ---------------------------------------------------------------------------------------------- */

.sec { padding: clamp(52px, 8vw, 96px) 0; }
.sec.alt { background: var(--alt); }
.sec.tight { padding: 8px 0 32px; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.2; margin: 0 0 10px; }
html[data-script="arab"] .sec-head h2 { line-height: 1.45; }
.sec-head.center { text-align: center; }
.sec-lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 42em; margin: 0; }
.sec-head.center .sec-lead { margin-inline: auto; }
.sentence { display: inline-block; }
.sec-head h2, .sec-head.center .sec-lead { text-wrap: balance; }
.h3 { font-size: 18px; margin: 0 0 8px; }
.gap { margin-top: 32px; }

.eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.more {
  display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; font-weight: 600;
}
.more:hover { text-decoration: underline; }
.more .chev { width: 13px; height: 13px; stroke-width: 2.4; }

/* Home hero */
.hero {
  text-align: center; padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 6vw, 64px); overflow: hidden; overflow: clip;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(110, 214, 200, .22), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(24, 50, 76, .06), transparent 70%),
    var(--page);
}
.display { font-size: clamp(40px, 7.4vw, 80px); line-height: 1.07; font-weight: 800; margin: 6px auto 18px; }
html[data-script="latin"] .display { letter-spacing: -.03em; }
html[data-script="arab"] .display { line-height: 1.32; }
html[data-script="hans"] .display { line-height: 1.2; }
/* The home page's first screen: words, then the moving phones (site_scenes.py H1). Beside each other on wide screens. */
.hero.first {
  padding: clamp(22px, 4vw, 56px) 0 clamp(36px, 5vw, 64px);
  background: radial-gradient(46% 46% at 84% 4%, rgba(24, 50, 76, .06), transparent 70%), var(--page);
}
.hero.first .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 40px; justify-items: center; }
.hero.first .eyebrow { margin: 0 0 2px; font-size: 14px; }
.hero.first .display { font-size: clamp(33px, 9.4vw, 60px); margin: 0 auto 10px; }
.hero.first .hero-lead { font-size: clamp(16px, 2vw, 20px); line-height: 1.6; text-wrap: balance; }
.hero.first .cta { margin: 18px 0 0; gap: 10px; }
.hero.first .sc { max-width: 430px; }
.hero-free { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.hero-free .ic { width: 18px; height: 18px; color: var(--ok); }
.hero-more { display: grid; justify-items: center; gap: 8px; }
.hero-more .req, .hero-more .beta { margin: 0; }
@media (min-width: 900px) {
  .hero.first .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; justify-items: start; text-align: start; }
  .hero.first .sc { max-width: 540px; grid-column: 2; grid-row: 1 / 3; justify-self: center; }
  .hero.first .hero-say { align-self: end; }
  .hero.first .hero-more { align-self: start; justify-items: start; }
  .hero.first .display { font-size: clamp(38px, 4.35vw, 57px); margin: 4px 0 16px; }
  .hero.first .hero-lead { margin: 0; text-wrap: pretty; }
  .hero.first .cta { justify-content: flex-start; margin-top: 26px; }
}
@media (min-width: 1200px) {
  .hero.first .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .hero.first .sc { max-width: min(600px, calc((100vh - 170px) * .94)); }
}
.hero-lead { font-size: clamp(17px, 2vw, 22px); color: var(--muted); max-width: 34em; margin: 0 auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 14px; }
.req { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.beta {
  display: inline-flex; gap: 8px; align-items: center; text-align: start;
  font-size: 14px; background: var(--teal-soft); border-radius: 999px; padding: 6px 14px; margin: 0 0 8px;
}
.beta .ic { width: 16px; height: 16px; color: var(--accent); }


/* Device frame for screenshots (1320 x 2868) */
.device { margin: 0; }
.device .screen {
  border: 7px solid var(--bezel); border-radius: 13.5% / 6.2%; overflow: hidden; background: var(--bezel);
  box-shadow: 0 30px 60px -20px rgba(24, 50, 76, .35), 0 12px 24px -12px rgba(0, 0, 0, .25);
}
.device img { width: 100%; height: auto; border-radius: 10.5% / 4.8%; }
.device figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

.shots {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 24px var(--edge) 74px; margin: -12px calc(var(--edge) * -1) -34px; scrollbar-width: none; --edge: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px calc(100% - 16px), transparent);
}
.shots::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .shots {
    --edge: clamp(16px, calc(50vw - 600px), 56px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--edge) calc(100% - var(--edge)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--edge) calc(100% - var(--edge)), transparent);
  }
}
.shots .device { flex: 0 0 200px; scroll-snap-align: center; }
@media (min-width: 720px) { .shots .device { flex-basis: 220px; } }
.shots:focus-visible { outline-offset: 6px; }
/* Arrows for mouse users (site.js unhides them when the strip overflows); touch keeps swiping. */
.shots-wrap { position: relative; }
.shots-nav {
  position: absolute; top: calc(50% - 40px); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; background: var(--card); color: var(--accent);
  box-shadow: 0 8px 24px -8px rgba(24, 50, 76, .45), 0 0 0 1px var(--line); transition: opacity .2s ease;
}
.shots-nav .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.shots-nav.prev { inset-inline-start: -12px; }
.shots-nav.prev .ic { transform: scaleX(-1); }
[dir="rtl"] .shots-nav.prev .ic { transform: none; }
.shots-nav.next { inset-inline-end: -12px; }
.shots-nav:disabled { opacity: 0; pointer-events: none; }
.shots-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: none), (pointer: coarse) { .shots-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .shots { scroll-behavior: auto; } }

/* Home below the first picture: four facts, what you can do, the dark security band, before you start */
.hm-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-facts a {
  display: flex; align-items: center; gap: 12px; min-height: 64px; height: 100%; padding: 10px 14px; border-radius: 18px; text-decoration: none;
  background: var(--card); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; line-height: 1.45; text-wrap: balance;
}
.hm-facts i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; font-size: 21px; color: var(--accent); background: var(--teal-soft); }
.hm-facts a:hover { box-shadow: var(--shadow-lift); }
@media (max-width: 400px) { .hm-facts a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 14px; } }
@media (min-width: 900px) { .hm-facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .hm-facts a { padding: 14px 18px; } }
.hm-facts + .sec { padding-top: clamp(44px, 7vw, 84px); }
.sec .sc.sc-side { margin-bottom: 34px; }
@media (max-width: 899px) { .sec .sc.sc-side, .hm-card .sc, .hm-sec .sc { max-width: 520px; } }
.hm-do { display: grid; gap: 16px; }
.hm-card { display: grid; align-content: start; grid-template-rows: subgrid; grid-row: span 2; gap: 18px; min-width: 0; padding: 24px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.hm-card > * { min-width: 0; }
.hm-say h3 { margin: 0 0 4px; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.4; }
.hm-say p { margin: 0 0 8px; color: var(--muted); text-wrap: pretty; }
.hm-tiles { list-style: none; margin: 16px 0 26px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-tiles a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px; border-radius: 22px; text-decoration: none; background: var(--card); box-shadow: var(--shadow); }
.hm-tiles a:hover { box-shadow: var(--shadow-lift); }
.hm-tiles b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.5; }
.hm-tiles span > span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.hm-tiles .chip { display: inline-block; margin: 0; font-size: 12px; }
.hm-tiles .tile-icon { display: grid; margin: 0; color: var(--accent); }
@media (min-width: 900px) {
  .hm-do { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hm-card { padding: 34px; }
  .hm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 20px 0 30px; }
  .hm-tiles a { padding: 22px; }
}
.hm-sec { color: #fff; background: radial-gradient(60% 60% at 18% 0, rgba(110, 214, 200, .2), transparent 70%), radial-gradient(50% 60% at 100% 100%, rgba(64, 132, 190, .28), transparent 70%), #0d2033; }
.hm-sec .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px 56px; }
.hm-sec .eyebrow { color: #6ed6c8; }
.hm-sec h2 { margin: 0 0 12px; font-size: clamp(30px, 3.3vw, 42px); line-height: 1.2; text-wrap: balance; }
html[data-script="arab"] .hm-sec h2 { line-height: 1.45; }
html[data-script="latin"] .hm-sec-lead { line-height: 1.5; }
.hm-sec-lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.75; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.hm-sec li .ic { flex: none; margin-top: 3px; color: #6ed6c8; }
.hm-sec ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; }
.hm-sec li { display: flex; gap: 14px; color: rgba(255, 255, 255, .8); }
.hm-sec li .ic { width: 24px; height: 24px; }
.hm-sec li b { display: block; color: #fff; font-size: 17px; }
.hm-sec .btn { margin-top: 6px; background: #6ed6c8; color: #0c1c2c; }
.hm-sec .sc-caps li { color: #fff; }
.hm-sec .sc-caps li::before { background: rgba(255, 255, 255, .22); }
.hm-sec .sc-caps li > i { background: #6ed6c8; }
@media (min-width: 900px) {
  .hm-sec .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .hm-sec .sc { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
.hm-before { list-style: none; margin: 0; padding: 8px 20px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.hm-before li { display: flex; gap: 14px; padding: 13px 0; text-wrap: pretty; }
.hm-before li + li { border-top: 1px solid var(--line); }
.hm-before .ic { width: 22px; height: 22px; margin-top: 3px; color: var(--accent); }
.hm-before a { color: var(--accent); white-space: nowrap; }

.tile-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--teal-soft); color: var(--accent);
}
.tile-icon .ic { width: 24px; height: 24px; }
/* Benefit tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 24px; }
.tile { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.tile h3 { font-size: 18px; margin: 16px 0 6px; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }


/* Pricing on the site */
.plans.n1 { grid-template-columns: minmax(0, 440px); }
@media (min-width: 720px) {
  .plans.cols { grid-template-columns: repeat(3, 1fr); }
  .plans.cols.n1 { grid-template-columns: minmax(0, 440px); }
  .plans.cols.n2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
}
.sec .caption { margin: 0 0 16px; }

.faq { margin-bottom: 18px; }

/* Closing band */
.band {
  text-align: center; color: #fff; padding: clamp(56px, 8vw, 88px) 0;
  background: linear-gradient(135deg, #18324c 0%, #144a57 60%, #1f6f68 100%);
}
.band h2 { font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 10px; }
.band p { color: rgba(255, 255, 255, .82); font-size: 18px; max-width: 34em; margin: 0 auto; }
.band-in { display: grid; gap: 30px; justify-items: center; }
.band .get-qr figcaption { max-width: 200px; margin-inline: auto; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.band .get-qr .qr { margin-inline: auto; }
@media (min-width: 900px) {
  html:not([data-device="android"]) .band-in { grid-template-columns: minmax(0, max-content) auto; justify-content: center; align-items: center; gap: 72px; }
  html:not([data-device="android"]) .band-say { max-width: 620px; text-align: start; }
  html:not([data-device="android"]) .band-say p { margin-inline: 0; }
  html:not([data-device="android"]) .band-say .cta { justify-content: flex-start; margin-bottom: 0; }
}
.band .btn.primary { background: #fff; color: #18324c; }
.band .btn.quiet { color: #fff; }
.band .btn.quiet:hover { background: rgba(255, 255, 255, .12); }

/* Page header */
.phead { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.phead h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.12; margin: 10px 0 12px; }
html[data-script="latin"] .phead h1 { letter-spacing: -.03em; }
html[data-script="arab"] .phead h1 { line-height: 1.4; }
.phead .lead { font-size: clamp(17px, 1.8vw, 21px); max-width: 38em; margin: 0; }
.phead-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #1f6f68, #18324c);
  box-shadow: 0 10px 24px -8px rgba(24, 50, 76, .45);
}
.phead-icon .ic { width: 30px; height: 30px; }
.phead .eyebrow { margin-top: 16px; }

/* Jump links */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jump a {
  text-decoration: none; font-size: 14px; color: var(--muted); background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.jump a:hover { color: var(--text); }

.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
.split .toc .jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0; scrollbar-width: none; }
.split .toc .jump a { white-space: nowrap; }
@media (min-width: 960px) {
  .split { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .split .toc .jump {
    position: sticky; top: 80px; flex-direction: column; flex-wrap: nowrap; gap: 2px; overflow: visible;
  }
  .split .toc .jump a { white-space: normal; background: none; box-shadow: none; border: 0; border-radius: 8px; padding: 6px 10px; }
  .split .toc .jump a:hover { background: var(--chip); }
}

/* Feature cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); margin-bottom: 16px; }
.cards .card { margin: 0; }
@media (min-width: 820px) {
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.link-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 22px;
  transition: transform var(--d-base) var(--ease-spring), box-shadow var(--d-base) var(--ease-out);
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.link-card h3, .card h3:has(> .ic) { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.link-card h3 .ic, .card h3 > .ic { color: var(--accent); }
.link-card p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.chip {
  font-size: 12px; font-weight: 600; line-height: 1.6; padding: 1px 9px; border-radius: 999px;
  background: var(--chip); color: var(--muted);
}
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.6;
  padding: 1px 9px; border-radius: 999px;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); background: var(--ok-soft); }
/* The one word on a feature without proof yet: the platform chips' shape, outlined. */
.chip.beta-mark { background: none; box-shadow: inset 0 0 0 1px var(--line); flex: none; }


/* Setup */
.flow { min-width: 0; }
.step-card { margin-bottom: 12px; scroll-margin-top: 76px; }
.step-card summary > span { display: grid; gap: 2px; min-width: 0; }
.step-card summary .h3 { margin: 0; }
.step-card summary .small { font-weight: 400; margin: 0; }
.step-card .meta { margin: 0 0 12px; }
.intro .small { display: flex; gap: 6px; align-items: center; margin: 0; }
.intro .small .ic { width: 16px; height: 16px; }
.related { font-size: 14px; color: var(--muted); margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.related span { font-weight: 600; }
.related a { color: var(--accent); text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Guides index */
.search {
  display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 4px 14px; max-width: 560px; margin-bottom: 28px; color: var(--muted);
}
.search input { border: 0; background: transparent; box-shadow: none !important; padding: 10px 0; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (scripting: none) { .search { display: none; } }
.gcols { columns: 2 380px; column-gap: 28px; }
.ggroup { break-inside: avoid; margin-bottom: 30px; }
.ggroup h2 { display: flex; gap: 10px; align-items: center; margin: 0 4px 10px; font-size: 20px; }
.ggroup h2 .ic { color: var(--accent); }
.group.list { margin: 0; }
.grow {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 52px; text-decoration: none; color: inherit;
}
.grow + .grow { border-top: 1px solid var(--line); }
.grow:hover { background: var(--chip); }
.grow .t { flex: 1; font-weight: 600; font-size: 15px; }
.grow .m { display: none; gap: 4px; }
.grow .m .chip { display: none; }
.grow .chev { color: var(--muted); }
@media (min-width: 560px) { .grow .m { display: flex; } }

/* Guide page */
.guide { max-width: 800px; }
.guide-head .wrap { max-width: 800px; }
.guide-pic { max-width: 440px; margin: 0 auto 26px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 18px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--accent); }
.crumbs .chev { width: 12px; height: 12px; }
.guide-head .meta { margin: 4px 0 14px; }
.facts { display: grid; gap: 12px; margin-bottom: 14px; }
.fact { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; }
.fact h2 { font-size: 13px; color: var(--muted); margin: 0 0 4px; font-weight: 700; letter-spacing: 0; }
.fact p { margin: 0; font-size: 15px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.guide .card { padding: 22px 24px; }
.guide .card > h2 { margin: 0 0 14px; font-size: 20px; }
.bullets { padding-inline-start: 20px; margin: 0; }
.bullets li { margin-bottom: 8px; }
.bullets li::marker { color: var(--muted); }
.bullets.small { font-size: 13px; color: var(--muted); }
.guide .card details { box-shadow: none; background: var(--alt); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.pager a {
  display: flex; flex-direction: column; text-decoration: none; background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 18px; font-weight: 600;
}
.pager a.g_next { grid-column: 2; text-align: end; }
.pager a:hover { box-shadow: var(--shadow-lift); }

/* Troubleshooting and FAQ groups */
.qgroup { margin-bottom: 30px; }
.qgroup h2 { margin: 0 4px 12px; font-size: 22px; }
.still { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.still > .ic { width: 30px; height: 30px; color: var(--accent); }
.still p { color: var(--muted); }

/* Licence */
.covers { list-style: none; padding: 20px 22px; margin: 0 0 18px; display: grid; gap: 12px; }
.covers li { display: flex; gap: 12px; align-items: flex-start; }
.covers .ic { color: var(--ok); margin-top: 3px; }
.cards.three .card h3 { margin-bottom: 8px; }
.cards.three .card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Download */
/* iPhone, Android, scan: that order on a phone; on a wide screen the long Android card stands beside the other three. */
.dl-grid { align-items: start; }
.dl-grid .link-card { margin: 0; }
@media (min-width: 820px) {
  .cards.dl-grid { grid-template-rows: auto auto 1fr; }
  .dl-grid > #android { grid-column: 2; grid-row: 1 / 4; }
  [data-device="android"] .dl-grid > #android { grid-column: 1; }
}
.dl-rail.dl-own-android, [data-device="android"] .dl-rail:not(.dl-own-android) { display: none; }
[data-device="android"] .dl-rail.dl-own-android { display: block; }
/* How an app is got (site_get.py): the code to scan, or on the phone itself the button. Always whole pixels per cell (--n cells). */
.get-qr { --cell: 5px; margin: 0; }
.get-qr .qr { width: calc(var(--n) * var(--cell)); height: auto; max-width: 100%; border-radius: 12px; background: #fff; forced-color-adjust: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.get-qr figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; text-wrap: balance; }
html[data-script="hans"] .get-qr figcaption { word-break: keep-all; }
.get-print { display: none; }
@media (min-width: 700px) { .get-qr { --cell: 6px; } }
@media (min-width: 1000px) { .get-qr { --cell: 7px; } }
:is(.get-band, .get-hero) .get-qr { --cell: 4px; }
.get-hero { display: none; }
@media (min-width: 700px) { [data-device="other"] .get-hero { display: block; } }
.get-hero .get-qr { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; text-align: start; }
@media (min-width: 900px) { .get-hero .get-qr { justify-content: flex-start; } }
.get-hero .get-qr .qr { flex: none; box-shadow: 0 0 0 1px var(--line); }
.get-hero .get-qr figcaption { margin: 0; max-width: 12em; font-size: 14px; line-height: 1.45; text-wrap: balance; }
.get-step { margin: 0 0 18px; }
.get-card { margin: 18px 0 10px; }
.get.get-card .cta, .get.get-step .cta { margin: 0; justify-content: flex-start; }
.get-ios .get-scan { margin-bottom: 18px; }
.get-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin: 4px 0 0; }
.get-ways a, .get-ways button, .get-inapp a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; padding: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; }
.get-ways .ic { width: 17px; height: 17px; }
.get-inapp { margin: 10px 0 0; font-size: 15px; }
html:not([data-device="android"]) .get-go, [data-device="android"] .get-apk .get-scan, [data-device="android"] .mk-type { display: none; }
html:not([data-device="other"]) .get-ios .get-scan { display: none; }
[data-device="android"] .get-ios .btn.primary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
[data-device="apple"] #iphone .dl-mine, [data-device="android"] #android .dl-mine { display: inline; }
.dl { padding: 26px; }
.dl-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.dl-head h2 { margin: 0; font-size: 22px; }
.dl-head .small { margin: 0; }
.dl .cta { justify-content: flex-start; margin: 18px 0 10px; }
.dl h3 { margin: 22px 0 12px; font-size: 17px; }
.dl .note { margin-top: 18px; }
.su-help { display: grid; gap: 44px; }
.su-help .sc { max-width: 440px; }
@media (min-width: 900px) { .su-help { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } .su-help .sc-block { grid-template-rows: auto auto 1fr; } }
.dl-top { padding-bottom: 8px; }
.dl-top .wrap { display: grid; gap: 22px; }
.dl-top .beta { margin: 14px 0 0; }
.dl-rail { max-width: 860px; }
.dl-cards.dl-cards { padding-top: 26px; }
.dl-head + p { margin-top: 12px; }
.dl-n { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--accent); }
.dl-mine { display: none; background: var(--teal-soft); color: var(--accent); }
.dl-only { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.dl-only .ic { color: var(--ok); }
.dl .dl-pp { margin: 18px 0 0; box-shadow: none; background: var(--alt); }
.dl-check { display: grid; gap: 34px; }
.dl-check > * { min-width: 0; }
.dl-check h3 { margin: 0 0 8px; font-size: 19px; }
.dl-check .sx-file { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dl-check .sx-cert { grid-template-columns: repeat(4, max-content); }
@media (min-width: 900px) {
  .dl-check { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
}

/* Two lists under two tabs (site.js). Until the script runs the first panel shows, or the one the address names; where
   scripts are off both stand under their titles and the row leads to them. */
.ptools { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-bottom: 22px; }
.ptools .search { flex: 1 1 300px; max-width: none; margin: 0; }
.ptools .note { flex: 1 0 100%; margin: 0; }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; flex: 0 1 340px; border-radius: 14px;
  background: var(--chip);
}
.seg a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 11px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a:hover { color: var(--text); }
.seg .n { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--teal-soft); color: var(--text); font-size: 13px; line-height: 20px; text-align: center; }
.tabs:not(.ready) .seg a { color: var(--text); }
.seg a[aria-selected="true"] { background: var(--segment); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sec .tabs > .ptools > .seg:only-child { margin-inline: auto; }
.tpanel { scroll-margin-top: 150px; }
.tpanel-t { margin: 34px 4px 16px; font-size: 28px; }
.tabs.ready .tpanel-t { display: none; }
@media (scripting: enabled) {
  .tabs:not(.ready) .tpanel-t { display: none; }
  .tabs:not(.ready) > .t1:not(:target, :has(:target)) { display: none; }
  .tabs:not(.ready):has(> .t1:target, > .t1 :target) > .t0 { display: none; }
  .tabs:not(.ready):not(:has(> .t1:target, > .t1 :target)) .seg a:first-child,
  .tabs:not(.ready):has(> .t1:target, > .t1 :target) .seg a:last-child { background: var(--segment); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
}
@media (max-width: 759px) { .seg { flex: 1 0 100%; } }
@media (min-width: 760px) { .tpanel { scroll-margin-top: 96px; } }

/* Tested phones (/phones and the home page): a picture, the name, the version line and Tested */
.pfams { position: relative; display: grid; gap: 28px 12px; }
.pfam { min-width: 0; }
.pfam h3 { font-size: 18px; margin: 0 4px 12px; }
.pgrid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 20px 10px 18px;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
}
.pcard:target { box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.ppic { display: block; width: 100%; height: 150px; margin-bottom: 14px; }
.ppic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pcard :is(h3, h4) { font-size: 16px; line-height: 1.3; margin: 0; unicode-bidi: isolate; overflow-wrap: anywhere; }
[id^="phone-redmi"][id$="5g"] h3 { text-wrap: balance; }
.pcard p { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.pcard .status { margin-top: auto; font-size: 13px; padding: 2px 11px; }
.pline { max-width: 46em; margin: 22px 0 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.pline.center { margin-inline: auto; }
.pline + .center { margin-top: 10px; }
.pgrid.mini + .center:not(.pline) { margin-top: 22px; }
.plinks { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px 0 0; }
.dl-phones { margin: 12px 0 0; }
@media (max-width: 379px) { .pcard { padding-inline: 6px; } .pcard :is(h3, h4) { font-size: 15px; } }
/* On a phone the home page's cards and the iPhones are small, three in a row; on Home the last place leads to the list.
   The iPhones are one plain grid there, and on every screen while something is searched; their families stay headings for
   screen readers. */
.pgrid.mini .pmore { display: none; }
@media (max-width: 759px) {
  .pgrid.mini, .pfams { gap: 8px; }
  .pfams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfam, .pfam .pgrid { display: contents; }
  .pfam h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :is(.pgrid.mini, .pfams) .pcard { padding: 12px 6px; border-radius: 18px; }
  :is(.pgrid.mini, .pfams) .ppic { height: 92px; margin-bottom: 8px; }
  :is(.pgrid.mini, .pfams) h4 { font-size: 13px; }
  :is(.pgrid.mini, .pfams) p { font-size: 12px; margin-bottom: 6px; }
  :is(.pgrid.mini, .pfams) .status { font-size: 12px; padding: 1px 8px; }
  .pgrid.mini .pmore { display: flex; }
  .pmore a { display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; height: 100%; min-height: 120px; border-radius: 18px; border: 2px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
  .pmore .ic { width: 26px; height: 26px; }
  .pgrid.mini ~ .center:not(.pline) { display: none; }
  .sec { padding-block: 44px; }
  .sec.tight { padding: 8px 0 32px; }
  .how-makers nav.mchips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  .how-makers .mchip { flex: none; }
  .shots .device { flex-basis: 172px; }
  .hm-before li { font-size: 15px; line-height: 1.65; padding: 11px 0; }
}
@media (min-width: 360px) and (max-width: 759px) { .pgrid.mini, .pfams { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) {
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pfams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pfam { grid-column: span 4; display: grid; grid-template-rows: auto 1fr; }                   /* two families in a row end together */
  .pfam.two { grid-column: span 2; }
  .pfam.two .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfam.five .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pfams.searching { gap: 12px; }
  .pfams.searching :is(.pfam, .pgrid) { display: contents; }
  .pfams.searching h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 760px) and (max-width: 1099px) { .pfams:not(.searching) .five .pcard { padding-inline: 6px; } .pfams:not(.searching) .five h4 { font-size: 15px; } }
@media (min-width: 900px) {
  .pgrid { gap: 18px; }
  .pfams { gap: 40px 18px; }
  .pfams.searching { gap: 18px; }
  .pfam h3 { font-size: 21px; margin-bottom: 16px; }
  .pcard { padding: 26px 14px 22px; }
  .ppic { height: 190px; margin-bottom: 18px; }
  .pcard :is(h3, h4) { font-size: 18px; }
}

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

@media print {
  .get-scan { display: block !important; }
  .get-go, .get-ways, .get .cta, .get-inapp, .mk-type, .lang-bar { display: none !important; }
  .get-qr .qr { width: 37mm; border-radius: 0; }
  .get-print { display: block; margin-top: 4px; font-weight: 400; overflow-wrap: anywhere; }
  .top, footer, .actions, .test-ribbon, .skip, .band, .jump, .toc, .motion-toggle, .mk-rail { display: none !important; }
  [data-motion] *, [data-motion] *::before, [data-motion] *::after { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .card, .group { box-shadow: none; border: 1px solid #ccc; }
}

/* Consent (required before paying; Iranian e-commerce law Arts. 33-38) */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 4px 14px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
@media (prefers-color-scheme: dark) { .consent input { accent-color: var(--teal); } }
.consent a { color: var(--text); }

/* A page header flows straight into its first plain section. */
.phead + .sec:not(.alt) { padding-top: 8px; }
.card p + .steps, .card .lead + .steps { margin-top: 14px; }
.card .steps + .bullets { margin-top: 12px; }

/* ---- Motion (site_motion.py; Research/Design/2026-12-03/SITE-REDESIGN.md §5) -----------------------------------------
   Only transform, opacity and short SVG stroke offsets move. The moving pictures themselves are in motion.css, which only
   the pages that have pictures load. */
:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.45, 0, .55, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);
  --ease-spring-soft: cubic-bezier(.22, 1.12, .36, 1);
  --d-quick: 200ms; --d-base: 320ms; --d-reveal: 560ms; --d-loop: 4.8s; --d-story: 12s;
  --stagger: 60ms; --rise: 16px; --dir: 1;
  --go: #248a3d;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --ease-spring-soft: linear(0, .24 8%, .62 18%, .9 30%, 1.02 42%, 1.01 56%, 1 100%); }
}
[dir="rtl"] { --dir: -1; }

/* The page's one Pause button (site.frame, site.js), in the header: it pauses every picture and covers nothing. */
.motion-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 5px solid transparent; padding: 0; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: var(--chip) padding-box;
}
.motion-toggle .g { width: 14px; height: 14px; }
.motion-toggle .mt-play, .motion-toggle[aria-pressed="true"] .mt-pause { display: none; }
.motion-toggle[aria-pressed="true"] .mt-play { display: block; }
.motion-toggle[hidden] { display: none; }

/* Reveal on scroll: hidden only when site.js runs (html.js), staggered by --i. */
html.js .reveal:not(.is-done) {
  transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-spring-soft);
  transition-delay: calc(min(var(--i, 0), 6) * var(--stagger));
}
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(var(--rise)); }
@media (prefers-reduced-motion: reduce) { html.js .reveal:not(.is-in) { opacity: 1; transform: none; } }
details[open] > .answer { animation: open-in var(--d-base) var(--ease-out); }
@keyframes open-in { from { opacity: 0; transform: translateY(-4px); } }

/* Setup by maker: chooser cards, maker chips, the step pages */
.sec.choose { padding-top: 0; }
.makers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mcard {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 20px; text-decoration: none; color: inherit;
  background: var(--card); box-shadow: var(--shadow); transition: transform var(--d-base) var(--ease-spring), box-shadow var(--d-base) var(--ease-out);
}
.mcard:hover, .mcard:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.mcard h3 { margin: 10px 0 0; font-size: 18px; }
.mcard p { margin: 0; font-size: 15px; color: var(--muted); }
.mcard p.mskins { font-size: 13px; font-weight: 600; }
.mcard p.mcheck { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
@media (max-width: 719px) {
  .makers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mcard { padding: 16px; }
  .mcard > p:not(.mskins) { display: none; }
}
.mnames { font-size: 13px; color: var(--muted); }
.mcard .go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.mchip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: transform var(--d-quick) var(--ease-spring), background-color var(--d-quick) ease;
}
.mchip:hover { background: var(--teal-soft); transform: translateY(-1px); }
.mchip[aria-current] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.how-makers { text-align: center; margin: 0 0 18px; }
.how-makers .h3 { margin: 0; }
.how-makers .mchips { justify-content: center; }
.plinks { display: flex; flex-wrap: wrap; gap: 6px 20px; }
