/* SibCheck, the chosen design direction (Jaryan). Every colour, font, radius, shadow strength,
   transparency and size step is a token (var(--…)) rendered into :root from
   src/web/theme.ts; this file holds no raw colour (a test enforces it). */

/* ------------------------------------------------------------ fonts (OFL, self-hosted) */
@font-face { font-family: 'Poppins'; src: url('/static/fonts/Poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/static/fonts/Poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/static/fonts/Poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/static/fonts/Poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/static/fonts/Poppins-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/static/fonts/GeistMono-VF.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--c-ground); }
body { margin: 0; min-height: 100dvh; background: var(--c-ground); color: var(--c-ink); font-family: var(--font-body); font-size: var(--z-text-lg); line-height: 1.85; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-blue); text-decoration: none; }
button { font-family: var(--font-button); cursor: pointer; color: inherit; }
bdi.en, .en { font-family: var(--font-latin); }
/* A Latin run inside Persian text (iCloud, IMEI) sits on the Persian line without making it taller:
   the Latin font is taller than the Persian one, and a taller line pushed the text below its icon. */
bdi.en { line-height: 1; }
.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-number); }
.num-ltr { unicode-bidi: isolate; direction: ltr; font-family: var(--font-number); white-space: nowrap; }
.one-line { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.i { flex: none; display: block; }
.js-text { display: none; }
.muted { color: var(--c-muted); }
.small { font-size: var(--z-text-sm); color: var(--c-muted); }
.center { display: flex; justify-content: center; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-blue) 55%, transparent); outline-offset: 2px; }

.app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--c-ground); overflow-x: clip; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.has-bottom-bar .app { padding-bottom: 0; }

/* ------------------------------------------------------------ the blue grid */
.grid-bg { position: relative; background: var(--c-blue); color: var(--c-on-dark); overflow: hidden; isolation: isolate; }
.grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--c-on-dark) var(--a-grid), transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c-on-dark) var(--a-grid), transparent) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, var(--c-ink) 45%, transparent); mask-image: linear-gradient(180deg, var(--c-ink) 45%, transparent); }
.grid-bg::after { content: ""; position: absolute; z-index: -1; top: -130px; left: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-glow) var(--a-glow), transparent), transparent); }

/* ------------------------------------------------------------ announcement */
.announce { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--c-dark); color: var(--c-on-dark); font-size: var(--z-text-md); font-weight: 700; line-height: 1.7; }
.announce .i { flex: none; margin-top: calc((var(--z-text-md) * 1.7 - 18px) / 2); color: var(--c-mint); }
.announce ~ .app .hero, .announce ~ .app .head { padding-top: 0; }

/* ------------------------------------------------------------ header pieces */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--c-on-dark); font-weight: 800; font-size: 21px; line-height: 1.4; }
.brand-ink { color: var(--c-ink); font-size: 18px; }
.logo-body { fill: var(--c-logo-mark); }
.logo-leaf { fill: var(--c-logo-leaf); }
.logo-check { fill: none; stroke: var(--c-logo-check); stroke-width: 5.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-tile { fill: var(--c-card); }
.logo-mono .logo-body { fill: var(--c-on-dark); }
.logo-mono .logo-leaf { fill: var(--c-mint); }
.logo-mono .logo-check { stroke: var(--c-blue); }

.pill-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-small); background: color-mix(in srgb, var(--c-on-dark) var(--a-glass), transparent); color: var(--c-on-dark); font-size: var(--z-text-base); font-weight: 700; line-height: 1.4; border: 0; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-small); background: color-mix(in srgb, var(--c-on-dark) var(--a-glass), transparent); color: var(--c-on-dark); display: inline-flex; align-items: center; justify-content: center; border: 0; }
.icon-btn-soft { flex: none; width: 44px; height: 44px; border-radius: var(--r-small); background: var(--c-ground); color: var(--c-muted); display: inline-flex; align-items: center; justify-content: center; border: 0; }

.head { padding-top: env(safe-area-inset-top); padding-bottom: 26px; border-radius: 0 0 32px 32px; }
.appbar { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, max-content) minmax(max-content, 1fr); align-items: center; gap: 8px; height: 68px; padding: 0 16px; }
/* Narrow phones: the back button is its arrow alone (the word stays for screen readers), so a long title never runs into it. */
@media (max-width: 420px) {
  .appbar-start [data-back] { width: 44px; padding: 0; justify-content: center; }
  .appbar-start [data-back] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.appbar-start { justify-self: start; display: flex; }
.appbar-end { justify-self: end; display: flex; gap: 8px; }
.appbar-title { font-size: var(--z-text-lg); font-weight: 800; line-height: 1.5; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }

/* ------------------------------------------------------------ home hero */
.hero { padding: env(safe-area-inset-top) 20px 92px; border-radius: 0 0 var(--r-hero) var(--r-hero); }
.hero .top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.chip-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 12px; border-radius: var(--r-chip); background: color-mix(in srgb, var(--c-on-dark) var(--a-glass), transparent); font-size: var(--z-text-md); font-weight: 700; line-height: 1.7; }
.chip-live > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-mint) 22%, transparent); animation: live-dot 2.4s ease-in-out infinite; }
.hero-slogan { margin-top: 16px; color: var(--c-mint); font-size: var(--z-text-lg); font-weight: 800; line-height: 1.6; }
.hero h1 { margin: 4px 0 8px; font-size: var(--z-text-5xl); line-height: 1.5; font-weight: 800; text-wrap: balance; }
.hero-text { font-size: var(--z-text-base); line-height: 1.9; color: color-mix(in srgb, var(--c-on-dark) 90%, transparent); }

/* rolling digits */
.counter { display: inline-flex; direction: ltr; align-items: center; line-height: 1.2; }
.reel { display: inline-flex; justify-content: center; height: 1.2em; overflow: hidden; position: relative; transition: width .9s cubic-bezier(.2, .9, .25, 1.12); }
.reel-strip { flex: none; display: flex; flex-direction: column; align-items: center; transition: transform .9s cubic-bezier(.2, .9, .25, 1.12); }
.reel-strip > span { display: block; height: 1.2em; line-height: 1.2em; }

/* ------------------------------------------------------------ the check form */
.check-card { position: relative; z-index: 2; margin: -64px 16px 0; padding: 18px; border-radius: var(--r-card-lg); background: var(--c-card); box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--c-shadow) var(--s-card), transparent); display: flex; flex-direction: column; gap: 12px; }
.field-label { font-size: var(--z-text-md); font-weight: 700; color: var(--c-muted); line-height: 1.6; }
.field { width: 100%; height: var(--z-control-h); border: 0; border-radius: var(--r-control); padding: 0 16px; background: var(--c-ground); box-shadow: inset 0 0 0 1px var(--c-line); font-family: var(--font-input); font-size: max(16px, var(--z-text-lg)); line-height: normal; color: var(--c-ink); outline: none; transition: box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: var(--c-placeholder); font-family: var(--font-body); opacity: 1; }
.field:focus { box-shadow: inset 0 0 0 2px var(--c-blue), 0 0 0 4px color-mix(in srgb, var(--c-blue) 14%, transparent); }
.field-invalid { box-shadow: inset 0 0 0 2px var(--c-red); }
.field-id, .field-ltr { text-align: right; letter-spacing: .3px; }
.field-id:placeholder-shown, .field-ltr:placeholder-shown { direction: rtl; letter-spacing: 0; }
.field-code { text-align: center; font-size: 22px; letter-spacing: 8px; font-family: var(--font-mono); }
.field-code:placeholder-shown { letter-spacing: 0; font-size: max(16px, var(--z-text-lg)); }
.field-error { display: block; margin: 0; color: var(--c-red-ink); font-size: var(--z-text-md); font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.hint { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--z-text-md); line-height: 1.8; color: var(--c-muted); }
.hint .i { flex: none; margin-top: calc((var(--z-text-md) * 1.8 - 16px) / 2); color: var(--c-blue); }
.hint > span { min-width: 0; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--z-button-h); padding: 6px 18px; border: 0; border-radius: var(--r-button); font-family: var(--font-button); font-size: var(--z-text-lg); font-weight: 800; line-height: 1.45; text-align: center; transition: transform .12s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-block { display: flex; width: 100%; }
.btn-label { text-wrap: balance; }
.btn-primary { background: var(--c-blue); color: var(--c-on-dark); box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--c-blue) var(--s-button), transparent); }
.btn-soft { background: var(--c-soft); color: var(--c-blue); }
.btn-white { background: var(--c-card); color: var(--c-ink); }
.btn-outline { background: transparent; color: var(--c-blue); box-shadow: inset 0 0 0 1.5px var(--c-blue); }
.btn-ghost { background: transparent; color: var(--c-blue); }
.btn[disabled], .btn.is-busy { opacity: .7; pointer-events: none; }
.btn.is-busy .btn-label::after { content: ""; display: inline-block; width: 1.4em; text-align: start; animation: busy-dots 1s steps(4, end) infinite; }
.btn-go { justify-content: space-between; min-height: var(--z-control-h); padding: 0 20px 0 10px; font-size: var(--z-text-xl); font-weight: 700; }
.go-arrow { width: 38px; height: 38px; border-radius: var(--r-inner); background: color-mix(in srgb, var(--c-on-dark) var(--a-glass-strong), transparent); display: flex; align-items: center; justify-content: center; }
.btn-go.is-busy .go-arrow { animation: go-pulse 1s ease-in-out infinite; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--c-blue); font-size: var(--z-text-md); font-weight: 700; font-family: var(--font-button); }
.link-btn[disabled] { color: var(--c-muted); }
.link-btn .when-waiting { display: none; }
.link-btn[disabled] .when-ready { display: none; }
.link-btn[disabled] .when-waiting { display: inline; }
.inline-form { display: contents; }
.stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* ------------------------------------------------------------ sections */
.section { padding: 0 16px; }
.sec-head { display: flex; flex-direction: column; gap: 2px; margin: 34px 4px 14px; }
.sec-head h2 { font-size: var(--z-text-3xl); font-weight: 800; line-height: 1.5; }
.sec-head p { font-size: var(--z-text-md); color: var(--c-muted); }
.card { background: var(--c-card); border-radius: var(--r-card); padding: 18px; }

/* plans */
.plan-full { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-card-lg); background: var(--c-dark); color: var(--c-on-dark); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--c-shadow) 70%, transparent); }
.plan-full::before { content: ""; position: absolute; z-index: -1; top: -90px; left: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-blue) var(--a-dark-glow), transparent), transparent); }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-full h3 { font-size: var(--z-text-2xl); font-weight: 800; line-height: 1.5; }
.tag { padding: 2px 12px; border-radius: var(--r-chip); background: var(--c-blue); color: var(--c-on-dark); font-size: var(--z-text-sm); font-weight: 700; line-height: 1.9; white-space: nowrap; }
.incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--z-text-base); color: var(--c-on-dark-soft); }
.incl li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.incl .ok { margin-top: calc((var(--z-text-base) * 1.7 - 22px) / 2); }
.incl .ok { flex: none; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--c-mint) 16%, transparent); color: var(--c-mint); display: flex; align-items: center; justify-content: center; }
.price { display: flex; align-items: baseline; gap: 6px; font-size: var(--z-text-5xl); font-weight: 800; line-height: 1.3; }
.price .num { font-weight: 800; }
.price small { font-size: var(--z-text-md); font-weight: 500; opacity: .8; }
.coop { align-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; font-size: var(--z-text-md); font-weight: 700; text-align: center; line-height: 1.6; }
.plan-full .coop { color: var(--c-link-on-dark); }
.plans-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.plans-2.plans-1 { grid-template-columns: minmax(0, 1fr); }
.plan { border-radius: var(--r-plan); background: var(--c-card); padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px color-mix(in srgb, var(--c-shadow) var(--s-soft), transparent); }
.plan h3 { font-size: var(--z-text-xl); font-weight: 800; line-height: 1.6; }
.plan p { font-size: var(--z-text-sm); line-height: 1.8; color: var(--c-muted); }
.plan .warn { align-self: flex-start; padding: 1px 9px; border-radius: var(--r-chip); background: var(--c-amber-soft); color: var(--c-amber-ink); font-size: var(--z-text-xs); font-weight: 700; line-height: 1.9; }
.plan .price { font-size: var(--z-text-3xl); margin-top: auto; padding-top: 2px; }
.plan .price small { font-size: var(--z-text-sm); }
.plan .btn { min-height: 44px; font-size: var(--z-text-base); margin-top: 4px; }

/* showcase phone (iPhone 18 Pro Max proportions, small Dynamic Island) */
.show { margin-top: 30px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 16px 8px; }
.show::before { content: ""; position: absolute; top: 40px; left: 50%; width: 380px; height: 380px; margin-left: -190px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-blue) 16%, transparent), transparent); }
.show h2 { position: relative; font-size: var(--z-text-2xl); font-weight: 800; text-align: center; }
.show .cap { position: relative; margin: -10px 0 0; font-size: var(--z-text-md); color: var(--c-muted); text-align: center; }
.phone { position: relative; width: 236px; height: 500px; border-radius: 52px; padding: 3px; background: linear-gradient(135deg, var(--c-device-frame-light) 0%, var(--c-device-frame-dark) 22%, var(--c-device-frame-light) 48%, var(--c-device-frame-dark) 72%, var(--c-device-frame-light) 100%); box-shadow: 0 50px 60px -40px color-mix(in srgb, var(--c-shadow) 55%, transparent), 0 18px 30px -20px color-mix(in srgb, var(--c-shadow) 35%, transparent); }
.phone .btn-side { position: absolute; width: 3px; border-radius: 2px; background: var(--c-device-frame-dark); }
.phone .l1 { left: -2px; top: 104px; height: 26px; }
.phone .l2 { left: -2px; top: 146px; height: 44px; }
.phone .l3 { left: -2px; top: 198px; height: 44px; }
.phone .r1 { right: -2px; top: 150px; height: 68px; }
.phone .r2 { right: -2px; top: 292px; height: 40px; }
.bezel { width: 100%; height: 100%; border-radius: 49px; background: var(--c-device-bezel); padding: 5px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--c-ground); display: flex; flex-direction: column; font-size: 11px; line-height: 1.6; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, color-mix(in srgb, var(--c-device-glare) 18%, transparent) 0%, transparent 32%); pointer-events: none; }
.island { position: absolute; top: 9px; left: 50%; width: 52px; height: 16px; margin-left: -26px; border-radius: 10px; background: var(--c-device-bezel); z-index: 3; }
.s-head { background: var(--c-blue); color: var(--c-on-dark); padding: 40px 14px; border-radius: 0 0 22px 22px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.s-head small { font-size: 9.5px; opacity: .85; font-weight: 600; }
.s-head b { font-size: 17px; font-weight: 700; }
.s-head > span { font-size: 9.5px; opacity: .85; }
.s-verdict { margin: -24px 12px 0; background: var(--c-card); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 10px 18px -12px color-mix(in srgb, var(--c-blue) 50%, transparent); }
.s-verdict i { width: 36px; height: 36px; border-radius: 50%; background: var(--c-green); color: var(--c-on-dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--c-green-soft); }
.s-verdict b { font-size: 12.5px; color: var(--c-green-ink); font-weight: 800; }
.s-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 12px 0; }
.s-tiles div { background: var(--c-card); border-radius: var(--r-inner); padding: 7px 9px; display: flex; flex-direction: column; }
.s-tiles small { font-size: 9px; color: var(--c-muted); }
.s-tiles b { font-size: 12px; color: var(--c-green-ink); font-weight: 800; }
.s-qr { margin: auto 12px 16px; height: 34px; border-radius: var(--r-inner); background: var(--c-dark); color: var(--c-on-dark); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* features */
.feats { display: flex; flex-direction: column; gap: 10px; }
.feat { display: flex; gap: 14px; align-items: flex-start; background: var(--c-card); border-radius: var(--r-plan); padding: 16px; }
.feat .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c-blue); color: var(--c-on-dark); display: flex; align-items: center; justify-content: center; }
.feat h3 { font-size: var(--z-text-xl); font-weight: 800; line-height: 1.6; }
.feat p { margin-top: 2px; font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.85; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--c-card); border-radius: var(--r-faq); padding: 0 16px; }
.faq summary { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: calc((56px - var(--z-text-base) * 1.7) / 2) 0; font-size: var(--z-text-base); font-weight: 700; line-height: 1.7; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; margin-top: calc((var(--z-text-base) * 1.7 - 18px) / 2); color: var(--c-muted); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: 0; padding-bottom: 14px; font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.9; }

/* footer */
.site-footer { margin-top: 30px; padding: 22px 20px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--c-muted); font-size: var(--z-text-md); }
.site-footer .slogan { color: var(--c-blue); font-weight: 800; }
.site-footer .hours { line-height: 1.8; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-small); background: var(--c-card); color: var(--c-ink); font-weight: 700; line-height: 1.4; }
.contact-link .i { color: var(--c-blue); }
.footer-nav { display: flex; gap: 10px; font-weight: 700; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* tab bar */
.tabs { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); background: color-mix(in srgb, var(--c-card) var(--a-bar), transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: var(--r-bar) var(--r-bar) 0 0; box-shadow: 0 -10px 30px -20px color-mix(in srgb, var(--c-shadow) var(--s-bar), transparent); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: var(--c-muted); font-size: var(--z-text-sm); font-weight: 700; line-height: 1.5; border-radius: var(--r-control); }
.tab.on { color: var(--c-blue); background: var(--c-soft); }

/* ------------------------------------------------------------ notices */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-small); font-size: var(--z-text-md); line-height: 1.85; }
.notice-text { display: block; min-width: 0; }
.notice-text > b { display: block; }
.notice-text > p { margin-top: 2px; }
.notice-amber { background: var(--c-amber-soft); color: var(--c-amber-ink); }
.notice-red { background: var(--c-red-soft); color: var(--c-red-ink); }
.notice-blue { background: var(--c-soft); color: var(--c-ink); }
.notice-blue > .i { color: var(--c-blue); }
.notice-green { background: var(--c-green-soft); color: var(--c-green-ink); }
.done-line { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--c-green-ink); font-size: var(--z-text-md); font-weight: 700; line-height: 1.8; text-align: center; }

/* ------------------------------------------------------------ state screens (waiting, failures, messages) */
.state-screen { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 16px 0; padding: 26px 18px 22px; background: var(--c-card); border-radius: var(--r-card); text-align: center; }
.state-screen h2 { font-size: var(--z-text-3xl); font-weight: 800; line-height: 1.55; text-wrap: balance; }
.state-screen p, .state-text { color: var(--c-muted); font-size: var(--z-text-base); line-height: 1.95; }
.state-screen .stack { margin-top: 6px; }
.state-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.state-blue { background: var(--c-soft); color: var(--c-blue); }
.state-amber { background: var(--c-amber-soft); color: var(--c-amber-ink); }
.state-red { background: var(--c-red-soft); color: var(--c-red); }
.state-green { background: var(--c-green-soft); color: var(--c-green-ink); }
.state-muted { background: var(--c-ground); color: var(--c-muted); }
.more-number { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.id-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-inner); background: var(--c-card); box-shadow: 0 1px 2px color-mix(in srgb, var(--c-shadow) var(--s-soft), transparent), inset 0 0 0 1px var(--c-line); font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.4; max-width: 100%; }
.id-chip b { font-family: var(--font-mono); font-size: var(--z-text-md); font-weight: 600; color: var(--c-ink); letter-spacing: .3px; white-space: nowrap; }

/* waiting */
.waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 16px 0; padding: 30px 18px 22px; background: var(--c-card); border-radius: var(--r-card); text-align: center; }
.waiting-logo { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.waiting-logo .halo { position: absolute; inset: 0; border-radius: 50%; background: var(--c-soft); animation: halo 2.4s ease-in-out infinite; }
.waiting-logo .logo { position: relative; }
.waiting-title { font-size: var(--z-text-3xl); font-weight: 800; line-height: 1.5; }
.waiting-text { color: var(--c-muted); font-size: var(--z-text-md); line-height: 1.9; }
.logo-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6, 0, .2, 1) infinite; }
.wsteps { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.wstep { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 10px; border-radius: var(--r-inner); color: var(--c-muted); font-size: var(--z-text-base); font-weight: 600; line-height: 1.6; opacity: .5; }
.wdot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c-ground); box-shadow: inset 0 0 0 2px var(--c-line); color: transparent; }
.wsteps { --gap: 1.5s; }
.result-plan-basic .wsteps { --gap: 1.2s; }
.wstep { --d: 0s; animation: wstep-on .35s var(--d) forwards, wstep-done .35s calc(var(--d) + var(--gap)) forwards; }
.wstep .wdot { animation: wdot-on .35s var(--d) forwards, wdot-done .35s calc(var(--d) + var(--gap)) forwards; }
.wstep:last-child { animation: wstep-on .35s var(--d) forwards; }
.wstep:last-child .wdot { animation: wdot-on .35s var(--d) forwards, wdot-pulse 1.2s calc(var(--d) + .35s) ease-in-out infinite; }
.wstep:nth-child(2) { --d: 1.5s; } .wstep:nth-child(3) { --d: 3s; } .wstep:nth-child(4) { --d: 4.5s; }
.wstep:nth-child(5) { --d: 6s; } .wstep:nth-child(6) { --d: 7.5s; } .wstep:nth-child(7) { --d: 9s; } .wstep:nth-child(8) { --d: 10.5s; }
.result-plan-basic .wstep:nth-child(2) { --d: 1.2s; } .result-plan-basic .wstep:nth-child(3) { --d: 2.4s; } .result-plan-basic .wstep:nth-child(4) { --d: 3.6s; }

/* ------------------------------------------------------------ result */
.result { display: block; }
.result-result { padding-bottom: 0; }
body[data-page="result"] .head, body[data-page="qr"] .head { padding-bottom: 150px; border-radius: 0 0 34px 34px; }
body[data-page="result"] .result-waiting, body[data-page="qr"] .result-waiting, body[data-page="result"] .result-failure, body[data-page="qr"] .result-failure { margin-top: -132px; position: relative; z-index: 2; }
.hero-device { position: relative; z-index: 2; margin-top: -150px; display: flex; flex-direction: column; align-items: center; }
.photo { position: relative; display: flex; flex-direction: column; align-items: center; }
/* Apple's photos come on transparent canvases of different shapes: a fixed height keeps the phone the same size. */
/* Our drawing of the phone's front (phone-art.ts): its own proportions at one height. */
.device-drawing { position: relative; z-index: 1; display: block; width: auto; height: 250px; max-width: calc(100vw - 32px); filter: drop-shadow(0 22px 22px color-mix(in srgb, var(--c-shadow) var(--s-photo), transparent)); }
.photo::after { content: ""; width: 140px; height: 18px; margin-top: -10px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-shadow) var(--s-photo), transparent), transparent); }
.model { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; padding: 0 16px; text-align: center; }
.model-name { font-family: var(--font-latin); font-size: var(--z-text-model); font-weight: 700; letter-spacing: -.4px; line-height: 1.35; }
.model-spec { font-family: var(--font-latin); font-size: var(--z-text-md); color: var(--c-muted); }
.model-pending, .model-missing { font-size: var(--z-text-base); color: var(--c-muted); font-weight: 700; line-height: 1.8; }
.model .id-chip { margin-top: 10px; }

.qr-note { margin: 14px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.verified { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-chip); background: var(--c-green-soft); color: var(--c-green-ink); font-size: var(--z-text-sm); font-weight: 800; line-height: 1.8; }
.qr-note .age { font-size: var(--z-text-md); color: var(--c-muted); }
.qr-note .notice { text-align: right; }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--z-text-sm); font-weight: 800; color: var(--c-blue); line-height: 1.6; }
.overall, .fmi { margin: 18px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 18px 12px; }
.badge { width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-on-dark); margin-top: 4px; }
.overall-green .badge, .fmi-off .badge { background: var(--c-green); box-shadow: 0 0 0 10px var(--c-green-soft); }
.overall-yellow .badge { background: var(--c-amber); box-shadow: 0 0 0 10px var(--c-amber-soft); }
.overall-red .badge, .fmi-on .badge { background: var(--c-red); box-shadow: 0 0 0 10px var(--c-red-soft); }
.overall-pending .badge, .fmi-pending .badge { background: var(--c-blue); box-shadow: 0 0 0 10px var(--c-soft); }
.overall-not_available .badge, .fmi-na .badge { background: var(--c-muted); box-shadow: 0 0 0 10px var(--c-ground); }
.overall-red, .fmi-on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-red) 25%, transparent), 0 20px 40px -24px color-mix(in srgb, var(--c-red) 60%, transparent); }
.overall-title, .fmi-title { margin-top: 8px; font-size: var(--z-text-4xl); font-weight: 800; line-height: 1.5; text-wrap: balance; }
.overall-green .overall-title, .fmi-off .fmi-title { color: var(--c-green-ink); }
.overall-yellow .overall-title { color: var(--c-amber-ink); }
.overall-red .overall-title, .fmi-on .fmi-title { color: var(--c-red-ink); }
.overall .sub, .fmi .sub { font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.9; }
.reasons { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-small); font-size: var(--z-text-base); font-weight: 700; text-align: right; line-height: 1.7; }
.reason-red { background: var(--c-red-soft); color: var(--c-red-ink); }
.reason-yellow { background: var(--c-amber-soft); color: var(--c-amber-ink); }
.action { width: 100%; padding: 12px 14px; border-radius: var(--r-control); background: var(--c-ground); font-size: var(--z-text-base); line-height: 1.9; text-align: right; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--c-blue); font-size: var(--z-text-base); font-weight: 800; line-height: 1.5; }
.fmi .btn { margin-top: 4px; }

.mid-box { margin: 18px 16px 0; display: flex; flex-direction: column; gap: 12px; background: var(--c-amber-soft); }
.mid-head { display: flex; align-items: flex-start; gap: 10px; color: var(--c-amber-ink); font-size: var(--z-text-lg); font-weight: 800; line-height: 1.8; }
.mid-head .i { flex: none; margin-top: calc((var(--z-text-lg) * 1.8 - 22px) / 2); }

.lost-alarm { position: relative; margin: 18px 16px 0; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-card); background: linear-gradient(135deg, var(--c-red), var(--c-red-ink)); color: var(--c-on-dark); overflow: hidden; animation: alarm-glow 2.2s ease-in-out infinite; }
.alarm-icon { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--c-on-dark) 18%, transparent); display: flex; align-items: center; justify-content: center; }
.alarm-icon .ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-on-dark) 70%, transparent); animation: ring 2.2s ease-out infinite; }
.alarm-icon .ring-2 { animation-delay: 1.1s; }
.alarm-text h2 { font-size: var(--z-text-xl); font-weight: 800; line-height: 1.6; }
.alarm-text p { font-size: var(--z-text-md); line-height: 1.85; opacity: .95; }

.block { margin: 0 16px; }
.sec-title { margin: 22px 4px 10px; font-size: var(--z-text-xl); font-weight: 800; line-height: 1.5; }
.sec-hint { margin: -6px 4px 10px; font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.8; }
.block > .notice { margin-top: 14px; }

.claims { padding: 6px 16px; }
.claim { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.claim:last-child { border-bottom: 0; }
.claim .k { width: 64px; flex: none; font-size: var(--z-text-md); color: var(--c-muted); font-weight: 600; line-height: 1.6; }
.claim .v { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--z-text-base); font-weight: 700; line-height: 1.7; }
.claim .v b { font-weight: 700; }
.claim .v .small { font-weight: 500; line-height: 1.7; }
.claim-bad .claimed { color: var(--c-red-ink); }
.finding { font-size: var(--z-text-sm); font-weight: 600; line-height: 1.8; }
.finding-red { color: var(--c-red-ink); }
.finding-amber { color: var(--c-amber-ink); }
.mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mark-ok { background: var(--c-green-soft); color: var(--c-green-ink); }
.mark-bad { background: var(--c-red-soft); color: var(--c-red); }
.mark-warn { background: var(--c-amber-soft); color: var(--c-amber-ink); }
.mark-na, .mark-info { background: var(--c-ground); color: var(--c-muted); }
.mark-pending { background: var(--c-soft); color: var(--c-blue); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 76px; }
.tile { min-height: 92px; background: var(--c-card); border: 0; border-radius: var(--r-tile); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; text-align: right; color: var(--c-ink); font-family: var(--font-body); transition: transform .12s; }
.tile:active { transform: scale(.98); }
.tile-top, .tile-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.tile-label { font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.6; }
.tile b { font-size: var(--z-text-2xl); font-weight: 800; line-height: 1.4; color: var(--c-green-ink); }
.tile .chev { color: var(--c-muted); }
.tile-bad { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-red) 35%, transparent); background: var(--c-red-tint); }
.tile-bad b { color: var(--c-red-ink); }
.tile-warn { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-amber) 40%, transparent); }
.tile-warn b { color: var(--c-amber-ink); }
.tile-na b, .tile-pending b { color: var(--c-muted); font-size: var(--z-text-xl); }

.info { padding: 4px 16px; }
.row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--c-line); background: transparent; font-family: var(--font-body); font-size: var(--z-text-base); text-align: right; color: var(--c-ink); line-height: 1.7; }
.row:last-child { border-bottom: 0; }
.row-label { color: var(--c-muted); flex: none; }
.row-value { flex: 1; min-width: 0; font-weight: 700; text-align: left; }
.row-value.muted { color: var(--c-muted); font-weight: 600; }
.row .chev { color: var(--c-muted); }

.invite { display: flex; align-items: flex-start; gap: 10px; margin: 16px 16px 0; padding: calc((52px - var(--z-text-md) * 1.85) / 2) 14px; border-radius: var(--r-small); background: var(--c-soft); font-size: var(--z-text-md); color: var(--c-ink); line-height: 1.85; }
.invite > .i { flex: none; margin-top: calc((var(--z-text-md) * 1.85 - 20px) / 2); color: var(--c-blue); }
.invite-text { flex: 1; min-width: 0; }
.invite-text b { color: var(--c-blue); font-weight: 800; white-space: nowrap; }

.advice { position: relative; overflow: hidden; isolation: isolate; margin: 18px 16px 0; padding: 16px; border-radius: var(--r-card); background: var(--c-card); box-shadow: inset 0 0 0 1.5px var(--c-soft); display: flex; flex-direction: column; gap: 10px; }
.advice::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--c-soft) 80%, transparent) 50%, transparent 65%); transform: translateX(110%); animation: sheen 6s ease-in-out 1.5s infinite; pointer-events: none; }
.advice-head { display: flex; align-items: center; gap: 10px; }
.advice-head h3 { font-size: var(--z-text-lg); font-weight: 800; line-height: 1.6; }
.advice-icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-inner); background: var(--c-soft); color: var(--c-blue); display: flex; align-items: center; justify-content: center; animation: soft-pulse 3s ease-in-out infinite; }
.advice-text { font-size: var(--z-text-md); line-height: 1.95; color: var(--c-ink); }

.registry { margin: 14px 20px 0; display: flex; gap: 8px; align-items: flex-start; font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.85; }
.registry .i { flex: none; margin-top: calc((var(--z-text-md) * 1.85 - 16px) / 2); }

.qr-card { margin: 16px 16px 0; background: var(--c-dark); color: var(--c-on-dark); border-radius: var(--r-card); padding: 16px; display: flex; align-items: center; gap: 14px; }
.qr-code { flex: none; width: 96px; height: 96px; border-radius: var(--r-control); background: var(--c-card); padding: 7px; display: flex; align-items: center; justify-content: center; }
.qr-svg { display: block; width: 82px; height: 82px; }
.qr-dark { fill: var(--c-qr); }
.qr-text p { font-size: var(--z-text-base); font-weight: 700; line-height: 1.7; }
.qr-text small { display: block; margin-top: 4px; font-size: var(--z-text-sm); color: var(--c-on-dark-muted); font-weight: 500; line-height: 1.7; }
.report { display: flex; justify-content: center; margin: 8px auto 18px; }
.report a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: var(--z-text-md); font-weight: 700; }

.bottom-bar { position: sticky; z-index: 15; bottom: 0; margin-top: 8px; background: color-mix(in srgb, var(--c-card) var(--a-bar), transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: var(--r-bar) var(--r-bar) 0 0; box-shadow: 0 -12px 30px -22px color-mix(in srgb, var(--c-shadow) var(--s-bar), transparent); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.actions .btn { min-height: var(--z-bar-button-h); font-size: var(--z-text-base); }

.shimmer { background: linear-gradient(90deg, var(--c-ground) 0%, var(--c-soft) 50%, var(--c-ground) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border-radius: 8px; padding: 0 8px; }

/* ------------------------------------------------------------ sheets */
dialog.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 480px; max-height: 88dvh; margin: 0 auto; padding: 0; border: 0; background: transparent; color: var(--c-ink); overflow: visible; }
dialog.sheet::backdrop { background: color-mix(in srgb, var(--c-shadow) var(--a-backdrop), transparent); }
dialog.sheet[open] .sheet-panel { animation: sheet-up .32s cubic-bezier(.2, .85, .25, 1) both; }
dialog.sheet[open]::backdrop { animation: fade-in .25s ease both; }
dialog.sheet.closing .sheet-panel { animation: sheet-down .22s ease-in both; }
dialog.sheet.closing::backdrop { animation: fade-out .22s ease-in both; }
.sheet-panel { max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--c-card); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 40px -24px color-mix(in srgb, var(--c-shadow) 50%, transparent); }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--c-line); margin: 2px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sheet-title { font-size: var(--z-text-2xl); font-weight: 800; line-height: 1.5; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; font-size: var(--z-text-base); line-height: 1.95; }
.sheet-status { display: flex; align-items: center; gap: 10px; font-size: var(--z-text-xl); }
.sheet-lead { font-weight: 700; }
.sheet-more p + p, .sheet-more p + ul, .sheet-more ul + p { margin-top: 10px; }
/* Rich texts (paragraphs and lists from the texts file) breathe between blocks. */
div[data-t] > p + p, div[data-t] > p + ul, div[data-t] > ul + p { margin-top: 12px; }
div[data-t] > p.rich-lead { font-weight: 700; margin-top: 16px; }
div[data-t] > p.rich-lead:first-child { margin-top: 0; }
div[data-t] > p.rich-lead + ul { margin-top: 6px; }
.sheet-more ul { margin: 6px 0 0; padding: 0 20px 0 0; }
.sheet-more li { margin-bottom: 4px; }
.sheet-note { font-size: var(--z-text-sm); color: var(--c-muted); }
.sheet-foot { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.invoice-text { padding: 14px; border-radius: var(--r-small); background: var(--c-ground); box-shadow: inset 0 0 0 1px var(--c-line); font-size: var(--z-text-base); line-height: 1.9; }
html.sheet-open { overflow: hidden; }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
body.has-bottom-bar .toasts { bottom: calc(100px + env(safe-area-inset-bottom)); }
.toast { display: inline-flex; align-items: center; gap: 8px; max-width: 448px; padding: 12px 16px; border-radius: var(--r-control); background: var(--c-dark); color: var(--c-on-dark); font-size: var(--z-text-md); font-weight: 700; line-height: 1.7; box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--c-shadow) 70%, transparent); animation: toast-in .3s cubic-bezier(.2, .85, .25, 1) both; }
.toast .i { color: var(--c-mint); }
.toast.leaving { animation: toast-out .25s ease-in both; }

/* ------------------------------------------------------------ sign in */
.auth { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: -6px 16px 0; padding: 22px 18px; background: var(--c-card); border-radius: var(--r-card); position: relative; z-index: 2; }
.auth-mark { display: flex; justify-content: center; margin-top: -2px; }
.auth-title { font-size: var(--z-text-3xl); font-weight: 800; line-height: 1.5; text-align: center; }
.auth-text { font-size: var(--z-text-base); color: var(--c-muted); line-height: 1.95; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.auth-links form { display: flex; }
.hint-spam { justify-content: center; text-align: center; }
.email-chip { align-self: center; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-inner); background: var(--c-ground); font-family: var(--font-latin); font-size: var(--z-text-md); color: var(--c-ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ lists and account */
.page-body { padding: 18px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: var(--r-tile); background: var(--c-card); color: var(--c-ink); }
.row-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--c-soft); color: var(--c-blue); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.5; }
.row-title b { font-size: var(--z-text-base); font-weight: 700; }
.plan-chip { padding: 0 8px; border-radius: var(--r-chip); background: var(--c-ground); color: var(--c-muted); font-size: var(--z-text-xs); font-weight: 700; line-height: 1.9; }
.row-state { font-size: var(--z-text-md); font-weight: 700; line-height: 1.6; }
.row-date { font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.6; }
.check-row .chev { color: var(--c-muted); }
.tone-green { color: var(--c-green-ink); } .row-icon.tone-green { background: var(--c-green-soft); }
.tone-red { color: var(--c-red-ink); } .row-icon.tone-red { background: var(--c-red-soft); }
.tone-amber { color: var(--c-amber-ink); } .row-icon.tone-amber { background: var(--c-amber-soft); }
.tone-blue { color: var(--c-blue); }
.tone-muted { color: var(--c-muted); } .row-icon.tone-muted { background: var(--c-ground); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 18px; border-radius: var(--r-card); background: var(--c-card); text-align: center; color: var(--c-muted); }

.balance-card { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--r-card-lg); background: var(--c-dark); color: var(--c-on-dark); position: relative; overflow: hidden; isolation: isolate; }
.balance-card::before { content: ""; position: absolute; z-index: -1; top: -90px; left: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-blue) var(--a-dark-glow), transparent), transparent); }
.balance-label { font-size: var(--z-text-md); color: var(--c-on-dark-muted); font-weight: 700; }
.balance-value { display: flex; align-items: baseline; gap: 6px; font-size: var(--z-text-5xl); font-weight: 800; line-height: 1.4; }
.balance-value small { font-size: var(--z-text-md); font-weight: 500; opacity: .8; }
.acc-card { padding: 4px 16px; }
.acc-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--c-line); line-height: 1.6; }
.acc-row:last-child { border-bottom: 0; }
.acc-icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-inner); background: var(--c-soft); color: var(--c-blue); display: flex; align-items: center; justify-content: center; }
.acc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.acc-label { color: var(--c-muted); font-size: var(--z-text-sm); }
.acc-value { min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* ------------------------------------------------------------ dev pages */
.dev { padding: 20px 16px; font-family: var(--font-latin); font-size: var(--z-text-md); line-height: 1.6; }
.dev h1 { font-size: var(--z-text-3xl); margin-bottom: 8px; }
.dev-states { padding-left: 18px; }
.dev-states li { margin-bottom: 10px; }
.dev-mail { margin: 12px 0; padding: 12px; background: var(--c-card); border-radius: var(--r-inner); }
.dev-mail h2 { font-family: var(--font-body); font-size: var(--z-text-lg); }
.dev-mail pre { white-space: pre-wrap; font-family: var(--font-body); margin: 6px 0 0; }

/* ------------------------------------------------------------ motion */
@keyframes live-dot { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-mint) 8%, transparent); } }
@keyframes draw { 0% { stroke-dashoffset: 1; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes halo { 0%, 100% { transform: scale(.86); opacity: .9; } 50% { transform: scale(1); opacity: .55; } }
@keyframes wstep-on { to { opacity: 1; color: var(--c-ink); } }
@keyframes wstep-done { to { opacity: 1; color: var(--c-ink); } }
@keyframes wdot-on { to { box-shadow: inset 0 0 0 2px var(--c-blue); background: var(--c-soft); } }
@keyframes wdot-done { to { background: var(--c-green); box-shadow: none; color: var(--c-on-dark); } }
@keyframes wdot-pulse { 50% { box-shadow: inset 0 0 0 2px var(--c-blue), 0 0 0 6px color-mix(in srgb, var(--c-blue) 14%, transparent); } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes alarm-glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-red) 16%, transparent); } }
@keyframes sheen { 0% { transform: translateX(110%); } 30%, 100% { transform: translateX(-110%); } }
@keyframes soft-pulse { 50% { transform: scale(1.07); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-blue) 10%, transparent); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheet-down { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }
@keyframes busy-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes go-pulse { 50% { transform: translateX(-4px); } }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.swapped { animation: swap-in .35s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .logo-draw { stroke-dashoffset: 0; }
  .wstep { opacity: 1; }
  .advice::after { display: none; }
}

/* ------------------------------------------------------------ larger screens (the real desktop design comes later) */
@media (min-width: 600px) {
  body { background: var(--c-soft); }
  .app { box-shadow: 0 0 0 1px var(--c-line), 0 30px 80px -40px color-mix(in srgb, var(--c-shadow) 35%, transparent); }
}

/* ------------------------------------------------------------ the paid flow (stage B) */
.flow { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 14px; }

/* the step indicator */
.stepper { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--z-text-xs); font-weight: 700; color: var(--c-muted); line-height: 1.5; text-align: center; }
.step > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c-card); box-shadow: inset 0 0 0 1.5px var(--c-line); font-family: var(--font-number); font-size: var(--z-text-sm); line-height: 1; }
.step.on { color: var(--c-ink); }
.step.on .step-dot { background: var(--c-blue); color: var(--c-on-dark); box-shadow: 0 6px 14px -8px var(--c-blue); }
.step.done .step-dot { background: var(--c-green-soft); color: var(--c-green-ink); box-shadow: none; }

/* one question */
.question { display: flex; flex-direction: column; gap: 10px; }
.flow-lead { font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.9; padding: 12px 14px; border-radius: var(--r-small); background: var(--c-soft); }
.q-title { font-size: var(--z-text-2xl); font-weight: 800; line-height: 1.6; text-wrap: balance; margin-top: 4px; }
.q-hint { font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.8; margin-top: -4px; }
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 0; border-radius: var(--r-control); background: var(--c-card); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); font-family: var(--font-button); font-size: var(--z-text-lg); font-weight: 700; line-height: 1.5; text-align: center; transition: transform .12s, box-shadow .15s, background .15s; }
.choice:active { transform: scale(.98); }
.choice .en { font-family: var(--font-latin); font-weight: 600; }
.choice.picked { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--c-blue); color: var(--c-blue); }
.choice-tile { flex-direction: column; gap: 0; min-height: 64px; }
.choice-main { display: block; }
.choice-sub { display: block; font-size: var(--z-text-sm); font-weight: 500; color: var(--c-muted); }
.choice-color { justify-content: flex-start; text-align: start; }
.choice-dk { background: transparent; color: var(--c-muted); box-shadow: inset 0 0 0 1.5px var(--c-line); min-height: 52px; }
.choice-dk.picked { color: var(--c-blue); }
.choices-2 > .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.swatch { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px var(--c-line), 0 2px 6px -3px color-mix(in srgb, var(--c-shadow) var(--s-card), transparent); }

/* the used-phone questions */
.used-form { gap: 14px; }
.used-q { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px; border: 0; border-radius: var(--r-tile); background: var(--c-card); min-width: 0; }
.used-q legend { padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.used-q legend + * { clear: both; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-chip); background: var(--c-ground); box-shadow: inset 0 0 0 1px var(--c-line); font-size: var(--z-text-base); font-weight: 700; line-height: 1.4; cursor: pointer; }
.pill input:checked + span { background: var(--c-soft); color: var(--c-blue); box-shadow: inset 0 0 0 2px var(--c-blue); }
.pill input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--c-blue) 55%, transparent); outline-offset: 2px; }

/* summaries */
.claims-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--r-small); background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line); }
.cs-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.cs-value { font-weight: 700; overflow-wrap: anywhere; }
.detected { display: flex; flex-direction: column; gap: 2px; }
.detected-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detected .model-name { font-weight: 600; font-size: var(--z-text-lg); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-chip); font-size: var(--z-text-sm); font-weight: 700; line-height: 1.8; }
.chip.tone-green { background: var(--c-green-soft); }
.confirm-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.confirm-card p { color: var(--c-muted); line-height: 1.95; }

/* the intro screen */
.intro-head { padding-bottom: 18px; }
.intro-scene { position: relative; height: 210px; margin: 4px 16px 0; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.intro-phone { position: relative; z-index: 1; width: 104px; height: auto; overflow: visible; }
.intro-phone-body { fill: color-mix(in srgb, var(--c-on-dark) var(--a-glass), transparent); stroke: var(--c-on-dark); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1.1s cubic-bezier(.6, 0, .2, 1) .1s forwards; }
.intro-island { fill: var(--c-on-dark); opacity: 0; animation: fade-in .3s ease 1s forwards; }
.intro-scan { position: absolute; z-index: 2; left: 50%; top: 22px; width: 92px; height: 3px; margin-left: -46px; border-radius: 3px; background: var(--c-mint); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--c-mint) 55%, transparent); opacity: 0; animation: scan 1.8s ease-in-out 1.1s 2 both; }
.intro-chips { position: absolute; z-index: 3; inset: 0; margin: 0; padding: 0; list-style: none; }
.intro-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-chip); background: var(--c-card); color: var(--c-ink); font-size: var(--z-text-sm); font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--c-shadow) var(--s-card), transparent); opacity: 0; transform: translateY(10px) scale(.9); animation: chip-in .5s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.intro-chip .i { color: var(--c-green); }
.intro-chip:nth-child(1) { top: 24px; right: 4%; animation-delay: 1.5s; }
.intro-chip:nth-child(2) { top: 92px; left: 2%; animation-delay: 1.9s; }
.intro-chip:nth-child(3) { bottom: 22px; right: 8%; animation-delay: 2.3s; }
.intro { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.intro-full { margin-top: -10px; }
.intro-card { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
.intro-title { font-size: var(--z-text-3xl); font-weight: 800; line-height: 1.55; text-wrap: balance; }
.intro-eyebrow { font-size: var(--z-text-md); font-weight: 800; color: var(--c-blue); }
.intro-items { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.intro-items li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--z-text-base); font-weight: 600; line-height: 1.8; }
.intro-items .i { flex: none; margin-top: calc((var(--z-text-base) * 1.8 - 22px) / 2); width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--c-green-soft); color: var(--c-green-ink); }
.intro-full .intro-items li { opacity: 0; transform: translateX(-8px); animation: item-in .45s ease forwards; }
.intro-full .intro-items li:nth-child(1) { animation-delay: .25s; }
.intro-full .intro-items li:nth-child(2) { animation-delay: .4s; }
.intro-full .intro-items li:nth-child(3) { animation-delay: .55s; }
.intro-full .intro-items li:nth-child(4) { animation-delay: .7s; }
.intro-full .intro-items li:nth-child(5) { animation-delay: .85s; }
.intro-why { padding: 12px 14px; border-radius: var(--r-small); background: var(--c-ground); }
.intro-why h3 { font-size: var(--z-text-base); font-weight: 800; line-height: 1.6; }
.intro-why p { font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.9; }
.intro-price { font-size: var(--z-text-md); font-weight: 700; color: var(--c-muted); }
.intro-stats ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--c-muted); font-size: var(--z-text-md); line-height: 1.9; }
.intro-stats h3 { font-size: var(--z-text-base); font-weight: 800; }
.intro-upsell { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: var(--r-small); background: var(--c-soft); color: var(--c-blue); font-weight: 800; font-size: var(--z-text-base); line-height: 1.5; text-align: center; }
.intro-actions { display: flex; flex-direction: column; gap: 8px; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(170px); } }
@keyframes chip-in { to { opacity: 1; transform: none; } }
@keyframes item-in { to { opacity: 1; transform: none; } }

/* payment */
.pay-summary { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pay-summary .claims-summary { align-self: stretch; }
.pay-summary .muted { line-height: 1.95; }
.pay-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.pay-plan .sec-title { margin: 0; }
.pay-price { display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--z-text-2xl); font-weight: 800; }
.pay-price small { font-size: var(--z-text-sm); font-weight: 500; color: var(--c-muted); }
.pay-balance { display: flex; align-items: center; gap: 8px; font-size: var(--z-text-md); font-weight: 700; color: var(--c-muted); }
.pay-balance .i { color: var(--c-blue); }
.pay-note { padding: 0 4px; line-height: 1.85; }
.pay-sign-in { display: flex; flex-direction: column; gap: 10px; }
.pay-sign-in .sec-title { margin: 0; }
.pay-card { display: flex; flex-direction: column; gap: 12px; }
.pay-card .sec-title { margin: 0; }

/* the destination card: frosted glass in front of a card in the bank's own colour (Roozbeh's reference) */
.gc-stage { position: relative; isolation: isolate; overflow: hidden; padding: 22px 18px 44px; border-radius: var(--r-tile); background: linear-gradient(160deg, color-mix(in srgb, var(--bank-1) 14%, var(--c-card)), color-mix(in srgb, var(--bank-2) 10%, var(--c-ground))); }
.gc-back { position: absolute; z-index: 0; left: 18px; bottom: 16px; width: 64%; aspect-ratio: 1.586; border-radius: 18px; background: linear-gradient(135deg, var(--bank-1), var(--bank-2)); box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--bank-2) 80%, transparent); }
.gc-front { position: relative; z-index: 1; width: 88%; margin-inline-start: 0; aspect-ratio: 1.586; padding: 16px 18px; border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; background: color-mix(in srgb, var(--c-card) 52%, transparent); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-card) 75%, transparent), inset 0 1px 0 color-mix(in srgb, var(--c-card) 90%, transparent), 0 24px 40px -26px color-mix(in srgb, var(--c-shadow) var(--s-card), transparent); color: var(--c-ink); }
.gc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gc-bank { font-size: var(--z-text-lg); font-weight: 800; line-height: 1.5; color: color-mix(in srgb, var(--bank-2) 85%, var(--c-ink)); }
.gc-chip { flex: none; width: 42px; height: 31px; border-radius: 8px; background: var(--c-card); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--c-shadow) 30%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--c-line) 80%, transparent); }
.gc-number { font-size: clamp(15px, 4.5vw, 19px); font-weight: 600; letter-spacing: .5px; line-height: 1.4; text-align: left; white-space: nowrap; color: var(--c-ink); }
.gc-holder { font-size: var(--z-text-md); font-weight: 700; color: var(--c-muted); }
.gc-lines { display: flex; gap: 10px; }
.gc-lines i { display: block; width: 46px; height: 6px; border-radius: 6px; background: var(--c-card); opacity: .9; }
.bank-blu { --bank-1: var(--c-bank-blu-1); --bank-2: var(--c-bank-blu-2); }
.bank-keshavarzi { --bank-1: var(--c-bank-keshavarzi-1); --bank-2: var(--c-bank-keshavarzi-2); }
.bank-melli { --bank-1: var(--c-bank-melli-1); --bank-2: var(--c-bank-melli-2); }
.amount-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-tile); background: var(--c-soft); }
.amount-row { display: flex; align-items: baseline; gap: 8px; }
.amount-value { font-size: var(--z-text-5xl); font-weight: 800; line-height: 1.3; color: var(--c-blue); }
.amount-unit { font-size: var(--z-text-base); font-weight: 600; color: var(--c-muted); }
.amount-note { font-size: var(--z-text-md); line-height: 1.85; }
.deposit-form { display: flex; flex-direction: column; gap: 8px; }
.deposit-form .sec-title { margin: 0 0 4px; }
.field-area { height: auto; min-height: 76px; padding: 12px 16px; line-height: 1.8; resize: vertical; }
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 6px; padding: 0 16px; border-radius: var(--r-control); background: var(--c-ground); box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-blue); font-weight: 700; font-size: var(--z-text-base); line-height: 1.5; cursor: pointer; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; } /* invisible, but no input is ever under 16px */
.file-pick.has-file { box-shadow: inset 0 0 0 2px var(--c-green); color: var(--c-green-ink); }
.file-pick:focus-within { box-shadow: inset 0 0 0 2px var(--c-blue), 0 0 0 4px color-mix(in srgb, var(--c-blue) 14%, transparent); }
.order { display: flex; flex-direction: column; gap: 14px; }
.order-state { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.order-state p { color: var(--c-muted); line-height: 1.95; }
.order-state .stack { margin-top: 4px; }
.wait-line { display: inline-flex; padding: 6px 14px; border-radius: var(--r-chip); background: var(--c-soft); color: var(--c-blue) !important; font-weight: 700; font-size: var(--z-text-md); }
.order-rejected { display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 1.5px var(--c-red-soft); }
.order-rejected .sec-title { margin: 0; color: var(--c-red-ink); }
.reject-reason { font-weight: 700; }
.notice-cta { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

/* credit */
.credit-lead { padding: 0 4px; line-height: 1.95; }
.credit-form { display: flex; flex-direction: column; gap: 10px; }
.credit-form .sec-title { margin: 0; }
.amount-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.amount-option { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 10px 14px; border-radius: var(--r-control); background: var(--c-ground); box-shadow: inset 0 0 0 1px var(--c-line); cursor: pointer; }
.amount-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-option:has(input:checked) { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--c-blue); }
.amount-option:focus-within { outline: 3px solid color-mix(in srgb, var(--c-blue) 55%, transparent); outline-offset: 2px; }
.ao-main { font-weight: 800; font-size: var(--z-text-lg); line-height: 1.5; }
.ao-sub { font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.6; }
.balance-card .btn { align-self: flex-start; margin-top: 10px; min-height: 44px; font-size: var(--z-text-base); }

/* account */
.acc-edit { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; padding: 0 6px; font-size: var(--z-text-md); font-weight: 800; }
.account-form { display: flex; flex-direction: column; gap: 10px; }
.section .check-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.page-body > .section { padding: 0; }
.page-body > .section .sec-title { margin-top: 6px; }

/* terms and contact */
.prose ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.95; }
.contact-card { display: flex; flex-direction: column; gap: 14px; }
.contact-card p { line-height: 1.95; }

@media (prefers-reduced-motion: reduce) {
  .intro-phone-body, .intro-island, .intro-chip, .intro-full .intro-items li { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .intro-scan { display: none; }
}
.file-label { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-size: var(--z-text-sm); font-weight: 500; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.cs-cond { margin-inline-start: 8px; color: var(--c-muted); }
.pay-plan-line { font-size: var(--z-text-xl); font-weight: 800; line-height: 1.6; }
.one-line.long { font-size: var(--z-text-sm); }
.site-footer .hours { text-wrap: balance; }

/* ------------------------------------------------------------ the computer (desktop) layout */
.desk-nav, .hero-phone, .grid-glow { display: none; }
.r-top, .r-main, .r-side { display: contents; }

@media (min-width: 960px) {
  body { font-size: var(--z-text-lg); }
  .app { max-width: none; padding-bottom: 0; background: transparent; }
  .tabs, .hero .top, .show { display: none; }
  .announce { padding-inline: max(24px, calc((100vw - 1160px) / 2)); }

  /* the top menu */
  .desk-nav { display: block; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--c-ground) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--c-line); }
  .dn-inner { max-width: none; height: 72px; margin: 0; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
  .dn-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--c-ink); font-size: 21px; font-weight: 800; }
  .dn-links { flex: 1; display: flex; align-items: center; gap: 4px; }
  .dn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-small); color: var(--c-muted); font-weight: 700; font-size: var(--z-text-base); transition: background .15s, color .15s; }
  .dn-link:hover { background: var(--c-soft); color: var(--c-ink); }
  .dn-link.on { color: var(--c-blue); background: var(--c-soft); }
  .dn-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-button); background: var(--c-blue); color: var(--c-on-dark); font-weight: 800; font-size: var(--z-text-base); box-shadow: 0 12px 22px -14px color-mix(in srgb, var(--c-blue) var(--s-button), transparent); }

  /* the blue bands: full width, content in the middle; the grid lights up under the mouse */
  .head { border-radius: 0 0 40px 40px; padding-bottom: 34px; }
  .head .appbar { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 76px; }
  .head .appbar-title { font-size: var(--z-text-2xl); max-width: 50vw; }
  [data-grid-glow] { position: relative; }
  [data-grid-glow] > .grid-glow { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(color-mix(in srgb, var(--c-on-dark) 34%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c-on-dark) 34%, transparent) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle 190px at var(--mx, -400px) var(--my, -400px), var(--c-ink), transparent 72%); mask-image: radial-gradient(circle 190px at var(--mx, -400px) var(--my, -400px), var(--c-ink), transparent 72%); opacity: var(--glow, 0); transition: opacity .35s ease; }
  [data-grid-glow] > :not(.grid-glow) { position: relative; z-index: 1; }

  /* home: one blue band with two columns */
  .home-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "hero phone" "check phone"; align-items: center; column-gap: 56px; padding: 40px max(24px, calc((100vw - 1160px) / 2)) 64px; background: var(--c-blue); color: var(--c-on-dark); border-radius: 0 0 48px 48px; overflow: hidden; isolation: isolate; }
  .home-top::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(color-mix(in srgb, var(--c-on-dark) var(--a-grid), transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c-on-dark) var(--a-grid), transparent) 1px, transparent 1px); background-size: 28px 28px; }
  .home-top .hero { grid-area: hero; align-self: end; padding: 0; background: none; border-radius: 0; overflow: visible; }
  .home-top .hero::before, .home-top .hero::after { display: none; }
  .home-top .hero h1 { font-size: 52px; line-height: 1.4; margin: 14px 0 12px; }
  .home-top .hero-text { font-size: var(--z-text-xl); max-width: 560px; }
  .home-top .check-card { grid-area: check; align-self: start; margin: 26px 0 0; max-width: 560px; color: var(--c-ink); }
  .hero-phone { grid-area: phone; display: flex; justify-content: center; align-items: center; perspective: 1400px; padding: 10px 0; }
  /* Turned toward the text and the viewer (Roozbeh, 2026-10-03), not outward. */
  .hero-phone .phone { transform: rotateY(16deg) rotateX(5deg) rotateZ(-1deg); transform-style: preserve-3d; box-shadow: -30px 40px 60px -30px color-mix(in srgb, var(--c-shadow) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--c-on-dark) 20%, transparent); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }

  /* home sections */
  .section { max-width: 1160px; margin-inline: auto; padding: 0 24px; }
  .sec-head h2 { font-size: var(--z-text-4xl); }
  .section[data-el="plans"] { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; align-items: stretch; margin-top: 26px; }
  .section[data-el="plans"] > .sec-head { grid-column: 1 / -1; }
  .section[data-el="plans"] .plans-2 { display: contents; }
  .section[data-el="plans"] .plan, .section[data-el="plans"] .plan-full { margin: 0; }
  .feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .section[data-el="faq"] { max-width: 860px; }
  .faq { gap: 10px; }
  .site-footer { max-width: 1160px; margin: 48px auto 0; padding: 28px 24px 36px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand hours contacts" "slogan nav contacts"; align-items: center; column-gap: 32px; row-gap: 4px; text-align: start; border-top: 1px solid var(--c-line); }
  .site-footer [data-el="footer-brand"] { grid-area: brand; }
  .site-footer .slogan { grid-area: slogan; }
  .site-footer .hours { grid-area: hours; }
  .site-footer .contacts { grid-area: contacts; }
  .site-footer .footer-nav { grid-area: nav; justify-content: flex-start; }

  /* inner pages: a comfortable column in the middle */
  .page-body, .flow, .intro, .state-screen, .auth, .waiting { width: auto; max-width: 760px; margin-inline: auto; }
  .page-body, .flow, .intro { padding-inline: 24px; }
  .state-screen, .waiting, .auth { margin-top: 24px; }
  .flow .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow .choices-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow .choices-2 > .choice:last-child:nth-child(odd) { grid-column: auto; }
  .flow .choice-dk { max-width: 320px; }
  .bottom-bar.intro-actions { position: static; max-width: 760px; margin: 16px auto 0; padding: 0 24px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; flex-direction: row; justify-content: flex-start; }
  .bottom-bar.intro-actions .btn { width: auto; min-width: 220px; }
  .intro-scene { height: 240px; max-width: 560px; margin-inline: auto; }
  .head .appbar [data-el="header-account"], .head .appbar [data-el="header-sign-in"] { visibility: hidden; }
  .section[data-el="plans"] .plan, .section[data-el="plans"] .plan-full { display: flex; flex-direction: column; }
  .section[data-el="plans"] .plan .price, .section[data-el="plans"] .plan-full .price { margin-top: auto; padding-top: 12px; }

  /* the order page: the card and the form side by side */
  .flow:has(.deposit-form) { max-width: 1000px; }
  .order:has(.deposit-form) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .order:has(.deposit-form) > :not(.pay-card):not(.deposit-form) { grid-column: 1 / -1; }

  /* the result: the details in a wide column, the phone, QR and buttons in a side column */
  .result-result { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main top" "main side"; grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
  .result-result .r-top { display: block; grid-area: top; }
  .result-result .r-main { display: block; grid-area: main; padding-top: 22px; min-width: 0; }
  .result-result .r-side { display: flex; flex-direction: column; grid-area: side; position: sticky; top: 92px; }
  .result-result .hero-device { margin-top: -120px; }
  .result-result .r-side .qr-card { margin: 16px 0 0; }
  .result-result .r-side .bottom-bar { position: static; margin: 4px 0 0; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .result-result .r-side .actions { grid-template-columns: minmax(0, 1fr); }
  .result-result .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-result .tiles > .tile:last-child:nth-child(odd) { grid-column: auto; }
  .result-result .r-main > * { margin-inline: 0; }
  body.has-bottom-bar .app { padding-bottom: 40px; }

  /* sheets open in the middle of the screen */
  dialog.sheet { inset: 0; margin: auto; max-width: 560px; height: fit-content; }
  .sheet-panel { border-radius: var(--r-sheet); max-height: 80dvh; padding-bottom: 22px; }
  .sheet-grip { display: none; }
  dialog.sheet[open] .sheet-panel { animation: sheet-pop .24s cubic-bezier(.2, .85, .25, 1) both; }

  /* the toasts: bottom-left, not over the content */
  .toasts { bottom: 28px; }
}

@keyframes sheet-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ the admin panel (part 3A) */
.panel { max-width: 860px; margin-inline: auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.panel-search { display: flex; flex-direction: column; gap: 10px; }
.search-form { display: flex; flex-direction: column; gap: 8px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row .field { flex: 1; min-width: 0; }
.search-row .btn { flex: none; min-height: var(--z-control-h); }
.search-results { display: flex; flex-direction: column; gap: 6px; }
.sec-head-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-head-row .sec-title { margin: 0; }
.chip.tone-amber { background: var(--c-amber-soft); }
.dep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dep-card { display: flex; flex-direction: column; gap: 14px; }
.dep-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.dep-amount { font-size: var(--z-text-4xl); font-weight: 800; color: var(--c-ink); white-space: nowrap; }
.dep-kind { display: inline-flex; gap: 12px; color: var(--c-muted); font-size: var(--z-text-md); }
.dep-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--r-inner); background: var(--c-ground); }
.dep-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--z-text-md); }
.dep-row dt { color: var(--c-muted); flex: none; }
.dep-row dd { margin: 0; text-align: end; min-width: 0; }
.dep-receipt { overflow-wrap: anywhere; }
.dep-actions { display: flex; flex-direction: column; gap: 10px; }
.reject-form { display: flex; gap: 8px; align-items: center; }
.reject-form select.field { flex: 1; min-width: 0; }
.reject-form .btn { flex: none; min-height: var(--z-control-h); }
.empty-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--c-muted); }
.empty-card .i { color: var(--c-green); }
@media (min-width: 960px) {
  .panel { padding-top: 24px; }
  .dep-actions { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; }
}

/* ------------------------------------------------------------ page transitions (round 42, item 1)
   A short slide-and-fade between pages (browsers that support cross-page view transitions);
   the top menu and the tab bar stay still. Off when the visitor asks for less motion. */
@view-transition { navigation: auto; }
.desk-nav { view-transition-name: desk-nav; }
.tabs { view-transition-name: tab-bar; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------ panel settings */
.set-group { display: flex; flex-direction: column; gap: 10px; }
.set-group + .set-group { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.set-group h3 { font-size: var(--z-text-lg); font-weight: 800; margin: 0; }
.set-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; cursor: pointer; }
.set-switch input { -webkit-appearance: none; appearance: none; position: relative; width: 52px; height: 32px; flex: none; margin: 0; border-radius: 32px; background: var(--c-line); cursor: pointer; transition: background .2s; }
.set-switch input::before { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--c-card); box-shadow: 0 2px 4px color-mix(in srgb, var(--c-shadow) 25%, transparent); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.set-switch input:checked { background: var(--c-green); }
.set-switch input:checked::before { transform: translateX(-20px); }
.set-switch input:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-blue) 40%, transparent); outline-offset: 2px; }
select.field { -webkit-appearance: menulist; appearance: auto; padding-inline: 12px; }
.set-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Two fields side by side stay on one line even when one label wraps: labels sit on the field. */
.set-two > div { display: flex; flex-direction: column; justify-content: flex-end; }
.field-area-set { height: auto; min-height: 90px; padding-block: 12px; line-height: 1.8; }
.panel-home { display: grid; gap: 12px; }
.home-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--c-ink); }
.home-link .row-main { flex: 1; }
.home-link b { font-size: var(--z-text-xl); }
@media (min-width: 960px) { .panel-home { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ my payments */
.pay-history { margin-top: 12px; }
.pay-item { display: flex; flex-direction: column; gap: 8px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pay-title { display: inline-flex; align-items: baseline; gap: 10px; }
.pay-title b { font-size: var(--z-text-2xl); white-space: nowrap; }
.pay-reports { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pay-report { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: var(--r-inner); background: var(--c-ground); }
.pay-receipt { overflow-wrap: anywhere; }
.pay-report .link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.pay-item > .link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; }
.chip.tone-red { background: var(--c-red-soft); }
.chip.tone-blue { background: var(--c-soft); color: var(--c-blue); }
.chip.tone-muted { background: var(--c-soft); color: var(--c-muted); }
[data-el="account-payments"] { margin-bottom: 4px; }
.link { color: var(--c-blue); font-weight: 700; text-decoration: none; }

/* ------------------------------------------------------------ panel: accounts and the log */
.acc-email { font-weight: 700; font-size: var(--z-text-lg); }
.set-radio { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-control); background: var(--c-ground); cursor: pointer; font-weight: 700; }
.set-radio input { accent-color: var(--c-blue); width: 18px; height: 18px; }
.dev-list, .log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dev-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-inner); background: var(--c-ground); }
.dev-main { display: flex; flex-direction: column; gap: 2px; }
.dev-form { display: flex; gap: 8px; align-items: center; }
.dev-form .field { flex: 1; min-width: 0; }
.dev-form .btn { flex: none; min-height: var(--z-control-h); }
.log-row { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.log-row:last-child { border-bottom: 0; padding-bottom: 0; }
.log-what { font-weight: 700; }

/* ------------------------------------------------------------ panel: login confirmation, Telegram, backup codes */
.confirm-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.confirm-out { display: flex; justify-content: center; }
.code-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; padding: 12px; list-style: none; border-radius: var(--r-inner); background: var(--c-ground); font-family: var(--font-mono); font-size: var(--z-text-lg); direction: ltr; text-align: center; }
.tg-status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tg-status .i { color: var(--c-green); }
.tg-actions { display: grid; gap: 10px; }
@media (min-width: 960px) { .tg-actions { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ withdrawals */
.balance-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--c-on-dark); text-decoration: underline; text-underline-offset: 4px; }
.attach-form { margin: 6px 0 4px; }

/* ------------------------------------------------------------ test marks */
.test-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.test-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.test-row:last-child { border-bottom: 0; }
.test-row .row-main { display: flex; flex-direction: column; }
.test-chip { border: 0; cursor: pointer; min-height: 44px; padding: 0 14px; font-family: var(--font-button); }

/* ------------------------------------------------------------ motion, part 1 (round 42)
   Short and purposeful; light on phones (transform and opacity only); everything off
   when the visitor's phone asks for less motion (the block at the end). */

/* The result reveal: the card opens, the badge fills with its colour, the mark draws itself,
   then the title, the text and the reasons arrive one by one. Runs when a result appears,
   on page load and when a waiting page turns into its result. */
.overall, .fmi { animation: card-open .5s cubic-bezier(.2, .8, .2, 1) both; }
.overall .badge, .fmi .badge { animation: badge-in .6s cubic-bezier(.2, .9, .3, 1.25) .12s both; }
.overall .badge > .i, .fmi .badge > .i { stroke-dasharray: 60; stroke-dashoffset: 60; animation: mark-draw .6s ease-out .5s forwards; }
.overall .overall-title, .fmi .fmi-title, .overall .sub, .fmi .sub, .overall .eyebrow { animation: rise-in .45s ease-out both; }
.overall .eyebrow { animation-delay: .1s; }
.overall .overall-title, .fmi .fmi-title { animation-delay: .5s; }
.overall .sub, .fmi .sub { animation-delay: .62s; }
.reasons .reason { animation: rise-in .4s ease-out both; }
.reasons .reason:nth-child(1) { animation-delay: .72s; }
.reasons .reason:nth-child(2) { animation-delay: .82s; }
.reasons .reason:nth-child(3) { animation-delay: .92s; }
.reasons .reason:nth-child(4) { animation-delay: 1.02s; }
.reasons .reason:nth-child(n+5) { animation-delay: 1.12s; }
@keyframes card-open { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes badge-in { from { transform: scale(.4); opacity: 0; background: var(--c-line); box-shadow: 0 0 0 0 transparent; } }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }

/* Sections rise softly into view, once (motion.js adds .reveal, then .in). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* The status tiles come one after another. */
.tiles.reveal { opacity: 1; transform: none; }
.tiles.reveal > * { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .4s ease-out, transform .45s cubic-bezier(.2, .8, .2, 1); }
.tiles.reveal.in > * { opacity: 1; transform: none; }
.tiles.reveal.in > :nth-child(2) { transition-delay: .07s; }
.tiles.reveal.in > :nth-child(3) { transition-delay: .14s; }
.tiles.reveal.in > :nth-child(4) { transition-delay: .21s; }
.tiles.reveal.in > :nth-child(5) { transition-delay: .28s; }
.tiles.reveal.in > :nth-child(n+6) { transition-delay: .35s; }

/* Home: the slogan word by word (motion.js wraps the words), the main button glows once. */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(14px); animation: word-in .55s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes word-in { to { opacity: 1; transform: none; } }
[data-el="check-submit"] { animation: glow-once 1.8s ease-out 1.1s 1; }
@keyframes glow-once { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-blue) 45%, transparent); } 60% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--c-blue) 0%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* The showcase phone floats gently; on a computer it also turns a little with the mouse (motion.js). */
.show .phone, .hero-phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (min-width: 960px) {
  .hero-phone .phone { transform: rotateY(calc(16deg + var(--tilt-y, 0deg))) rotateX(calc(5deg + var(--tilt-x, 0deg))) rotateZ(-1deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
}

/* The waiting screen: a phone outline drawn once, the logo inside, a scan line passing over it. */
.waiting-phone { position: relative; width: 84px; height: 161px; margin: 4px auto 0; }
.waiting-phone svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wp-body { fill: var(--c-card); stroke: var(--c-blue); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1s cubic-bezier(.6, 0, .2, 1) .05s forwards; }
.wp-island { fill: var(--c-blue); opacity: 0; animation: fade-in .3s ease .9s forwards; }
.wp-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wp-scan { position: absolute; left: 10px; right: 10px; top: 16px; height: 3px; border-radius: 3px; background: var(--c-blue); box-shadow: 0 0 14px 3px color-mix(in srgb, var(--c-blue) 40%, transparent); opacity: 0; animation: wscan 2.4s ease-in-out 1s infinite; }
@keyframes wscan { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(126px); } }

@media (prefers-reduced-motion: reduce) {
  .overall, .fmi, .overall .badge, .fmi .badge, .overall .overall-title, .fmi .fmi-title, .overall .sub, .fmi .sub, .overall .eyebrow, .reasons .reason,
  .hero h1 .w, [data-el="check-submit"], .show .phone, .hero-phone { animation: none; opacity: 1; transform: none; }
  .overall .badge > .i, .fmi .badge > .i { animation: none; stroke-dashoffset: 0; }
  .reveal, .tiles.reveal > * { opacity: 1; transform: none; transition: none; }
  .wp-body { animation: none; stroke-dashoffset: 0; }
  .wp-island { animation: none; opacity: 1; }
  .wp-scan { display: none; }
}

/* ------------------------------------------------------------ nothing opens with a jump (Roozbeh, 2026-10-04)
   The scrollbar's room is always kept, so the page never shifts sideways when a sheet locks
   the scroll; expandable sections open and close smoothly (motion.js); messages that appear
   after a form slide in gently; a sheet on a computer closes the way it opened. */
html { scrollbar-gutter: stable; }
.field-error, main .notice { animation: rise-in .28s ease-out both; }
details > summary { cursor: pointer; }
@media (min-width: 960px) {
  dialog.sheet.closing .sheet-panel { animation: sheet-pop-out .2s ease-in both; }
}
@keyframes sheet-pop-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .field-error, main .notice { animation: none; }
}

/* ------------------------------------------------------------ motion, part 2 (round 42)
   The deposit approval, the glass bank card, the copy pop, the logo once per visit. */
.order-state[data-state^="approved"] .state-icon { position: relative; animation: badge-in .55s cubic-bezier(.2, .9, .3, 1.25) both; }
.order-state[data-state^="approved"] .state-icon > .i { stroke-dasharray: 60; stroke-dashoffset: 60; animation: mark-draw .55s ease-out .35s forwards; }
.order-state[data-state^="approved"] .state-icon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--c-green); opacity: 0; animation: approve-ripple 1.2s ease-out .3s 2; }
@keyframes approve-ripple { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.approved-balance { font-size: var(--z-text-lg); }
/* The rolling balance sits on the text line (an overflow-hidden reel has no text baseline of its own). */
.balance-roll { display: inline-flex; direction: ltr; align-items: center; line-height: 1.2; }
.order-state .approved-balance { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; }
.approved-balance .balance-roll { color: var(--c-ink); font-weight: 800; }
.approved-balance small { font-size: var(--z-text-md); font-weight: 500; color: var(--c-muted); }


/* The glass bank card glides in; on a computer it tilts a little with the mouse and light moves across the glass. */
.gc-back { animation: gc-back-in .7s cubic-bezier(.2, .8, .2, 1) .05s backwards; }
.gc-front { transform: perspective(800px) rotateX(var(--gc-rx, 0deg)) rotateY(var(--gc-ry, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); animation: gc-front-in .7s cubic-bezier(.2, .8, .2, 1) .15s backwards; }
.gc-front::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gc-lx, 25%) var(--gc-ly, 15%), color-mix(in srgb, var(--c-on-dark) 30%, transparent), transparent 50%); opacity: var(--gc-glow, 0); transition: opacity .4s; }
@keyframes gc-back-in { from { opacity: 0; transform: translateX(26px) rotate(4deg); } }
@keyframes gc-front-in { from { opacity: 0; transform: perspective(800px) translateX(-28px) rotate(-3deg); } }

/* A small pop when the card number or the amount is copied. */
.just-copied { animation: copy-pop .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes copy-pop { 40% { transform: scale(1.04); } }

/* The logo once per visit, on the home page (motion.js adds .logo-intro). */
.logo-intro .logo-tile, .logo-intro .logo-body { transform-box: fill-box; transform-origin: center; animation: logo-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.logo-intro .logo-leaf { transform-box: fill-box; transform-origin: bottom left; animation: leaf-grow .5s cubic-bezier(.2, .9, .3, 1.3) .35s both; }
.logo-intro .logo-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw .6s ease-out .45s forwards; }
@keyframes logo-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes leaf-grow { from { transform: scale(0) rotate(-30deg); } }

@media (prefers-reduced-motion: reduce) {
  .order-state[data-state^="approved"] .state-icon, .order-state[data-state^="approved"] .state-icon::after, .gc-back, .gc-front, .just-copied,
  .logo-intro .logo-tile, .logo-intro .logo-body, .logo-intro .logo-leaf { animation: none; }
  .order-state[data-state^="approved"] .state-icon > .i, .logo-intro .logo-check { animation: none; stroke-dashoffset: 0; }
  .gc-front { transform: none; transition: none; }
}

/* ------------------------------------------------------------ monthly subscriptions (round 49) */
.plans-lead { margin: 0; font-size: var(--z-text-md); line-height: 1.9; }
.plans-note { margin: 0; line-height: 1.9; }
.sub-plans { display: grid; gap: 12px; }
.sub-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.sub-card.is-popular { box-shadow: inset 0 0 0 2px var(--c-blue), 0 18px 34px -24px color-mix(in srgb, var(--c-blue) var(--s-button), transparent); }
.sub-card > form, .sub-card > .btn { margin-top: auto; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sub-head h3 { font-size: var(--z-text-xl); font-weight: 800; line-height: 1.5; }
.sub-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--r-chip); background: var(--c-blue); color: var(--c-on-dark); font-size: var(--z-text-xs); font-weight: 800; line-height: 1.9; white-space: nowrap; }
.sub-badge-gold { background: var(--c-dark); }
.sub-badge-gold .i { color: var(--c-bank-gold); }
.sub-price { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: var(--z-text-3xl); font-weight: 800; line-height: 1.3; }
.sub-price small { font-size: var(--z-text-sm); font-weight: 500; }
.sub-feats { gap: 6px; }
.sub-current { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r-card-lg); background: var(--c-dark); color: var(--c-on-dark); position: relative; overflow: hidden; isolation: isolate; }
.sub-current::before { content: ""; position: absolute; z-index: -1; top: -90px; left: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-blue) var(--a-dark-glow), transparent), transparent); }
.sub-current h2 { font-size: var(--z-text-2xl); font-weight: 800; line-height: 1.6; }
.sub-current p { margin: 0; color: var(--c-on-dark-soft); font-size: var(--z-text-md); line-height: 1.85; }
.sub-trial-mark { padding: 1px 9px; border-radius: var(--r-chip); background: color-mix(in srgb, var(--c-on-dark) var(--a-glass-strong), transparent); font-size: var(--z-text-sm); font-weight: 700; vertical-align: middle; }
.sub-trial { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.sub-trial h3 { font-size: var(--z-text-lg); font-weight: 800; line-height: 1.6; }
.sub-trial p { margin: 0; color: var(--c-muted); font-size: var(--z-text-md); line-height: 1.9; }
.pay-discount { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--r-small); background: var(--c-green-soft); color: var(--c-green-ink); font-size: var(--z-text-md); font-weight: 700; line-height: 1.85; }
.pay-discount .i { flex: none; margin-top: calc((var(--z-text-md) * 1.85 - 16px) / 2); }
.subs-link { margin-top: 10px; }
.order-what { display: flex; flex-direction: column; gap: 2px; }
.order-what p { margin: 0; font-size: var(--z-text-md); line-height: 1.85; }
/* A price before a discount, struck through beside the new one. */
.was { margin-inline-start: 6px; color: var(--c-muted); font-size: .8em; font-weight: 600; text-decoration-thickness: 1.5px; }
.plan-full .was { color: var(--c-on-dark-muted); }
.set-sub { margin: 8px 0 0; font-size: var(--z-text-base); font-weight: 800; }
@media (min-width: 960px) {
  .page-body.plans-page { max-width: 1000px; } /* three plans side by side need the room */
  .sub-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ the start button's ring, the gold box (round 51) */
/* Today's checks left, as a ring that fills on the start button; grey and empty at zero. */
.quota-ring { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c-on-dark) var(--a-glass), transparent); }
.quota-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track, .ring-fill { fill: none; stroke-width: 3.5; }
.ring-track { stroke: color-mix(in srgb, var(--c-on-dark) 28%, transparent); }
.ring-fill { stroke: var(--c-mint); stroke-linecap: round; animation: ring-fill 1s cubic-bezier(.2, .8, .2, 1) .15s both; }
.quota-ring .num { position: relative; font-size: var(--z-text-lg); font-weight: 800; line-height: 1; color: var(--c-on-dark); }
.quota-ring.is-empty { background: transparent; }
.quota-ring.is-empty .ring-fill { display: none; }
.quota-ring.is-empty .ring-track { stroke: color-mix(in srgb, var(--c-on-dark-muted) 55%, transparent); }
.quota-ring.is-empty .num { color: var(--c-on-dark-muted); }
@keyframes ring-fill { from { stroke-dashoffset: 100; } }

/* The gold box over the prices: dark, with a light running around its gold border. */
@property --gold-sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.gold-box { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; margin: 0 0 12px; padding: 20px; border: 2px solid transparent; border-radius: var(--r-card-lg); color: var(--c-on-dark);
  background: linear-gradient(var(--c-dark), var(--c-dark)) padding-box, conic-gradient(from var(--gold-sweep), var(--c-gold-deep) 0deg, color-mix(in srgb, var(--c-gold-deep) 60%, var(--c-dark)) 120deg, var(--c-gold-deep) 230deg, var(--c-gold-light) 300deg, var(--c-gold) 320deg, var(--c-gold-deep) 360deg) border-box;
  box-shadow: 0 26px 46px -30px color-mix(in srgb, var(--c-gold-deep) 70%, transparent); animation: gold-sweep 6s linear infinite; }
.gold-box::before { content: ""; position: absolute; z-index: -1; top: -110px; right: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-gold) 22%, transparent), transparent); }
.gold-mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-small); background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold) 55%, var(--c-gold-deep)); color: var(--c-gold-ink); }
.gold-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gold-title { font-size: var(--z-text-xl); font-weight: 800; line-height: 1.6; color: var(--c-gold-light); }
.gold-text p { margin: 0; font-size: var(--z-text-md); line-height: 1.85; color: var(--c-on-dark-soft); }
.gold-text .gold-line { font-size: var(--z-text-base); font-weight: 700; color: var(--c-on-dark); }
.gold-box > .btn { flex: 1 1 100%; }
.btn-gold { background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold) 50%, var(--c-gold-deep)); color: var(--c-gold-ink); box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--c-gold-deep) var(--s-button), transparent); }
@keyframes gold-sweep { to { --gold-sweep: 360deg; } }
@media (min-width: 960px) {
  .section[data-el="plans"] > .gold-box { grid-column: 1 / -1; margin: 0; align-items: center; padding: 22px 26px; }
  .gold-box > .btn { flex: none; min-width: 220px; }
}

/* The plans page: one basic check's price under each plan, the value line, the colleague link. */
.sub-per-check { margin: -6px 0 0; font-size: var(--z-text-md); font-weight: 700; line-height: 1.8; color: var(--c-green-ink); }
.plans-value { margin: 0; font-size: var(--z-text-base); font-weight: 700; line-height: 1.9; color: var(--c-ink); }
.plans-coop { display: flex; justify-content: center; }
/* Round 55: Gold's ticks in gold; the price without a subscription under the per-check line. */
.sub-card-gold .sub-feats .i { background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold) 55%, var(--c-gold-deep)); color: var(--c-gold-ink); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--c-gold-deep) 70%, transparent); }
.sub-per-check p { margin: 0; }
.sub-per-check .sub-without { font-size: var(--z-text-sm); font-weight: 500; color: var(--c-muted); }
/* The numbers checked lately, under the number box: one tap uses one. */
.recent-nums { display: flex; flex-direction: column; gap: 8px; }
.recent-nums p { margin: 0; color: var(--c-muted); }
.recent-nums ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.recent-num { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; border-radius: var(--r-small); background: var(--c-soft); color: var(--c-ink); font-family: var(--font-body); text-align: start; }
.recent-num > .i { flex: none; color: var(--c-blue); }
.recent-num .chev { flex: none; color: var(--c-muted); }
.recent-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.recent-main b { font-size: var(--z-text-base); font-weight: 700; line-height: 1.5; }
.recent-main .mono { font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.5; }

/* ------------------------------------------------------------ the bell and the account menu (round 51) */
.top-end { display: flex; align-items: center; gap: 8px; }
.bell-btn { position: relative; flex: none; width: 44px; height: 44px; border-radius: var(--r-small); display: inline-flex; align-items: center; justify-content: center; border: 0; }
.bell-icon { background: color-mix(in srgb, var(--c-on-dark) var(--a-glass), transparent); color: var(--c-on-dark); }
.bell-desk { background: var(--c-soft); color: var(--c-blue); }
.bell-dot { display: none; position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-bell-dot); box-shadow: 0 0 0 2px var(--c-blue); }
.bell-desk .bell-dot { box-shadow: 0 0 0 2px var(--c-soft); }
.bell-btn.has-new .bell-dot { display: block; }
/* A small shake every 8 seconds while something new waits (off with the motion switch). */
.bell-btn.has-new > .i { transform-origin: 50% 3px; animation: bell-shake 8s ease-in-out 1s infinite; }
@keyframes bell-shake { 0%, 9%, 100% { transform: rotate(0); } 1.5% { transform: rotate(16deg); } 3% { transform: rotate(-13deg); } 4.5% { transform: rotate(9deg); } 6% { transform: rotate(-5deg); } 7.5% { transform: rotate(2deg); } }

/* A subscriber's badge on the account button. */
.has-badge { position: relative; }
.tier-badge { position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--c-blue); }
.dn-cta .tier-badge { box-shadow: 0 0 0 2px var(--c-ground); }
.tier-gold { background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold) 55%, var(--c-gold-deep)); color: var(--c-gold-ink); }
.tier-silver { background: linear-gradient(135deg, var(--c-silver-light), var(--c-silver) 55%, var(--c-silver-deep)); color: var(--c-silver-ink); }
.tier-bronze { background: linear-gradient(135deg, var(--c-bronze-light), var(--c-bronze) 55%, var(--c-bronze-deep)); color: var(--c-bronze-ink); }

/* The bell's list and the account menu: a bottom sheet on a phone, a drop-down on a computer. */
.menu-panel { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.bell-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bell-form { margin: 0; }
.bell-item { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 10px 8px; border: 0; border-radius: var(--r-small); background: transparent; color: var(--c-ink); font-family: var(--font-body); text-align: start; }
.bell-item:hover { background: var(--c-ground); }
.bell-item .row-icon { flex: none; width: 36px; height: 36px; }
.bi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bi-title { font-size: var(--z-text-base); font-weight: 500; line-height: 1.75; }
.bell-item.is-unread .bi-title { font-weight: 800; }
.bi-sub { font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.75; }
.bi-age { font-size: var(--z-text-xs); color: var(--c-muted); line-height: 1.8; }
.bi-dot { flex: none; width: 8px; height: 8px; margin-top: calc((var(--z-text-base) * 1.75 - 8px) / 2 + 4px); border-radius: 50%; background: var(--c-blue); }
.bell-empty { margin: 0; padding: 20px 8px; color: var(--c-muted); text-align: center; }
.bell-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--c-line); }
.bell-foot form { margin: 0; }
.bell-foot .link-btn, .notices-top .link-btn { gap: 6px; }
.bell-foot > .link-btn:only-child { margin-inline-start: auto; }
.notices-top { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.notices-list { padding: 6px; border-radius: var(--r-card); background: var(--c-card); }
.menu-body { display: flex; flex-direction: column; gap: 12px; }
.menu-facts { display: flex; flex-direction: column; gap: 8px; }
.menu-fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: var(--r-small); background: var(--c-ground); font-size: var(--z-text-md); line-height: 1.7; }
.mf-label { color: var(--c-muted); }
.mf-value { font-weight: 700; text-align: end; }
.mf-value .num { font-size: var(--z-text-base); color: var(--c-blue); }
.tier-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--r-chip); font-size: var(--z-text-sm); font-weight: 800; line-height: 1.8; }
.menu-links { display: flex; flex-direction: column; }
.menu-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 8px; border: 0; border-radius: var(--r-small); background: transparent; color: var(--c-ink); font-family: var(--font-body); font-size: var(--z-text-base); font-weight: 600; text-align: start; }
.menu-link > .i { flex: none; color: var(--c-muted); }
.menu-link:hover { background: var(--c-ground); }
.menu-body > form { margin: 0; border-top: 1px solid var(--c-line); padding-top: 6px; }
.menu-out, .menu-out > .i { color: var(--c-red-ink); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .head .appbar [data-el="bell"] { visibility: hidden; } /* the top menu has its own bell */
  .dn-inner > .bell-btn { margin-inline-end: -16px; } /* 12px from the account button, not the menu's 28 */
  dialog.sheet.drop.as-drop { inset: var(--drop-top) auto auto var(--drop-left); margin: 0; width: min(380px, calc(100vw - 32px)); max-width: none; height: fit-content; }
  dialog.sheet.drop.as-drop::backdrop { background: transparent; }
  dialog.sheet.drop.as-drop .sheet-panel { max-height: min(72dvh, 600px); padding: 6px 14px 14px; border-radius: var(--r-card); box-shadow: 0 26px 50px -22px color-mix(in srgb, var(--c-shadow) 45%, transparent), 0 0 0 1px var(--c-line); }
  dialog.sheet.drop.as-drop[open] .sheet-panel { animation: drop-in .18s ease-out both; }
  dialog.sheet.drop.as-drop.closing .sheet-panel { animation: fade-out .15s ease-in both; }
}

/* ------------------------------------------------------------ the subscription's logic (round 51, part 3) */
.sub-offer { margin: 0; color: var(--c-green-ink); font-size: var(--z-text-md); font-weight: 800; line-height: 1.8; }
.sub-note { margin: -4px 0 0; line-height: 1.8; text-align: center; }
.sub-refund { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--c-on-dark) 16%, transparent); }
.sub-refund p { font-size: var(--z-text-sm); }
.sub-refund .link-btn { align-self: flex-start; padding: 0; color: var(--c-link-on-dark); }
.plans-guarantee { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--r-small); background: var(--c-green-soft); color: var(--c-green-ink); font-size: var(--z-text-md); font-weight: 600; line-height: 1.85; }
.plans-guarantee > .i { flex: none; margin-top: calc((var(--z-text-md) * 1.85 - 18px) / 2); }
.gold-text .gold-guarantee { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; color: var(--c-gold-light); font-size: var(--z-text-sm); line-height: 1.85; }
.gold-guarantee > .i { flex: none; margin-top: calc((var(--z-text-sm) * 1.85 - 16px) / 2); }
.more-upgrade { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.more-upgrade p { margin: 0; text-align: center; line-height: 1.8; }
/* The device choice of the two-device limit. */
.device-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.device-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px; }
.device-row .row-main { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.device-row form { margin: 0; }
.device-row .btn { min-height: 44px; font-size: var(--z-text-base); }
/* The panel's subscribers. */
.subs-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sub-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sub-row { display: flex; flex-direction: column; gap: 4px; color: var(--c-ink); }
.sub-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sub-row-email { font-size: var(--z-text-base); }
.sub-row-money { font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.8; }

/* The colleague area (3B): the gold special-seller tick, the colleague page, the panel's applications. */
.special-tick { flex: none; vertical-align: -3px; }
.special-tick .st-rosette { fill: var(--c-gold-deep); }
.special-tick .st-check { stroke: var(--c-card); }
.issuer { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: var(--z-text-sm); font-weight: 700; color: var(--c-muted); }
.issuer-special { display: inline-flex; align-items: center; gap: 4px; color: var(--c-gold-deep); font-weight: 800; }
.inv-shop-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inv-special { font-size: var(--z-text-xs); font-weight: 800; color: var(--c-gold-deep); }
.coop-page { display: flex; flex-direction: column; gap: 14px; }
.coop-heading { margin: 0; font-size: var(--z-text-3xl); font-weight: 900; line-height: 1.5; }
.coop-page > p { margin: 0; line-height: 1.9; }
.coop-prices { display: flex; flex-direction: column; gap: 8px; }
.coop-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: var(--r-small); background: var(--c-ground); font-weight: 700; }
.coop-price b { font-size: var(--z-text-lg); color: var(--c-blue); }
.coop-prices h3 { margin: 6px 0 0; font-size: var(--z-text-base); font-weight: 800; }
.coop-sub { padding-block: 10px; }
.cs-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: left; }
.cs-price b { font-size: var(--z-text-base); white-space: nowrap; }
.cs-name { display: flex; align-items: flex-start; gap: 10px; }
.cs-name > span { display: flex; flex-direction: column; gap: 2px; }
.cs-name b { color: var(--c-ink); font-size: var(--z-text-base); }
.cs-daily { font-size: var(--z-text-sm); font-weight: 500; color: var(--c-muted); }
.cs-dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; }
.cs-bronze { background: linear-gradient(135deg, var(--c-bronze-light), var(--c-bronze-deep)); }
.cs-silver { background: linear-gradient(135deg, var(--c-silver-light), var(--c-silver-deep)); }
.cs-gold { background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold-deep)); }
.coop-form { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 12px; }
.coop-form p { margin: 0 0 6px; line-height: 1.9; }
.coop-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; padding: 0; border: 0; }
.coop-acts legend { padding: 0; margin-bottom: 6px; }
/* Each activity reads as a tick box: a pale tick until chosen, then blue. */
.coop-acts .pill > span { gap: 6px; }
.coop-acts .pill .i { color: var(--c-line); transition: color .15s; }
.coop-acts .pill input:checked + span .i { color: var(--c-blue); }
.coop-form .btn { margin-top: 8px; }
.app-card { display: flex; flex-direction: column; gap: 10px; }
.app-name { font-size: var(--z-text-xl); font-weight: 900; }
.app-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.app-acc { display: inline-flex; align-items: center; min-height: 44px; }

/* The seller's certificate (round 52): the home link, the page that explains it, the result card, the picture. */
.sell-promo .row-main { flex: 1; }
.sell-card { display: flex; flex-direction: column; gap: 12px; }
.sell-card h2 { margin: 0; font-size: var(--z-text-2xl); font-weight: 900; line-height: 1.6; }
.sell-card p { margin: 0; line-height: 1.9; }
.sell-mark { align-self: flex-start; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-small); background: var(--c-green-soft); color: var(--c-green-ink); }
.sell-steps { margin: 0; padding: 0 24px 0 0; display: flex; flex-direction: column; gap: 10px; list-style-type: persian; }
.sell-steps li::marker { font-weight: 800; color: var(--c-blue); }
.sell-steps b { display: block; font-size: var(--z-text-base); font-weight: 800; line-height: 1.7; }
.sell-steps p { font-size: var(--z-text-md); color: var(--c-muted); }
.sell-price { font-size: var(--z-text-lg); font-weight: 800; color: var(--c-ink); }
.cert-card { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 18px; border-radius: var(--r-card); background: var(--c-card); box-shadow: inset 0 0 0 2px var(--c-green); }
.cert-card p { margin: 0; color: var(--c-muted); line-height: 1.9; }
.cert-card-head { display: flex; align-items: center; gap: 10px; }
.cert-card-head h3 { font-size: var(--z-text-lg); font-weight: 900; line-height: 1.6; }
.cert-card-mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-small); background: var(--c-green-soft); color: var(--c-green-ink); }
.cert-page { display: flex; flex-direction: column; gap: 14px; }
.cert-lead { margin: 0; line-height: 1.9; }
.cert-frame { border-radius: var(--r-card); overflow: hidden; box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--c-shadow) 55%, transparent); background: var(--c-card); }
.cert-frame canvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.cert-actions { margin: 0; }
@media (min-width: 960px) { .page-body.cert-page { max-width: 620px; } }

/* After buying: six things to do before leaving the shop (round 52). */
.after-buy { margin-top: 14px; padding: 0 16px; border-radius: var(--r-card); background: var(--c-card); }
.after-buy > summary { list-style: none; display: flex; align-items: flex-start; gap: 10px; padding: calc((56px - var(--z-text-base) * 1.7) / 2) 0; font-size: var(--z-text-base); font-weight: 800; line-height: 1.7; }
.after-buy > summary::-webkit-details-marker { display: none; }
.after-buy > summary > .i { flex: none; margin-top: calc((var(--z-text-base) * 1.7 - 20px) / 2); color: var(--c-green-ink); }
.after-buy > summary > .chev { width: 18px; height: 18px; margin-top: calc((var(--z-text-base) * 1.7 - 18px) / 2); margin-inline-start: auto; color: var(--c-muted); transition: transform .2s; }
.after-buy[open] > summary > .chev { transform: rotate(180deg); }
.after-lead { margin: 0 0 10px; font-size: var(--z-text-md); color: var(--c-muted); line-height: 1.9; }
.after-list { margin: 0; padding: 0 24px 16px 0; display: flex; flex-direction: column; gap: 12px; list-style-type: persian; }
.after-list bdi.en { white-space: nowrap; } /* a menu's name never breaks across lines */
.after-list li { padding-inline-start: 4px; }
.after-list li::marker { font-weight: 800; color: var(--c-blue); }
.after-list b { display: block; font-size: var(--z-text-base); font-weight: 800; line-height: 1.7; }
.after-list p { margin: 2px 0 0; font-size: var(--z-text-md); line-height: 1.9; color: var(--c-muted); }

/* ------------------------------------------------------------ the SibCheck invoice (rounds 52–54, draft A) */
.invoice-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.invoice-tools p { margin: 0; line-height: 1.8; }
.inv { display: flex; flex-direction: column; gap: 14px; padding: 22px 18px; border-radius: var(--r-card); background: var(--c-card); color: var(--c-ink); font-size: var(--z-text-md); line-height: 1.8; }
.inv p, .inv h1, .inv h2 { margin: 0; }
.inv-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand meta" "title title"; align-items: center; gap: 10px 14px; padding-bottom: 12px; border-bottom: 3px solid var(--c-blue); }
.inv-brand { grid-area: brand; display: flex; align-items: center; gap: 8px; }
.inv-brand b { font-size: var(--z-text-3xl); font-weight: 900; color: var(--c-blue); }
.inv-title { grid-area: title; text-align: center; }
.inv-title h1 { font-size: var(--z-text-2xl); font-weight: 900; line-height: 1.6; }
.inv-title p { font-size: var(--z-text-sm); color: var(--c-muted); }
.inv-meta { grid-area: meta; justify-self: end; font-size: var(--z-text-sm); line-height: 1.8; text-align: end; }
.inv-parties { display: grid; grid-template-columns: 1fr 130px; grid-template-areas: "seller stamp" "buyer stamp"; border: 1px solid var(--c-line); border-radius: var(--r-inner); overflow: hidden; }
.inv-party { grid-area: seller; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.inv-buyer { grid-area: buyer; border-top: 1px solid var(--c-line); }
.inv-stamp { grid-area: stamp; display: flex; align-items: center; justify-content: center; padding: 8px; border-inline-start: 1px solid var(--c-line); color: var(--c-placeholder); font-size: var(--z-text-sm); text-align: center; }
.inv-k { font-weight: 800; color: var(--c-ink); }
.inv-shop { font-size: var(--z-text-xl); font-weight: 900; }
.inv-fill { display: flex; align-items: flex-end; gap: 8px; min-height: 34px; }
.inv-line { flex: 1; min-width: 40px; height: 1.4em; border-bottom: 1.5px dotted var(--c-placeholder); }
.inv-block h2 { margin-bottom: 6px; font-size: var(--z-text-base); font-weight: 900; color: var(--c-blue-deep); }
.inv-rows, .inv-checks { display: grid; grid-template-columns: 1fr; border: 1px solid var(--c-line); border-radius: var(--r-inner); overflow: hidden; }
.inv-row, .inv-check { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; }
.inv-row + .inv-row, .inv-check + .inv-check { border-top: 1px solid var(--c-line); }
.inv-row .inv-k, .inv-check .inv-k { font-weight: 700; color: var(--c-muted); }
.inv-val, .inv-v { font-weight: 800; text-align: end; }
.inv-v { display: inline-flex; align-items: center; gap: 6px; }
.inv-v .mark { width: 22px; height: 22px; }
.inv-verdict { margin-top: 8px; padding: 8px 12px; border-radius: var(--r-inner); font-weight: 900; text-align: center; }
.inv-verdict-green { background: var(--c-green-soft); color: var(--c-green-ink); }
.inv-verdict-yellow { background: var(--c-amber-soft); color: var(--c-amber-ink); }
.inv-verdict-red { background: var(--c-red-soft); color: var(--c-red-ink); }
.inv-price { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 12px; border: 2px solid var(--c-blue); border-radius: var(--r-inner); font-weight: 700; }
.inv-bottom { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.inv-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 1px solid var(--c-line); border-radius: var(--r-inner); }
.inv-qr p { font-size: var(--z-text-xs); line-height: 1.7; color: var(--c-muted); text-align: center; }
.inv-qr svg { width: 100%; height: auto; max-width: 110px; }
.inv-signs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--c-line); border-radius: var(--r-inner); }
.inv-signs div { min-height: 120px; padding: 8px 10px; font-weight: 800; }
.inv-signs div + div { border-inline-start: 1px solid var(--c-line); }
.inv-disc { padding-top: 10px; border-top: 1px dashed var(--c-line); font-size: var(--z-text-sm); line-height: 1.9; color: var(--c-muted); text-align: center; }
@media (min-width: 700px) {
  .inv { padding: 34px 40px; }
  .inv-head { grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand title meta"; }
  .inv-parties { grid-template-columns: 1fr 160px; }
  .inv-rows, .inv-checks { grid-template-columns: 1fr 1fr; }
  .inv-row:nth-child(2), .inv-check:nth-child(2) { border-top: 0; }
  .inv-row:nth-child(even), .inv-check:nth-child(even) { border-inline-start: 1px solid var(--c-line); }
  .inv-price { grid-template-columns: 1fr 1fr; }
  .inv-bottom { grid-template-columns: 160px 1fr; }
  .inv-signs div { min-height: 170px; }
}
/* Printing: only the invoice, on an A4 page (A5 is chosen in the print window). */
@page { size: A4; margin: 12mm; }
@media print {
  html, body, .app { background: var(--c-card); }
  body.invoice-body .desk-nav, body.invoice-body .head, body.invoice-body .invoice-tools, body.invoice-body .toasts, body.invoice-body dialog, body.invoice-body .announce { display: none; }
  body.invoice-body, body.invoice-body .app { min-height: 0; padding: 0; margin: 0; }
  body.invoice-body .invoice-wrap { max-width: none; padding: 0; margin: 0; }
  .inv { padding: 0; border-radius: 0; font-size: 12px; line-height: 1.7; gap: 8px; break-inside: avoid; }
  .inv-head { padding-bottom: 8px; }
  .inv-fill { min-height: 28px; }
  .inv-party { padding: 6px 10px; gap: 2px; }
  .inv-row, .inv-check { padding: 4px 10px; }
  .inv-block h2 { margin-bottom: 4px; }
  .inv-verdict { margin-top: 6px; padding: 6px 10px; }
  .inv-price { padding: 4px 10px; }
  .inv-head { grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand title meta"; }
  .inv-parties { grid-template-columns: 1fr 150px; }
  .inv-rows, .inv-checks { grid-template-columns: 1fr 1fr; }
  .inv-row:nth-child(2), .inv-check:nth-child(2) { border-top: 0; }
  .inv-row:nth-child(even), .inv-check:nth-child(even) { border-inline-start: 1px solid var(--c-line); }
  .inv-price { grid-template-columns: 1fr 1fr; }
  .inv-bottom { grid-template-columns: 150px 1fr; }
  .inv-signs div { min-height: 112px; }
  .inv-qr svg { max-width: 92px; }
  .inv * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The panel's notices. */
.notice-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.notice-card { display: flex; flex-direction: column; gap: 6px; }
.notice-card p { margin: 0; }
.nc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nc-title { font-size: var(--z-text-lg); font-weight: 800; line-height: 1.7; }
.nc-body { color: var(--c-muted); line-height: 1.8; }
.nc-link { font-size: var(--z-text-sm); overflow-wrap: anywhere; }
.notice-card form { margin-top: 4px; }
.section-flat { margin-top: 22px; }

/* The admin's deposit list: a Gold subscriber's deposit, checked first. */
.dep-gold { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--r-chip); background: var(--c-dark); color: var(--c-gold-light); font-size: var(--z-text-xs); font-weight: 800; line-height: 1.9; white-space: nowrap; }
.dep-gold .i { color: var(--c-gold); }

@media (prefers-reduced-motion: reduce) {
  .ring-fill, .gold-box, .bell-btn.has-new > .i { animation: none; }
  dialog.sheet.drop.as-drop[open] .sheet-panel, dialog.sheet.drop.as-drop.closing .sheet-panel { animation: none; }
}

/* ------------------------------------------------------------ alignment (Roozbeh, 2026-10-04)
   An icon or a mark beside text sits on the centre of the text's FIRST line, also when the
   text wraps. Each offset is computed from the size tokens the text itself uses, so it stays
   right when sizes are changed in the editor: (line height - icon size) / 2. */
.reason { align-items: flex-start; }
.reason > .i { flex: none; margin-top: calc((var(--z-text-base) * 1.7 - 18px) / 2); }
.notice > .i { flex: none; margin-top: calc((var(--z-text-md) * 1.85 - 18px) / 2); }
.claim { align-items: flex-start; }
.claim .k { line-height: calc(var(--z-text-base) * 1.7); }
.claim > .mark { margin-top: calc((var(--z-text-base) * 1.7 - 28px) / 2); }
.claim .v { align-items: flex-start; } /* the Latin value starts where the line under it starts */
.tile-top { align-items: flex-start; }
.tile-top > .mark { margin-top: calc((var(--z-text-sm) * 1.6 - 28px) / 2); }

/* A row's description under its title: quieter than the title (a state keeps .row-state). */
.row-sub { font-size: var(--z-text-md); font-weight: 500; color: var(--c-muted); line-height: 1.7; }

/* A Latin value in an account row (an email) never loses its start: it is cut at its end. */
.acc-value > [dir="ltr"] { display: block; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.acc-value > .en { font-size: var(--z-text-base); }
.acc-value > .en.long { font-size: var(--z-text-sm); }

/* No line ends with a single word left alone; headings are balanced over their lines. */
body { text-wrap-style: pretty; }
h1, h2, h3, .q-title, .sec-title { text-wrap-style: balance; }

/* A same-page change (a panel form, a live update): only the cards move; the rest crossfades
   without the page-to-page slide. */
html.vt-swap::view-transition-old(root) { animation: vt-fade-out .2s ease both; }
html.vt-swap::view-transition-new(root) { animation: vt-fade-in .2s ease both; }
html.vt-swap::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-group(desk-nav), ::view-transition-group(tab-bar) { z-index: 2; } /* a gliding card passes under the bars, never over them */
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* ------------------------------------------------------------ colleagues: the check flow (3B slice 2) */
.coop-purpose { display: flex; flex-direction: column; gap: 8px; margin: 0 0 4px; padding: 0; border: 0; }
.coop-purpose legend { padding: 0; margin-bottom: 6px; }
.pill-tick > span { gap: 6px; }
.pill-tick .i { color: var(--c-line); transition: color .15s; }
.pill-tick input:checked + span .i { color: var(--c-blue); }
.purpose-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--r-chip); background: var(--c-soft); color: var(--c-blue); font-size: var(--z-text-sm); font-weight: 700; }
.checks-search { display: flex; gap: 8px; margin-bottom: 12px; }
.checks-search .field { flex: 1; min-width: 0; }
.search-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--z-control-h); height: var(--z-control-h); border: 0; border-radius: var(--r-control); background: var(--c-blue); color: var(--c-on-dark); cursor: pointer; }
.checks-none { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 12px; text-align: center; color: var(--c-muted); }
.checks-none .link { display: inline-flex; align-items: center; min-height: 44px; }
.row-id { align-self: flex-start; font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.5; }
.check-card .notice-link { margin-top: 10px; }

/* ------------------------------------------------------------ the bulk check (3B slice 2b) */
.bulk-page { display: flex; flex-direction: column; gap: 14px; }
.bulk-page > p { margin: 0; line-height: 1.9; }
.bulk-form { display: flex; flex-direction: column; gap: 8px; }
.bulk-list { min-height: 200px; font-family: var(--font-mono); letter-spacing: .02em; line-height: 1.7; }
.bulk-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bulk-lines li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: var(--r-small); background: var(--c-ground); }
.bulk-pos { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-soft); color: var(--c-blue); font-size: var(--z-text-sm); font-weight: 800; }
.bulk-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bulk-id .mono { font-size: var(--z-text-base); }
.bulk-id b { font-size: var(--z-text-sm); color: var(--c-muted); font-weight: 700; }
.bulk-aside ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bulk-aside li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 12px; border-radius: var(--r-small); background: var(--c-ground); }
.bulk-aside .mono { overflow-wrap: anywhere; }
.bulk-sum { display: flex; flex-direction: column; gap: 8px; }
.bulk-sum p { margin: 0; line-height: 1.8; }
.bulk-live { display: flex; flex-direction: column; gap: 12px; }
.bulk-progress { display: flex; flex-direction: column; gap: 10px; }
.bulk-progress p { margin: 0; }
.bp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bulk-bar { display: block; width: 100%; height: 8px; }
.bb-track { fill: var(--c-soft); }
.bb-fill { fill: var(--c-blue); transition: x .4s ease, width .4s ease; }
[data-state="bulk-done"] .bb-fill { fill: var(--c-green); }
.bulk-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-weight: 700; }

/* ------------------------------------------------------------ the colleague's dashboard (3B slice 2c) */
.cd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cd-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 8px 6px; border-radius: var(--r-small); background: var(--c-ground); text-align: center; font-size: var(--z-text-sm); color: var(--c-muted); line-height: 1.5; }
.cd-stat b { font-size: var(--z-text-xl); color: var(--c-ink); font-weight: 900; line-height: 1.4; }
.cd-stat:last-child b { font-size: var(--z-text-base); }
.coop-reward { display: flex; flex-direction: column; gap: 10px; }
.coop-reward p { margin: 0; line-height: 1.85; }
.cr-head { display: flex; align-items: center; gap: 10px; }
.cr-head .sec-title { margin: 0; }
.reward-done { font-weight: 700; color: var(--c-green-ink); }
.coop-links { display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------ panel: the group gift (round 48) */
.gift-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gift-row { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-small); background: var(--c-ground); line-height: 1.8; }
.gift-row form { margin-top: 6px; }
.gift-row.is-off { opacity: .7; }

/* ------------------------------------------------------------ panel: statistics (3D) */
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: var(--z-text-base); font-weight: 700; }
.st-chip.is-on { box-shadow: inset 0 0 0 2px var(--c-blue); }
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-tile { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 92px; padding: 10px; border-radius: var(--r-tile); background: var(--c-card); text-align: center; }
.st-label { font-size: var(--z-text-sm); color: var(--c-muted); font-weight: 700; }
.st-tile b { font-size: var(--z-text-base); font-weight: 900; line-height: 1.5; color: var(--c-ink); }
.st-tile small { display: block; font-size: var(--z-text-sm); color: var(--c-muted); font-weight: 700; }
.st-tile.tone-green b { color: var(--c-green-ink); }
.st-tile.tone-red b { color: var(--c-red-ink); }
.st-table { display: flex; flex-direction: column; gap: 4px; }
.st-row { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); align-items: center; gap: 4px; min-height: 40px; padding: 4px 8px; border-radius: var(--r-inner); background: var(--c-ground); font-size: var(--z-text-sm); text-align: center; }
.st-row > :first-child { text-align: start; font-weight: 700; }
.st-head { background: transparent; color: var(--c-muted); font-weight: 700; font-size: var(--z-text-xs); }
.st-row b { font-size: var(--z-text-base); }
.st-sum { border-top: 1px solid var(--c-line); }
.st-tier { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.st-tier:last-of-type { border-bottom: 0; }
.st-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.st-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-tiles-2 .st-tile { background: var(--c-ground); min-height: 76px; }
.st-code { display: block; padding: 10px 12px; border-radius: var(--r-inner); background: var(--c-ground); font-family: var(--font-mono); font-size: var(--z-text-md); text-align: left; white-space: nowrap; overflow-x: auto; }

/* ------------------------------------------------------------ articles (3F) */
.art-list-page, .art-page { display: flex; flex-direction: column; gap: 14px; }
.art-meta { margin: 0; font-size: var(--z-text-sm); color: var(--c-muted); }
.art { display: flex; flex-direction: column; gap: 14px; }
.art-head h1 { margin: 0 0 6px; font-size: var(--z-text-4xl); font-weight: 900; line-height: 1.55; }
.art-toc b { display: block; margin-bottom: 6px; }
.art-toc ol { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; list-style: none; } /* headings carry their own numbers */
.art-toc a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; line-height: 1.6; }
.art-body { font-size: var(--z-text-lg); line-height: 2.05; color: var(--c-ink); }
.art-body h2 { margin: 26px 0 8px; font-size: var(--z-text-2xl); font-weight: 900; line-height: 1.6; scroll-margin-top: 12px; }
.art-body h3 { margin: 18px 0 6px; font-size: var(--z-text-xl); font-weight: 800; line-height: 1.6; }
.art-body p { margin: 0 0 14px; }
.art-body ul, .art-body ol { margin: 0 0 14px; padding: 0 22px 0 0; }
.art-body ol { list-style: persian; }
.art-body li { margin-bottom: 6px; }
.art-body a:not(.btn) { color: var(--c-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding-block: 12px; } /* a full-size tap area; the line does not move */
.art-body blockquote { margin: 0 0 14px; padding: 10px 14px; border-inline-start: 4px solid var(--c-blue); border-radius: var(--r-inner); background: var(--c-soft); }
.art-body code { font-family: var(--font-mono); font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line); }
.art-body .art-code { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-inner); background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line); overflow-x: auto; text-align: left; line-height: 1.7; }
.art-body .art-code code { padding: 0; background: none; box-shadow: none; }
.art-invite { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 18px; text-align: center; background: linear-gradient(180deg, var(--c-soft), var(--c-card)); box-shadow: inset 0 0 0 1px var(--c-line); }
.art-invite b { font-size: var(--z-text-xl); font-weight: 900; line-height: 1.6; }
.art-invite p { margin: 0; font-size: var(--z-text-md); line-height: 1.9; color: var(--c-muted); }
.art-invite .stack { width: 100%; }
.art-invite-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-card); color: var(--c-blue); box-shadow: 0 6px 20px color-mix(in srgb, var(--c-blue) 18%, transparent); }
.art-more { align-self: center; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ------------------------------------------------------------ panel: the article editor (3F) */
.md-form { display: flex; flex-direction: column; gap: 8px; }
.md-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.md-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-small); background: var(--c-ground); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); font-family: var(--font-button); font-size: var(--z-text-md); font-weight: 700; cursor: pointer; }
.md-tool:active { background: var(--c-soft); }
.md-body { height: auto; min-height: 420px; padding: 14px 16px; line-height: 1.9; resize: vertical; }
.md-cover { max-height: 200px; }
.md-help summary { display: flex; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; }
.art-view-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------------------ the result image (part 4) */
.img-card { display: flex; flex-direction: column; gap: 10px; }
.img-card p { margin: 0; line-height: 1.85; }
.img-card-head { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------ phone notifications (part 4) */
.push-card { display: flex; flex-direction: column; gap: 10px; }
.push-card p { margin: 0; line-height: 1.85; }
.push-guide { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-small); background: var(--c-ground); }
.push-guide[hidden] { display: none; }
.push-guide ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.push-guide li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.85; font-size: var(--z-text-md); }
.push-guide li .i { flex: none; margin-top: calc((var(--z-text-md) * 1.85 - 18px) / 2); color: var(--c-blue); }

/* ------------------------------------------------------------ the coming-soon page (part 5, the beta gate) */
.soon-band { display: flex; flex-direction: column; align-items: center; padding-top: calc(env(safe-area-inset-top) + 28px); padding-bottom: 36px; text-align: center; }
.soon-copy { display: flex; flex-direction: column; align-items: center; max-width: 560px; }
.soon-brand { color: var(--c-on-dark); font-size: var(--z-text-2xl); }
.soon-chip { margin-top: 22px; }
.soon-band h1 { margin-top: 14px; }
.soon-phone { display: flex; justify-content: center; margin-top: 26px; animation: float 6s ease-in-out infinite; }
.soon-phone .phone { transform: scale(.86); transform-origin: top center; margin-bottom: -70px; }
.soon-body { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; padding: 26px 16px 0; }
.soon-why { font-size: var(--z-text-2xl); font-weight: 800; line-height: 1.6; }
.soon-contact { display: flex; flex-direction: column; gap: 10px; }
.soon-contact h2 { font-size: var(--z-text-xl); font-weight: 800; line-height: 1.6; }
.soon-contact p { margin: 0; line-height: 1.85; }
.soon-tester { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; text-align: center; }
.soon-tester p { margin: 0; line-height: 1.85; }
.soon-tester form { display: contents; }
@media (min-width: 960px) {
  .soon-band { flex-direction: row; justify-content: center; gap: 72px; padding: 56px max(24px, calc((100vw - 1160px) / 2)) 56px; text-align: start; border-radius: 0 0 48px 48px; }
  .soon-copy { align-items: flex-start; }
  .soon-band h1 { font-size: 52px; line-height: 1.4; }
  .soon-band .hero-text { font-size: var(--z-text-xl); }
  .soon-phone { margin-top: 0; perspective: 1400px; }
  .soon-phone .phone { transform: rotateY(16deg) rotateX(5deg) rotateZ(-1deg); margin-bottom: 0; }
  .soon-body { max-width: 1040px; padding: 40px 24px 0; gap: 18px; }
  .soon-contact { width: 100%; max-width: 640px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-phone { animation: none; }
}

/* ------------------------------------------------------------ panel: the beta */
.beta-state { display: flex; flex-direction: column; gap: 10px; }
.beta-state p { margin: 0; line-height: 1.85; }
.beta-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.beta-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.beta-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.beta-row:first-child { border-top: 0; }
.beta-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.beta-row-main b { white-space: normal; overflow-wrap: anywhere; text-align: end; }
.beta-row form { flex: none; }

/* ------------------------------------------------------------ panel: backups */
.backup-key { border-top: 1px solid var(--c-line); padding-top: 10px; }
.backup-key summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; list-style: none; }
.backup-key summary::-webkit-details-marker { display: none; }
.backup-key[open] summary .i { transform: rotate(180deg); }
.backup-key p { margin: 4px 0 10px; line-height: 1.85; }
.key-box { display: block; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r-small); background: var(--c-ground); box-shadow: inset 0 0 0 1px var(--c-line); font-family: var(--font-mono); font-size: var(--z-text-md); overflow-wrap: anywhere; text-align: left; user-select: all; }
.backup-last { align-items: flex-start; line-height: 1.85; }
.backup-last .i { flex: none; margin-top: calc((1.85em - 18px) / 2); }

/* Plan cards: an old (struck-through) price sits small above the new one, never beyond the card's edge. */
.plan .price { flex-wrap: wrap; row-gap: 0; }
.plan .was { order: -1; flex-basis: 100%; margin: 0; font-size: .62em; line-height: 1.4; }

/* Result page: the after-purchase list, the notification card and the image card sit 16px in, like every other card. */
.r-main > .after-buy, .r-main > .push-card, .r-side > .img-card { margin: 14px 16px 0; }
@media (min-width: 960px) {
  .result-result .r-main > .after-buy, .result-result .r-main > .push-card { margin-inline: 0; }
  .result-result .r-side > .img-card { margin: 16px 0 0; }
  /* The soft button nearly disappears on the computer's background: a white button with a border there. */
  .result-result .r-side .actions .btn-soft { background: var(--c-card); box-shadow: inset 0 0 0 1.5px var(--c-soft); }
}

/* Computer home: the full check on the right at full height, mid and basic stacked beside it — no empty
   middle in the smaller cards; the colleague link under them all; the sell card a step below. */
@media (min-width: 960px) {
  .section[data-el="plans"] { grid-template-columns: 1.3fr 1fr; }
  .section[data-el="plans"] .plan-full { grid-row: span 2; }
  .section[data-el="plans"] > .plans-coop { grid-column: 1 / -1; }
  .section[data-el="plans"] .plan { gap: 4px; }
  .section[data-el="sell-section"] { margin-top: 22px; }
}


/* Final review fixes */
.amount-options > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.site-footer .slogan { color: var(--c-ink); }
.cs-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cs-value .cs-cond { margin-inline-start: 0; }

/* ------------------------------------------------------------ articles: the list (search, cards with pictures, pages) */
.art-lead { margin: 0; color: var(--c-muted); line-height: 1.9; }
.art-search { position: relative; display: flex; }
.art-search-field { padding-inline-start: 16px; padding-inline-end: 56px; background: var(--c-card); }
.art-search-field::-webkit-search-cancel-button { display: none; }
.art-search-go { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-small); background: var(--c-blue); color: var(--c-on-dark); cursor: pointer; }
.art-found { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-weight: 700; line-height: 1.8; }
.art-found .link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.art-grid { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.art-card { display: flex; align-items: stretch; gap: 14px; padding: 10px; border-radius: var(--r-card); background: var(--c-card); color: var(--c-ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--c-shadow) var(--s-soft), transparent); transition: transform .2s, box-shadow .2s; }
.art-card:active { transform: scale(.99); }
.art-thumb { flex: none; display: block; width: 112px; height: 112px; object-fit: cover; border-radius: calc(var(--r-card) - 8px); background: var(--c-soft); }
.art-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--c-blue); }
.art-thumb-pic { flex: none; display: contents; }
.art-thumb-pic > source { display: none; } /* not a box of its own: no gap above the picture */
.art-card-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-block: 4px; }
.art-card h2 { margin: 0; font-size: var(--z-text-lg); font-weight: 900; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-card p { margin: 0; color: var(--c-muted); line-height: 1.85; font-size: var(--z-text-md); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-item:not(.is-featured) .art-card p { display: none; }
.art-card .art-meta { margin-top: auto; }
/* The newest article on the first page: its picture large, its words under it. */
.art-item.is-featured .art-card { flex-direction: column; gap: 10px; padding: 0 0 14px; overflow: hidden; }
.art-item.is-featured .art-thumb { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 0; }
.art-item.is-featured .art-card-text { padding: 0 16px; }
.art-item.is-featured h2 { font-size: var(--z-text-2xl); }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pager-pages { display: inline-flex; gap: 6px; }
.pager-page, .pager-step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r-small); background: var(--c-card); color: var(--c-ink); font-weight: 800; box-shadow: inset 0 0 0 1px var(--c-line); }
.pager-page.on { background: var(--c-blue); color: var(--c-on-dark); box-shadow: none; }
.pager-step { color: var(--c-blue); }
/* The article: its picture large at the top, figures kept to the screen's height. */
.art-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-card); background: var(--c-soft); box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--c-shadow) 55%, transparent); }
.art-figure { margin: 6px 0 20px; display: flex; flex-direction: column; align-items: center; }
.art-figure img { width: auto; max-width: 100%; max-height: 72vh; border-radius: var(--r-card); box-shadow: 0 14px 34px -24px color-mix(in srgb, var(--c-shadow) 60%, transparent); }
.art-figure figcaption { margin-top: 10px; max-width: 520px; font-size: var(--z-text-md); line-height: 1.8; color: var(--c-muted); text-align: center; }
@media (min-width: 960px) {
  .art-list-page { max-width: 1160px; }
  .art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .art-card { flex-direction: column; padding: 0 0 14px; overflow: hidden; }
  .art-thumb { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 0; }
  .art-card-text { padding: 0 16px; }
  .art-item:not(.is-featured) .art-card p { display: -webkit-box; }
  .art-item.is-featured { grid-column: 1 / -1; }
  .art-item.is-featured .art-card { flex-direction: row; align-items: center; padding: 0; gap: 0; }
  .art-item.is-featured .art-thumb { width: 58%; }
  .art-item.is-featured .art-card-text { padding: 24px 28px; gap: 8px; }
  .art-item.is-featured h2 { font-size: var(--z-text-4xl); line-height: 1.5; }
  .art-search { max-width: 560px; }
  .art-page { max-width: 760px; }
}

/* The result picture in a window in the middle of the screen (2026-10-09): copy or save it from there. */
dialog.sheet.img-view, dialog#img-view { inset: 0; margin: auto; width: calc(100% - 24px); max-width: 860px; height: fit-content; max-height: 94dvh; }
#img-view .sheet-panel { border-radius: var(--r-sheet); max-height: 94dvh; }
#img-view .sheet-grip { display: none; }
.img-view-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.img-view-tab { min-height: 44px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: var(--r-chip); background: var(--c-card); color: var(--c-ink); font: 700 var(--z-text-md) var(--font-button); }
.img-view-tab[aria-selected="true"] { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-on-dark); }
.img-view-box { position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 8px; border-radius: var(--r-tile); background: var(--c-ground); }
.img-view-wait { position: absolute; inset: 8px; border-radius: var(--r-inner); }
.img-view-img { position: relative; display: block; max-width: 100%; max-height: 62dvh; width: auto; height: auto; border-radius: var(--r-inner); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--c-shadow) 60%, transparent); -webkit-touch-callout: default; user-select: auto; }
.img-view-hint { margin: 0; }
.img-view-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* The panel's animation switch (generated when served, render/assets.ts). */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html[data-motion="off"] .logo-draw { stroke-dashoffset: 0; }
html[data-motion="off"] .wstep { opacity: 1; }
html[data-motion="off"] .advice::after { display: none; }
html[data-motion="off"] .intro-phone-body, html[data-motion="off"] .intro-island, html[data-motion="off"] .intro-chip, html[data-motion="off"] .intro-full .intro-items li { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
html[data-motion="off"] .intro-scan { display: none; }
html[data-motion="off"] .overall, html[data-motion="off"] .fmi, html[data-motion="off"] .overall .badge, html[data-motion="off"] .fmi .badge, html[data-motion="off"] .overall .overall-title, html[data-motion="off"] .fmi .fmi-title, html[data-motion="off"] .overall .sub, html[data-motion="off"] .fmi .sub, html[data-motion="off"] .overall .eyebrow, html[data-motion="off"] .reasons .reason, html[data-motion="off"] .hero h1 .w, html[data-motion="off"] [data-el="check-submit"], html[data-motion="off"] .show .phone, html[data-motion="off"] .hero-phone { animation: none; opacity: 1; transform: none; }
html[data-motion="off"] .overall .badge > .i, html[data-motion="off"] .fmi .badge > .i { animation: none; stroke-dashoffset: 0; }
html[data-motion="off"] .reveal, html[data-motion="off"] .tiles.reveal > * { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] .wp-body { animation: none; stroke-dashoffset: 0; }
html[data-motion="off"] .wp-island { animation: none; opacity: 1; }
html[data-motion="off"] .wp-scan { display: none; }
html[data-motion="off"] .field-error, html[data-motion="off"] main .notice { animation: none; }
html[data-motion="off"] .order-state[data-state^="approved"] .state-icon, html[data-motion="off"] .order-state[data-state^="approved"] .state-icon::after, html[data-motion="off"] .gc-back, html[data-motion="off"] .gc-front, html[data-motion="off"] .just-copied, html[data-motion="off"] .logo-intro .logo-tile, html[data-motion="off"] .logo-intro .logo-body, html[data-motion="off"] .logo-intro .logo-leaf { animation: none; }
html[data-motion="off"] .order-state[data-state^="approved"] .state-icon > .i, html[data-motion="off"] .logo-intro .logo-check { animation: none; stroke-dashoffset: 0; }
html[data-motion="off"] .gc-front { transform: none; transition: none; }
html[data-motion="off"] .ring-fill, html[data-motion="off"] .gold-box, html[data-motion="off"] .bell-btn.has-new > .i { animation: none; }
html[data-motion="off"] dialog.sheet.drop.as-drop[open] .sheet-panel, html[data-motion="off"] dialog.sheet.drop.as-drop.closing .sheet-panel { animation: none; }
html[data-motion="off"] .soon-phone { animation: none; }
