:root {
  --bg: #0D0D18;
  --surface: #16171F;
  --surface-raised: #1D1F2C;
  --border: #363A4A;
  --border-soft: rgba(213,214,222,0.12);
  --text: #FCFCFC;
  --text-dim: #D5D4DE;
  --text-mute: #8B8CA3;
  --accent: #6E6BFB;
  --accent-deep: #3A2E9E;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 62px;
  --space-7: 80px;
  --space-8: 96px;
  --space-9: 124px;
  --max-w: 1180px;
}

:root { color-scheme: dark; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; width: 100%; overscroll-behavior-x: none; }
body { overflow-x: hidden; width: 100%; overscroll-behavior-x: none; }

a { color: inherit; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-3); }
@media (max-width: 640px) { .wrap { padding: 0 var(--space-2); } }
@media (max-width: 380px) { .wrap { padding: 0 var(--space-1); } }

/* ---------- Ambient background ---------- */
/* Fixed, full-viewport, sits behind all content (z-index: -1). Two soft,
   heavily blurred blobs in the accent color drift a few pixels toward the
   cursor for a subtle sense of depth. Kept low-opacity and slow so it never
   competes with the actual content. Disabled for people who've asked their
   OS to reduce motion — see script.js and the media query below. */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.bg-blob--a {
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}
.bg-blob--b {
  bottom: -16%;
  right: -12%;
  background: radial-gradient(circle, var(--accent-deep), transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
  .bg-blob { transition: none; }
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,24,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-3); }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.2px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: clamp(64px, 9vw, 90px); height: auto; flex-shrink: 0; object-fit: contain; }
.footer-logo { width: clamp(140px, 30vw, 300px); height: auto; flex-shrink: 0; object-fit: contain; }

nav.links { display: flex; gap: var(--space-4); font-size: 14.5px; color: var(--text-dim); }
nav.links a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; cursor: pointer; }
nav.links a:hover { color: var(--text); }
nav.links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: var(--space-3); }

.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0; flex-direction: column; gap: 4px;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

@media (max-width: 900px) {
  nav.links { display: none; }
  .menu-toggle { display: flex; }
}

.mobile-panel { display: none; border-bottom: 1px solid var(--border-soft); background: var(--bg); }
.mobile-panel.open { display: block; }
.mobile-panel .wrap { padding-top: var(--space-2); padding-bottom: var(--space-3); display: flex; flex-direction: column; gap: 4px; }
.mobile-panel a { text-decoration: none; color: var(--text-dim); font-size: 15.5px; padding: 12px 4px; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.mobile-panel a:last-child { border-bottom: none; }
.mobile-panel a[aria-current="page"] { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 500;
  font-size: 14.5px; padding: 11px 20px; border-radius: var(--radius-sm); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--text); color: #0D0D18; }
.btn-primary:hover { background: var(--text-dim); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-mute); }

@media (max-width: 500px) { .nav-right .btn-primary .long { display: none; } }
@media (min-width: 501px) { .nav-right .btn-primary .short { display: none; } }

/* ---------- Page sections ---------- */
.page { display: none; }
.page.active { display: block; }

.hero { padding: var(--space-9) 0 var(--space-7); position: relative; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(110,107,251,0.18), transparent 70%); pointer-events: none;
}
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin: 0 0 var(--space-3); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 6.5vw, 60px); line-height: 1.05; letter-spacing: 0.2px; margin: 0 0 var(--space-3); max-width: 900px; }
.hero-sub { font-size: clamp(15.5px, 2.2vw, 18px); line-height: 1.55; color: var(--text-dim); max-width: 560px; margin: 0 0 var(--space-4); }
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.hero-meta { display: flex; gap: var(--space-5); flex-wrap: wrap; padding-top: var(--space-4); border-top: 1px solid var(--border-soft); }
.hero-meta-item .num { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: 0.2px; }
.hero-meta-item .label { font-size: 13.5px; color: var(--text-mute); margin-top: 4px; }

.industries { padding: var(--space-5) 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.industries-label { font-size: 13.5px; color: var(--text-mute); margin-bottom: var(--space-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; }

section.block { padding: var(--space-8) 0; }
section.block + section.block { padding-top: 0; }
.section-head { max-width: 620px; margin-bottom: var(--space-6); }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4.5vw, 38px); letter-spacing: 0.1px; line-height: 1.12; margin: 0 0 var(--space-2); }
.section-head p { color: var(--text-dim); font-size: 16.5px; line-height: 1.6; margin: 0; }

.page-hero { padding: var(--space-7) 0 var(--space-5); border-bottom: 1px solid var(--border-soft); }
.page-hero .eyebrow { margin-bottom: var(--space-2); }
.page-hero h1 { font-size: clamp(28px, 5.5vw, 46px); }
.page-hero p.lead { color: var(--text-dim); font-size: clamp(15.5px, 2vw, 17px); line-height: 1.6; max-width: 620px; margin: 0; }

/* ---------- Grids ---------- */
.services-grid, .products-grid, .values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 860px) { .services-grid, .products-grid, .values-grid { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1040px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.icon-box { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: var(--space-1) 0 0; letter-spacing: 0.1px; }
.card p { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin: 0; }
.card ul { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.card ul li { font-size: 14px; color: var(--text-mute); padding-left: 16px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card .card-link { margin-top: auto; font-size: 14px; color: var(--accent); text-decoration: none; padding-top: var(--space-1); background: none; border: none; text-align: left; cursor: pointer; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
@media (max-width: 780px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats-strip { grid-template-columns: 1fr; } }
.stat-box { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: var(--space-3); }
.stat-box .stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent); }
.stat-box .stat-label { font-size: 13.5px; color: var(--text-mute); margin-top: 4px; }

/* ---------- Process ---------- */
.process-list { display: flex; flex-direction: column; }
.process-row { display: grid; grid-template-columns: 60px 1fr 1fr; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border-soft); align-items: start; }
.process-row:last-child { border-bottom: 1px solid var(--border-soft); }
@media (max-width: 720px) { .process-row { grid-template-columns: 40px 1fr; } .process-row .process-desc { grid-column: 2; } }
.process-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); padding-top: 4px; }
.process-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.1px; }
.process-desc { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  background: none; border: none; color: var(--text); text-align: left; padding: var(--space-3) 0; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
}
.faq-q .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--text-mute); }
.faq-q .plus::before { top: 9px; left: 2px; width: 16px; height: 1.5px; }
.faq-q .plus::after { left: 9px; top: 2px; width: 1.5px; height: 16px; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0 0 var(--space-3); max-width: 640px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.testimonial p.quote { font-size: 15.5px; line-height: 1.6; color: var(--text-dim); margin: 0; }
.testimonial .who { font-size: 13.5px; color: var(--text-mute); }
.testimonial .who strong { color: var(--text); font-weight: 500; }

/* ---------- Work / case ---------- */
.case { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); background: linear-gradient(180deg, var(--surface-raised), var(--surface)); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); margin-bottom: var(--space-4); }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } }
.case-tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); margin-bottom: var(--space-2); }
.case h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.1px; line-height: 1.2; margin: 0 0 var(--space-2); }
.case p { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }
.case-stats { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); border-left: 1px solid var(--border-soft); padding-left: var(--space-5); }
@media (max-width: 820px) { .case-stats { border-left: none; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: var(--space-3); } }
.case-stats .stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent); }
.case-stats .stat-label { font-size: 13.5px; color: var(--text-mute); }

/* ---------- CTA ---------- */
.cta { border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--border); padding: var(--space-6) var(--space-5); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.cta h2 { max-width: 480px; margin: 0; }
@media (max-width: 560px) { .cta { padding: var(--space-4); } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-item { border-top: 1px solid var(--border-soft); padding-top: var(--space-2); }
.contact-item h4 { font-size: 13px; color: var(--text-mute); font-weight: 500; margin: 0 0 6px; }
.contact-item a, .contact-item span { font-size: 16px; text-decoration: none; }
.contact-item a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border-soft); padding: var(--space-6) 0 var(--space-5); }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-5); }
.foot-cols { display: flex; gap: var(--space-7); flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; color: var(--text-mute); font-weight: 500; margin: 0 0 var(--space-2); }
.foot-col a { display: block; text-decoration: none; color: var(--text-dim); font-size: 14.5px; margin-bottom: 10px; cursor: pointer; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: var(--space-3); border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-mute); }

@media (max-width: 640px) {
  .foot-grid { flex-direction: column; align-items: center; text-align: center; }
  .foot-cols { justify-content: center; text-align: center; width: 100%; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .page.active { animation: rise 0.5s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =====================================================================
   AUTH / POLICY / ERROR PAGES
   Shared styles for login, password reset, policy documents, cookie
   preferences, payment/email status pages, and the error-page catalog.
   ===================================================================== */

/* ---------- Standalone page shell (non-SPA pages) ---------- */
.simple-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,24,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.simple-nav .nav-inner { justify-content: flex-start; gap: var(--space-4); }
.simple-nav .back-link { font-size: 14.5px; color: var(--text-dim); text-decoration: none; margin-left: auto; }
.simple-nav .back-link:hover { color: var(--text); }

.auth-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-3);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.auth-card h1 { font-size: clamp(24px, 4vw, 30px); margin: 0 0 var(--space-1); }
.auth-card .auth-sub { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; margin: 0 0 var(--space-4); }

.policy-doc { max-width: 780px; }
.policy-doc h2 { font-size: clamp(20px, 3vw, 26px); margin-top: var(--space-6); }
.policy-doc h2:first-child { margin-top: 0; }
.policy-doc p, .policy-doc li { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }
.policy-doc ul { padding-left: 20px; margin: var(--space-2) 0; }
.policy-doc li { list-style: disc; margin-bottom: 6px; }
.policy-doc .updated { font-size: 13.5px; color: var(--text-mute); font-family: var(--font-mono); margin-bottom: var(--space-5); }

/* ---------- Form fields ---------- */
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus { border-color: var(--accent); }
.field .hint { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; }
.field .error-text { font-size: 12.5px; color: #F08A72; margin-top: 6px; display: none; }
.field.has-error input { border-color: #C9634A; }
.field.has-error .error-text { display: block; }

.field-row { display: flex; gap: var(--space-3); }
.field-row .field { flex: 1; }
@media (max-width: 480px) { .field-row { flex-direction: column; gap: 0; } }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.form-actions .btn { width: 100%; justify-content: center; }
.link-inline { font-size: 13.5px; color: var(--accent); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; }
.link-inline:hover { text-decoration: underline; }

.form-note { font-size: 13px; color: var(--text-mute); line-height: 1.6; margin-top: var(--space-4); text-align: center; }
.form-divider { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0; color: var(--text-mute); font-size: 12.5px; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

/* ---------- Password strength meter ---------- */
.strength-meter { margin-top: 8px; }
.strength-bar { height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0%; border-radius: 3px; transition: width 0.25s ease, background 0.25s ease; }
.strength-label { font-size: 12.5px; margin-top: 6px; color: var(--text-mute); }
.strength-checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.strength-checklist li { font-size: 12px; color: var(--text-mute); padding-left: 16px; position: relative; }
.strength-checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: background 0.15s ease;
}
.strength-checklist li.ok { color: var(--text-dim); }
.strength-checklist li.ok::before { background: #6FD08C; }

/* ---------- Alert banners ---------- */
.alert { border-radius: var(--radius-sm); border: 1px solid var(--border); padding: var(--space-2) var(--space-3); font-size: 14px; margin-bottom: var(--space-3); display: none; }
.alert.show { display: block; }
.alert-success { border-color: rgba(111,208,140,0.4); background: rgba(111,208,140,0.08); color: #9BE3B1; }
.alert-error { border-color: rgba(240,138,114,0.4); background: rgba(240,138,114,0.08); color: #F3A992; }
.alert-info { border-color: rgba(110,107,251,0.4); background: rgba(110,107,251,0.08); color: #C2C0FF; }

/* ---------- Modal (forced password change, etc.) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: var(--space-3);
  background: rgba(6,6,12,0.72); backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.modal-box h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 var(--space-1); }
.modal-box .modal-sub { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 0 0 var(--space-4); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: none;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: var(--space-3); box-shadow: 0 -8px 30px rgba(0,0,0,0.35);
}
.cookie-banner.open { display: block; }
.cookie-banner-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.cookie-banner p { flex: 1; min-width: 220px; font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border-soft); }
.toggle-row:first-of-type { border-top: none; }
.toggle-row-text h4 { font-size: 15px; margin: 0 0 4px; }
.toggle-row-text p { font-size: 13.5px; color: var(--text-mute); margin: 0; }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background 0.2s ease; }
.switch .track::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--text); border-radius: 50%; transition: transform 0.2s ease; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(18px); }
.switch input:disabled + .track { opacity: 0.5; cursor: not-allowed; }

/* ---------- Error display ---------- */
.error-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.error-icon { width: 52px; height: 52px; }

.error-full { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-9) var(--space-3); }
.error-full .error-icon { width: 96px; height: 96px; margin-bottom: var(--space-4); }
.error-full h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 var(--space-2); }
.error-full p { color: var(--text-dim); font-size: 16px; max-width: 480px; margin: 0 0 var(--space-4); }

/* Per-type animations, kept small and purposeful rather than decorative */
@keyframes errShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes errPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes errSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes errBounceSearch { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-4px) rotate(-6deg); } }
@keyframes errTick { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(8deg); } }
@keyframes errFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes errBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.2; } }

@media (prefers-reduced-motion: no-preference) {
  .anim-shake { animation: errShake 0.6s ease-in-out; }
  .anim-pulse { animation: errPulse 1.8s ease-in-out infinite; }
  .anim-spin { animation: errSpin 2.4s linear infinite; }
  .anim-bounce { animation: errBounceSearch 1.4s ease-in-out infinite; }
  .anim-tick { animation: errTick 1s ease-in-out infinite; transform-origin: 50% 90%; }
  .anim-float { animation: errFloat 2.4s ease-in-out infinite; }
  .anim-blink { animation: errBlink 1.2s step-end infinite; }
}

/* ---------- Status pages (payment / email verification) ---------- */
.status-shell { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-8) var(--space-3); max-width: 520px; margin: 0 auto; }
.status-icon { width: 80px; height: 80px; margin-bottom: var(--space-3); }
.status-shell h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 var(--space-2); }
.status-shell p { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; margin: 0 0 var(--space-4); }
.status-detail { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3); margin-bottom: var(--space-4); }
.status-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-3); margin: 0; }
.status-detail dt { font-size: 12.5px; color: var(--text-mute); }
.status-detail dd { font-size: 13.5px; color: var(--text-dim); margin: 0; text-align: right; }

@media (max-width: 460px) {
  .nav-right .btn { padding: 8px 12px; font-size: 13px; }
}

/* ---------- Page preloader ----------
   Pure CSS/SVG — no video or gif asset to download. Covers the whole
   viewport above everything else, so nothing underneath is clickable
   until it's hidden once the page has fully loaded. */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  width: clamp(90px, 22vw, 160px);
  height: auto;
}
@keyframes preloaderBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: no-preference) {
  .preloader-logo { animation: preloaderBlink 1.8s ease-in-out infinite; }
}

/* ---------- Social links (footer) ---------- */
.social-links { display: flex; gap: 10px; margin-top: var(--space-3); }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: border-color 0.15s ease, color 0.15s ease;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.social-links svg { width: 16px; height: 16px; }
