/*
 * site.css -- the public WorkIn landing page (deploy/site/). One stylesheet, no framework, no third-party request.
 *
 * The palette and the font are the dashboard's own (backend/src/main/resources/static/admin/_assets/app-tokens.css):
 * the warm neutral ramp, #185fa5 as the accent, IBM Plex Sans Arabic self-hosted from fonts/ (SIL OFL 1.1, OFL.txt
 * ships beside the files). Layout uses logical properties only (inline-start/end, margin-inline, ...), so the same rules
 * serve Arabic (RTL, the default) and English (LTR) -- the page flips by changing <html dir>, nothing else.
 *
 * Mobile first: the base rules are the phone layout; the media queries add columns. Motion is limited to a reveal on
 * scroll and one slow float on the hero illustration, and both are off under prefers-reduced-motion.
 */

@font-face {
  font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #fcfcfb;
  --surface-2: #f2f1ed;
  --border: #dedcd4;
  --border-soft: #e9e8e2;
  --text: #1a1917;
  --text-soft: #56534e;
  --text-muted: #6b6862;
  --accent: #185fa5;
  --accent-strong: #14528f;
  --accent-deep: #0e375e;
  --accent-weak: #eef4fb;
  --accent-edge: #b9d1ed;
  --on-accent: #ffffff;
  --success: #3b6d11;
  --success-weak: #edf4e2;
  --warning: #854f0b;
  --warning-weak: #fbf0dc;
  --warning-edge: #ecd6ab;
  --night: #0b2a47;
  --night-2: #0e375e;
  --on-night: #f3f7fc;
  --on-night-soft: #b9d1ed;
  --shadow: 0 1px 2px rgba(26, 25, 23, .06), 0 12px 32px rgba(14, 55, 94, .10);
  --radius: 16px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', Tahoma, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17161a;
    --surface: #1f1e23;
    --surface-2: #26252b;
    --border: #38363e;
    --border-soft: #2c2b31;
    --text: #f3f2ef;
    --text-soft: #c8c6c0;
    --text-muted: #b0aba4;
    --accent: #4d84c2;
    --accent-strong: #8cb3e0;
    --accent-weak: #1b2a3b;
    --accent-edge: #2d4a6b;
    --on-accent: #0b1420;
    --success: #9bc86b;
    --success-weak: #1f2b15;
    --warning: #e2b46a;
    --warning-weak: #2e2412;
    --warning-edge: #5a4421;
    --night: #0a1622;
    --night-2: #0e2338;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-block-start: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); }
a:hover { text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 10px; z-index: 100; border: 1px solid var(--border); }
.skip:focus { inset-block-start: 12px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.top { position: sticky; inset-block-start: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-block-end: 1px solid var(--border-soft); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: none; margin-inline-start: 18px; gap: 4px; }
.nav a { color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-soft); background: transparent;
  border: 1px solid var(--border); border-radius: 10px; min-height: 40px; min-width: 44px; padding: 0 12px; cursor: pointer; }
.lang:hover { background: var(--surface-2); color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding-block: 44px 28px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1;
  background: radial-gradient(60% 60% at 70% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(40% 50% at 15% 10%, color-mix(in srgb, var(--accent-edge) 60%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-weak); color: var(--accent-strong);
  border: 1px solid var(--accent-edge); border-radius: 999px; padding: 4px 14px; font-size: 13.5px; font-weight: 600; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }
h1 { font-size: clamp(2rem, 7.2vw, 3.4rem); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin-block: 18px 16px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: var(--text-soft); max-width: 36em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.cta-row .btn { flex: 1 1 200px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-muted); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--success); flex: none; }

/* Hero illustration: drawn with CSS so it costs no image bytes and follows the theme. Decorative: aria-hidden. */
.scene { position: relative; min-height: 340px; }
.win { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; direction: ltr; }
.win-bar { display: flex; gap: 6px; padding: 10px 12px; border-block-end: 1px solid var(--border-soft); background: var(--surface-2); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.win-body { display: grid; grid-template-columns: 54px 1fr; min-height: 270px; }
.side { background: var(--night); padding: 12px 10px; display: grid; align-content: start; gap: 10px; }
.side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.side i:first-child { background: var(--accent-edge); height: 22px; border-radius: 6px; margin-block-end: 6px; }
.side i.on { background: rgba(255, 255, 255, .6); }
.main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--border-soft); border-radius: 10px; padding: 9px 10px; background: var(--bg); }
.kpi b { display: block; height: 8px; width: 55%; border-radius: 4px; background: var(--border); }
.kpi span { display: block; height: 14px; width: 38%; border-radius: 5px; margin-block-start: 8px; background: var(--accent); }
.kpi:nth-child(2) span { background: var(--success); width: 46%; }
.kpi:nth-child(3) span { background: #c98a2b; width: 30%; }
.bars { display: flex; align-items: end; gap: 6px; height: 74px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg); }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); height: 40%; }
.bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 48%; } .bars i:nth-child(4) { height: 70%; }
.bars i:nth-child(5) { height: 62%; } .bars i:nth-child(6) { height: 84%; background: var(--accent); }
.bars i:nth-child(7) { height: 74%; } .bars i:nth-child(8) { height: 92%; background: var(--accent); }
html:not(.js) .lang { display: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.alt { background: var(--surface-2); }
.alt .card { background: var(--surface); }
.get .head, .get .groups { position: relative; }
.rows { display: grid; gap: 7px; }
.row { display: grid; grid-template-columns: 22px 1fr 54px; gap: 10px; align-items: center; }
.row i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-weak); border: 1px solid var(--accent-edge); }
.row b { height: 8px; border-radius: 4px; background: var(--border-soft); }
.row u { height: 16px; border-radius: 8px; background: var(--success-weak); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.row:nth-child(2) u { background: var(--warning-weak); border-color: var(--warning-edge); }
.row:nth-child(3) u { background: var(--accent-weak); border-color: var(--accent-edge); }
.phone { position: absolute; inset-block-end: -18px; inset-inline-end: 4%; width: 150px; background: var(--night); border-radius: 26px; padding: 8px;
  box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .12); direction: ltr; }
.phone-in { background: var(--surface); border-radius: 19px; padding: 14px 12px 16px; display: grid; gap: 10px; justify-items: center; }
.phone-in .t { height: 8px; width: 55%; border-radius: 4px; background: var(--border); }
.pulse { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent); }
.pulse svg { width: 28px; height: 28px; }
.phone-in .ok { height: 18px; width: 78%; border-radius: 9px; background: var(--success-weak); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }

/* ---------- sections ---------- */
section { padding-block: 56px; }
.kicker { color: var(--accent-strong); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
h2 { font-size: clamp(1.55rem, 4.8vw, 2.25rem); line-height: 1.3; font-weight: 700; letter-spacing: -.015em; margin-block: 8px 12px; text-wrap: balance; }
.sub { color: var(--text-soft); max-width: 40em; font-size: 1.04rem; text-wrap: pretty; }
.head { margin-block-end: 32px; }

.journey { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px 20px 22px; }
.step::before { counter-increment: step; content: counter(step, arabic-indic); }
html[lang="en"] .step::before { content: counter(step); }
.step::before { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700;
  background: var(--accent); color: var(--on-accent); margin-block-end: 14px; }
.step h3 { font-size: 1.1rem; margin-block-end: 6px; }
.step p { color: var(--text-soft); font-size: .98rem; }

.grid { display: grid; gap: 14px; margin-block-start: 28px; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-edge); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-weak); color: var(--accent-strong); display: grid; place-items: center; border: 1px solid var(--accent-edge); margin-block-end: 14px; }
.ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.05rem; margin-block-end: 4px; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* ---------- help: support and privacy ---------- */
.help-grid { display: grid; gap: 14px; }
.help-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.help-card h3 { font-size: 1.1rem; }
.help-card p { color: var(--text-soft); font-size: .98rem; }
.help-card .mail { display: block; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; padding: 12px 14px; border-radius: 12px;
  background: var(--accent-weak); border: 1px solid var(--accent-edge); color: var(--accent-strong); text-decoration: none; direction: ltr; text-align: start; }
.help-card .mail:hover { border-color: var(--accent); }
.help-card .more { font-weight: 600; width: fit-content; }

/* ---------- download ---------- */
.get { background: var(--night); color: var(--on-night); position: relative; overflow: clip; isolation: isolate; }
.get::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 85% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
              radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--accent-deep) 80%, transparent), transparent 70%); }
.get .kicker { color: var(--accent-edge); }
.get .sub { color: var(--on-night-soft); }
.groups { display: grid; gap: 28px; }
.group h3 { font-size: .95rem; font-weight: 600; color: var(--on-night-soft); margin-block-end: 12px; letter-spacing: .02em; }
.cards { display: grid; gap: 14px; }
.dl { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; align-content: start; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-ico { width: 48px; height: 48px; border-radius: 13px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; flex: none; }
.dl-ico svg { width: 26px; height: 26px; }
.dl h4 { margin: 0; font-size: 1.12rem; font-weight: 700; }
.dl .meta { color: var(--on-night-soft); font-size: .9rem; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: var(--on-night); }
.tag.soon { color: var(--on-night-soft); }
.dl .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: none; }
.dl .btn-primary:hover { background: var(--accent-weak); }
.dl .btn[aria-disabled="true"] { background: rgba(255, 255, 255, .08); color: var(--on-night-soft); border-color: rgba(255, 255, 255, .16); }
.dl .btn-ghost { color: var(--on-night); border-color: rgba(255, 255, 255, .28); }
.dl .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.note { font-size: .9rem; color: var(--on-night-soft); }
.note.warn { background: rgba(236, 214, 171, .12); border: 1px solid rgba(236, 214, 171, .35); color: #f4e3bf; border-radius: 10px; padding: 10px 12px; }
details.verify { font-size: .9rem; color: var(--on-night-soft); }
details.verify summary { cursor: pointer; font-weight: 600; color: var(--on-night); padding-block: 4px; }
.hash { display: flex; gap: 8px; align-items: stretch; margin-block-start: 8px; direction: ltr; }
.hash code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(0, 0, 0, .28); border-radius: 8px; padding: 8px 10px; color: #dbe8f7; }
.hash button { font: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: var(--on-night); padding: 0 12px; cursor: pointer; min-height: 40px; }
.hash button:hover { background: rgba(255, 255, 255, .1); }
.hidden { display: none !important; }

.start { display: grid; gap: 12px; margin-block-start: 8px; counter-reset: s; padding: 0; list-style: none; }
.start li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px; }
.start li::before { content: counter(s, arabic-indic); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-weak); color: var(--accent-strong); font-weight: 700; border: 1px solid var(--accent-edge); }
html[lang="en"] .start li::before { content: counter(s); }
.start b { display: block; font-weight: 600; }
.start span { color: var(--text-soft); font-size: .96rem; }

/* ---------- footer ---------- */
.foot { border-block-start: 1px solid var(--border-soft); padding-block: 32px 40px; color: var(--text-muted); font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--text-soft); }

/* ---------- legal / support pages ---------- */
.doc { padding-block: 40px 56px; }
.doc .paper { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px 20px; max-width: 820px; margin-inline: auto; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-block: 0 8px; }
.doc h2 { font-size: 1.2rem; margin-block: 28px 8px; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-block: 6px; }
.doc .stamp { display: inline-block; font-size: .85rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 2px 12px; margin-block: 6px 18px; }
.doc .swap { margin-block-end: 18px; }
.doc .paper + .paper { margin-block-start: 24px; }
.doc .section-title { font-weight: 700; color: var(--text); font-size: 1.15rem; margin-block: 24px 6px; }
.doc ol { padding-inline-start: 22px; }
.doc strong { color: var(--text); font-weight: 600; }
.contact { display: grid; gap: 10px; margin-block: 16px; padding: 14px 16px; background: var(--accent-weak); border: 1px solid var(--accent-edge); border-radius: 12px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.contact .label { color: var(--text-muted); font-size: .9rem; }
.contact a { overflow-wrap: anywhere; font-weight: 600; }
html.js[data-ui="en"] [data-block="ar"], html.js[data-ui="ar"] [data-block="en"] { display: none; }

/* ---------- motion ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.phone { animation: float 5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .wrap { width: min(1120px, 100% - 48px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .start { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .doc .paper { padding: 36px 40px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { padding-block: 72px 56px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .start { grid-template-columns: repeat(4, 1fr); }
  .groups { grid-template-columns: 1fr 1fr; gap: 36px; }
  .groups .group .cards { grid-template-columns: 1fr; }
  section { padding-block: 84px; }
  .phone { width: 168px; inset-inline-end: 0; }
}
@media (max-width: 380px) {
  .btn { padding: 0 16px; }
  .brand { font-size: 17px; }
  .phone { width: 128px; }
}
