/* Segelly marketing site. Colours and sizes follow segelly-frontend/design/tokens.json.
   RTL-first: only logical properties (inline-start/end), never left/right. */

@font-face { font-family: "Plex Arabic"; src: url("../fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary: #0E7C7B;
  --primary-dark: #0A605F;
  --primary-light: #14A8A0;
  --primary-tint: #E9F4F4;
  --ink: #12313A;
  --ink-muted: #33474D;
  --muted: #5F747B;
  --line: #DCE6E7;
  --surface: #FFFFFF;
  --canvas: #F3F7F7;
  --success: #1E8757;
  --critical: #C0392B;
  --critical-tint: #FBECEA;
  --on-primary: #FFFFFF;
  --band: linear-gradient(135deg, #0E7C7B, #0A605F 60%, #0C4A52);
  --shadow-card: 0 1px 3px rgba(18, 49, 58, .08);
  --shadow-raised: 0 10px 40px rgba(18, 49, 58, .12);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --header-bg: rgba(255, 255, 255, .86);
  --btn-hover: var(--primary-dark);
  --store-bg: #0F1A1D;
  --store-line: #0F1A1D;
  --wrap: 1160px;
  --font: "Plex Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light dark;
}

/* Dark theme: follows the system unless the visitor picked a theme with the header toggle
   (assets/js/theme.js sets data-theme on <html> before first paint). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #2BB5AB;
    --primary-dark: #7FD6CF;
    --primary-light: #3CC2B8;
    --primary-tint: #12363A;
    --ink: #E6F0F0;
    --ink-muted: #B7C8CA;
    --muted: #93A8AC;
    --line: #24414A;
    --surface: #10242A;
    --canvas: #0B1B20;
    --critical: #F08377;
    --critical-tint: #3A1E1C;
    --on-primary: #06201F;
    --band: linear-gradient(135deg, #0C4A52, #0A3A40 60%, #082D33);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-raised: 0 10px 40px rgba(0, 0, 0, .45);
    --header-bg: rgba(11, 27, 32, .86);
    --btn-hover: var(--primary-light);
    --store-bg: #000;
    --store-line: #2C3F44;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --primary: #2BB5AB;
  --primary-dark: #7FD6CF;
  --primary-light: #3CC2B8;
  --primary-tint: #12363A;
  --ink: #E6F0F0;
  --ink-muted: #B7C8CA;
  --muted: #93A8AC;
  --line: #24414A;
  --surface: #10242A;
  --canvas: #0B1B20;
  --critical: #F08377;
  --critical-tint: #3A1E1C;
  --on-primary: #06201F;
  --band: linear-gradient(135deg, #0C4A52, #0A3A40 60%, #082D33);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-raised: 0 10px 40px rgba(0, 0, 0, .45);
  --header-bg: rgba(11, 27, 32, .86);
  --btn-hover: var(--primary-light);
  --store-bg: #000;
  --store-line: #2C3F44;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}
html[lang="en"] body { font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-md); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--r-pill);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; margin-inline-start: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink-muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); background: var(--primary-tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.brand + .nav-actions { margin-inline-start: auto; } /* text pages have no link list to push the actions to the end */
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 20px; height: 20px; }
.js .theme-toggle { display: inline-flex; } /* needs JS to work, so it only appears with JS */
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav { gap: 12px; }
  /* The menu button needs JS, so it only appears with it; the section links stay in the footer. */
  .js .nav-toggle { display: inline-flex; order: 3; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
  .nav-links {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-raised);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 48px; font-size: 1rem; }
}
@media (max-width: 380px) {
  .nav { gap: 8px; }
  .brand small { display: none; }
  .lang-switch { padding: 0 10px; }
}

/* ---------- Sections ---------- */
section { padding-block: 88px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--primary); background: var(--primary-tint); border-radius: var(--r-pill); padding: 4px 14px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; margin: 0; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 88px; position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 30%, rgba(20, 168, 160, .16), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, rgba(14, 124, 123, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.25; letter-spacing: -.01em; }
html[lang="en"] .hero h1 { letter-spacing: -.02em; }
.hero h1 .accent { color: var(--primary); white-space: nowrap; }
.hero .lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 56ch; margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* Store buttons (also used in the download band) */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px;
  border-radius: var(--r-md); background: var(--store-bg); color: #fff; text-decoration: none; position: relative;
  border: 1px solid var(--store-line); transition: transform .2s;
}
.store-btn:hover { transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .lines { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.store-btn .lines small { font-size: .72rem; opacity: .8; }
.store-btn .lines strong { font-size: 1.05rem; font-weight: 600; }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover { transform: none; }
.store-btn .soon { position: absolute; top: -10px; inset-inline-end: -8px; background: #0A605F; color: #fff; box-shadow: 0 0 0 2px #fff; font-size: .7rem; font-weight: 700; padding: 1px 9px; border-radius: var(--r-pill); }
.apk-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; }
.apk-link svg { width: 20px; height: 20px; }
.apk-link.is-soon { cursor: default; }
.apk-link .pill { font-size: .72rem; font-weight: 700; padding: 1px 10px; border-radius: var(--r-pill); background: #fff; color: #0A605F; }

/* Phone mock-up (pure HTML/CSS, decorative) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px; border-radius: 44px; padding: 12px; background: #0F1A1D;
  box-shadow: var(--shadow-raised), inset 0 0 0 2px #2a3a3e;
}
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--canvas); min-height: 600px; display: flex; flex-direction: column; text-align: start; }
/* Mirrors the real app home screen (segelly-frontend home_overview.dart): greeting, capture card,
   quick-access tiles, recent records, bottom navigation. */
.app-head { padding: 26px 16px 10px; }
.app-head .hi { font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.app-head .tag { font-size: .7rem; color: var(--muted); }
.app-capture { margin: 4px 12px 0; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #14A8A0, #0A605F); color: #fff; }
.cap-ic { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; margin-bottom: 8px; }
.cap-ic svg { width: 18px; height: 18px; }
.cap-t { font-weight: 700; font-size: .86rem; line-height: 1.35; margin-bottom: 10px; }
.cap-btn { background: #fff; color: #0A605F; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: .76rem; padding: 7px; }
.cap-btn svg { width: 15px; height: 15px; }
.app-sec { font-weight: 700; font-size: .76rem; padding: 12px 16px 6px; color: var(--ink); }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.tile .ti { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.tile .ti svg { width: 15px; height: 15px; }
.app-recent { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 10px; display: flex; align-items: center; gap: 10px; }
.rec .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.rec .ic svg { width: 16px; height: 16px; }
.rec .ic.crit { background: var(--critical-tint); color: var(--critical); }
.rec .ic.ok { background: rgba(30, 135, 87, .14); color: var(--success); }
.rec .t { font-size: .78rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.rec .s { font-size: .66rem; color: var(--muted); }
.rec .s.crit { color: var(--critical); }
.app-nav { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 8px 2px 12px; }
.app-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .58rem; color: var(--muted); }
.app-nav i { display: grid; place-items: center; width: 40px; height: 24px; border-radius: var(--r-pill); }
.app-nav svg { width: 17px; height: 17px; }
.app-nav .on { color: var(--primary); font-weight: 700; }
.app-nav .on i { background: var(--primary-tint); }

.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised); padding: 14px; display: flex; align-items: center; gap: 12px;
}
.float-card .t { font-weight: 700; font-size: .85rem; line-height: 1.3; }
.float-card .s { font-size: .72rem; color: var(--muted); }
.float-qr { inset-inline-start: -64px; bottom: 64px; }
.float-qr svg { width: 64px; height: 64px; color: var(--ink); }
.float-ok { inset-inline-end: -14px; top: 90px; }
.float-ok .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-tint); color: var(--success); display: grid; place-items: center; }
.float-ok .dot svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .float-qr { animation: bob 6s ease-in-out infinite; }
  .float-ok { animation: bob 7s ease-in-out -2s infinite; }
}
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero { padding-block: 40px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .store-row, .hero-note { justify-content: center; }
}
@media (max-width: 560px) {
  .float-qr { inset-inline-start: -4px; bottom: -30px; }
  .float-ok { inset-inline-end: -4px; }
}
@media (max-width: 420px) {
  .phone { width: 270px; }
}

/* ---------- Trust strip ---------- */
.trust { padding-block: 0 24px; }
.trust ul { list-style: none; margin: 0; padding: 18px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-muted); }
.trust li svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
@media (max-width: 860px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.alt .card { background: var(--canvas); box-shadow: none; }
.card h3 { font-size: 1.15rem; }
.card h3 .tag { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; padding: 1px 10px; border-radius: var(--r-pill); background: var(--primary-tint); color: var(--primary); border: 1px solid var(--primary); margin-inline-start: 6px; }
.card p { color: var(--ink-muted); margin: 0; font-size: .98rem; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 26px; height: 26px; }

/* Pain points */
.pain .card { border-top: 4px solid var(--primary-light); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 24px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; inset-inline-start: 26px;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--surface); z-index: 1;
}
.steps .card { padding-top: 44px; height: 100%; }

/* Audiences */
.aud .card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.aud .card li { display: flex; gap: 8px; color: var(--ink-muted); font-size: .95rem; }
.aud .card li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 6px; }
html[lang="en"] .aud .card li svg { margin-top: 4px; }
.aud .who { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }

/* ---------- Privacy band ---------- */
.band { background: var(--band); color: #fff; }
.band .section-head h2, .band h3 { color: #fff; }
.band .section-head p { color: rgba(255, 255, 255, .88); }
.band .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.band .card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.band .card p { color: rgba(255, 255, 255, .88); }
.band .card .icon { background: rgba(255, 255, 255, .14); color: #fff; }
.band .fine { text-align: center; margin: 36px auto 0; max-width: 70ch; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.band .fine a { color: #fff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid .lead { font-size: 1.1rem; color: var(--ink-muted); }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.value .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.value .icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.05rem; margin-bottom: 2px; }
.value p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
.quote { margin: 24px 0 0; padding: 18px 22px; border-inline-start: 4px solid var(--primary); background: var(--primary-tint); border-radius: var(--r-md); font-weight: 600; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; min-height: 48px;
  font-weight: 600; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-inline-start: auto; width: 10px; height: 10px; flex: none;
  /* A down-chevron is not directional, so physical borders keep it pointing down in RTL too. */
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Download band ---------- */
.download { padding-block: 72px; }
.download-box {
  background: var(--band); color: #fff; border-radius: var(--r-xl); padding: 56px 48px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.download-box h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.download-box p { color: rgba(255, 255, 255, .9); }
.download-box .store-btn { background: #fff; color: #0F1A1D; border-color: #fff; }
.download-box .apk { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .92rem; }
.download-box .apk a { color: #fff; }
.download-box .apk p { margin: 4px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .78); }
.download-box .logo-big { justify-self: center; width: 180px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25)); }
@media (max-width: 860px) {
  .download-box { grid-template-columns: 1fr; padding: 40px 24px; text-align: center; }
  .download-box .store-row { justify-content: center; }
  .download-box .logo-big { grid-row: 1; width: 120px; }
}

/* ---------- Contact ---------- */
.contact-cards { max-width: 920px; margin-inline: auto; }
.contact-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-card .icon { margin: 0; flex: none; }
.contact-card h3 { margin: 0; font-size: 1.05rem; }
.contact-card span { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-card { padding: 20px; }
  .contact-card span { font-size: .85rem; }
}
.contact-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 24px auto 0; max-width: 64ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { color: var(--ink-muted); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer ul a:hover { color: var(--primary); }
.site-footer .about-line { color: var(--muted); max-width: 40ch; margin-top: 12px; }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Legal / text pages ---------- */
.doc { padding-block: 56px 88px; }
.doc article { max-width: 780px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 56px); }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc ul, .doc ol { padding-inline-start: 1.4em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: .92rem; }
.callout { background: var(--primary-tint); border-inline-start: 4px solid var(--primary); border-radius: var(--r-md); padding: 14px 18px; margin: 24px 0; }
.callout.warn { background: var(--critical-tint); border-color: var(--critical); }
.steps-plain { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-plain li { counter-increment: s; position: relative; min-height: 34px; padding-inline-start: 48px; margin-bottom: 14px; }
.steps-plain li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound img { width: 96px; margin: 0 auto 24px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
