/* The website: the shared Depio design tokens first (docs/DESIGN-SYSTEM.md), then the pages. Light by default, dark by the system setting.
   Same token names and values as the app and the server admin page. System fonts only; no external font or script. */
:root {
  color-scheme: light dark;
  --bg: #f5f8f8;
  --surface: #ffffff;
  --surface-2: #eaf1f1;
  --text: #0b2f3a;
  --text-muted: #496068;
  --border: #d5e0e1;
  --border-control: #6b7c82;
  --primary: #0f766e;
  --on-primary: #ffffff;
  --primary-container: #cff3ee;
  --on-primary-container: #063b37;
  --accent: #f59e0b;
  --on-accent: #0b2f3a;
  --ok: #157347;
  --ok-bg: #e3f4ea;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --on-danger: #ffffff;
  --hero-bg: #0b2f3a;
  --hero-text: #e6f2f3;
  --hero-text-strong: #ffffff;
  --hero-muted: #b9d3d7;
  --hero-primary: #5eead4;
  --on-hero-primary: #042f2e;
  --radius-chip: 12px;
  --radius-control: 14px;
  --radius-tile: 16px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-float: 0 8px 24px rgb(11 47 58 / 12%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --t-fast: 150ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1a20;
    --surface: #11262e;
    --surface-2: #18323b;
    --text: #e6f2f3;
    --text-muted: #9db4ba;
    --border: #25414b;
    --border-control: #7c979f;
    --primary: #5eead4;
    --on-primary: #042f2e;
    --primary-container: #134e48;
    --on-primary-container: #ccfbf1;
    --ok: #6ee7a8;
    --ok-bg: #15301f;
    --warn: #f5c451;
    --warn-bg: #3a2e10;
    --danger: #ff9a8f;
    --danger-bg: #3b1a18;
    --on-danger: #2b0a07;
    --hero-bg: #0f2a33;
    --shadow-float: 0 8px 24px rgb(0 0 0 / 40%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word; /* a long word (German, Finnish, Turkish) at 200 percent text must wrap, not run out of a 360 px screen */
}

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.25; font-weight: 600; margin-block: 0 8px; }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

.skip-link { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 30; background: var(--primary); color: var(--on-primary); padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.25rem; color: var(--text); text-decoration: none; min-height: 48px; }
.brand img { width: 36px; height: 36px; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; align-items: center; }
.nav a, .nav button.link { color: var(--text); text-decoration: none; padding: 0 14px; min-height: 48px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); font: inherit; background: none; border: 0; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.nav a:hover, .nav button.link:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; }
.nav form { display: inline; margin: 0; }
.lang { position: relative; margin-inline-start: 8px; }
.lang summary { cursor: pointer; list-style: none; min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 0.9rem; border: 1px solid var(--border-control); border-radius: var(--radius-pill); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; content: " ▾" / ""; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-float); max-height: 70vh; overflow: auto; }
.lang-list a { padding: 0 12px; min-height: 44px; display: flex; align-items: center; font-size: 0.95rem; border-radius: var(--radius-chip); white-space: nowrap; color: var(--text); text-decoration: none; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current="true"] { background: var(--primary); color: var(--on-primary); }
pre.mono { white-space: pre-wrap; margin: 8px 0 0; }
/* A phone or a tablet shows the menu in two or three rows: a sticky header of that height would eat the screen, so it scrolls away. */
@media (max-width: 999px) { .site-header { position: static; } }
@media (max-width: 600px) {
  .nav a, .nav button.link { padding: 0 10px; }
  .lang { margin-inline-start: 0; }
}

/* Hero: the one dark block of the page, the colour of the icon ground */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; margin: 0 0 18px; max-width: 18ch; color: var(--hero-text-strong); }
.hero p { font-size: 1.125rem; line-height: 1.55; max-width: 56ch; margin: 0 0 28px; color: var(--hero-muted); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(220px, 60%); height: auto; border-radius: 22%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sections */
main { padding-bottom: 0; }
main > .wrap:last-child { padding-bottom: 56px; }
.section { padding: 40px 0 0; }
.section h2 { font-size: 1.5rem; margin: 0 0 12px; }
.lead { color: var(--text-muted); max-width: 64ch; margin: 0 0 20px; }
.page-title { font-size: 2rem; margin: 40px 0 8px; }
@media (max-width: 480px) { .page-title { font-size: 1.625rem; margin-top: 28px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius-card); padding: 24px; box-shadow: 0 0 0 1px var(--border); outline: 1px solid transparent; }
.card h3 { margin: 0 0 8px; font-size: 1.125rem; }
.card p { margin: 0; color: var(--text-muted); }
.card.wide { grid-column: 1 / -1; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius-card); padding-block: 18px; padding-inline: 72px 20px; position: relative; box-shadow: 0 0 0 1px var(--border); outline: 1px solid transparent; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 20px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; font-weight: 600; }
.steps b { display: block; font-weight: 600; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--primary); color: var(--on-primary); border: 0; border-radius: var(--radius-pill); padding: 0 24px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter var(--t-fast) var(--ease); }
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); outline: 2px solid transparent; outline-offset: -2px; }
.btn.danger { background: var(--danger); color: var(--on-danger); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.hero .btn { background: var(--hero-primary); color: var(--on-hero-primary); }
.hero .btn.secondary { outline: 2px solid transparent; outline-offset: -2px; background: transparent; color: var(--hero-text-strong); box-shadow: inset 0 0 0 2px var(--hero-text-strong); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

form.stack { display: grid; gap: 16px; max-width: 520px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label small { font-weight: 400; color: var(--text-muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="search"], input[type="tel"], textarea, select, input[type="file"] {
  width: 100%; min-height: 48px; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-control); border-radius: var(--radius-control); padding: 10px 14px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
main:focus { outline: none; }
.check { display: flex; gap: 12px; align-items: center; font-weight: 400; min-height: 48px; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }
fieldset { border: 1px solid var(--border-control); border-radius: var(--radius-card); padding: 12px 16px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }

.alert { border-radius: var(--radius-tile); padding: 14px 18px; margin: 16px 0; }
.alert.error { color: var(--danger); background: var(--danger-bg); }
.alert.ok { color: var(--ok); background: var(--ok-bg); }
.alert.warn { color: var(--warn); background: var(--warn-bg); }

.badge { display: inline-block; padding: 2px 12px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; background: var(--surface-2); color: var(--text); }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad { color: var(--danger); background: var(--danger-bg); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--border); outline: 1px solid transparent; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
tr:last-child td { border-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--surface); border-radius: var(--radius-card); padding: 16px 20px; box-shadow: 0 0 0 1px var(--border); outline: 1px solid transparent; }
.stat b { display: block; font-size: 1.75rem; line-height: 1.2; font-weight: 600; }
.stat span { color: var(--text-muted); font-size: 0.9rem; }

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }
.admin-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--radius-pill); text-decoration: none; color: var(--text); background: var(--surface-2); }
.admin-nav a:hover { background: var(--primary-container); }
.admin-nav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }

/* Downloads and QR */
.qr { width: 180px; height: 180px; background: #fff; border-radius: var(--radius-tile); padding: 8px; box-shadow: 0 0 0 1px var(--border); }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; word-break: break-all; }
.muted { color: var(--text-muted); }
.price { font-size: 1.75rem; font-weight: 600; }
.pill-note { display: inline-block; margin-inline-start: 8px; }

.site-footer { border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }
.site-footer a { color: var(--text-muted); }
.site-footer .footer-translations { flex-basis: 100%; }

.prose { max-width: 78ch; }
/* The legal and support pages use the same full-width container as every other page (T-0210); the text flows in two columns on a wide screen so the page does not leave its sides empty */
.wrap.prose { max-width: 1600px; }
@media (min-width: 1000px) {
  .wrap.prose { column-count: 2; column-gap: clamp(32px, 5vw, 80px); }
  .wrap.prose > h1, .wrap.prose > .lead { column-span: all; }
  .wrap.prose h2, .wrap.prose h3 { break-after: avoid; }
  .wrap.prose p, .wrap.prose li, .wrap.prose details { break-inside: avoid; }
}
.prose h2 { margin-top: 32px; }
.prose p, .prose li { color: var(--text); }
.inline-form { display: inline; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Windows High Contrast (forced colours): backgrounds and shadows are replaced by the system colours, so the edges, the current page and the
   state words need real borders. Colours here are system keywords on purpose. */
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .btn.secondary, .hero .btn.secondary { border-color: ButtonText; }
  .nav a[aria-current="page"], .admin-nav a[aria-current="page"], .lang-list a[aria-current="true"] { outline: 2px solid Highlight; outline-offset: -2px; text-decoration: underline; }
  .badge, .alert { border: 1px solid CanvasText; }
  .steps li::before { border: 1px solid CanvasText; }
  .hero { border-bottom: 1px solid CanvasText; }
}

/* ===== T-0210: the public site. Full bleed: every band reaches both edges of the window, the content uses the width with one gutter (16 to 48 px) and a generous maximum. ===== */
.band { padding-block: clamp(48px, 7vw, 96px); }
.band.alt { background: var(--surface-2); }
.band.tint { background: var(--primary-container); color: var(--on-primary-container); }
.band.dark { background: var(--hero-bg); color: var(--hero-text); }
.band.dark h2, .band.dark h3 { color: var(--hero-text-strong); }
.band.dark .lead, .band.dark p { color: var(--hero-muted); }
.band.dark a:not(.btn) { color: var(--hero-primary); }
.band.dark .btn { background: var(--hero-primary); color: var(--on-hero-primary); }
.band.dark .btn.secondary { background: transparent; color: var(--hero-text-strong); box-shadow: inset 0 0 0 2px var(--hero-text-strong); }
.band.tight { padding-block: clamp(28px, 4vw, 48px); }
.band h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 12px; }
.band .lead { font-size: 1.125rem; max-width: 70ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.band.dark .eyebrow { color: var(--hero-primary); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.split.start { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.col-text { max-width: 62ch; }
.gap-top { margin-top: 28px; }
.page-hero { padding-block: clamp(40px, 6vw, 80px); background: var(--hero-bg); color: var(--hero-text); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.12; margin: 0 0 14px; color: var(--hero-text-strong); max-width: 24ch; }
.page-hero p { font-size: 1.125rem; color: var(--hero-muted); max-width: 64ch; margin: 0; }
.page-hero.plain { background: transparent; color: var(--text); }
.page-hero.plain h1 { color: var(--text); }
.page-hero.plain p { color: var(--text-muted); }
.page-hero .btn { background: var(--hero-primary); color: var(--on-hero-primary); }
.page-hero .btn.secondary { background: transparent; color: var(--hero-text-strong); box-shadow: inset 0 0 0 2px var(--hero-text-strong); }
.page-hero.plain .btn { background: var(--primary); color: var(--on-primary); }
.page-hero.plain .btn.secondary { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.hero-glow::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgb(94 234 212 / 22%), transparent); pointer-events: none; }
.hero-art-wide { display: flex; justify-content: center; }
.hero-art-wide svg { width: 100%; max-width: 620px; height: auto; }

/* Cards and icons */
.feature { background: var(--surface); border-radius: var(--radius-card); padding: 28px; box-shadow: 0 0 0 1px var(--border); outline: 1px solid transparent; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--primary), var(--shadow-float); }
.feature h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--text-muted); }
.icon-tile { width: 52px; height: 52px; border-radius: var(--radius-tile); background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; }
.icon-tile svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { background: rgb(255 255 255 / 9%); color: var(--hero-text-strong); border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 0.95rem; }
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts .icon-tile { flex: none; width: 44px; height: 44px; }
.facts b { display: block; }
.facts span { color: var(--text-muted); }
.band.dark .facts span { color: var(--hero-muted); }
.band.dark .facts .icon-tile { background: rgb(94 234 212 / 16%); color: var(--hero-primary); }

/* Steps with a number and a picture */
.how-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(20px, 3vw, 36px); }
.how-step:nth-child(even) .how-art { order: -1; }
.how-step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: 1.125rem; margin-bottom: 12px; }
.how-step h3 { font-size: 1.5rem; }
.how-step p { color: var(--text-muted); max-width: 56ch; }
.how-art { background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--border); padding: 20px; display: grid; place-items: center; min-height: 220px; }
.how-art svg { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 860px) { .how-step { grid-template-columns: minmax(0, 1fr); } .how-step:nth-child(even) .how-art { order: 0; } }

/* Illustrations (inline SVG, coloured by classes so the dark mode follows) */
.il-line { fill: none; stroke: var(--border-control); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-fill { fill: var(--surface); stroke: var(--border-control); stroke-width: 2; stroke-linejoin: round; }
.il-fill2 { fill: var(--surface-2); stroke: var(--border-control); stroke-width: 2; stroke-linejoin: round; }
.il-accent { fill: var(--primary); }
.il-accent-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.il-soft { fill: var(--primary-container); }
.il-text { fill: var(--text); font: 600 14px var(--font); }
.il-muted { fill: var(--text-muted); font: 500 12px var(--font); }
.band.dark .il-line, .page-hero:not(.plain) .il-line, .hero .il-line { stroke: rgb(185 211 215 / 55%); }
.band.dark .il-fill, .page-hero:not(.plain) .il-fill, .hero .il-fill { fill: #14343d; stroke: rgb(185 211 215 / 60%); }
.band.dark .il-fill2, .page-hero:not(.plain) .il-fill2, .hero .il-fill2 { fill: #1a3f49; stroke: rgb(185 211 215 / 60%); }
.band.dark .il-text, .page-hero:not(.plain) .il-text, .hero .il-text { fill: var(--hero-text-strong); }
.band.dark .il-muted, .page-hero:not(.plain) .il-muted, .hero .il-muted { fill: var(--hero-muted); }
.band.dark .il-accent, .page-hero:not(.plain) .il-accent, .hero .il-accent { fill: var(--hero-primary); }
.band.dark .il-accent-line, .page-hero:not(.plain) .il-accent-line, .hero .il-accent-line { stroke: var(--hero-primary); }
.band.dark .il-soft, .page-hero:not(.plain) .il-soft, .hero .il-soft { fill: rgb(94 234 212 / 16%); }
.flow { stroke-dasharray: 5 9; animation: flow 1.4s linear infinite; }
.flow.rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.bob { animation: bob 5s ease-in-out infinite; }
.bob.b2 { animation-delay: -1.5s; }
.bob.b3 { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.anim:not(.on) .flow, .anim:not(.on) .pulse, .anim:not(.on) .bob { animation-play-state: paused; }

/* Reveal on scroll: hidden only when the script is on, so a page without it shows everything */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease) var(--d, 0ms), transform 600ms var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Device mockups of the app screens (the app's own tokens, made-up content) */
.mock-stage { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 32px); flex-wrap: wrap; }
.phone { width: 232px; border-radius: 34px; background: #0b1c22; padding: 10px; box-shadow: var(--shadow-float), 0 0 0 1px var(--border); }
.phone-screen { background: var(--bg); color: var(--text); border-radius: 26px; overflow: hidden; min-height: 400px; display: flex; flex-direction: column; }
.app-bar { background: var(--primary); color: var(--on-primary); padding: 18px 16px 14px; font-weight: 700; }
.app-bar small { display: block; font-weight: 400; opacity: 0.9; margin-top: 2px; }
.app-body { padding: 14px; display: grid; gap: 10px; }
.ring { width: 96px; height: 96px; margin: 6px auto; display: block; }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--surface-2); }
.ring .bar-fill { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 214 264; transform: rotate(-90deg); transform-origin: 50% 50%; }
.row-skel { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: var(--radius-tile); padding: 10px; box-shadow: 0 0 0 1px var(--border); }
.thumb { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-container); flex: none; }
.thumb.t2 { background: var(--surface-2); }
.skel { height: 8px; border-radius: 4px; background: var(--surface-2); flex: 1; }
.skel.short { max-width: 60%; }
.desk { flex: 1 1 280px; min-width: 0; max-width: 520px; border-radius: 14px; background: #0b1c22; padding: 8px 8px 0; box-shadow: var(--shadow-float), 0 0 0 1px var(--border); }
.desk-bar { display: flex; gap: 6px; padding: 4px 6px 8px; }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b5560; display: block; }
.desk-screen { background: var(--bg); color: var(--text); border-radius: 8px 8px 0 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 300px; }
.desk-side { background: var(--surface); border-inline-end: 1px solid var(--border); padding: 12px 10px; display: grid; gap: 8px; align-content: start; font-size: 0.8rem; }
.desk-side b { padding: 6px 10px; border-radius: var(--radius-chip); background: var(--primary-container); color: var(--on-primary-container); }
.desk-side span { padding: 6px 10px; color: var(--text-muted); }
.desk-main { padding: 16px; display: grid; gap: 10px; align-content: start; }
.desk-main h4 { margin: 0 0 4px; font-size: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles i { aspect-ratio: 1; border-radius: 10px; background: var(--primary-container); display: block; }
.tiles i:nth-child(3n+2) { background: var(--surface-2); }
.tiles i:nth-child(4n) { background: var(--accent); opacity: 0.55; }
@media (max-width: 520px) { .desk-screen { grid-template-columns: minmax(0, 1fr); } .desk-side { display: none; } }

/* Store badges and the QR */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 12px; padding: 6px 16px 6px 12px; text-decoration: none; line-height: 1.1; }
.store-badge:hover { filter: brightness(1.25); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge small { display: block; font-size: 0.65rem; letter-spacing: 0.02em; opacity: 0.9; }
.store-badge b { display: block; font-size: 1.15rem; font-weight: 600; }
.qr-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-box .qr { flex: none; }
.qr-box p { margin: 0 0 12px; max-width: 34ch; }

/* Packages */
.pack { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 36px); box-shadow: 0 0 0 1px var(--border); outline: 1px solid transparent; }
.pack.featured { box-shadow: 0 0 0 3px var(--primary), var(--shadow-float); }
.pack h3 { font-size: 1.5rem; margin: 0; }
.pack .price { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; margin: 0; }
.pack .price small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pack ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pack li { display: flex; gap: 10px; align-items: flex-start; }
.pack li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--primary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%230f766e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.pack .note { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.pack .tag { align-self: flex-start; }

/* The footer: columns on a wide screen */
.site-footer { background: var(--surface); padding: clamp(32px, 4vw, 56px) 0 28px; }
.site-footer .wrap { display: block; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.foot-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-note { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.brand-line { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
.brand-line img { width: 32px; height: 32px; }

/* The header bar is full bleed; its content uses the same gutters as every band */
.site-header { backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--surface) 88%, transparent); }
.nav a.nav-cta { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.nav a.nav-cta:hover { filter: brightness(1.1); background: var(--primary); }
@media (forced-colors: active) { .feature, .pack, .how-art, .phone, .desk { border: 1px solid CanvasText; } .store-badge { border-color: ButtonText; } }

/* Option cards of the remote package (T-0240) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.months { display: grid; gap: 16px; }
.months h3 { margin: 0; }
fieldset.tiers { border: 0; margin: 0; padding: 0; min-width: 0; }
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.tier { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.tier.best { box-shadow: 0 0 0 2px var(--accent); padding-top: 40px; }
.tier .ribbon { position: absolute; inset-block-start: 0; inset-inline-start: 24px; padding: 4px 12px; border-radius: 0 0 var(--radius-chip) var(--radius-chip); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.85rem; }
.tier .title { font-size: 1.15rem; font-weight: 700; }
.tier .total { font-size: 1.9rem; font-weight: 700; }
.tier .per { color: var(--text-muted); }
.tier s { color: var(--text-muted); text-decoration-thickness: 2px; }
.tier .per b { color: var(--text); }
.tier .save { color: var(--ok); font-size: 0.95rem; }
.tier .badge { align-self: flex-start; }
label.tier { cursor: pointer; min-height: 48px; }
label.tier input { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 22px; height: 22px; accent-color: var(--primary); }
label.tier.sel { box-shadow: 0 0 0 2px var(--primary); }
label.tier.best.sel { box-shadow: 0 0 0 2px var(--primary), 0 0 0 5px var(--accent); }
label.tier:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { label.tier { transition: transform var(--t-fast) var(--ease); } label.tier.sel { transform: translateY(-2px); } }
.norenew { max-width: 65ch; margin: 0; }

/* Cart and checkout (T-0250, designer spec cart-checkout-W3): classes only, tokens of the design system, logical properties (RTL), no inline style. */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; color: inherit; }
.cart-link svg { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; inset-block-start: 2px; inset-inline-end: 0; min-inline-size: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.btn.block { display: block; inline-size: 100%; text-align: center; }
.tier-buy { margin-block-start: 12px; }
.steps-wrap { margin-block-end: var(--s6, 32px); }
.steps-of { display: none; margin: 0 0 8px; font-weight: 700; }
.steps-bar { display: none; gap: 4px; }
.steps-bar i { flex: 1; block-size: 6px; border-radius: 3px; background: var(--border); }
.steps-bar.s1 i:nth-child(-n+1), .steps-bar.s2 i:nth-child(-n+2), .steps-bar.s3 i:nth-child(-n+3), .steps-bar.s4 i:nth-child(-n+4), .steps-bar.s5 i:nth-child(-n+5) { background: var(--accent); }
.co-steps { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px; list-style: none; margin: 0; padding: 0; }
.co-steps li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, inherit); white-space: nowrap; font-size: 0.95rem; }
.co-steps li.current { color: var(--text); font-weight: 700; }
.co-steps a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.co-steps .dot { display: inline-grid; place-items: center; flex: none; inline-size: 28px; block-size: 28px; border-radius: 50%; font-size: 0.85rem; box-shadow: inset 0 0 0 2px var(--border); }
.co-steps li.current .dot { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.co-steps li.done .dot { background: var(--ok); color: #fff; box-shadow: none; }
@media (max-width: 699px) { .steps-of { display: block; } .steps-bar { display: flex; } .co-steps { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); } }
.cart { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .cart { grid-template-columns: 1fr 22rem; } .cart .summary { position: sticky; inset-block-start: 80px; } }
.cart-lines { display: grid; gap: 16px; }
.cart-line { display: grid; gap: 12px; grid-template-columns: 1fr auto; align-items: center; }
.cart-line .cl-title { margin: 0; font-size: 1.15rem; }
.cart-line .cl-price { grid-column: 1 / -1; }
.cart-line .qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-line .qty .btn { min-inline-size: 44px; min-block-size: 44px; }
.cart-line .qty-n { min-inline-size: 2ch; text-align: center; font-weight: 700; }
.cart-line .cl-total { display: grid; justify-items: end; gap: 4px; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 1fr auto auto auto; } .cart-line .cl-price { grid-column: auto; } }
.summary { background: var(--surface-2, var(--surface)); }
.row-between { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.summary .total { font-size: 1.4rem; }
.ok-text { color: var(--ok); }
.note { padding: 12px 16px; margin-block-end: 16px; border-radius: var(--radius-card); border-inline-start: 4px solid var(--ok); background: var(--surface); }
.note.warn { border-inline-start-color: var(--warn); }
.note.danger { border-inline-start-color: var(--danger); }
.state { text-align: center; padding-block: 48px; }
.co-form { max-inline-size: 36rem; }
.co-defs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.co-defs dt { color: var(--muted); }
.co-defs dd { margin: 0; }
.receipt .block { display: block; }
@media print { .site-header, .site-footer, .steps-wrap, .receipt .btn, .skip-link { display: none !important; } }
.acct-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block-end: 24px; }
.acct-nav a { padding-block: 10px; min-block-size: 44px; display: inline-flex; align-items: center; }
.acct-nav a[aria-current="page"] { font-weight: 700; border-block-end: 2px solid var(--accent); }
.credit .big { font-size: 1.8rem; margin: 0; }
.credit.quiet { background: var(--surface-2); }
.nav a.nav-cta { white-space: nowrap; }
