/* ==========================================================================
   Mark TRD School - mark-trd-school.com

   Black ground, violet gradient, glass cards. Violet carries the brand and
   every call to action; green marks something confirmed; red is reserved for
   risk and for anything simulated. Never use green or violet to imply a
   result - the offer is free education, not a return.
   ========================================================================== */

:root {
  --bg:        #000000;
  --bg-2:      #07050C;
  --ink:       #FFFFFF;
  --muted:     #9391AF;
  --lav:       #CFB9FF;
  --green:     #74FF6F;
  --red:       #FF6F6F;
  --bd:        #333248;
  --bd-soft:   #232235;

  --card:      linear-gradient(227.65deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 100%);
  --card-2:    linear-gradient(180deg, #100C1B 30%, #391F70 100%);
  --grad:      linear-gradient(83.72deg, #885EE0 0%, #9D6FFF 100%);
  --grad-bd:   linear-gradient(19.99deg, #3E3D54 51.33%, #9D6FFF 82.76%, #CFB9FF 100%);
  --glow:      0 14px 44px rgba(136, 94, 224, 0.42);

  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 36px);
  --r: 20px;
  --r-sm: 14px;
  --r-pill: 50px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--lav); text-decoration: none; }
a:hover { color: var(--ink); }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.25rem + 2.4vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.center p, .center .lede { margin-left: auto; margin-right: auto; }
.center .cta-row { justify-content: center; }

/* --- Type utilities -------------------------------------------------------- */

.lav { color: var(--lav); }
.grn { color: var(--green); }

.eyebrow {
  display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lav); margin: 0 0 14px;
}

.lede { font-size: clamp(1rem, 0.96rem + 0.3vw, 1.125rem); color: var(--muted); max-width: 62ch; line-height: 1.55; }

.small { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

/* The legal line that sits under every call to action. */
.disclaimer {
  font-size: 0.75rem; line-height: 1.5; color: #5C5B70;
  max-width: 60ch; margin: 18px auto 0;
}
.cta-row + .disclaimer { margin-top: 18px; }

/* --- Skip link ------------------------------------------------------------- */

.skip {
  position: absolute; left: 0; top: 0; z-index: 300;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--grad); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
  font-weight: 600; font-size: 0.875rem;
}
.skip:focus { clip-path: none; color: #fff; }

/* --- Masthead -------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bd-soft);
}

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--grad); box-shadow: 0 6px 18px rgba(136, 94, 224, 0.45);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff;
}
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  padding: 9px 12px; border-radius: 10px;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav__cta { margin-left: 10px; }

/* .nav a outranks .btn on specificity, so the nav button restates its own. */
.nav .btn--primary,
.nav .btn--primary:hover { background: var(--grad); color: #fff; }
.nav .btn { padding: 12px 22px; font-size: 0.875rem; border-radius: var(--r-pill); }

.nav-toggle {
  display: none; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--bd);
  border-radius: 12px; padding: 10px 14px; cursor: pointer;
  font-family: var(--font); font-size: 0.8125rem; font-weight: 600; color: var(--ink);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #070510; border-bottom: 1px solid var(--bd);
    padding: 10px var(--gutter) 22px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--bd-soft); border-radius: 0; font-size: 0.9375rem; }
  .nav__cta { margin: 18px 0 0; }
  .nav .btn { width: 100%; }
}

/* --- Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  padding: 21px 38px; border-radius: var(--r-pill); border: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 54px rgba(136, 94, 224, 0.55); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--ink);
  border: 1px solid var(--bd); box-shadow: none;
}
.btn--ghost:hover { color: var(--ink); border-color: var(--lav); transform: translateY(-2px); }

.btn--sm { padding: 12px 22px; font-size: 0.875rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* The pill of plain facts that sits under the main button. */
.factpill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(88.97deg, rgba(244, 244, 244, 0.08) 2.65%, rgba(244, 244, 244, 0.14) 96.22%);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: var(--r-pill); padding: 10px 20px; margin-top: 20px;
  font-size: 0.875rem; font-weight: 500; color: #D9D8E6;
}
.factpill b { color: var(--ink); font-weight: 700; }
.factpill span { display: inline-flex; align-items: center; gap: 7px; }

/* --- Sections ---------------------------------------------------------------- */

.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; overflow: hidden; }
.section--line { border-top: 1px solid var(--bd-soft); }

/* Violet bloom behind a section, the way the reference lights its blocks. */
.section--glow::before {
  content: ""; position: absolute; left: 50%; top: -10%; z-index: 0;
  width: min(1100px, 130%); height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(136, 94, 224, 0.20), transparent 72%);
  pointer-events: none;
}

.section__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head h2 { margin-bottom: 14px; }
.section__head .lede { margin: 0 auto; }

/* Inner pages keep a plain left-aligned rhythm. */
.section-grid { display: block; }
.section-head { margin-bottom: 10px; }
.section-head__label {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lav);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(157, 111, 255, 0.12); border: 1px solid rgba(157, 111, 255, 0.25);
}
.section__title { margin-bottom: 18px; }

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

.hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 5vw, 72px) 0 clamp(44px, 5vw, 80px);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 62px);
}
.hero::before {
  content: ""; position: absolute; right: -6%; top: -28%; width: 74%; height: 128%; z-index: 0;
  background: radial-gradient(closest-side, rgba(136, 94, 224, 0.30), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 34%; z-index: 1;
  background: linear-gradient(360deg, #000 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}

/* On a phone the first screen has to carry the headline, the button and his
   face. The facts strip is dropped and the supporting copy moves below the
   photo; `display: contents` lets the text block's children reorder against
   the photo, which is its sibling. */
@media (max-width: 980px) {
  .hero { padding-top: clamp(20px, 4vw, 40px); }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__grid > div:first-child { display: contents; }
  .hero .hero__facts { display: none; }
  .hero h1 { order: 1; margin-bottom: 0; }
  .hero .cta-row { order: 2; }
  .hero .shot { order: 3; margin-top: 2px; }
  .hero .factpill { order: 4; margin-top: 0; }
  .hero .disclaimer { order: 5; margin: 0; }
}

.hero h1 { margin-bottom: 22px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r-sm);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  margin-bottom: 30px; overflow: hidden;
}
@media (max-width: 560px) { .hero__facts { grid-template-columns: 1fr; } }

.hero__facts div { padding: 17px 18px; font-size: 0.875rem; line-height: 1.4; color: #D9D8E6; }
.hero__facts div + div { border-left: 1px solid var(--bd); }
@media (max-width: 560px) {
  .hero__facts div + div { border-left: 0; border-top: 1px solid var(--bd); }
}

/* --- Hero visual: the teacher and the demo account ------------------------------ */

.shot { position: relative; }

/* A cut-out portrait standing on the page, lit from behind. */
.shot__photo { position: relative; }
.shot__photo::before {
  content: ""; position: absolute; inset: 4% 6% 10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(136, 94, 224, 0.45), transparent 72%);
  filter: blur(24px);
}
.shot__photo img {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.65));
  /* The source photo clips his shoulder at the frame edge; fade it out
     rather than showing a hard vertical cut. */
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
}

.shot__badge {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--bd); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 0.8125rem; font-weight: 600; color: var(--ink);
}
.shot__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

.shot__quote {
  position: absolute; right: -6%; top: 46%; max-width: 250px; z-index: 3;
  background: linear-gradient(227.65deg, rgba(12, 9, 22, 0.86) 0%, rgba(24, 18, 42, 0.9) 100%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bd); border-radius: var(--r-sm);
  padding: 15px 17px; font-size: 0.875rem; line-height: 1.45; color: #E7E6F2;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
@media (max-width: 1100px) { .shot__quote { right: 0; } }

.shot__acct {
  position: absolute; left: -8%; bottom: 10%; width: 240px; z-index: 3;
  background: linear-gradient(227.65deg, rgba(12, 9, 22, 0.86) 0%, rgba(24, 18, 42, 0.9) 100%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bd); border-radius: var(--r-sm); padding: 15px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
@media (max-width: 1100px) { .shot__acct { left: 0; } }

.shot__k, .shot__v, .shot__note, .shot__chart { display: block; }
.shot__k { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.shot__v { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; }
.shot__v small { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.shot__note { font-size: 0.6875rem; line-height: 1.4; color: var(--red); font-weight: 600; }
.shot__chart { margin-top: 10px; }
.shot__chart svg { display: block; width: 100%; height: auto; }

/* On a phone the two cards stay laid over the photo rather than stacking under
   it, so the first screen still shows his face. They lose the chart and drop a
   size to fit either side of him. */
@media (max-width: 700px) {
  .shot__badge { display: none; }
  .shot__quote {
    top: 38%; right: 0; max-width: 54%; padding: 11px 13px;
    font-size: 0.75rem; line-height: 1.4; border-radius: 12px;
  }
  .shot__acct { bottom: 2%; left: 0; width: 56%; padding: 12px 13px; border-radius: 12px; }
  .shot__k { font-size: 0.5625rem; letter-spacing: 0.09em; }
  .shot__v { font-size: 1.35rem; margin: 3px 0 1px; }
  .shot__v small { font-size: 0.625rem; margin-left: 5px; }
  .shot__note { font-size: 0.625rem; }
  .shot__chart { display: none; }
}

@media (max-width: 430px) {
  .shot__quote { max-width: 58%; font-size: 0.6875rem; }
  .shot__acct { width: 60%; }
}

/* --- Cards ---------------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr; } }
.cards .card--wide { grid-column: 1 / -1; }

.card {
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r);
  padding: 22px 22px 24px;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}
.card h3 { margin-bottom: 9px; display: flex; align-items: baseline; gap: 10px; }
.card h3 .ico { font-size: 1.05em; line-height: 1; flex: none; }
.card p { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.card__figure {
  display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 8px;
}

/* Panels reuse the card surface; the warning variant turns red. */
.panel {
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r);
  padding: 24px 22px; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
.panel--warn { border-color: rgba(255, 111, 111, 0.34); background: linear-gradient(227.65deg, rgba(255, 111, 111, 0.05) 0%, rgba(255, 111, 111, 0.09) 100%); }
.panel h3 { margin-bottom: 16px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 12px 30px; font-size: 0.9375rem; line-height: 1.5; color: #C9C8DA; }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; color: var(--green);
  background: rgba(116, 255, 111, 0.12);
}
.ticks--no li::before { content: "\00D7"; color: var(--red); background: rgba(255, 111, 111, 0.12); }
.ticks li:last-child { padding-bottom: 0; }
.ticks strong { color: var(--ink); }

/* --- Numbered sequence ------------------------------------------------------------ */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps > li {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r);
  padding: 20px 22px; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
@media (max-width: 620px) { .steps > li { grid-template-columns: 1fr; gap: 10px; } }

.steps__no {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 0.9375rem;
  box-shadow: 0 8px 22px rgba(136, 94, 224, 0.4);
}
.steps h3 { margin-bottom: 7px; }
.steps p { font-size: 0.9375rem; color: var(--muted); }
.steps__meta {
  display: inline-block; margin-top: 12px; font-size: 0.8125rem; font-weight: 500; color: var(--lav);
  background: rgba(157, 111, 255, 0.10); border: 1px solid rgba(157, 111, 255, 0.22);
  border-radius: var(--r-pill); padding: 6px 13px;
}

/* --- Expert block ------------------------------------------------------------------ */

.expert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
@media (max-width: 900px) { .expert { grid-template-columns: 1fr; } }

.expert__name { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 20px; }
.expert__name span { display: block; color: var(--lav); }

.expert__photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--card-2); border: 1px solid var(--bd); aspect-ratio: 4 / 5;
}
.expert__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (max-width: 760px) { .creds { grid-template-columns: 1fr; } }
.creds .card--wide { grid-column: 1 / -1; }
.cred {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r-sm);
  padding: 14px 16px; font-size: 0.9375rem; line-height: 1.4; color: #D9D8E6;
}
.cred .ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: rgba(157, 111, 255, 0.14); border: 1px solid rgba(157, 111, 255, 0.24); font-size: 1.05rem;
}

/* --- Disclosure blocks ---------------------------------------------------------------- */

.disclose {
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r);
  padding: 24px clamp(20px, 3vw, 30px); text-align: left;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
.disclose--warn { border-color: rgba(255, 111, 111, 0.34); background: linear-gradient(227.65deg, rgba(255, 111, 111, 0.05) 0%, rgba(255, 111, 111, 0.09) 100%); }
.disclose h3 { margin-bottom: 11px; }
.disclose p { font-size: 0.9375rem; color: var(--muted); }
.disclose + .disclose { margin-top: 16px; }

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

.faq { display: grid; gap: 12px; text-align: left; }
.faq details {
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r-sm);
  padding: 4px 20px; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
.faq details[open] { border-color: rgba(157, 111, 255, 0.4); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--lav); font-size: 1.3rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--lav); }
.faq__body { padding: 0 0 18px; }
.faq__body p { font-size: 0.9375rem; color: var(--muted); }

/* --- Legal / article pages ---------------------------------------------------------------- */

.page-head { padding: clamp(34px, 4vw, 56px) 0 clamp(16px, 2vw, 26px); }
.page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem); }

.prose { color: var(--muted); }
.prose h2 { margin-top: 2em; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; max-width: 68ch; }
.prose li { margin-bottom: 0.45em; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.4em; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--bd-soft); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.03); }
.table-scroll { overflow-x: auto; border: 1px solid var(--bd); border-radius: var(--r-sm); }

.updated { font-size: 0.8125rem; color: var(--muted); }

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

.footer { background: var(--bg-2); border-top: 1px solid var(--bd-soft); padding: clamp(44px, 5vw, 68px) 0 28px; }
.footer a { color: #C9C8DA; }
.footer a:hover { color: var(--lav); }

.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 44px); padding-bottom: 34px; border-bottom: 1px solid var(--bd-soft);
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand p { font-size: 0.875rem; color: var(--muted); margin-top: 14px; }

.footer h4 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 0.9375rem; }

.footer__legal { padding-top: 28px; }
.footer__legal p { font-size: 0.8125rem; line-height: 1.6; color: #5C5B70; max-width: none; margin-bottom: 0.9em; }
.footer__legal strong { color: var(--muted); font-weight: 700; }

.footer__risk {
  border: 1px solid rgba(255, 111, 111, 0.3); border-radius: var(--r-sm);
  background: rgba(255, 111, 111, 0.05); padding: 16px 18px; margin-bottom: 22px;
}
.footer__risk p { color: #E5A9A9; margin-bottom: 0; }
.footer__risk strong { color: var(--red); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--bd-soft);
  font-size: 0.8125rem; color: #5C5B70;
}

/* --- Cookie notice ----------------------------------------------------------------------------- */

.cookie {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 150;
  background: #0B0814; border: 1px solid var(--bd); border-radius: var(--r-sm);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.8);
  padding: 14px 18px; display: none; max-width: 700px;
  align-items: center; gap: 18px;
}
.cookie[data-visible="true"] { display: flex; }
.cookie p { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); margin: 0; }
.cookie .cta-row { flex: none; gap: 8px; }
.cookie .btn { padding: 10px 18px; font-size: 0.8125rem; }

@media (max-width: 760px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .cookie p { font-size: 0.75rem; }
  .cookie .btn { padding: 9px 14px; font-size: 0.75rem; }
}

/* --- Motion -------------------------------------------------------------------------------------- */

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