/* ============================================================================
   رِماية — subpages (FAQ · plans · privacy · terms)
   ----------------------------------------------------------------------------
   These four documents share one shell with concept A «Midnight Velvet»
   (prototypes/landing/concepts/a/): near-black charcoal base (#0E0B14 → #1A1A1A)
   under deep-purple atmospheres, with Electric #5C17FD and Violet #BB50F8 used
   as LIGHT — glows, hairline rims, thin gradients — never as flat fills.

   This file is self-contained on purpose: the earlier landing stylesheets are
   retired, so the subpages carry their own copy
   of the tokens, header, footer and plan cards. Palette and font rules:
   AGENTS.md §2 and prototypes/admin/BRAND_NOTES.md.

   Long-form legal text sits at ~80% white with a 70ch measure and 1.9 leading;
   meta stays at 52%. Interface copy is never a sentence inside a chip.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts ---- */
@font-face {
  font-family: "Rimaya Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Rimaya Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Rimaya Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Rimaya Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Rimaya Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Rimaya Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* ----------------------------------------------------------------- tokens ---- */
:root {
  --ink-0: #08060d;
  --ink-1: #0e0b14;
  --ink-2: #131019;
  --ink-3: #1a1a1a;

  --deep: #331761;
  --electric: #5c17fd;
  --violet: #bb50f8;
  --white: #ffffff;

  --text: rgba(255, 255, 255, 0.72);
  --text-2: rgba(255, 255, 255, 0.58);
  /* the smallest meaningful meta still clears AA (4.5:1) on the near-black base */
  --text-3: rgba(255, 255, 255, 0.47);
  /* long-form reading colour: ~80% white, still AA on the near-black base */
  --text-read: rgba(255, 255, 255, 0.8);

  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.16);

  --glass: linear-gradient(158deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  --glass-2: linear-gradient(158deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));

  --font: "Rimaya Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;

  --wrap: 1220px;
  --read: 70ch;
  --gutter: 22px;
  --nav-h: 72px;
  /* the floating capsule (css/header.css) is fixed: this is the room the first
     block of content leaves for it — capsule bottom + an 18px breath */
  --nav-clear: 96px;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --sec-y: clamp(64px, 9vw, 132px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 30px 70px -50px rgba(0, 0, 0, 0.9), 0 2px 10px -6px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 60px 140px -70px rgba(92, 23, 253, 0.75);
}

@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink-1);
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

b,
strong {
  font-weight: 500;
  color: var(--white);
}

bdi {
  unicode-bidi: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

/* Film grain over the whole page: static, 3.5% opacity, painted from a data URI
   so it costs no request. Never intercepts pointers. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  color: var(--deep);
  font-weight: 500;
}

.skip:focus {
  inset-block-start: 12px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* Headings break where they read, not where the box happens to end. */
h1,
h2 {
  text-wrap: balance;
}

/* ---------------------------------------------------------------- typography - */
.sec__head {
  margin-block-end: clamp(30px, 4.5vw, 56px);
  max-width: var(--read);
}

.sec__head--center {
  margin-inline: auto;
  text-align: center;
}

.sec__title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

.sec__sub {
  margin-block-start: 14px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--text-2);
  max-width: 52ch;
}

.sec__head--center .sec__sub {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--violet);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet));
}

/* ------------------------------------------------------------------ buttons -- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease),
    color 0.3s var(--ease);
}

.btn--lg {
  min-height: 52px;
  padding: 15px 26px;
  font-size: 15px;
}

.btn--primary {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, var(--electric), #7a2bff 55%, var(--violet));
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.24) inset,
    0 18px 40px -22px rgba(92, 23, 253, 0.95),
    0 0 0 1px rgba(187, 80, 248, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.3) inset,
    0 26px 60px -24px rgba(92, 23, 253, 1),
    0 0 0 1px rgba(187, 80, 248, 0.6);
}

.btn--ghost,
.btn--quiet {
  color: var(--text);
  border-color: var(--hair-2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover,
.btn--quiet:hover {
  color: var(--white);
  border-color: rgba(187, 80, 248, 0.5);
  background: rgba(187, 80, 248, 0.08);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-weight: 500;
  border-block-end: 1px solid rgba(187, 80, 248, 0.45);
  padding-block-end: 2px;
  transition: border-color 0.3s var(--ease);
}

.link-arrow::after {
  content: "←";
  color: var(--violet);
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  border-color: var(--violet);
}

.link-arrow:hover::after {
  transform: translateX(-4px);
}

.link-inline {
  color: var(--white);
  border-block-end: 1px solid rgba(187, 80, 248, 0.4);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-inline:hover {
  border-color: var(--violet);
}

/* placeholder tokens the legal drafts still carry, e.g. [البريد] */
.ph {
  color: var(--text-3);
  font-size: 0.95em;
}

/* -------------------------------------------------------------- reveal ------- */
/* Hidden only once JS is confirmed, so nothing is ever invisible without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ================================================================== HEADER == */
/* The header is the floating capsule in css/header.css, linked by every landing
   page (this stylesheet keeps only what the pages below it still own). It is
   `position: fixed`, so the page itself carries the clearance — see `--nav-clear`
   and `.phero` — and the current page wears the capsule's highlight, because off
   the home page none of the island links points at a section on this page. */
.nav__links a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* at ≤960px the capsule drops to 56px tall on a 10px inset, so less room is due */
@media (max-width: 960px) {
  :root {
    --nav-clear: 84px;
  }
}

/* --------------------------------------------- shared wordmark (the footer)
   The capsule carries its own `.nav__word` in css/header.css; this pair stays
   here for the footer's `.brand--foot`, which every subpage still renders. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand__word {
  display: block;
  position: relative;
  width: 80px;
  height: 38px;
  overflow: hidden;
}

.brand__word img {
  position: absolute;
  width: 85px;
  height: 85px;
  max-width: none;
  inset-block-start: -23.5px;
  inset-inline-start: -1px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

/* ===================================================================== HERO == */
.phero {
  position: relative;
  padding-block: max(clamp(40px, 6.5vw, 96px), var(--nav-clear)) clamp(34px, 4.5vw, 62px);
  overflow: clip;
  background:
    radial-gradient(120% 70% at 84% -20%, rgba(51, 23, 97, 0.8) 0%, rgba(51, 23, 97, 0) 62%),
    radial-gradient(90% 60% at 10% 4%, rgba(92, 23, 253, 0.2) 0%, rgba(92, 23, 253, 0) 60%),
    linear-gradient(180deg, var(--ink-1) 0%, var(--ink-0) 100%);
}

.phero__glow {
  position: absolute;
  inset: -40% -12% auto;
  height: 150%;
  background:
    radial-gradient(36% 44% at 60% 12%, rgba(187, 80, 248, 0.22), transparent 66%),
    radial-gradient(42% 42% at 30% 4%, rgba(92, 23, 253, 0.26), transparent 68%);
  filter: blur(34px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

.phero__in {
  position: relative;
  max-width: var(--read);
}

.phero__title {
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}

.phero__title em {
  font-style: normal;
  background: linear-gradient(105deg, var(--white) 8%, var(--violet) 52%, var(--electric) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phero__sub {
  margin-block-start: 20px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--text);
}

.phero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 24px;
  font-size: 13.5px;
  color: var(--text-2);
}

.phero__note bdi {
  color: var(--white);
}

.phero__note svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--violet);
}

.phero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-start: 22px;
  font-size: 13px;
  color: var(--text-2);
}

.phero__meta i {
  color: var(--text-3);
  font-style: normal;
}

/* Secondary pages: the same atmosphere, an article-sized header. The capsule is
   fixed, so the top padding still clears it; the rest is one breath, not a
   landing hero's empty screen. */
.phero--page {
  padding-block: calc(var(--nav-clear) - 8px) clamp(46px, 4.4vw, 58px);
}

.phero--page .phero__title {
  font-size: clamp(32px, 4.4vw, 54px);
}

/* The article under a compact header starts one breath later, not half a
   screen later: 48px of hero padding plus a landing section's 104 is not a
   missing section, it only looks like one. */
.phero--page + .section {
  padding-block-start: clamp(30px, 3.6vw, 46px);
}

/* ==================================================================== 404 === */
.nf__in {
  position: relative;
  max-width: 54ch;
  padding-block: clamp(28px, 6vw, 72px) clamp(34px, 6vw, 64px);
}

.nf__code {
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(187, 80, 248, 0.22);
}

.nf__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: clamp(26px, 3vw, 36px);
}


/* ================================================================== SECTION == */
.section {
  padding-block: var(--sec-y);
  background: linear-gradient(180deg, var(--ink-0), var(--ink-1));
}

.section--alt {
  background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
}

/* =================================================================== FAQ ===== */
.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  padding-inline: clamp(16px, 2vw, 24px);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
}

.faq__item:hover {
  border-color: var(--hair-2);
}

.faq__item[open] {
  border-color: rgba(187, 80, 248, 0.42);
  background: var(--glass-2);
  box-shadow: 0 40px 90px -70px rgba(187, 80, 248, 0.9);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: clamp(18px, 2.2vw, 24px);
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(187, 80, 248, 0.34);
  border-radius: 50%;
  color: var(--violet);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.faq__item[open] .faq__q::after {
  content: "–";
  background: rgba(187, 80, 248, 0.12);
}

.faq__q:focus-visible {
  border-radius: 8px;
}

.faq__a {
  padding-block: 0 clamp(20px, 2.4vw, 26px);
  max-width: var(--read);
  color: var(--text-read);
  line-height: 1.9;
}

.faq__a p {
  margin: 0;
}

.faq__a a {
  color: var(--white);
  border-block-end: 1px solid rgba(187, 80, 248, 0.4);
}

/* ================================================================= PLANS =====
   Two plans, two columns. (The old rule asked for three and let the markup's
   inline flex decide; that is why the price row had no component of its own.) */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}

.plan:hover {
  transform: translateY(-4px);
  border-color: var(--hair-2);
}

.plan__name {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
}

.plan__for {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-block: 4px 2px;
  color: var(--white);
}

.plan__amount {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* the currency unit is one token: it may wrap to the next line as a whole, never
   between «ر.س», the slash and «شهريًا» */
.plan__unit {
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}

.plan__old {
  font-size: 15px;
  color: var(--text-2);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-variant-numeric: tabular-nums;
}

.plan__off {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(187, 80, 248, 0.16);
  color: var(--violet);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan__list {
  display: grid;
  gap: 11px;
  margin-block: 8px 4px;
  font-size: 13.5px;
  line-height: 1.7;
}

.plan__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}

.plan__item--sub {
  padding-inline-start: 30px;
  color: var(--text-2);
  font-size: 13px;
}

.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-block-start: 1px;
  border-radius: 50%;
  background: rgba(187, 80, 248, 0.16);
  color: var(--violet);
}

.mark svg {
  width: 12px;
  height: 12px;
}

.mark--off {
  background: rgba(255, 255, 255, 0.06);
}

.mark--off::before {
  content: "–";
  color: var(--text-3);
  font-size: 12px;
  line-height: 1;
}

.plan__cta {
  margin-block-start: auto;
  width: 100%;
}

.plan__foot {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.plan__chip {
  position: absolute;
  inset-block-start: -11px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--electric), var(--violet));
  color: var(--white);
  font-size: 11px;
  white-space: nowrap;
}

/* the recommended plan: rotating conic rim, exactly as concept A's pricing */
.plan--pick {
  border-color: transparent;
  background: linear-gradient(180deg, #171122, #100b18);
  box-shadow: var(--shadow-pop);
}

/* the chip is an overlay on the rim, not a row of the card */
.plan--pick > .plan__chip {
  position: absolute;
}

.plan--pick::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang), var(--electric) 0deg, var(--violet) 110deg, var(--deep) 210deg, var(--violet) 300deg, var(--electric) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: angspin 9s linear infinite;
  pointer-events: none;
}

@keyframes angspin {
  to {
    --ang: 360deg;
  }
}

.plan--pick > * {
  position: relative;
}

.plans__foot {
  margin-block-start: 30px;
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.plans__foot bdi {
  color: var(--white);
}

/* =========================================================== COMPARISON ====== */
/* The table reads in full from 320px up — three columns, no sideways scroll — so
   there is no "drag it sideways" hint and no minimum width above the wrapper. */
.cmp__scroll {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.cmp__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: start;
}

.cmp__table th,
.cmp__table td {
  padding: 15px 16px;
  border-block-end: 1px solid var(--hair);
  vertical-align: top;
  line-height: 1.7;
}

.cmp__table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  padding-block: 16px;
  background: rgba(14, 11, 20, 0.94);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  border-block-end: 1px solid var(--hair-2);
}

.cmp__table thead th:nth-child(3) {
  color: var(--violet);
}

.cmp__table tbody th {
  font-weight: 400;
  color: var(--text-2);
  text-align: start;
}

.cmp__table tr:last-child th,
.cmp__table tr:last-child td {
  border-block-end: 0;
}

.cmp__group th {
  padding-block: 10px;
  border-block-end: 1px solid var(--hair);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--violet);
  background: rgba(187, 80, 248, 0.05);
  text-align: start;
}

.cmp__val {
  color: var(--text);
}

.cmp__val b {
  color: var(--white);
}

.cmp__table tbody td:nth-child(3) {
  background: rgba(187, 80, 248, 0.045);
}

.cmp__num {
  color: var(--white);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cmp__old {
  color: var(--text-2);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-variant-numeric: tabular-nums;
}

.cmp__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-block-start: 18px;
  font-size: 12.5px;
  color: var(--text-3);
}

.cmp__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Under ~660px the 620px floor no longer fits the wrapper: the table drops it
   and becomes a compact three-column grid — tighter padding, feature names
   wrapping — so two plan columns read without a sideways scroll. */
@media (max-width: 660px) {
  .cmp__table {
    min-width: 0;
    font-size: 12.5px;
  }

  .cmp__table thead th {
    position: static;
    padding-block: 12px;
  }

  .cmp__table th,
  .cmp__table td {
    padding: 11px 9px;
    line-height: 1.6;
    overflow-wrap: break-word;
  }

  .cmp__group th {
    padding-block: 9px;
    font-size: 11px;
  }
}

/* ================================================================== NOTE ===== */
.note {
  display: flex;
  gap: 16px;
  margin-block-start: clamp(28px, 4vw, 48px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--shadow-card);
}

.note__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(187, 80, 248, 0.3);
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(187, 80, 248, 0.26), rgba(92, 23, 253, 0.05));
  color: var(--violet);
}

.note__ico svg {
  width: 21px;
  height: 21px;
}

.note__t {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}

.note__d {
  margin-block-start: 8px;
  max-width: var(--read);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.note__d b {
  color: var(--text-read);
}

/* ============================================================ LEGAL PAGES ==== */
.draft {
  display: flex;
  gap: 16px;
  margin-block-end: clamp(30px, 4vw, 52px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(187, 80, 248, 0.28);
  border-radius: var(--r-lg);
  background: linear-gradient(158deg, rgba(187, 80, 248, 0.12), rgba(92, 23, 253, 0.03));
}

.draft__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(187, 80, 248, 0.34);
  border-radius: 12px;
  color: var(--violet);
}

.draft__ico svg {
  width: 21px;
  height: 21px;
}

.draft__t {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
}

.draft__d {
  margin-block-start: 8px;
  max-width: var(--read);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.legal__head {
  max-width: var(--read);
}

.legal__title {
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white);
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-start: 20px;
  font-size: 12.5px;
  color: var(--text-2);
}

.legal__meta i {
  color: var(--text-3);
  font-style: normal;
}

.legal__intro {
  margin-block-start: 22px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.9;
  color: var(--text-read);
}

.legal__layout {
  display: grid;
  grid-template-columns: 232px minmax(0, var(--read));
  justify-content: center;
  gap: clamp(36px, 4.5vw, 64px);
  align-items: start;
  margin-block-start: clamp(38px, 5vw, 72px);
}

.toc {
  position: sticky;
  inset-block-start: calc(var(--nav-h) + 26px);
}

.toc__t {
  margin-block-end: 14px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.toc__list {
  display: grid;
  gap: 2px;
  max-height: min(62vh, 560px);
  overflow-y: auto;
  scrollbar-width: none;
}

.toc__list::-webkit-scrollbar {
  width: 0;
}

.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border-inline-start: 1px solid var(--hair);
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.toc__list a:hover {
  color: var(--white);
  background: rgba(187, 80, 248, 0.06);
}

.toc__list a.is-active {
  color: var(--white);
  border-inline-start-color: var(--violet);
  background: rgba(187, 80, 248, 0.09);
}

.toc__n {
  flex: none;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.toc__list a.is-active .toc__n {
  color: var(--violet);
}

.toc__foot {
  margin-block-start: 18px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--hair);
  font-size: 12px;
  color: var(--text-3);
}

.lbody {
  max-width: var(--read);
  min-width: 0;
}

/* The privacy page is one reading column with no sidebar: centre it on the same
   measure the terms body uses, rather than leaving it flush with the right edge. */
.lbody--article {
  max-width: 72ch;
  margin-inline: auto;
}

.lsec {
  padding-block: clamp(24px, 3vw, 36px);
  border-block-start: 1px solid var(--hair);
  scroll-margin-top: calc(var(--nav-h) + 26px);
}

.lsec:first-child {
  padding-block-start: 0;
  border-block-start: 0;
}

.lsec__h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-block-end: 16px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
}

.lsec__n {
  flex: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.lbody p {
  margin-block: 0 14px;
  color: var(--text-read);
  line-height: 1.9;
}

.lbody p:last-child {
  margin-block-end: 0;
}

.lbody ul {
  display: grid;
  gap: 10px;
  margin-block: 0 16px;
  padding-inline-start: 0;
}

.lbody li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-read);
  line-height: 1.9;
}

.lbody li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px 1px rgba(187, 80, 248, 0.6);
}

.lbody b,
.lbody strong {
  color: var(--white);
}

.legal__outro {
  margin-block-start: clamp(28px, 3.5vw, 44px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--glass);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.legal__outro b {
  color: var(--white);
}

.note--plain {
  margin-block: 0 clamp(28px, 4vw, 48px);
  max-width: 72ch;
  margin-inline: auto;
}

.note--plain .note__d {
  color: var(--text-read);
}

/* =================================================================== CTA ===== */
.cta {
  position: relative;
  padding-block: clamp(56px, 8vw, 110px);
  overflow: clip;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(51, 23, 97, 0.75), transparent 70%),
    var(--ink-0);
}

.cta__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.cta__title {
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--white);
}

.cta__sub {
  margin-block-start: 16px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cta__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-start: clamp(28px, 4vw, 48px);
  padding-block-start: 20px;
  border-block-start: 1px solid var(--hair);
  font-size: 13px;
  color: var(--text-2);
}

.cta__links a:hover {
  color: var(--white);
}

.cta__links i {
  color: var(--text-3);
  font-style: normal;
}

/* the closing CTA is the homepage's centred block: one stack, one promise */
.cta--final {
  position: relative;
  padding-block: clamp(90px, 13vw, 190px);
  background: var(--ink-0);
}

.cta--final .cta__aurora {
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(34% 44% at 30% 40%, rgba(92, 23, 253, 0.5), transparent 66%),
    radial-gradient(30% 40% at 70% 62%, rgba(187, 80, 248, 0.38), transparent 68%),
    radial-gradient(46% 40% at 50% 100%, rgba(51, 23, 97, 0.85), transparent 72%);
  filter: blur(46px);
  animation: cta-aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cta-aurora {
  0% {
    transform: translate3d(-3%, 2%, 0) scale(1.04) rotate(-2deg);
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.1) rotate(1deg);
  }
  100% {
    transform: translate3d(4%, 3%, 0) scale(1.05) rotate(2deg);
  }
}

.cta--final .wrap {
  position: relative;
}

.cta--final .cta__in {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 26px;
  text-align: center;
}

.cta--final .cta__title {
  font-size: clamp(38px, 7.4vw, 104px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta--final .cta__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet), var(--electric));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta--final .cta__btns {
  justify-content: center;
}

.cta--final .cta__btns .btn {
  flex: 0 1 auto;
}

.cta--final .cta__note {
  font-size: 13px;
  color: var(--text-2);
}

.cta--final .cta__note bdi {
  color: var(--white);
}

.cta--final .cta__links {
  justify-content: center;
  margin-block-start: clamp(34px, 5vw, 56px);
  padding-block-start: 0;
  border: 0;
}

/* ================================================================== FOOTER === */
.foot {
  padding-block: clamp(46px, 6vw, 74px) 28px;
  border-block-start: 1px solid var(--hair);
  background: var(--ink-0);
}

.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
}

.brand--foot .brand__word {
  width: 128px;
  height: 60px;
}

.brand--foot .brand__word img {
  width: 136px;
  height: 136px;
  inset-block-start: -38px;
  inset-inline-start: -1.5px;
}

.foot__tag {
  margin-block-start: 14px;
  max-width: 26ch;
  font-size: 13px;
  color: var(--text-2);
}

.foot__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.foot__col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.foot__col h3 {
  margin-block-end: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

.foot__col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}

.foot__col a:hover {
  color: var(--white);
}

.foot__bar {
  margin-block-start: clamp(30px, 4vw, 52px);
  padding-block-start: 18px;
  border-block-start: 1px solid var(--hair);
  font-size: 11.5px;
  color: var(--text-3);
}

/* ============================================================== responsive == */
@media (max-width: 980px) {
  .legal__layout,
  .cta__in,
  .foot__in {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc__list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta__btns {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --nav-h: 66px;
  }

  .plans__grid,
  .foot__nav {
    grid-template-columns: 1fr;
  }

  .plan--pick {
    grid-column: auto;
  }

  .toc__list {
    grid-template-columns: 1fr;
  }

  .note,
  .draft {
    flex-direction: column;
  }

  .cta__btns .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 960px) {
  /* A footer link is a thumb target before it is a line of text. The 10px gap
     becomes the row's own height, so the columns keep their rhythm. */
  .foot__col {
    gap: 0;
  }

  .foot__col h3 {
    margin-block: 14px 2px;
  }

  .foot__col a {
    display: flex;
    align-items: center;
    min-block-size: 44px;
  }

  .cta__links a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
  }
}

@media (max-width: 560px) {
  .phero__title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .legal__title {
    font-size: clamp(30px, 9vw, 44px);
  }
}

/* ============================================== reduced motion + no-JS paths */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .phero__glow {
    animation: none !important;
  }

  .plan--pick::before {
    animation: none !important;
  }

  .cta--final .cta__aurora {
    animation: none !important;
  }
}
