/* Hoof (هووف) website — tokens from the website handoff README (= the app's hoof-core.js THEMES).
   Light is the default; dark follows prefers-color-scheme unless the visitor picked a theme
   (html[data-theme], set by /assets/theme.js from localStorage before first paint). */
:root {
  color-scheme: light;
  --bg: #F3EEE4; --surf: #FFFDF8; --surf2: #EAE3D5; --line: #E2D9C8; --line2: #CBBFA9;
  --ink: #1A1712; --ink2: #3A342A; --ink3: #625947; --ink4: #756B58;
  --pri: #1F4D3A; --onPri: #FFFFFF; --priSoft: #DDE9E1;
  --acc: #C2622D; --accT: #9A4718; --accSoft: #F6E3D4;
  --ok: #2A7148; --okSoft: #DDEFE3; --warn: #7E5300; --warnSoft: #F8EBCB; --bad: #B0281F; --badSoft: #F8E1DD;
  --font: "saudi_riyal", "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --icons: "Material Symbols Rounded";
  --gutter: clamp(20px, 5cqi, 48px);
  --sec: clamp(56px, 9cqi, 120px);
  --focus: 3px solid var(--acc);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12110E; --surf: #1C1A16; --surf2: #28251F; --line: #2E2A23; --line2: #4A4338;
    --ink: #F4EFE6; --ink2: #E2DBCD; --ink3: #B0A795; --ink4: #9A9180;
    --pri: #9BD3B5; --onPri: #0D1F16; --priSoft: rgba(155, 211, 181, .14);
    --acc: #E98A51; --accT: #F0A273; --accSoft: rgba(233, 138, 81, .15);
    --ok: #7FD3A0; --okSoft: rgba(127, 211, 160, .13); --warn: #F2C46B; --warnSoft: rgba(242, 196, 107, .12); --bad: #FF8A7E; --badSoft: rgba(255, 138, 126, .13);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12110E; --surf: #1C1A16; --surf2: #28251F; --line: #2E2A23; --line2: #4A4338;
  --ink: #F4EFE6; --ink2: #E2DBCD; --ink3: #B0A795; --ink4: #9A9180;
  --pri: #9BD3B5; --onPri: #0D1F16; --priSoft: rgba(155, 211, 181, .14);
  --acc: #E98A51; --accT: #F0A273; --accSoft: rgba(233, 138, 81, .15);
  --ok: #7FD3A0; --okSoft: rgba(127, 211, 160, .13); --warn: #F2C46B; --warnSoft: rgba(242, 196, 107, .12); --bad: #FF8A7E; --badSoft: rgba(255, 138, 126, .13);
}

/* The riyal sign (U+20C1) comes from this tiny font only (OFL-1.1, assets/fonts). */
@font-face { font-family: "saudi_riyal"; src: url("/assets/fonts/saudi_riyal.woff2") format("woff2"); font-weight: 100 500; font-display: swap; unicode-range: U+20C1; }
@font-face { font-family: "saudi_riyal"; src: url("/assets/fonts/saudi_riyal_bold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; unicode-range: U+20C1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15.5px; line-height: 1.7; font-weight: 400;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
.page { container-type: inline-size; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.page > main { flex: 1; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.amt { white-space: nowrap; }
.ms {
  font-family: var(--icons); font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal;
  text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; font-variant-numeric: normal;
  display: inline-block; inline-size: 1em; block-size: 1em; overflow: hidden; flex: none; user-select: none;
}
.wrap { max-width: 1200px; margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--pri); color: var(--onPri); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* Effective theme helpers (icons on the theme button). */
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline-block; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: inline-block; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}

/* ---------- Buttons (interaction table in the README) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px;
  border-radius: 14px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; transition: transform .12s, filter .15s, background-color .15s;
}
.btn:focus-visible { outline: var(--focus); outline-offset: 3px; }
.btn-p { background: var(--pri); color: var(--onPri); }
.btn-p:hover { filter: brightness(1.12); }
.btn-p:active { transform: scale(.97); }
.btn-o { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.btn-o:hover { background: var(--surf2); }
.btn-o:active { background: var(--line); transform: scale(.97); }
.btn-dis { background: var(--surf2); color: var(--ink3); cursor: default; }
.btn-lg { height: 54px; border-radius: 16px; font-size: 15.5px; padding: 0 20px; }
.btn .ms { font-size: 20px; }
.tlink { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); border-radius: 6px; transition: text-decoration-color .15s, opacity .15s; }
.tlink:hover { text-decoration-color: var(--ink); }
.tlink:active { opacity: .7; }
.tlink:focus-visible { outline-offset: 2px; }
.icon-btn {
  all: unset; box-sizing: border-box; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink2); transition: background-color .15s;
}
.icon-btn .ms { font-size: 21px; }
.icon-btn:hover, .nav-lang:hover { background: var(--surf2); }
.icon-btn:active, .nav-lang:active { background: var(--line); }
.icon-btn:focus-visible, .nav-lang:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* Store badges */
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border-radius: 15px; text-decoration: none; }
.badge-lines { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.badge-lines small { font-size: 11.5px; }
.badge-lines b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.badge-soon { border: 1.5px solid var(--ink); color: var(--ink); }
.badge-gp { border: 1.5px dashed var(--line2); color: var(--ink3); padding: 0 18px; }
.badge-gp .ms { font-size: 24px; }
.badge-gp b { font-size: 18px; }
.badge-as { padding: 0; height: 58px; border-radius: 15px; transition: transform .12s, filter .15s; }
.badge-as img { height: 58px; width: auto; display: block; }
.badge-as:hover { filter: brightness(1.25); }
.badge-as:active { transform: scale(.97); }
.badge-as:focus-visible { outline: var(--focus); outline-offset: 3px; }
.as-dark { display: none; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { padding: 12px clamp(16px, 5cqi, 48px); display: flex; align-items: center; gap: clamp(6px, 1.4cqi, 12px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; border-radius: 10px; padding: 4px; color: var(--ink); }
.brand img { width: 32px; height: 32px; display: block; flex: none; }
.brand span { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand:focus-visible { outline-offset: 2px; }
.nav-lang { height: 42px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none; transition: background-color .15s; }
.nav-cta { height: 42px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
@container (max-width: 400px) {
  .nav { gap: 2px; padding-inline: 12px; }
  .nav-lang { padding: 0 8px; }
  .nav-cta { padding: 0 10px; font-size: 13px; }
  .brand span { font-size: 19px; }
}
@container (max-width: 359px) { .nav-lang .ms { display: none; } }

/* ---------- Common section parts ---------- */
.sec { padding: var(--sec) var(--gutter); }
.eye { font-size: 14px; font-weight: 600; color: var(--accT); }
.h2 { font-size: clamp(28px, 4.4cqi, 48px); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.6cqi, 19px); line-height: 1.75; color: var(--ink3); text-wrap: pretty; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.sec-head.center { align-items: center; text-align: center; margin-inline: auto; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(36px, 5cqi, 64px); align-items: center; }
.phone { display: flex; justify-content: center; }
.phone img { display: block; height: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6cqi, 88px) var(--gutter) clamp(56px, 8cqi, 104px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(36px, 5cqi, 64px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: clamp(18px, 2.4cqi, 26px); align-items: flex-start; }
.pill-eye { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--accT); background: var(--accSoft); padding: 7px 13px; border-radius: 99px; }
.pill-eye::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
.h1 { font-size: clamp(38px, 6.6cqi, 76px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.hero-p { font-size: clamp(16.5px, 1.7cqi, 20px); line-height: 1.75; color: var(--ink3); max-width: 560px; text-wrap: pretty; }
.download { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; scroll-margin-top: 100px; }
.soon-note { font-size: 14.5px; line-height: 1.7; color: var(--ink3); max-width: 460px; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mail-link { height: 50px; padding: 0 6px; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 500; }
.hero-phone { position: relative; display: flex; justify-content: center; align-items: center; min-height: clamp(560px, 60cqi, 680px); }
.ring {
  position: absolute; top: 50%; left: 50%; width: min(620px, 118%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 225deg, var(--acc) 0 175deg, var(--line) 175deg 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 63.5%); mask: radial-gradient(circle, transparent 63%, #000 63.5%);
}
.hero-phone picture, .hero-phone img { position: relative; display: block; }

/* ---------- Problem ---------- */
.band { background: var(--surf2); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--surf); border: 1px solid var(--line); }
.tile { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.tile .ms { font-size: 22px; }
.tile-bad { background: var(--badSoft); color: var(--bad); }
.tile-acc { background: var(--accSoft); color: var(--accT); }
.h3 { font-size: 21px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.body { font-size: 15px; line-height: 1.7; color: var(--ink3); text-wrap: pretty; }
.cost { font-size: clamp(16px, 1.6cqi, 18px); font-weight: 500; color: var(--ink2); text-align: center; text-wrap: balance; }

/* ---------- Features ---------- */
.stack { display: flex; flex-direction: column; gap: clamp(32px, 5cqi, 56px); }
.today { padding: clamp(24px, 4cqi, 48px); border-radius: 28px; background: var(--surf); border: 1px solid var(--line); }
.today-text { display: flex; flex-direction: column; gap: 16px; }
.today-text .h2 { font-size: clamp(26px, 3.4cqi, 38px); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; font-weight: 500; }
.checks .ms { width: 28px; height: 28px; border-radius: 50%; background: var(--okSoft); color: var(--ok); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.fcard { display: flex; flex-direction: column; border-radius: 28px; background: var(--surf); border: 1px solid var(--line); overflow: hidden; }
.fcard-text { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.fcard-eye { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fcard-eye .ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--priSoft); color: var(--pri); }
.fcard-eye .lbl { font-size: 14px; font-weight: 600; color: var(--pri); }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; line-height: 1.5; white-space: nowrap; }
.chip-acc { background: var(--accSoft); color: var(--accT); }
.chip-pri { background: var(--priSoft); color: var(--pri); }
.well { position: relative; height: 340px; margin-top: auto; display: flex; justify-content: center; overflow: hidden; background: var(--surf2); }
.fcard-text + .well { margin-top: 22px; }
.fcard { justify-content: space-between; }
.well img { display: block; margin-top: 56px; width: 246px; height: 284px; }

/* ---------- Team ---------- */
.team { background: var(--pri); color: var(--onPri); }
.team .eye { color: inherit; opacity: .85; }
.team .lead { color: inherit; opacity: .9; }
.team-text { display: flex; flex-direction: column; gap: 18px; }
.roles { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid color-mix(in oklch, var(--onPri) 22%, transparent); list-style: none; margin: 0; padding: 0; }
.roles li { display: flex; gap: 12px; align-items: center; padding: 13px 16px; }
.roles li + li { border-top: 1px solid color-mix(in oklch, var(--onPri) 18%, transparent); }
.roles .ri { width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in oklch, var(--onPri) 14%, transparent); }
.roles .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.roles strong { font-size: 15.5px; font-weight: 600; }
.roles .rt span { font-size: 13.5px; line-height: 1.5; opacity: .85; }
.roles .chip { font-size: 12.5px; padding: 4px 10px; }
.chip-pays { background: var(--acc); color: #fff; }
.chip-free { background: var(--onPri); color: var(--pri); }
.steps-h { font-size: 14px; font-weight: 600; opacity: .85; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: color-mix(in oklch, var(--onPri) 10%, transparent); font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.steps .n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--onPri); color: var(--pri); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

/* ---------- Saudi ---------- */
.sa-text { display: flex; flex-direction: column; gap: 22px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.cards2 .pcard { padding: 20px; gap: 8px; border-radius: 22px; }
.cards2 .h3 { font-size: 18px; }

/* ---------- Pricing ---------- */
.pricing-in { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(26px, 4cqi, 40px); align-items: center; text-align: center; }
.seg { display: flex; padding: 5px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); gap: 4px; }
.seg button {
  all: unset; box-sizing: border-box; min-height: 46px; padding: 6px 20px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink2); transition: transform .12s, opacity .15s;
}
.seg button small { font-size: 11.5px; font-weight: 600; color: var(--ok); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.seg button[aria-checked="true"] small { color: var(--bg); }
.seg button:hover { opacity: .88; }
.seg button:active { transform: scale(.97); }
.seg button:focus-visible { outline: var(--focus); outline-offset: 2px; }
.plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; text-align: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3cqi, 30px); border-radius: 28px; background: var(--surf); border: 1px solid var(--line); }
.plan.best { border: 2px solid var(--pri); }
.plan-name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-name strong { font-size: 21px; font-weight: 600; }
.plan-sub { font-size: 14.5px; color: var(--ink3); margin-top: -10px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .amt { font-size: clamp(38px, 4.6cqi, 50px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.price .per { font-size: 15px; color: var(--ink3); }
.pnote { font-size: 13.5px; font-weight: 500; margin-top: -8px; }
.pnote.y { color: var(--ok); }
.pnote.m { color: var(--ink3); }
.pts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pts li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.pts .ms { color: var(--ok); }
.plan .btn { margin-top: auto; width: 100%; height: 54px; border-radius: 16px; font-size: 15.5px; }
[data-bill="year"] .bill-m, [data-bill="month"] .bill-y { display: none; }
.free-banner { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; background: var(--okSoft); color: var(--ok); font-size: 15.5px; font-weight: 600; text-align: start; }
.free-banner .ms { font-size: 24px; }
.free-banner span span { font-weight: 400; }
.notes { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.7; color: var(--ink3); max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 5cqi, 64px); align-items: start; }
@container (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .faq-head { position: sticky; top: 96px; } }
.faq-head { display: flex; flex-direction: column; gap: 12px; }
.faq-more { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.faq-more strong { font-size: 16px; font-weight: 600; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; padding: 18px 6px; font-size: 17px; font-weight: 600; line-height: 1.5;
  border-radius: 10px; transition: color .15s, opacity .15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--pri); }
.faq-list summary:active { opacity: .75; }
.faq-list summary:focus-visible { outline: var(--focus); outline-offset: -3px; }
.faq-list summary .q { flex: 1; }
.disc { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surf2); color: var(--ink); flex: none; transition: background-color .15s, color .15s; }
.disc .minus, details[open] .disc .plus { display: none; }
details[open] .disc .minus { display: inline-block; }
details[open] .disc { background: var(--pri); color: var(--onPri); }
.faq-list .a { padding: 0 6px 18px; font-size: 15px; line-height: 1.8; color: var(--ink3); text-wrap: pretty; }

/* ---------- Final CTA ---------- */
.cta-sec { padding: 0 var(--gutter) clamp(56px, 8cqi, 104px); }
.cta { position: relative; overflow: hidden; padding: clamp(40px, 7cqi, 88px) clamp(22px, 4cqi, 48px); border-radius: 36px; background: var(--surf); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-ring {
  position: absolute; width: min(760px, 150%); aspect-ratio: 1; top: -34%; left: 50%; transform: translateX(-50%); border-radius: 50%;
  background: conic-gradient(from 225deg, var(--pri) 0 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.4%); mask: radial-gradient(circle, transparent 66%, #000 66.4%); opacity: .12;
}
.cta > *:not(.cta-ring) { position: relative; }
.cta-mark { width: 64px; height: 64px; display: block; }
.cta h2 { font-size: clamp(30px, 4.8cqi, 52px); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.cta p { font-size: clamp(16px, 1.6cqi, 19px); line-height: 1.7; color: var(--ink3); }
.cta .contact-row { justify-content: center; margin-top: 6px; }
.cta .btn { height: 54px; border-radius: 15px; padding: 0 20px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: clamp(36px, 5cqi, 56px) var(--gutter) 28px; }
.foot-in { display: flex; flex-direction: column; gap: 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 28px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col .brand { margin: 0; padding: 0; }
.foot-tag { font-size: 14.5px; color: var(--ink3); }
.foot-lbl { font-size: 13px; font-weight: 600; color: var(--ink3); }
.foot-col .tlink { font-size: 15px; font-weight: 500; padding: 4px 0; }
.foot-link { font-size: 15px; padding: 6px 0; text-decoration: none; border-radius: 6px; }
.foot-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-link:active { opacity: .7; }
.foot-link:focus-visible { outline-offset: 2px; }
.foot-socials { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.foot-social { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 6px 0; text-decoration: none; border-radius: 6px; }
.foot-social span { line-height: 1.5; }
.foot-social:hover span { text-decoration: underline; text-underline-offset: 4px; }
.foot-social:active { opacity: .7; }
.foot-social:focus-visible { outline-offset: 2px; }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surf2); }
.langs a { height: 38px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; font-size: 14px; text-decoration: none; color: var(--ink); transition: opacity .15s, transform .12s; }
.langs a[aria-current] { background: var(--surf); font-weight: 600; }
.langs a:hover { opacity: .85; }
.langs a:active { transform: scale(.97); }
.langs a:focus-visible { outline-offset: 2px; }
.copy { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--ink3); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(32px, 6cqi, 72px) var(--gutter) clamp(56px, 8cqi, 96px); }
.legal-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5cqi, 64px); align-items: start; }
@container (min-width: 1024px) { .legal-grid { grid-template-columns: minmax(0, 760px); justify-content: center; } }
.doc { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.doc-head { display: flex; flex-direction: column; gap: 12px; }
.doc h1 { font-size: clamp(32px, 5cqi, 52px); font-weight: 600; line-height: 1.25; }
.doc .meta { font-size: 14px; color: var(--ink3); }
.doc .card { margin-top: 6px; }
.doc .card p { font-size: clamp(16.5px, 1.7cqi, 19px); line-height: 1.8; color: var(--ink2); text-wrap: pretty; }
.doc section { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.doc h2 { font-size: clamp(20px, 2.4cqi, 24px); font-weight: 600; line-height: 1.4; }
.doc h2 .n { font-size: .7em; font-weight: 600; color: var(--accT); margin-inline-end: 6px; }
.doc h3 { font-size: 17px; font-weight: 600; line-height: 1.5; margin-top: 6px; }
.doc section p, .doc section li { font-size: 16px; line-height: 1.85; color: var(--ink2); text-wrap: pretty; }
.doc ul, .doc ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc li { padding-inline-start: 4px; }
.doc a { color: var(--pri); text-underline-offset: 3px; border-radius: 4px; }
.doc a:focus-visible { outline-offset: 2px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); }
.contact-card strong { font-size: 16px; font-weight: 600; }
.contact-card a { align-self: flex-start; font-size: 16px; font-weight: 500; }
@container (min-width: 1024px) { .small-foot { border-top: 1px solid var(--line); padding: 20px var(--gutter); }
.small-foot .wrap { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 13.5px; color: var(--ink3); }
.small-foot .wrap > span:first-child { margin-inline-end: auto; }
.small-foot a { text-decoration: none; padding: 4px 0; border-radius: 6px; }
.small-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 404 and invite ---------- */
.center-main { display: flex; align-items: center; justify-content: center; padding: clamp(40px, 8cqi, 96px) 20px; }
.nf { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 520px; }
.nf-ring { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.nf-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 225deg, var(--acc) 0 90deg, var(--line) 90deg 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%);
}
.nf-code { position: relative; font-size: 52px; font-weight: 600; letter-spacing: -.02em; direction: ltr; }
.nf h1 { font-size: clamp(26px, 4cqi, 36px); font-weight: 600; line-height: 1.35; }
.nf p { font-size: 16.5px; line-height: 1.75; color: var(--ink3); }
.nf .btn { margin-top: 8px; }
.nf-mail { font-size: 14px; color: var(--ink3); padding: 6px; border-radius: 8px; }
.nf-mail:hover { color: var(--ink); }
.invite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; max-width: 900px; width: 100%; }
.inv-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3cqi, 30px); border-radius: 28px; background: var(--surf); border: 1px solid var(--line); }
.inv-card h1 { font-size: clamp(24px, 3cqi, 30px); font-weight: 600; line-height: 1.35; }
.inv-card p { font-size: 15.5px; line-height: 1.75; color: var(--ink2); }
.inv-card .muted { font-size: 14px; color: var(--ink3); }
.inv-card .err { color: var(--bad); font-weight: 500; }
.inv-card .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.inv-card .btn { flex: 1 1 160px; }
.invite-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.invite-wrap > .cta-mark { width: 72px; height: 72px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .btn:active, .seg button:active, .badge-as:active, .langs a:active { transform: none; }
}

/* Small helpers (no inline styles: the CSP has no 'unsafe-inline'). */
.steps-wrap { display: flex; flex-direction: column; gap: 10px; }
.cta-badges { justify-content: center; margin-top: 6px; }
.foot-links { gap: 4px; }
.nav-lang-btn { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.small-foot.center .wrap { justify-content: center; text-align: center; }
.small-foot.center .wrap > span:first-child { margin-inline-end: 0; }
.dim { color: var(--ink3); }
