/* PawRescue public site. One stylesheet, no framework, no request to anybody else.
   Brand: baby pink #D88C97 and baby blue #59AFCF. Both fail contrast as TEXT, so text, links and
   button fills use the ink tones below (the app's own primaryInk #B44B5A and secondaryInk #2A7591);
   the brand tones carry surfaces, rules and decoration only.
   website/check.mjs reads the two token blocks marked "tokens:light" and "tokens:dark" and checks
   the contrast of every text/background pair it lists, in both themes - keep the values as #hex. */

/* ---------- Fonts: the app's own OFL faces, subset, served from this site (assets/fonts/OFL.txt) */
@font-face { font-family: "Cairo"; src: url("/assets/fonts/cairo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("/assets/fonts/cairo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens */
:root { /* tokens:light */
  --brand-pink: #D88C97;
  --brand-blue: #59AFCF;
  --bg: #F8F9FB;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --text: #333333;
  --heading: #1D2433;
  --muted: #5F6B7A;
  --border: #E4E7EC;
  --primary: #2A7591;
  --primary-hover: #1F5D74;
  --on-primary: #FFFFFF;
  --accent: #B44B5A;
  --pink-50: #FDEFF2;
  --blue-50: #EAF6FB;
  --pink-100: #F9DCE1;
  --blue-100: #D4ECF6;
  --focus: #2A7591;
  --header-bg: rgba(255, 255, 255, .86);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-2: 0 12px 32px -12px rgba(16, 24, 40, .18);
  --shadow-3: 0 28px 56px -20px rgba(16, 24, 40, .28);
  --hero-glow-pink: rgba(216, 140, 151, .26);
  --hero-glow-blue: rgba(89, 175, 207, .22);
}
:root {
  color-scheme: light dark;
  /* 4/8 pt spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --container: 1180px;
  --narrow: 800px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  /* type scale (fluid) */
  --fs-sm: .875rem;
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.4vw, 3rem);
  --fs-display: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);
  --font-sys: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-body: "Nunito", var(--font-sys);
  --font-head: "Poppins", "Nunito", var(--font-sys);
  --lh-body: 1.65;
  --lh-head: 1.2;
}
html[lang="ar"] {
  --font-body: "Cairo", var(--font-sys);
  --font-head: "Cairo", var(--font-sys);
  --lh-body: 1.85;
  --lh-head: 1.45; /* room for the shadda and the dots above and below */
}
@media (prefers-color-scheme: dark) {
  :root { /* tokens:dark */
    --brand-pink: #D88C97;
    --brand-blue: #59AFCF;
    --bg: #0F1218;
    --surface: #171B23;
    --surface-2: #1E2430;
    --text: #E8EAF0;
    --heading: #F5F6FA;
    --muted: #A9AFBB;
    --border: #2A3140;
    --primary: #7CC4DE;
    --primary-hover: #9BD3E7;
    --on-primary: #0B2733;
    --accent: #F0A7B2;
    --pink-50: #2A1B21;
    --blue-50: #13242C;
    --pink-100: #3A2129;
    --blue-100: #17323D;
    --focus: #7CC4DE;
    --header-bg: rgba(15, 18, 24, .82);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-3: 0 28px 56px -20px rgba(0, 0, 0, .7);
    --hero-glow-pink: rgba(216, 140, 151, .14);
    --hero-glow-blue: rgba(89, 175, 207, .12);
  }
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* no overflow-x: hidden here on purpose: a page wider than the screen must show, not be clipped */
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: var(--lh-head); margin: 0; font-weight: 700; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 var(--s-4); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; color: var(--heading); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink-100); color: var(--heading); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .i-flip { transform: scaleX(-1); }
.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; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; inset-inline-start: var(--s-3); top: -100px; z-index: 100;
  background: var(--surface); color: var(--primary); padding: var(--s-2) var(--s-4); border-radius: var(--r-md); box-shadow: var(--shadow-2); font-weight: 700;
}
.skip-link:focus { top: var(--s-3); }

/* ---------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-bar { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--heading); flex: none; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); background: #FFFFFF; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.nav-desktop { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-pill);
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 700; white-space: nowrap;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current="page"] { background: var(--pink-50); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface);
  color: var(--heading); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
html[lang="en"] .lang-switch { font-family: var(--font-sys); } /* one Arabic word: no need to fetch the Arabic font for it */
.header-actions .header-cta { display: none; }
.menu { position: static; }
/* summary keeps its own display (list-item) so every browser still announces it as a toggle;
   the layout lives on the span inside it */
.menu-btn {
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--heading); cursor: pointer; list-style: none;
}
.menu-ico { display: grid; place-items: center; width: 100%; height: 100%; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn::marker { content: ""; }
.menu-btn:hover { border-color: var(--primary); color: var(--primary); }
.menu .i-close, .menu[open] .i-menu { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-3);
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding-block: var(--s-4) var(--s-5);
}
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-4);
  border-radius: var(--r-md); color: var(--heading); text-decoration: none; font-weight: 700;
}
.menu-links a:hover { background: var(--surface-2); }
.menu-links a[aria-current="page"] { background: var(--pink-50); color: var(--accent); }
.menu-links a::after { content: ""; width: 7px; height: 7px; border-block-start: 2px solid var(--muted); border-inline-end: 2px solid var(--muted); transform: rotate(45deg); flex: none; }
[dir="rtl"] .menu-links a::after { transform: rotate(-45deg); }
.menu-cta { margin-top: var(--s-4); }
.menu-cta .btn { width: 100%; }
/* Small phones and 400% zoom (WCAG 1.4.10 Reflow: 320 CSS px). The header needs about 355 px with
   everything showing, so below 375 px the language pill drops its globe (the language's own name stays,
   it is the switch), and below 340 px the gaps tighten and the wordmark steps down a size. */
@media (max-width: 374.98px) {
  .lang-switch { padding: 0 var(--s-3); }
  .lang-switch .i { display: none; }
}
@media (max-width: 339.98px) {
  .header-bar { gap: var(--s-3); }
  .header-bar .brand { gap: var(--s-2); }
  .header-bar .brand-name { font-size: 1rem; }
}
@media (min-width: 560px) { .menu-links { grid-template-columns: 1fr 1fr; column-gap: var(--s-3); } }
@media (min-width: 720px) { .header-actions .header-cta { display: inline-flex; } .menu-cta { display: none; } }
@media (min-width: 1120px) {
  :root { --header-h: 72px; }
  .nav-desktop { display: flex; }
  /* only while the nav is shown: its own auto margins then centre it and push the actions to the end.
     Outside this block the nav is display:none but still the previous sibling, so this must not match. */
  .nav-desktop + .header-actions { margin-inline-start: 0; }
  .menu { display: none; }
}

/* ---------- Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-md); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); background: var(--blue-50); }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); font-size: .95rem; }

/* ---------- Home hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(42rem 26rem at 90% -10%, var(--hero-glow-blue), transparent 70%),
    radial-gradient(36rem 24rem at 0% 0%, var(--hero-glow-pink), transparent 70%),
    linear-gradient(180deg, var(--pink-50) 0%, var(--bg) 100%);
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px);
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-5);
  padding: 6px var(--s-4) 6px var(--s-3); border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1);
  color: var(--accent); font-weight: 700; font-size: var(--fs-sm);
}
.eyebrow .i { width: 1.1em; height: 1.1em; }
.hero-title { font-size: var(--fs-display); line-height: 1.08; margin-bottom: var(--s-5); }
html[lang="ar"] .hero-title { line-height: 1.35; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title span {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  [dir="rtl"] .hero-title span { background: linear-gradient(270deg, var(--accent), var(--primary)); -webkit-background-clip: text; background-clip: text; }
}
@media (forced-colors: active) { .hero-title span { color: CanvasText; background: none; } }
.hero-lead { font-size: var(--fs-lg); color: var(--muted); max-width: 36rem; margin: 0; }
.trust { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.trust li { display: flex; align-items: flex-start; gap: var(--s-3); color: var(--text); font-weight: 700; font-size: .95rem; }
.trust .i { color: var(--primary); width: 1.35em; height: 1.35em; margin-top: .1em; padding: 3px; border-radius: 50%; background: var(--blue-100); stroke-width: 2.4; }
.hero-media { position: relative; margin: 0; }
.hero-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 6px var(--surface), var(--shadow-3); background: var(--blue-100);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; inset-inline-start: var(--s-4); bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  font-weight: 700; color: var(--heading); font-size: .95rem;
}
.hero-badge img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--border); }
.hero-deco { position: absolute; inset-inline-end: -28px; top: -28px; width: 120px; height: 120px; color: var(--brand-pink); opacity: .35; pointer-events: none; }
.hero-deco .i { width: 100%; height: 100%; fill: currentColor; stroke: none; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-badge { inset-inline-start: -24px; bottom: -22px; }
}

/* ---------- Inner page header */
.page-hero {
  background:
    radial-gradient(36rem 18rem at 100% 0%, var(--hero-glow-blue), transparent 70%),
    radial-gradient(30rem 18rem at 0% 0%, var(--hero-glow-pink), transparent 70%),
    linear-gradient(180deg, var(--pink-50) 0%, var(--bg) 100%);
  padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
}
/* The breadcrumb sits in the corner where the page head's glows are strongest, so it is drawn in
   --text, not --muted (muted on the full pink glow is under 4:1). check.mjs reads every colour set
   by a ".breadcrumb" rule and tests it on the strongest glow blend. */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); padding: 0; font-size: var(--fs-sm); color: var(--text); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--s-2); }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-block-start: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
[dir="rtl"] .breadcrumb li + li::before { transform: rotate(-45deg); }
.breadcrumb a { color: var(--text); text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--heading); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--heading); font-weight: 700; }
.page-title { font-size: var(--fs-h1); margin-bottom: var(--s-3); }
.page-lead { font-size: var(--fs-lg); color: var(--muted); max-width: 44rem; margin: 0; }

/* ---------- Page body: one column, or an article with its contents beside it */
.page-body { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.page--narrow .container { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.article { container-type: inline-size; min-width: 0; }
.sec + .sec { margin-top: clamp(40px, 5vw, 56px); }
.sec > h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-bottom: var(--s-4); }
.sec > h3, .article h3 { font-size: var(--fs-h3); margin: var(--s-5) 0 var(--s-2); }
/* one rhythm for every block, in articles and in home sections alike */
.sec > *, .sec-body > * { margin-top: 0; margin-bottom: 0; }
.sec > * + *, .sec-body > * + * { margin-top: var(--s-4); }
.sec > * + .cards, .sec > * + .steps, .sec > * + .faq, .sec > * + .actions, .sec > .cards + *, .sec > .steps + *,
.sec-body > * + .cards, .sec-body > * + .steps, .sec-body > * + .actions, .sec-body > .cards + *, .sec-body > .steps + * { margin-top: var(--s-5); }
.sec > h2 + * { margin-top: 0; }
.toc { display: none; }
@media (min-width: 1024px) {
  .page-body--toc { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(40px, 5vw, 72px); align-items: start; }
  .page-body--toc .toc { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px); }
  .page-body--toc .article { grid-column: 1; grid-row: 1; max-width: 52rem; }
}
.toc-title { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--border); }
.toc a {
  display: block; padding: 6px var(--s-4); margin-inline-start: -2px; border-inline-start: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: .925rem; line-height: 1.45;
}
.toc a:hover { color: var(--primary); }
.toc a[aria-current="true"] { color: var(--accent); border-inline-start-color: var(--accent); font-weight: 700; }

/* ---------- Home sections */
.home-sec { padding-block: clamp(56px, 8vw, 104px); }
.home-sec--tint { background: var(--surface); border-block: 1px solid var(--border); }
.home-sec--blue { background: var(--blue-50); }
.home-sec--brand { background: linear-gradient(135deg, var(--pink-50), var(--blue-50)); }
.home-sec .container { container-type: inline-size; }
.sec-head { max-width: 44rem; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head h2 + .sec-lead { margin-top: var(--s-3); }
.sec-lead { font-size: var(--fs-lg); color: var(--muted); margin: 0; }
.sec-kicker { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--accent); font-weight: 700; font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
html[lang="en"] .sec-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.home-sec--center .sec-head { margin-inline: auto; text-align: center; }
.home-sec--center .actions, .home-sec--center .mail { justify-content: center; }
.home-sec--center .sec-body { max-width: 44rem; margin-inline: auto; text-align: center; }
.split { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); }
  .split .sec-head { margin-bottom: 0; }
}
.band-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: var(--s-4);
  background: var(--surface); color: var(--primary); box-shadow: var(--shadow-1);
}
.band-icon .i { width: 28px; height: 28px; }
.home-sec--center .band-icon { margin-inline: auto; }

/* ---------- Cards */
.cards { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@container (min-width: 520px) {
  .cards[data-n="2"], .cards[data-n="4"], .cards[data-n="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 680px) {
  .cards[data-n="3"], .cards[data-n="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 820px) { .cards[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 960px) { .cards[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: var(--s-2);
  background: var(--blue-100); color: var(--primary);
}
.card-icon .i { width: 24px; height: 24px; }
.cards > .card:nth-child(even) .card-icon { background: var(--pink-100); color: var(--accent); }
.card h2, .card h3 { font-size: var(--fs-h3); margin: 0; }
.card :is(h2, h3) a { color: inherit; text-decoration: none; }
.card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card :is(h2, h3) a:focus-visible { outline: none; }
.card:has(:is(h2, h3) a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card p { margin: 0; color: var(--muted); }
.card .mail { margin-top: var(--s-3); color: var(--text); }
.card-more { margin-top: auto; padding-top: var(--s-3); display: inline-flex; align-items: center; gap: var(--s-2); color: var(--primary); font-weight: 700; font-size: .95rem; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--blue-100); }
.card--link:hover .card-more .i { transform: translateX(3px); }
[dir="rtl"] .card--link:hover .card-more .i { transform: scaleX(-1) translateX(3px); }
.card-more .i { transition: transform .2s ease; }

/* ---------- Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; column-gap: var(--s-4); padding-bottom: var(--s-5); }
.home-sec .steps:not(.steps--row), .home-sec .steps--row { max-width: 52rem; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--surface); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1;
  box-shadow: 0 0 0 6px var(--pink-50); position: relative; z-index: 1;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--brand-pink), var(--brand-blue)); opacity: .55; }
.step-title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: var(--fs-h3); line-height: var(--lh-head); padding-top: 9px; }
html[lang="en"] .step-title { font-weight: 600; }
.step-text { display: block; color: var(--muted); margin-top: var(--s-1); }
@container (min-width: 1040px) {
  .home-sec .steps--row { max-width: none; }
  .steps--row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-5); }
  .steps--row > li { grid-template-columns: 1fr; padding-bottom: 0; }
  .steps--row > li::before { grid-row: auto; margin-bottom: var(--s-4); }
  .steps--row > li:not(:last-child)::after { inset-inline-start: 52px; inset-inline-end: calc(-1 * var(--s-5) + 8px); top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--brand-pink), var(--brand-blue)); }
  .steps--row .step-title { padding-top: 0; }
}

/* ---------- Lists, callouts, FAQ, email line */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.list li { position: relative; padding-inline-start: 28px; }
.list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-blue); box-shadow: 0 0 0 4px var(--blue-100); }
.list--check li { padding: var(--s-4) var(--s-4); padding-inline-start: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.list--check li::before { display: none; }
.list--check .i { position: absolute; inset-inline-start: var(--s-4); top: var(--s-4); width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--blue-100); color: var(--primary); stroke-width: 2.4; }
.callout {
  display: flex; gap: var(--s-3); align-items: flex-start; margin: 0;
  padding: var(--s-4) var(--s-5); border-radius: var(--r-lg);
  background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--text);
}
.callout > .i { color: var(--primary); width: 22px; height: 22px; margin-top: .2em; }
.callout p { margin: 0; }
.callout--warn { background: var(--pink-50); border-color: var(--pink-100); }
.callout--warn > .i { color: var(--accent); }
.faq { display: grid; gap: var(--s-3); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: border-color .15s ease; }
.faq details[open] { border-color: var(--blue-100); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); font-weight: 700; color: var(--heading); border-radius: var(--r-lg); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary .i { color: var(--primary); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > p { margin: 0; padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; }
.mail .i { color: var(--primary); }
.mail a { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: clamp(40px, 6vw, 64px) var(--s-5); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { margin-bottom: var(--s-3); }
.footer-tag { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 1.05rem; margin: 0 0 var(--s-2); }
.footer-text { color: var(--muted); margin: 0 0 var(--s-3); max-width: 24rem; }
.footer-title { font-family: var(--font-head); font-weight: 700; color: var(--heading); margin: 0 0 var(--s-3); font-size: .95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }

/* ---------- Motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card--link:hover, .btn-primary:hover { transform: none; }
  .card--link:hover .card-more .i { transform: none; }
  [dir="rtl"] .card--link:hover .card-more .i { transform: scaleX(-1); }
}
@media (prefers-color-scheme: dark) { .hero-frame img { filter: brightness(.92); } }
@media print {
  .site-header, .menu, .toc, .skip-link, .footer-grid nav, .hero-deco { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .hero, .page-hero, .home-sec { background: none; padding-block: 16px; }
  .card, .faq details, .callout { box-shadow: none; break-inside: avoid; }
}
