/* AVISO marketing site — media-family "sponsored listing" aesthetic
 * (DESIGN_SYSTEM.md §4: media = Yoryx Ads/AVISO, Yoryx Ticket). Templ, no
 * build step, zero JavaScript. RTL-native (ar-MA first), dark first-class.
 *
 * Theming is driven by the `data-theme` attribute on <html>, set server-side
 * from the yx_theme cookie ONLY for an explicit dark/light choice; "system"
 * renders no attribute and the prefers-color-scheme mirror blocks below apply.
 * <html> carries data-family="media" only — AVISO has no bespoke product
 * accent (unlike some sibling sites' own named accents), so it renders the
 * plain media family palette (vivid magenta), same mechanism as SALDO in
 * the finance family.
 * Every color used in a COMPONENT references a CSS variable — raw hex/rgba
 * lives ONLY in the token-definition layers below (:root, [data-theme],
 * [data-family], and the --yx-* composite layer), never in a component rule.
 * This mirrors the documented convention of apps/sello-site/static/styles.css.
 *
 * Layout uses CSS logical properties (margin-inline, inset-inline-*,
 * text-align: start) so RTL works without any physical L/R rules. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-sans-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-600-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-700-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2"); }

/* ============================================================================
 * DESIGN SYSTEM token layer — docs/platform/DESIGN_SYSTEM.md (single source of
 * truth). Raw hex lives ONLY here. Light = :root default; [data-theme="dark"]
 * swaps semantics; [data-family] is set on <html> server-side.
 * ==========================================================================*/
:root {
  --yx-radius: 14px;
  --yx-maxw: 1120px;

  --font-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", "Noto Sans Arabic", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --leading-normal: 1.55;
  --yx-font: var(--font-sans);

  --ink-950: #0E1626; --ink-900: #14213D; --ink-700: #1D2F56; --ink-500: #3A4A6B;
  --ink-300: #8A97AE; --ink-200: #C2CAD9; --ink-100: #E6EAF1; --ink-50: #F4F6FA;
  --paper: #FAF8F4; --white: #FFFFFF;

  --surface: var(--white);
  --surface-2: var(--ink-50);
  --surface-sunken: var(--paper);
  --border: var(--ink-100);
  --border-strong: var(--ink-200);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-inverse: var(--white);
  --primary: var(--ink-900);
  --primary-contrast: var(--white);
  --accent: var(--ink-700);
  --tint: var(--ink-50);

  --success: #1B7F4D; --warning: #B98B2F; --danger: #8C1D2F; --info: #1F6FB2;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(14,22,38,.06);
  --shadow-md: 0 4px 12px rgba(14,22,38,.10);
  --shadow-lg: 0 12px 32px rgba(14,22,38,.16);
}

[data-theme="dark"] {
  --surface: #0E1626;
  --surface-2: #14213D;
  --surface-sunken: #0B1220;
  --border: #243152;
  --border-strong: #31406A;
  --text: #E8ECF6;
  --text-muted: #9AA8C4;
  --text-inverse: #0E1626;
  --primary-contrast: #0E1626;
  --tint: #1A2747;
  --success: #3FA873; --warning: #D8B65A; --danger: #E0667A; --info: #5AA8E0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
}

/* System fallback: with no explicit choice the yx_theme cookie is absent and
 * <html> carries NO data-theme attribute, so the OS preference applies here.
 * Explicit light (data-theme="light") beats OS-dark; explicit dark needs no
 * media query. Mirror of the [data-theme="dark"] rules above — keep in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0E1626;
    --surface-2: #14213D;
    --surface-sunken: #0B1220;
    --border: #243152;
    --border-strong: #31406A;
    --text: #E8ECF6;
    --text-muted: #9AA8C4;
    --text-inverse: #0E1626;
    --primary-contrast: #0E1626;
    --tint: #1A2747;
    --success: #3FA873; --warning: #D8B65A; --danger: #E0667A; --info: #5AA8E0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 4px 12px rgba(0,0,0,.45);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
  }
}

[data-family="finance"]    { --primary:#0F5C4D; --accent:#1B9E7A; --tint:#E6F4EF; }
[data-family="trust"]      { --primary:#14213D; --accent:#A4243B; --tint:#F6E3E7; }
[data-family="commerce"]   { --primary:#B5430F; --accent:#F2820A; --tint:#FDEEDD; }
[data-family="auto"]       { --primary:#23303A; --accent:#3E7CB1; --tint:#E5EEF5; }
[data-family="realestate"] { --primary:#7A3B2E; --accent:#C77B5A; --tint:#F4E7E1; }
[data-family="mobility"]   { --primary:#0C5566; --accent:#19A0B8; --tint:#E0F2F5; }
[data-family="lifestyle"]  { --primary:#8E2F5A; --accent:#D46A93; --tint:#F8E5EE; }
[data-family="learn"]      { --primary:#2E2C75; --accent:#5C5BCF; --tint:#E8E8FA; }
[data-family="work"]       { --primary:#1C3A5E; --accent:#3E7CB1; --tint:#E5EDF5; }
[data-family="health"]     { --primary:#136B63; --accent:#2FA39A; --tint:#E1F2F0; }
[data-family="media"]      { --primary:#8A1E63; --accent:#D63C9A; --tint:#FBE3F1; }
[data-family="platform"]   { --primary:#14213D; --accent:#3A4A6B; --tint:#E6EAF1; }

[data-theme="dark"][data-family="finance"]    { --accent:#3FC79E; --tint:#103A30; }
[data-theme="dark"][data-family="trust"]      { --accent:#D65C70; --tint:#3A1A24; }
[data-theme="dark"][data-family="commerce"]   { --accent:#FCA23E; --tint:#3A2410; }
[data-theme="dark"][data-family="auto"]       { --accent:#6BA3D6; --tint:#1A2730; }
[data-theme="dark"][data-family="realestate"] { --accent:#E0A186; --tint:#33201A; }
[data-theme="dark"][data-family="mobility"]   { --accent:#46C4DA; --tint:#0E2E36; }
[data-theme="dark"][data-family="lifestyle"]  { --accent:#E895B5; --tint:#341B27; }
[data-theme="dark"][data-family="learn"]      { --accent:#8786E6; --tint:#22214A; }
[data-theme="dark"][data-family="work"]       { --accent:#6BA3D6; --tint:#16263A; }
[data-theme="dark"][data-family="health"]     { --accent:#56C7BE; --tint:#0F322E; }
[data-theme="dark"][data-family="media"]      { --accent:#E96CB8; --tint:#3A132B; }
[data-theme="dark"][data-family="platform"]   { --accent:#6B7DA3; --tint:#1A2747; }

/* System fallback for the family accents — mirror of the [data-theme="dark"]
 * family rules above; keep in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-family="finance"]    { --accent:#3FC79E; --tint:#103A30; }
  :root:not([data-theme="light"])[data-family="trust"]      { --accent:#D65C70; --tint:#3A1A24; }
  :root:not([data-theme="light"])[data-family="commerce"]   { --accent:#FCA23E; --tint:#3A2410; }
  :root:not([data-theme="light"])[data-family="auto"]       { --accent:#6BA3D6; --tint:#1A2730; }
  :root:not([data-theme="light"])[data-family="realestate"] { --accent:#E0A186; --tint:#33201A; }
  :root:not([data-theme="light"])[data-family="mobility"]   { --accent:#46C4DA; --tint:#0E2E36; }
  :root:not([data-theme="light"])[data-family="lifestyle"]  { --accent:#E895B5; --tint:#341B27; }
  :root:not([data-theme="light"])[data-family="learn"]      { --accent:#8786E6; --tint:#22214A; }
  :root:not([data-theme="light"])[data-family="work"]       { --accent:#6BA3D6; --tint:#16263A; }
  :root:not([data-theme="light"])[data-family="health"]     { --accent:#56C7BE; --tint:#0F322E; }
  :root:not([data-theme="light"])[data-family="media"]      { --accent:#E96CB8; --tint:#3A132B; }
  :root:not([data-theme="light"])[data-family="platform"]   { --accent:#6B7DA3; --tint:#1A2747; }
}

/* ---- AVISO composite token layer — media "sponsored listing" accents ----
 * Derived, decorative tokens (deep-ink panels, glass header, elevations, paper
 * texture) used across the components below. Raw color is legitimate here
 * because this IS the token-definition layer; every token has a dark
 * counterpart. The ink panels are intentionally dark in BOTH themes (the
 * on-ink text is always light), like a lit-up ad billboard at dusk. Hues are
 * derived from the plain media family's own --primary #8A1E63 / --accent
 * #D63C9A (no bespoke product accent — see file header). */
:root {
  --yx-ink:#2B0A24; --yx-ink-700:#3D0F33; --yx-ink-950:#170611;
  --yx-on-ink:#F7E8F1;
  --yx-on-ink-muted:#CFA0BC;
  --yx-on-ink-faint:rgba(247,232,241,.10);
  --yx-on-ink-line:rgba(247,232,241,.16);

  --yx-hero-grad: radial-gradient(135% 120% at 12% 4%, #4D1240 0%, #2B0A24 48%, #170611 100%);
  --yx-hero-veil: radial-gradient(52% 78% at 92% 6%, rgba(214,60,154,.20), transparent 72%);
  --yx-ink-panel: linear-gradient(158deg, #3D0F33 0%, #170611 100%);
  --yx-glass: rgba(250,248,250,.72);
  --yx-glass-border: rgba(43,10,36,.10);
  --yx-hairline: rgba(43,10,36,.09);
  --yx-paper-texture:
    radial-gradient(rgba(43,10,36,.035) 1px, transparent 1.4px) 0 0 / 22px 22px;
  --yx-scroll-shadow: rgba(43,10,36,.14);

  --yx-lift: 0 1px 2px rgba(23,6,17,.05), 0 14px 30px -16px rgba(23,6,17,.30);
  --yx-lift-strong: 0 2px 6px rgba(23,6,17,.07), 0 26px 52px -22px rgba(23,6,17,.42);
  --yx-panel-shadow: 0 2px 6px rgba(23,6,17,.12), 0 40px 80px -40px rgba(23,6,17,.55);
  /* layered "double border" of a sponsored-listing card lifting off the page */
  --yx-card-frame:
    0 0 0 1px var(--border),
    0 0 0 6px var(--surface),
    0 0 0 7px color-mix(in srgb, var(--accent) 30%, transparent),
    0 34px 64px -34px rgba(23,6,17,.5);
  --yx-coin-grad: radial-gradient(circle at 34% 28%, #E96CB8 0%, #D63C9A 48%, #8A1E63 100%);
  --yx-coin-emboss:
    inset 0 2px 4px rgba(255,255,255,.28),
    inset 0 -3px 6px rgba(0,0,0,.30),
    0 8px 18px -6px rgba(23,6,17,.5);
}

[data-theme="dark"] {
  --yx-glass: rgba(10,20,17,.74);
  --yx-glass-border: rgba(255,255,255,.08);
  --yx-hairline: rgba(255,255,255,.08);
  --yx-paper-texture:
    radial-gradient(rgba(255,255,255,.03) 1px, transparent 1.4px) 0 0 / 22px 22px;
  --yx-scroll-shadow: rgba(0,0,0,.5);
  --yx-lift: 0 1px 2px rgba(0,0,0,.4), 0 14px 30px -16px rgba(0,0,0,.55);
  --yx-lift-strong: 0 2px 6px rgba(0,0,0,.45), 0 26px 52px -22px rgba(0,0,0,.65);
  --yx-panel-shadow: 0 2px 6px rgba(0,0,0,.5), 0 40px 80px -40px rgba(0,0,0,.7);
  --yx-card-frame:
    0 0 0 1px var(--border),
    0 0 0 6px var(--surface),
    0 0 0 7px color-mix(in srgb, var(--accent) 34%, transparent),
    0 34px 64px -34px rgba(0,0,0,.66);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --yx-glass: rgba(10,20,17,.74);
    --yx-glass-border: rgba(255,255,255,.08);
    --yx-hairline: rgba(255,255,255,.08);
    --yx-paper-texture:
      radial-gradient(rgba(255,255,255,.03) 1px, transparent 1.4px) 0 0 / 22px 22px;
    --yx-scroll-shadow: rgba(0,0,0,.5);
    --yx-lift: 0 1px 2px rgba(0,0,0,.4), 0 14px 30px -16px rgba(0,0,0,.55);
    --yx-lift-strong: 0 2px 6px rgba(0,0,0,.45), 0 26px 52px -22px rgba(0,0,0,.65);
    --yx-panel-shadow: 0 2px 6px rgba(0,0,0,.5), 0 40px 80px -40px rgba(0,0,0,.7);
    --yx-card-frame:
      0 0 0 1px var(--border),
      0 0 0 6px var(--surface),
      0 0 0 7px color-mix(in srgb, var(--accent) 34%, transparent),
      0 34px 64px -34px rgba(0,0,0,.66);
  }
}

/* Legacy --yx-* bridge: maps the pre-design-system names used throughout this
 * sheet onto the semantic tokens, so the whole page is theme- and
 * family-driven. New styling should target the semantic tokens directly. */
:root {
  --yx-bg: var(--surface-sunken);
  --yx-surface: var(--surface);
  --yx-surface-2: var(--surface-2);
  --yx-text: var(--text);
  --yx-muted: var(--text-muted);
  --yx-accent: var(--accent);
  --yx-accent-hover: var(--primary);
  --yx-accent-ink: var(--primary-contrast);
  --yx-border: var(--border);
  --yx-badge-active-bg: var(--tint);
  --yx-shadow: var(--shadow-lg);
}

[dir="rtl"] body { font-family: var(--font-ar); line-height: var(--leading-normal); }

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--yx-bg);
  color: var(--yx-text);
  font-family: var(--yx-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A faint dotted-grid tint over the whole page. Fixed so it never shifts
 * layout (no CLS); purely decorative. */
body {
  background-image: var(--yx-paper-texture);
  background-attachment: fixed;
}

.container {
  max-inline-size: var(--yx-maxw);
  margin-inline: auto;
  /* Physical L/R padding holds in both LTR and RTL where logical padding-inline
     would not map to the notch side; env() keeps content clear of the notch. */
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

a { color: var(--yx-accent); text-decoration: none; }
a:hover { color: var(--yx-accent-hover); }

/* Global keyboard-focus ring (WCAG 2.4.7) — accent, offset, never removed. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--yx-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Site header + shared chrome — sticky glass ---- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  padding-block: 14px;
  border-block-end: 1px solid var(--yx-glass-border);
  background: var(--yx-glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  color: var(--yx-text);
}
.site-header .brand__stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.site-header .brand__by {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--yx-muted);
  opacity: 0.85;
}
/* Accent coin dot before the wordmark — a targeting/campaign cue. */
.site-header .brand::before {
  content: "";
  inline-size: 12px;
  block-size: 12px;
  border-radius: 50%;
  background: var(--yx-coin-grad);
  box-shadow: 0 0 0 3px var(--tint);
  flex-shrink: 0;
}

.chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Dropdown menu primitive (yx-menu) — shared lang/theme switcher ---- */
.yx-menu {
  position: relative;
  display: inline-block;
}
.yx-menu__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: 999px;
  color: var(--yx-text);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  user-select: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.yx-menu__summary::-webkit-details-marker { display: none; }
.yx-menu__summary::marker { content: ""; }
.yx-menu__summary:hover {
  border-color: var(--yx-accent);
  box-shadow: var(--shadow-md);
}
.yx-menu__summary:focus-visible {
  outline: 2px solid var(--yx-accent-hover);
  outline-offset: 2px;
}
.yx-menu__current {
  white-space: nowrap;
}
.yx-menu__chevron {
  color: var(--yx-muted);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.yx-menu[open] .yx-menu__chevron { transform: rotate(180deg); }
.yx-menu[open] .yx-menu__summary { border-color: var(--yx-accent); }

.yx-menu__panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-inline-size: 224px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: 14px;
  box-shadow: var(--yx-lift-strong);
  z-index: 50;
}
.yx-menu__panel li { margin: 0; }

.yx-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  inline-size: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--yx-text);
  font: inherit;
  font-size: 0.9rem;
  text-align: start;
  text-decoration: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.yx-menu__item:hover,
.yx-menu__item:focus-visible {
  background: var(--yx-badge-active-bg);
  color: var(--yx-text);
  outline: none;
}
.yx-menu__item.is-active {
  color: var(--yx-accent);
  font-weight: 700;
}
.yx-menu__check {
  display: inline-block;
  inline-size: 14px;
  text-align: center;
  font-weight: 700;
  color: var(--yx-accent);
  flex-shrink: 0;
}
.yx-menu__label { display: inline-block; }

/* ---- Mobile burger (yx-menu--nav): below 900px the header collapses to
 * brand + one drawer that folds the in-page nav, the language links and the
 * theme form. Above 900px it is hidden and the desktop top-nav + header chrome
 * take over. Reuses the .yx-menu / .yx-menu__panel primitives above. ---- */
.yx-menu--nav { display: none; }
.yx-menu--nav .yx-menu__summary { padding: 10px 12px; }
.yx-menu__burger { display: block; }
.yx-menu__panel--nav {
  display: grid;
  gap: 2px;
  min-inline-size: min(320px, calc(100vw - 32px));
  max-block-size: calc(100vh - 84px);
  overflow-y: auto;
}
.yx-burger__nav { display: grid; gap: 2px; }
.yx-burger__divider { inline-size: 100%; border: 0; border-block-start: 1px solid var(--yx-border); margin-block: 6px; }
.yx-burger__heading { margin: 4px 10px 2px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yx-muted); font-weight: 700; }
.yx-burger__themes { display: grid; gap: 2px; margin: 0; }
@media (max-width: 899px) {
  .site-header .chrome { display: none; }
  .site-nav { display: none; }
  .yx-menu--nav { display: inline-block; }
}

/* ---- In-page secondary nav (Home / Features / Pricing / …) ---- */
.site-nav {
  border-block-end: 1px solid var(--yx-border);
  background: color-mix(in srgb, var(--yx-bg) 88%, transparent);
}
.site-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  flex-wrap: wrap;
}
.site-nav__list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav__link {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--yx-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-nav__link:hover {
  color: var(--yx-text);
  background: var(--yx-surface-2);
}
.site-nav__link.is-active {
  color: var(--yx-accent);
  background: var(--yx-badge-active-bg);
  border-color: color-mix(in srgb, var(--yx-accent) 40%, transparent);
}
.site-nav__cross {
  color: var(--yx-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.site-nav__cross:hover { color: var(--yx-accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--yx-accent);
  color: var(--yx-accent-ink);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--yx-accent) 70%, transparent);
}
.btn--primary:hover {
  background: var(--yx-accent-hover);
  color: var(--yx-accent-ink);
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--yx-accent-hover) 65%, transparent);
}
.btn--ghost {
  background: var(--yx-surface);
  color: var(--yx-text);
  border-color: var(--yx-border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: var(--yx-accent);
  color: var(--yx-accent);
}
.btn--lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 13px; }
.btn--block { inline-size: 100%; }

/* ---- Section title with a centered accent tick ---- */
.section__title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section__title--tick {
  text-align: center;
}
.section__title--tick::after {
  content: "";
  display: block;
  inline-size: 46px;
  block-size: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: var(--yx-accent);
}

/* ============================================================================
 * HERO — deep-ink media band with a sponsored-listing mock
 * ==========================================================================*/
.hero {
  padding-block: 40px 44px;
}
.hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(28px, 4.5vw, 60px);
  background: var(--yx-hero-grad);
  box-shadow: var(--yx-panel-shadow);
  isolation: isolate;
}
/* faint accent veil + hairline frame — layered decoration, no layout cost */
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yx-hero-veil);
  pointer-events: none;
  z-index: -1;
}
.hero__panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--yx-on-ink-faint);
  border-radius: 18px;
  pointer-events: none;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero__copy { text-align: start; color: var(--yx-on-ink); }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-end: 18px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 13px;
  background: var(--yx-on-ink-faint);
  color: var(--yx-on-ink);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--yx-on-ink);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hero__badge::before {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}
.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.55rem);
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--yx-on-ink);
  text-wrap: balance;
}
.hero__subtitle {
  color: var(--yx-on-ink-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.62;
  max-inline-size: 560px;
  margin: 16px 0 30px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* ghost CTA restyled for the dark hero panel */
.hero .btn--ghost {
  background: var(--yx-on-ink-faint);
  color: var(--yx-on-ink);
  border-color: var(--yx-on-ink-line);
  box-shadow: none;
}
.hero .btn--ghost:hover {
  border-color: var(--yx-on-ink);
  color: var(--yx-on-ink);
  background: color-mix(in srgb, var(--yx-on-ink) 12%, transparent);
}
.hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- CSS-drawn sponsored-listing mock (pure decoration) ---- */
.adcard {
  position: relative;
  inline-size: min(320px, 100%);
  aspect-ratio: 5 / 6;
  transform: rotate(-1.6deg);
  transition: transform 0.25s ease;
}
.hero__art:hover .adcard { transform: rotate(0deg); }
.adcard__card {
  position: absolute;
  inset: 0;
  padding: 26px 24px 30px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--yx-card-frame);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.adcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.adcard__title-bar {
  inline-size: 46%;
  block-size: 11px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}
/* "approved" moderation check disc — accent, decorative */
.adcard__badge {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
  flex-shrink: 0;
}
.adcard__rows {
  list-style: none;
  padding: 6px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-block-start: 1px solid var(--border);
}
.adcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.adcard__label {
  block-size: 7px;
  border-radius: 3px;
  background: var(--text-muted);
  opacity: 0.4;
}
.adcard__row:nth-child(1) .adcard__label { inline-size: 40%; }
.adcard__row:nth-child(2) .adcard__label { inline-size: 52%; }
.adcard__row:nth-child(3) .adcard__label { inline-size: 34%; }
.adcard__row:nth-child(4) .adcard__label { inline-size: 46%; }
.adcard__val {
  block-size: 7px;
  border-radius: 3px;
  background: var(--text);
  opacity: 0.28;
}
.adcard__row:nth-child(1) .adcard__val { inline-size: 22%; }
.adcard__row:nth-child(2) .adcard__val { inline-size: 30%; }
.adcard__row:nth-child(3) .adcard__val { inline-size: 18%; }
.adcard__row:nth-child(4) .adcard__val { inline-size: 26%; background: var(--accent); opacity: 0.6; }
/* small impressions/CTR trend chart at the foot of the card */
.adcard__chart {
  margin-block-start: auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  block-size: 56px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--border);
}
.adcard__bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  opacity: 0.85;
}
.adcard__bar:nth-child(1) { block-size: 42%; }
.adcard__bar:nth-child(2) { block-size: 64%; }
.adcard__bar:nth-child(3) { block-size: 50%; }
.adcard__bar:nth-child(4) { block-size: 78%; }
.adcard__bar:nth-child(5) { block-size: 58%; }
.adcard__bar:nth-child(6) { block-size: 92%; }
/* embossed targeting disc, overlapping the card corner */
.adcard__disc {
  position: absolute;
  inset-block-end: -16px;
  inset-inline-end: -14px;
  inline-size: 70px;
  block-size: 70px;
  border-radius: 50%;
  background: var(--yx-coin-grad);
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: var(--yx-coin-emboss);
}
.adcard__disc::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid var(--white);
  opacity: 0.5;
}
.adcard__disc-mark {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .adcard { inline-size: min(260px, 72%); margin-inline: auto; }
}

/* Touch devices: grow tap targets to >=44px (WCAG 2.5.5). */
@media (pointer: coarse) {
  .btn,
  .yx-menu__summary {
    min-block-size: 44px;
  }
  .site-nav__link {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
  }
}

/* ---- What is AVISO ---- */
.what {
  padding-block: 52px 20px;
  text-align: center;
}
.what__inner {
  max-inline-size: 760px;
  margin-inline: auto;
}
.what__body {
  color: var(--yx-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* ---- Feature cards (landing) ---- */
.features {
  padding-block: 56px 28px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
  margin-block-start: 30px;
}
.feature-card {
  position: relative;
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 3px;
  border-start-start-radius: var(--yx-radius);
  border-start-end-radius: var(--yx-radius);
  background: linear-gradient(90deg, var(--yx-accent), transparent 85%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--yx-accent) 45%, var(--yx-border));
  transform: translateY(-3px);
  box-shadow: var(--yx-lift);
}
.feature-card:hover::before { opacity: 1; }
/* monogram disc with a double ring */
.feature-card__glyph {
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 50%;
  background: var(--yx-badge-active-bg);
  color: var(--yx-accent);
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yx-accent) 30%, transparent),
              inset 0 0 0 4px var(--yx-surface),
              inset 0 0 0 5px color-mix(in srgb, var(--yx-accent) 18%, transparent);
}
.feature-card__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card__desc {
  color: var(--yx-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================================
 * HOW IT WORKS — vertical timeline with connected nodes
 * ==========================================================================*/
.how {
  padding-block: 56px 28px;
}
.how__steps {
  list-style: none;
  padding: 0;
  margin: 34px auto 0;
  max-inline-size: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.how-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.how-step:hover {
  border-color: color-mix(in srgb, var(--yx-accent) 40%, var(--yx-border));
  box-shadow: var(--yx-lift);
}
/* the connecting line runs through the node column between consecutive steps */
.how-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-block-start: 46px;
  inset-block-end: -15px;
  inset-inline-start: 43px;
  inline-size: 2px;
  background: linear-gradient(var(--yx-accent), color-mix(in srgb, var(--yx-accent) 15%, transparent));
  opacity: 0.5;
}
.how-step__num {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: var(--yx-accent);
  color: var(--yx-accent-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  box-shadow: 0 0 0 4px var(--yx-surface), 0 0 0 5px color-mix(in srgb, var(--yx-accent) 30%, transparent);
  position: relative;
  z-index: 1;
}
.how-step__title {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.how-step__desc {
  color: var(--yx-muted);
  margin: 6px 0 0;
  line-height: 1.6;
}

/* ---- CTA band — deep-ink closing panel ---- */
.cta-band {
  padding-block: 64px 84px;
}
.cta-band__inner {
  position: relative;
  overflow: hidden;
  background: var(--yx-ink-panel);
  border-radius: 22px;
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
  box-shadow: var(--yx-panel-shadow);
  isolation: isolate;
}
.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yx-hero-veil);
  pointer-events: none;
  z-index: -1;
}
/* faint oversized ring watermark in the corner */
.cta-band__inner::after {
  content: "";
  position: absolute;
  inline-size: 240px;
  block-size: 240px;
  inset-block-end: -90px;
  inset-inline-end: -70px;
  border-radius: 50%;
  border: 2px dashed var(--yx-on-ink-faint);
  z-index: -1;
}
.cta-band__title {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--yx-on-ink);
}
.cta-band__subtitle {
  position: relative;
  color: var(--yx-on-ink-muted);
  margin: 0 0 26px;
  font-size: 1.05rem;
}
.cta-band .btn { position: relative; }

/* ---- Pricing head ---- */
.pricing-head {
  text-align: center;
  padding-block: 56px 18px;
}
.pricing-head__subtitle {
  color: var(--yx-muted);
  max-inline-size: 640px;
  margin: 8px auto 0;
  font-size: 1.05rem;
}

/* ---- Pricing teaser (no prices) ---- */
.teaser {
  padding-block: 20px 8px;
  max-inline-size: 720px;
  margin-inline: auto;
}
.teaser__card {
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.teaser__title {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}
.teaser__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 22px;
}
.teaser__list li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--yx-text);
  font-size: 0.98rem;
  line-height: 1.5;
}
/* accent check bullet (decoration, not a verified-green verdict) */
.teaser__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  inline-size: 18px;
  block-size: 18px;
  border-radius: 50%;
  background: var(--yx-badge-active-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yx-accent) 40%, transparent);
}
.teaser__list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  inset-block-start: 7px;
  inline-size: 7px;
  block-size: 4px;
  border-inline-start: 1.6px solid var(--yx-accent);
  border-block-end: 1.6px solid var(--yx-accent);
  transform: rotate(-45deg);
}
.teaser__note {
  margin: 22px 0 0;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--yx-border);
  color: var(--yx-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}

/* ---- FAQ (accordion) ---- */
.faq {
  padding-block: 36px 40px;
  max-inline-size: 760px;
  margin-inline: auto;
}
.faq .section__title { text-align: center; margin-block-end: 26px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: 13px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item[open] {
  border-color: color-mix(in srgb, var(--yx-accent) 45%, var(--yx-border));
  box-shadow: var(--yx-lift);
}
.faq-item__q {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.005em;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  color: var(--yx-accent);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-item__q::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-item__a {
  margin: 14px 0 0;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--yx-border);
  color: var(--yx-muted);
  line-height: 1.65;
}

/* ---- About ---- */
.about {
  padding-block: 56px 84px;
  max-inline-size: 820px;
  margin-inline: auto;
}
.about__title { text-align: center; margin-block-end: 16px; }
.about__intro {
  text-align: center;
  color: var(--yx-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-inline-size: 660px;
  margin: 0 auto 44px;
}
.about__sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-block-end: 44px;
}
.about-section {
  position: relative;
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  padding: 26px 26px 26px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* accent spine on the leading edge — a highlighted-listing cue */
.about-section::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 4px;
  background: linear-gradient(var(--yx-accent), color-mix(in srgb, var(--yx-accent) 30%, transparent));
}
.about-section__title {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.about-section__body {
  margin: 0;
  color: var(--yx-muted);
  line-height: 1.7;
}
.about__cta {
  text-align: center;
}

/* ============================================================================
 * FEATURES PAGE — detailed capability cards
 * ==========================================================================*/
.features-page {
  padding-block: 56px 40px;
}
.features-page__title { text-align: center; }
.features-page__intro {
  text-align: center;
  color: var(--yx-muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-inline-size: 680px;
  margin: 0 auto 40px;
}
.features-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.feature-detail {
  position: relative;
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-detail:hover {
  border-color: color-mix(in srgb, var(--yx-accent) 45%, var(--yx-border));
  transform: translateY(-3px);
  box-shadow: var(--yx-lift);
}
.feature-detail__glyph {
  display: grid;
  place-items: center;
  inline-size: 50px;
  block-size: 50px;
  border-radius: 50%;
  background: var(--yx-badge-active-bg);
  color: var(--yx-accent);
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-mono);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yx-accent) 30%, transparent),
              inset 0 0 0 4px var(--yx-surface),
              inset 0 0 0 5px color-mix(in srgb, var(--yx-accent) 18%, transparent);
}
.feature-detail__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-detail__body {
  margin: 0;
  color: var(--yx-muted);
  line-height: 1.65;
}
.feature-detail__bullets {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-detail__bullets li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--yx-text);
  font-size: 0.92rem;
  line-height: 1.5;
}
.feature-detail__bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 7px;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--yx-accent);
  box-shadow: 0 0 0 3px var(--yx-badge-active-bg);
}
.features-page__cta {
  text-align: center;
  margin-block-start: 44px;
}

/* ============================================================================
 * FAQ PAGE
 * ==========================================================================*/
.faq-page {
  padding-block: 56px 84px;
  max-inline-size: 800px;
  margin-inline: auto;
}
.faq-page__title { text-align: center; }
.faq-page__intro {
  text-align: center;
  color: var(--yx-muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-inline-size: 620px;
  margin: 0 auto 40px;
}
.faq-page__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-page__cta {
  text-align: center;
  margin-block-start: 40px;
}

/* ============================================================================
 * LEGAL PAGE (placeholder)
 * ==========================================================================*/
.legal {
  padding-block: 56px 84px;
  max-inline-size: 820px;
  margin-inline: auto;
}
.legal__title { text-align: center; margin-block-end: 16px; }
.legal__intro {
  text-align: center;
  color: var(--yx-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-inline-size: 680px;
  margin: 0 auto 40px;
}
.legal__sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-block-end: 28px;
}
.legal-section {
  background: var(--yx-surface);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.legal-section__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal-section__body {
  margin: 0;
  color: var(--yx-muted);
  line-height: 1.7;
}
.legal__contact {
  background: var(--yx-badge-active-bg);
  border: 1px solid color-mix(in srgb, var(--yx-accent) 35%, var(--yx-border));
  border-radius: var(--yx-radius);
  padding: 24px 26px;
}

/* ---- Site footer ---- */
.site-footer {
  border-block-start: 1px solid var(--yx-border);
  margin-block-start: 8px;
  padding-block: 32px;
  padding-block-end: max(32px, env(safe-area-inset-bottom));
  color: var(--yx-muted);
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--surface) 55%, var(--yx-bg));
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--yx-text);
}
.site-footer__brand::before {
  content: "";
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: var(--yx-coin-grad);
  box-shadow: 0 0 0 3px var(--tint);
  flex-shrink: 0;
}
.site-footer__cross {
  color: var(--yx-muted);
}
.site-footer__cross:hover { color: var(--yx-accent); }
.site-footer__legal {
  margin-block-start: 10px;
  color: var(--yx-muted);
  font-size: 0.8rem;
  text-align: start;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer__legal-link { color: var(--yx-muted); font-weight: 600; }
.site-footer__legal-link:hover { color: var(--yx-accent); }
.site-footer__legal-sep { opacity: 0.6; }

/* ---- 404 ---- */
.error-page {
  text-align: center;
  padding-block: clamp(3.5rem, 11vh, 6.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.error-page__code {
  font-size: clamp(3.4rem, 13vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--yx-accent);
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
}
.error-page__title { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.01em; }
.error-page__body { color: var(--yx-muted); max-inline-size: 44ch; line-height: 1.6; }
.error-page .btn { margin-block-start: 10px; }

/* Accessibility helper: visually hidden but read by screen readers. */
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: WCAG 2.4.1 bypass-blocks. Off-screen until focused. */
.skip-link{position:absolute;inset-inline-start:0;inset-block-start:-3rem;z-index:1000;padding:.55rem 1rem;background:var(--surface);color:var(--text);border:1px solid var(--border);border-end-end-radius:6px;font-weight:600;transition:inset-block-start .15s}
.skip-link:focus{inset-block-start:0}
