/* ==========================================================================
   MindReset design system — dark indigo / aurora theme with gold accents.
   Mobile-first, no framework. Module styles live in css/modules/<module>.css.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0B1026;
  --bg-2: #141A3F;
  --surface: rgba(255, 255, 255, .06);
  --surface-2: rgba(255, 255, 255, .10);
  --surface-solid: #161C45;
  --line: rgba(255, 255, 255, .10);
  --text: #F3F4FF;
  --text-strong: #FFFFFF;
  --muted: #A9ADD1;
  --primary: #7C4DFF;
  --primary-2: #2BD4C8;
  --primary-soft: rgba(124, 77, 255, .18);
  --gold: #E8C170;
  --gold-soft: rgba(232, 193, 112, .16);
  --ok: #3DDC97;
  --ok-soft: rgba(61, 220, 151, .16);
  --warn: #F5B850;
  --warn-soft: rgba(245, 184, 80, .16);
  --danger: #FF5C7A;
  --danger-soft: rgba(255, 92, 122, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .6);
  --shadow-soft: 0 10px 30px -18px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 0 1px rgba(124, 77, 255, .35), 0 20px 60px -20px rgba(124, 77, 255, .55);
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-header: 50;
  --z-menu: 60;
  --z-consent: 80;
  --aurora-1: rgba(124, 77, 255, .35);
  --aurora-2: rgba(43, 212, 200, .22);
  --aurora-3: rgba(232, 193, 112, .12);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F6F5FF;
  --bg-2: #ECEAFD;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: rgba(255, 255, 255, .95);
  --surface-solid: #FFFFFF;
  --line: rgba(11, 16, 38, .10);
  --text: #171B3A;
  --text-strong: #0B1026;
  --muted: #5C6187;
  --primary: #6A3DF0;
  --primary-2: #16A99F;
  --primary-soft: rgba(106, 61, 240, .12);
  --gold: #B88A2E;
  --gold-soft: rgba(184, 138, 46, .14);
  --ok: #1E9E6A;
  --ok-soft: rgba(30, 158, 106, .14);
  --warn: #B97A12;
  --warn-soft: rgba(185, 122, 18, .14);
  --danger: #D13B57;
  --danger-soft: rgba(209, 59, 87, .12);
  --shadow: 0 18px 50px -24px rgba(23, 27, 58, .25);
  --shadow-soft: 0 10px 30px -18px rgba(23, 27, 58, .18);
  --shadow-glow: 0 0 0 1px rgba(106, 61, 240, .25), 0 20px 60px -20px rgba(106, 61, 240, .35);
  --aurora-1: rgba(124, 77, 255, .18);
  --aurora-2: rgba(43, 212, 200, .16);
  --aurora-3: rgba(232, 193, 112, .14);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -10%, var(--aurora-1), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, var(--aurora-2), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, var(--aurora-3), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.main { flex: 1 0 auto; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface); padding: .1em .4em; border-radius: var(--radius-xs); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1, .display { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 62ch; }
.eyebrow { font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.small { font-size: .875rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 3. Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 620px; }
.container--medium { max-width: 860px; }
.section { padding: clamp(48px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(28px, 4vw, 56px) 0; }
.section--center { text-align: center; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto clamp(1.5rem, 4vw, 3rem); text-align: center; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.grid--tight { gap: .75rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cluster--between { justify-content: space-between; }
.cluster--center { justify-content: center; }
.stack > * + * { margin-top: 1rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-xs); z-index: 1000; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem !important; } .mt-2 { margin-top: 1rem !important; } .mt-3 { margin-top: 1.5rem !important; } .mt-4 { margin-top: 2rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem !important; } .mb-2 { margin-bottom: 1rem !important; } .mb-3 { margin-bottom: 1.5rem !important; } .mb-4 { margin-bottom: 2rem !important; }
.hidden { display: none !important; }

/* ---------- 4. Hero ---------- */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 7vw, 88px); position: relative; }
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 6.5vw, 4.4rem); line-height: 1.05; margin-bottom: 1rem; }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr .9fr; } }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; min-height: 44px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), opacity .2s;
  color: var(--text); background: var(--surface);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; box-shadow: 0 12px 30px -14px rgba(124, 77, 255, .8); }
.btn--primary:hover { box-shadow: 0 16px 36px -14px rgba(43, 212, 200, .7); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface); }
.btn--gold { background: linear-gradient(135deg, #F3D597, var(--gold)); color: #2A1E05; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--link { background: none; border: 0; color: var(--primary-2); padding: .25rem .5rem; min-height: 0; }
.btn--sm { padding: .55rem 1rem; min-height: 38px; font-size: .9rem; }
.btn--lg { padding: 1rem 1.9rem; min-height: 52px; font-size: 1.05rem; }
.btn--block { width: 100%; display: flex; }
.btn--icon { padding: .55rem; width: 44px; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-strong); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.nav__brand:hover { text-decoration: none; }
.nav__brand em { font-style: normal; background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__logo { width: 36px; height: 36px; }
.nav__links { display: none; }
.nav__link { color: var(--muted); font-weight: 500; padding: .5rem .75rem; border-radius: var(--radius-sm); transition: color .2s, background .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--text-strong); text-decoration: none; background: var(--surface); }
.nav__link--accent { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__desktop-only { display: none; }
.nav__mobile-only { display: grid; gap: .5rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.nav__form { margin: 0; }
.nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav.is-open .nav__links {
  display: grid; gap: .25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 1rem var(--gutter) 1.25rem;
  background: var(--surface-solid); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 960px) {
  .nav__links { display: flex; align-items: center; gap: .25rem; }
  .nav__mobile-only { display: none; }
  .nav__desktop-only { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav.is-open .nav__links { position: static; display: flex; padding: 0; background: none; border: 0; box-shadow: none; }
}
.theme-toggle { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: inline; }

/* ---------- 7. Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch__button { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: .85rem; cursor: pointer; }
.lang-switch__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-menu); min-width: 180px; margin: 0; padding: .4rem; list-style: none; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lang-switch__item { display: block; padding: .55rem .8rem; border-radius: var(--radius-xs); color: var(--text); }
.lang-switch__item:hover { background: var(--surface-2); text-decoration: none; }
.lang-switch__item.is-current { color: var(--primary-2); font-weight: 600; }

/* ---------- 8. Cards, stats, plans, badges ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card--solid { background: var(--surface-solid); }
.card--glow { box-shadow: var(--shadow-glow); }
.card--danger { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.card__title { margin-bottom: .4rem; }
.card__icon { font-size: 2rem; line-height: 1; margin-bottom: .75rem; }
.card a.card__link { color: inherit; }
.stat { display: grid; gap: .2rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge--error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge--gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.badge--primary { background: var(--primary-soft); color: var(--primary-2); border-color: transparent; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan--featured { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 22%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: var(--shadow-glow); }
.plan__ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: .25rem .9rem; border-radius: 999px; background: linear-gradient(135deg, #F3D597, var(--gold)); color: #2A1E05; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0; }
.plan__price { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--text-strong); line-height: 1; }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan__features { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--muted); }
.plan__features li::before { content: "✓ "; color: var(--primary-2); font-weight: 700; }
.plan__cta { margin-top: auto; }

/* ---------- 9. Forms ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field > .cluster label { font-weight: 500; font-size: .92rem; color: var(--text); }
.field input, .field select, .field textarea,
input[type="text"], input[type="email"], input[type="password"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: .7rem .9rem;
  font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface-2); }
.field input[disabled], .field input[readonly] { opacity: .7; }
.field input[type="checkbox"], .field input[type="radio"], .check input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--primary); }
.field__help { font-size: .82rem; color: var(--muted); margin: 0; }
.field__error, .field-validation-error { display: block; font-size: .82rem; color: var(--danger); }
.field__error:empty { display: none; }
.field .input-validation-error { border-color: var(--danger); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--text); cursor: pointer; }
.check input { margin-top: .2rem; flex: 0 0 auto; }
.validation-summary ul { margin: 0; padding-left: 1.1rem; }
.validation-summary:not(:empty):not(.validation-summary-valid) { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: .92rem; }
.validation-summary-valid { display: none; }
.inline-form { display: inline; margin: 0; }

/* ---------- 10. Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table th { font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface); }
.table--wrap td { white-space: normal; }

/* ---------- 11. Flash ---------- */
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); font-size: .95rem; }
.flash--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.flash--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.flash--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.flash--info { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.flash__close { background: none; border: 0; color: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 .25rem; opacity: .7; }
.flash__close:hover { opacity: 1; }

/* ---------- 12. Prose (legal pages) ---------- */
.prose { max-width: 72ch; font-size: 1rem; line-height: 1.75; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { padding: .5rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- 13. Footer ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; color: var(--muted); font-size: .92rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer__grid h4 { margin-bottom: .75rem; }
.footer__grid a { display: block; color: var(--muted); padding: .2rem 0; }
.footer__grid a:hover { color: var(--text-strong); text-decoration: none; }
.footer__brand .nav__brand { margin-bottom: .75rem; }
.footer__tagline { color: var(--text); font-family: var(--font-display); font-weight: 600; margin-bottom: .4rem; }
.footer__small { font-size: .85rem; }
.footer__bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .82rem; }
.footer__disclaimer, .footer__copy { margin: 0; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- 14. Cookie consent ---------- */
.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: var(--z-consent);
  display: grid; gap: .9rem; padding: 1.1rem 1.25rem;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .92rem;
}
.consent__text { margin: 0; color: var(--text); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
@media (min-width: 720px) { .consent { left: auto; max-width: 520px; } }

/* ---------- 15. Breath ring, skeleton, misc ---------- */
.breath-ring {
  width: 160px; height: 160px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 60px -10px var(--primary), 0 0 120px -30px var(--primary-2);
  animation: breath 8s var(--ease) infinite;
}
.breath-ring--sm { width: 72px; height: 72px; margin-bottom: 1rem; }
@keyframes breath {
  0%, 100% { transform: scale(.82); opacity: .75; }
  45% { transform: scale(1); opacity: 1; }
  60% { transform: scale(1); opacity: 1; }
}
.skeleton { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius-sm); min-height: 1em; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.divider { height: 1px; width: 80px; margin: 1.5rem auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.auth__card { margin-top: .5rem; }
.auth__card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }

/* ---------- 16. Accessibility & motion ---------- */
:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; border-radius: var(--radius-xs); }
.btn:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .breath-ring { animation: none; transform: none; opacity: 1; }
  .fx-reveal { opacity: 1; transform: none; }
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) { color-scheme: light; }
}
@media print {
  .nav, .footer, .consent, .aurora, .theme-toggle, .ambient-canvas { display: none !important; }
  body { background: #fff; color: #000; }
  .fx-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 17. Ambient effects (js/ambient.js) ----------
   Neural network + waves + resonance rings on one fixed canvas behind everything (above .aurora, below content).
   <body data-ambient="dim|off"> per page; html[data-effects="off"] = the visitor turned effects off in the footer. */
.ambient-canvas {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%; max-width: none;
  display: block; pointer-events: none;
}
/* Readability: a soft vignette of the page background behind hero copy, so lines and pulses never sit hard behind text. */
.hero { isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 75% at 32% 48%, color-mix(in srgb, var(--bg) 62%, transparent) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 55%, transparent 80%);
}
.section-head, .prose { position: relative; }
.section-head::before, .prose::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 55%, transparent), transparent);
}

/* Micro-effect 1: cards in grids (and pricing plans) lift with a soft brand glow on hover. Form cards stay still. */
:where(.grid) > .card, .plan { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
@media (hover: hover) {
  :where(.grid) > .card:hover, .plan:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
    box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent), 0 22px 54px -26px color-mix(in srgb, var(--primary-2) 70%, transparent);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :where(.grid) > .card:hover, .plan:hover { transform: translateY(-4px); }
}

/* Micro-effect 2: primary CTAs breathe a slow ring every 6 s (compositor-only: transform + opacity). */
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:where(:not(.btn--sm, :disabled, [aria-disabled="true"])) { position: relative; }
  .btn--primary:where(:not(.btn--sm, :disabled, [aria-disabled="true"]))::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
    border: 2px solid var(--primary-2); opacity: 0;
    animation: cta-breathe 6s var(--ease) 1.5s infinite;
  }
  html[data-effects="off"] .btn--primary::after { animation: none; display: none; }
}
@keyframes cta-breathe {
  0% { opacity: 0; transform: scale(1); }
  10% { opacity: .55; }
  45% { opacity: 0; transform: scale(1.08, 1.4); }
  100% { opacity: 0; transform: scale(1.08, 1.4); }
}

/* Micro-effect 3: section headings fade up on scroll. The class is added by ambient.js only to headings below the
   fold, so without JS (or with reduced motion / effects off) everything is visible as usual. */
.fx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fx-reveal.is-revealed { opacity: 1; transform: none; }

/* Footer toggle "Visual effects: On/Off" (hidden until ambient.js runs). */
.effects-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 32px; padding: .25rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: inherit; font-size: .8rem; cursor: pointer;
}
.effects-toggle:hover { color: var(--text-strong); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.effects-toggle__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.effects-toggle[aria-pressed="true"] .effects-toggle__dot { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.effects-toggle[hidden] { display: none; }

/* Narrow phones: brand, language and menu on one line without overlap.
   The brand never shrinks below its content; the theme toggle moves out of the bar (the
   system theme still applies) and the language button shows only the code. */
.nav__brand { flex-shrink: 0; }
@media (max-width: 480px) {
  .nav__inner { gap: .5rem; }
  .theme-toggle { display: none; }
  .nav__brand { font-size: 1.1rem; gap: .4rem; }
  .nav__logo { width: 30px; height: 30px; }
  .lang-switch__button { padding: 0 .6rem; min-height: 38px; }
}
@media (max-width: 360px) {
  .nav__word { display: none; }
}

/* ----- Crisis note (Views/Shared/_CrisisNote.cshtml, docs/LEGAL_PROTECTION_PLAN.md P0-6): player, sensitive program pages, safety screen ----- */
.crisis-note { margin: 1rem 0 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; color: var(--muted); }
.crisis-note__title { margin: 0 0 .25rem; font-size: .95rem; color: var(--text); }
.crisis-note p { margin: 0; }
.crisis-note p + p { margin-top: .35rem; }
.crisis-note strong { color: var(--text); }
.crisis-note--compact { padding: .6rem .8rem; font-size: .85rem; }
.crisis-table { width: 100%; }
