/* ==========================================================================
   Doom Cali — site vitrine
   Thème sombre unique, même charte que l'application.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0A0A0B;
  --surface: #131315;
  --surface-2: #1B1B1E;
  --border: #232326;
  --border-2: #313136;
  --text: #F5F5F6;
  --muted: #A1A1A6;
  --red: #D92B1F;
  --red-press: #A8160F;
  --red-bright: #F04438;
  --halo: rgba(217, 43, 31, 0.35);
  --font-head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--red-bright); text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong { font-weight: 600; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Language switching: blocks tagged with data-lang show only in the active language. */
html[lang="fr"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(56px, 9vw, 112px); letter-spacing: .04em; }
h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 16px; }
h3 { font-size: 22px; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  color: var(--red-bright);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; position: relative; scroll-margin-top: var(--nav-h); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; gap: 48px; grid-template-columns: 1.05fr .95fr; align-items: center; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* --------------------------------------------------------------------------
   Cards, buttons, chips
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--red-bright);
}
.card-icon svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-press); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); background: var(--surface); }
.btn[aria-disabled="true"], .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 10, 11, .7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand svg { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 17px;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 640px) { .nav-actions .btn-nav { display: none; } }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--font-head);
  letter-spacing: .1em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   Animated background (CSS only) + reveal
   -------------------------------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.bg::before, .bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform, opacity;
}
.bg::before {
  width: 70vmax; height: 70vmax;
  top: -30vmax; right: -20vmax;
  background: radial-gradient(closest-side, rgba(217, 43, 31, .38), rgba(217, 43, 31, 0));
  animation: breathe-a 16s ease-in-out infinite;
}
.bg::after {
  width: 60vmax; height: 60vmax;
  bottom: -35vmax; left: -25vmax;
  background: radial-gradient(closest-side, rgba(168, 22, 15, .32), rgba(168, 22, 15, 0));
  animation: breathe-b 20s ease-in-out infinite;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 245, 246, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 246, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 80%);
}

@keyframes breathe-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .5; }
  50% { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); opacity: .7; }
}
@keyframes breathe-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .45; }
  50% { transform: translate3d(6vmax, -6vmax, 0) scale(1.15); opacity: .65; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero-spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(217, 43, 31, .16), transparent 62%);
  transition: opacity .6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .hero.has-spot .hero-spot { opacity: 1; }
}
.hero .split { grid-template-columns: 1.1fr .9fr; }
.hero-copy { position: relative; }
.hero-title {
  display: block;
  margin: 8px 0 18px;
  color: var(--text);
}
.hero-title em {
  font-style: normal;
  color: var(--red-bright);
}
.hero-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  max-width: 560px;
  margin: 0 0 18px;
}
.hero-sub { max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 16px 0 0; font-size: 14px; }
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; margin: 34px 0 0; padding: 0;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
}
.hero-pillars li { display: inline-flex; align-items: center; gap: 10px; }
.hero-pillars li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--halo), transparent);
  filter: blur(30px);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 32px); min-height: 0; }
  .hero .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   Phone mockup (CSS)
   -------------------------------------------------------------------------- */

.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 10px;
  position: relative;
  will-change: transform;
}
.phone::before {
  /* side button */
  content: "";
  position: absolute;
  right: -3px; top: 120px;
  width: 3px; height: 64px;
  background: var(--border-2);
  border-radius: 0 3px 3px 0;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 37px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  line-height: 1.35;
}
.phone-shot { width: 100%; height: 100%; object-fit: cover; }
.ph-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 0;
  font-size: 11px; font-weight: 600;
}
.ph-status .cam {
  width: 12px; height: 12px; border-radius: 50%;
  background: #000; border: 1px solid var(--border-2);
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
}
.ph-status .sig { display: flex; gap: 4px; align-items: flex-end; }
.ph-status .sig i { display: block; width: 3px; background: var(--text); border-radius: 1px; }
.ph-head {
  padding: 14px 16px 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.ph-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 16px;
}
.ph-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--muted);
  font-size: 10px;
}
.ph-feed { padding: 4px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ph-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 11px;
}
.ph-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ph-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  font-weight: 700; font-size: 10px;
}
.ph-avatar.red { background: var(--red); border-color: var(--red); color: #fff; }
.ph-user b { display: flex; align-items: center; gap: 5px; font-size: 11.5px; }
.ph-user small { display: block; color: var(--muted); font-size: 10px; }
.ph-plus {
  font-family: var(--font-head);
  font-size: 8px; letter-spacing: .1em;
  color: var(--red-bright);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.2;
}
.ph-post-title {
  margin: 0 0 3px;
  font-family: var(--font-head);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 12.5px;
}
.ph-stats { color: var(--muted); font-size: 10.5px; margin-bottom: 7px; }
.ph-skill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(217, 43, 31, .14);
  color: var(--red-bright);
  font-size: 10px; font-weight: 600;
}
.ph-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0 2px; }
.ph-photos i {
  display: block; aspect-ratio: 1; border-radius: 6px;
  background: linear-gradient(135deg, var(--surface-2), var(--border-2));
}
.ph-photos i:nth-child(2) { background: linear-gradient(135deg, #2a1a19, var(--surface-2)); }
.ph-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px; color: var(--muted); font-size: 10.5px;
}
.ph-actions svg { width: 13px; height: 13px; }
.ph-actions .liked { color: var(--red-bright); }
.ph-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}
.ph-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); font-size: 9px;
}
.ph-tab svg { width: 16px; height: 16px; }
.ph-tab.active { color: var(--red-bright); }

@media (max-width: 900px) { .phone { --w: 260px; } }

/* --------------------------------------------------------------------------
   Discipline strip (dynamic vs isometric, brief reminder)
   -------------------------------------------------------------------------- */

.discipline { border-top: 1px solid var(--border); padding: 36px 0; }
.discipline-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.discipline-lead { margin: 0; max-width: 460px; color: var(--muted); }
.discipline-list { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.discipline-list > div {
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.discipline-list dt { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--red-bright); }
.discipline-list dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Section: custom exercises (form mock-up)
   -------------------------------------------------------------------------- */

.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px; margin-top: 3px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F04438' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--border-2);
}
.custom-figure { display: flex; justify-content: center; }
.form-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.form-title { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 20px; margin-bottom: 4px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.form-input {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  font-size: 15px;
}
.form-input .caret { width: 2px; height: 16px; background: var(--red-bright); animation: caret 1.1s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }
.form-seg { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); }
.form-seg span { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 13px; color: var(--muted); }
.form-seg span.on { background: var(--red); color: #fff; font-weight: 600; }
.form-btn {
  margin-top: 6px;
  text-align: center;
  padding: 13px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
}

/* --------------------------------------------------------------------------
   Section: skill tree
   -------------------------------------------------------------------------- */

.tree-figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.tree-svg { width: 100%; height: auto; }
.tree-svg .edge { stroke: var(--border-2); stroke-width: 2; }
.tree-svg .edge.done { stroke: var(--red); }
.tree-svg .node circle { fill: var(--surface-2); stroke: var(--border-2); stroke-width: 2; }
.tree-svg .node.done circle { fill: var(--red); stroke: var(--red); }
.tree-svg .node.current circle { stroke: var(--red-bright); stroke-width: 3; }
.tree-svg .node.current .pulse {
  fill: none; stroke: var(--red-bright); stroke-width: 2;
  animation: pulse 2.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.tree-svg text {
  font-family: var(--font-body);
  font-size: 11.5px;
  fill: var(--text);
  text-anchor: middle;
}
.tree-svg .node.locked text { fill: var(--muted); }
.tree-svg .check { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-2); background: var(--surface-2); }
.legend i.done { background: var(--red); border-color: var(--red); }
.legend i.current { border-color: var(--red-bright); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stat {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  letter-spacing: .02em;
}
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: span 2; } }

/* --------------------------------------------------------------------------
   Section: athlete level (radar)
   -------------------------------------------------------------------------- */

.radar-figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.radar { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.radar .ring { fill: none; stroke: var(--border-2); stroke-width: 1; }
.radar .axis { stroke: var(--border-2); stroke-width: 1; }
.radar .shape { fill: rgba(217, 43, 31, .22); stroke: var(--red-bright); stroke-width: 2; stroke-linejoin: round; }
.radar .dot { fill: var(--red-bright); }
.radar text { font-family: var(--font-body); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.level-card {
  display: flex; align-items: center; gap: 18px;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.level-num {
  width: 64px; height: 64px; flex: none;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 600; font-size: 34px; line-height: 1;
}
.level-card b { display: block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 18px; }
.level-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.level-bar { height: 6px; border-radius: 3px; background: var(--border-2); margin-top: 10px; overflow: hidden; }
.level-bar i { display: block; height: 100%; width: 62%; background: var(--red); border-radius: 3px; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tiers li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 13px; color: var(--muted); }
.tiers li.on { border-color: var(--red); color: var(--text); background: rgba(217, 43, 31, .12); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.plus { border-color: var(--red); background: linear-gradient(180deg, rgba(217, 43, 31, .10), transparent 40%), var(--surface); }
.price-badge {
  position: absolute; top: -13px; right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.price-name {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  font-size: 15px; color: var(--muted); margin: 0;
}
.price-amount {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: .02em;
}
.price-amount small { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.price-alt { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.price-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F04438' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid var(--border-2);
}
.price-plans { font-size: 13px; color: var(--muted); margin-top: auto; }
.price-note { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px; line-height: 1;
  color: var(--red-bright);
  transition: transform .25s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.faq details p a { color: var(--red-bright); }

/* --------------------------------------------------------------------------
   Disclaimer
   -------------------------------------------------------------------------- */

.disclaimer {
  margin-top: 40px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-2);
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px;
  margin-bottom: 28px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--red-bright); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Legal documents (privacy / delete-account)
   -------------------------------------------------------------------------- */

.doc { max-width: 780px; margin: 0 auto; padding: calc(var(--nav-h) + 56px) 20px 80px; }
.doc-head { margin-bottom: 36px; }
.doc-head h1 { font-size: clamp(36px, 6vw, 56px); margin: 6px 0 12px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.doc h2 {
  font-size: 26px;
  margin: 48px 0 14px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.doc h2 a { color: inherit; text-decoration: none; }
.doc h2 a:hover { color: var(--red-bright); }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--red-bright); }
.doc .card { padding: 20px 24px; margin: 16px 0; }
.doc .card.warn { border-color: var(--red); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.doc .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 28px 0 8px;
}
.toc strong {
  display: block;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--red-bright); text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.doc-steps { counter-reset: step; list-style: none; padding: 0; }
.doc-steps li {
  position: relative;
  padding: 14px 18px 14px 62px;
  margin: 10px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.doc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 16px; top: 13px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px 20px 60px; }
.notfound h1 { font-size: clamp(80px, 20vw, 180px); color: var(--red-bright); line-height: 1; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bg::before, .bg::after { animation: none; opacity: .5; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-spot { display: none; }
  .phone { transform: none !important; }
  .form-input .caret { animation: none; }
  .tree-svg .node.current .pulse { animation: none; opacity: .35; }
}
