/* ---- self-hosted webfonts -------------------------------------------------------------
   Variable woff2, latin subset, served same-origin so they can be preloaded and arrive
   before first paint. Loading them from fonts.gstatic.com cost 0.305 CLS: the fallback
   painted first and every heading reflowed on swap.

   latin-ext is subset to U+20B9 (₹) alone — it is the only character the site uses from
   that range; the rest of the non-latin text is emoji, which the system font renders.
   JetBrains Mono has no ₹ glyph at all, so it gets no latin-ext face and falls back
   per-glyph exactly as it does today.

   font-display: block (not swap) with a preload: the face is same-origin and already in
   flight, so the block period ends in a few ms and no reflow is ever painted.
   ------------------------------------------------------------------------------------ */
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-rupee.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: block;
  unicode-range: U+20B9;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-rupee.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: block;
  unicode-range: U+20B9;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-rupee.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20B9;
}

/* ==================================================================
   AFFILIATERS · affiliaters.in
   One stylesheet, every page. Two themes (dark default, light via
   [data-theme="light"]). Brand colors extracted from the real logo:
   mark gradient #2c66d6 → #1341a1, app primary #2065d1.
   ================================================================== */

:root {
  color-scheme: dark;

  /* brand (theme-independent) */
  --brand:       #2065d1;
  --brand-hover: #1a55bb;
  --brand-deep:  #123f9e;
  --brand-hi:    #4d8bf0;

  /* dark theme (default) */
  --bg:        #05070f;
  --bg-soft:   #0a0e1c;
  --panel:     #0d1326;
  --panel-2:   #121a33;
  --line:      rgba(140, 160, 255, 0.13);
  --line-2:    rgba(140, 160, 255, 0.30);
  --text:      #eef1ff;
  --muted:     #9aa4cb;
  --dim:       #757fb0;

  --accent:    #7db1ff;          /* eyebrows, inline links */
  --green:     #3ddc84;
  --amber:     #ffb224;
  --red:       #ff6262;
  --tg:        #2aabee;

  --grad:       linear-gradient(92deg, #4d8bf0, #8ab5ff);
  --grad-money: linear-gradient(92deg, #3ddc84, #b9f8d3);
  --grad-btn:   linear-gradient(135deg, #2c66d6, #1341a1);

  --glass-hi:  rgba(140, 160, 255, 0.07);
  --glass-lo:  rgba(140, 160, 255, 0.02);
  --nav-bg:    rgba(9, 13, 26, 0.72);
  --shadow-1:  rgba(0, 0, 0, 0.7);
  --glow:      rgba(45, 100, 220, 0.5);
  --mark-line: rgba(140, 160, 255, 0.14);
  --grid-line: rgba(140, 160, 255, 0.035);
  --hl-amber:  rgba(255, 178, 36, 0.34);

  /* legacy aliases — inline styles across pages still reference these */
  --cyan: var(--accent);
  --blue: var(--brand);

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body:    "Manrope", -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;
  --f-hand:    "Caveat", cursive;

  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;

  --wrap: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f5f7fc;
  --bg-soft:   #edf1f9;
  --panel:     #ffffff;
  --panel-2:   #f2f5fb;
  --line:      rgba(24, 55, 120, 0.12);
  --line-2:    rgba(24, 55, 120, 0.25);
  --text:      #17203a;
  --muted:     #47536f;
  --dim:       #636b80;

  --accent:    #1a5cc4;
  --green:     #0e9d58;
  --amber:     #c07a10;
  --red:       #d43c3c;

  --grad:       linear-gradient(92deg, #2c66d6, #123f9e);
  --grad-money: linear-gradient(92deg, #0e9d58, #2fb573);

  --glass-hi:  rgba(255, 255, 255, 0.9);
  --glass-lo:  rgba(255, 255, 255, 0.6);
  --nav-bg:    rgba(255, 255, 255, 0.78);
  --shadow-1:  rgba(21, 44, 96, 0.16);
  --glow:      rgba(32, 101, 209, 0.22);
  --mark-line: rgba(24, 55, 120, 0.14);
  --grid-line: rgba(24, 55, 120, 0.05);
  --hl-amber:  rgba(255, 187, 61, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ambient: faint film grain only — no grids, no glow orbs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  pointer-events: none;
}

::selection { background: var(--brand); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- scroll progress ------------------------------------------- */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-btn);
  z-index: 200;
}

/* ---- type ------------------------------------------------------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
.eyebrow .n { color: var(--dim); }

/* Keyword line inside an <h1>, carrying the eyebrow's exact styling. Lets the heading
   lead with the search term while the editorial line underneath keeps the voice —
   visually identical to the .eyebrow it replaces. */
.h1-kw {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-center .h1-kw {
  /* the leading rule reads as a bullet against left-aligned inner-page heroes, but
     dangles beside centred text that wraps — drop it and keep the type centred */
  justify-content: center;
  text-align: center;
  text-wrap: balance;
}
.hero-center .h1-kw::before { display: none; }
.h1-kw::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  flex: none;
}

h1, h2, h3 { line-height: 1.12; }

.d1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.d2 {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.55rem);
  letter-spacing: -0.022em;
  margin-top: 16px;
}
.grad-text { color: var(--accent); }
:root[data-theme="light"] .grad-text { color: var(--brand); }
.money-text { color: var(--green); }
/* marker underline sweep — human touch, works on both themes */
.fire-text {
  background: linear-gradient(var(--hl-amber), var(--hl-amber)) no-repeat left 92% / 100% 0.24em;
  padding: 0 0.04em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin-top: 18px; }
.lead strong, .lead b { color: var(--text); }
/* Links in leads need a visible affordance — the global `a { color: inherit }`
   otherwise renders them as plain text, so nobody can tell they are clickable. */
.lead a { color: var(--accent); border-bottom: 1px dotted; }
:root[data-theme="light"] .lead a { color: var(--brand); }

.mono-chip {
  font-family: var(--f-mono);
  font-size: 0.76em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 7px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* handwritten annotation */
.note-hand {
  font-family: var(--f-hand);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--amber);
  transform: rotate(-3deg);
  display: inline-block;
}

/* ---- buttons (matched to the app: solid brand blue, 12px radius) -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(19, 65, 161, 0.65);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2a5fc8, #113a92);
  box-shadow: 0 12px 28px -8px rgba(19, 65, 161, 0.8);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: var(--glass-hi);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
:root[data-theme="dark"] .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---- header: floating pill nav ----------------------------------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  padding: 0 16px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 18px;
  border-radius: 18px;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px -12px var(--shadow-1);
  transition: border-color 0.25s ease, background 0.3s ease;
}
.site-header.is-stuck .nav-pill { border-color: var(--line-2); }

.brand { display: flex; align-items: center; margin-right: 8px; flex-shrink: 0; }
.logo-img { height: 27px; width: auto; }
/* <picture> is a purely semantic wrapper for the avif/webp sources — it must never
   become a box of its own, or it would sit between a flex/grid parent and its <img> */
picture { display: contents; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.nav-links a svg.caret { width: 11px; height: 11px; opacity: 0.7; transition: transform 0.2s ease; }
.nav-drop:hover a svg.caret, .nav-drop:focus-within a svg.caret { transform: rotate(180deg); }

/* features dropdown */
.drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -12px;
  width: 480px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 28px 70px -18px var(--shadow-1);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: none; }
.drop-panel::before {
  /* hover bridge so the panel doesn't close crossing the gap */
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.drop-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
}
.drop-panel a .di {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
:root[data-theme="light"] .drop-panel a .di { color: var(--brand); }
.drop-panel a .di svg { width: 17px; height: 17px; }
.drop-panel a:hover .di { background: var(--brand); color: #fff; }
.drop-panel a .dt { display: flex; flex-direction: column; gap: 1px; }
.drop-panel a b { font-size: 0.88rem; font-weight: 700; }
.drop-panel a small { font-size: 0.75rem; color: var(--dim); font-weight: 500; }
.drop-panel a:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.drop-panel a:hover b { color: var(--brand); }
:root[data-theme="dark"] .drop-panel a:hover b { color: var(--accent); }
.drop-panel a.active { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.drop-panel a.active b { color: var(--brand); }
:root[data-theme="dark"] .drop-panel a.active b { color: var(--accent); }
.drop-panel a.active .di { background: var(--brand); color: #fff; }
.drop-panel .drop-all {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  border-top: 1px dashed var(--line);
  border-radius: 0 0 10px 10px;
  margin-top: 6px;
  padding-top: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: 6px; }
.nav-login {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 14px;
  color: var(--text);
  border-radius: 10px;
}
.nav-login:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
  align-content: center;
  justify-content: center;
  grid-auto-rows: 2px;
  gap: 5px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 90px 32px 40px;
  gap: 4px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a:not(.btn) {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.35rem;
  padding: 11px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:not(.btn):hover { color: var(--text); }
.nav-mobile .mob-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .mob-sub a {
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 0;
  padding: 7px 0;
  color: var(--dim);
}
.nav-mobile .mob-sub a.active { color: var(--text); }
:root[data-theme="light"] .nav-mobile .mob-sub a.active { color: var(--brand); }
:root[data-theme="dark"] .nav-mobile .mob-sub a.active { color: var(--accent); }
.nav-mobile .btn { margin-top: 26px; }

/* ---- sections ----------------------------------------------------- */

section { padding: 104px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head { margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---- glass cards --------------------------------------------------- */

.glass {
  background: linear-gradient(160deg, var(--glass-hi), var(--glass-lo));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}
.glass:hover { border-color: var(--line-2); }
:root[data-theme="light"] .glass {
  background: var(--panel);
  box-shadow: 0 6px 24px -12px rgba(21, 44, 96, 0.12);
}

.g-border {
  position: relative;
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(140deg, rgba(44, 102, 214, 0.9), rgba(77, 139, 240, 0.45), rgba(44, 102, 214, 0.1)) border-box;
  border: 1px solid transparent;
}

/* ---- hero ---------------------------------------------------------- */

.hero {
  padding: 160px 0 70px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  margin: 0;
}
.hero-copy .lead { text-align: left; margin-left: 0; }
.hero-copy .hero-ctas { justify-content: flex-start; }
.hero-copy .hero-proof { justify-content: flex-start; }
.hero-visual { position: relative; }
.hero-visual .browser {
  transform: rotate(1.2deg);
  transition: transform 0.5s ease;
}
.hero-visual:hover .browser { transform: rotate(0deg); }
.hero-visual .chip-float.a { top: -16px; left: -18px; }
.hero-visual .chip-float.b { bottom: -14px; right: -12px; }
.hero-visual .note-hand {
  position: absolute;
  top: -40px;
  right: 4%;
  z-index: 4;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--glass-hi);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 30px;
}
.hero-badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.35; } }


.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-proof {
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--dim);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 14px; height: 14px; color: var(--green); }

.float-card {
  position: absolute;
  width: 250px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  box-shadow: 0 24px 60px -20px var(--shadow-1);
  animation: floaty 7s ease-in-out infinite;
  z-index: 2;
}
.float-card b { color: var(--text); display: block; font-size: 0.8rem; margin-bottom: 2px; }
.float-card .lnk { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); word-break: break-all; }
.float-card .pill-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.float-card .pill {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 32%, transparent);
  color: var(--green);
}
.fc-1 { left: max(2vw, 12px); top: 210px; animation-delay: 0s; }
.fc-2 { right: max(2vw, 12px); top: 260px; animation-delay: 2.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg); }
}

/* ---- beams diagram ------------------------------------------------- */

.beams { margin: 84px auto 0; max-width: 980px; position: relative; }
.beams svg { width: 100%; height: auto; display: block; overflow: visible; }
.beam-path { fill: none; stroke: var(--line-2); stroke-width: 1.6; }
.beam-glow {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 34 340;
  animation: beam-run 3.2s linear infinite;
}
@keyframes beam-run { to { stroke-dashoffset: -374; } }

.node-label { font-family: var(--f-mono); font-size: 12.5px; fill: var(--muted); }
.node-label.bright { fill: var(--text); font-weight: 600; }

/* white disc behind the real logo mark so the brand blue reads in both themes */
.hub-disc { fill: #fbfcff; }
:root[data-theme="light"] .hub-disc { fill: #fff; }

/* ---- faq jump index ------------------------------------------------ */

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.faq-jump a {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.faq-jump a:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
}
:root[data-theme="light"] .faq-jump a:hover { color: var(--brand); }

/* ---- showcase (screenshot in browser frame) ------------------------ */

.showcase {
  margin: 26px auto 0;
  max-width: 1020px;
  position: relative;
  perspective: 1400px;
}
.browser {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow:
    0 30px 90px -20px var(--shadow-1),
    0 0 110px -40px var(--glow);
  transform: rotateX(7deg);
  transform-origin: center top;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.showcase:hover .browser { transform: rotateX(0deg); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--glass-hi);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0 auto;
}
.browser img { width: 100%; height: auto; }

.chip-float {
  position: absolute;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--text);
  box-shadow: 0 16px 44px -12px var(--shadow-1);
  animation: floaty 6s ease-in-out infinite;
}
.chip-float em { font-style: normal; color: var(--green); }
.chip-float.a { top: -18px; left: -26px; animation-delay: 1s; }
.chip-float.b { bottom: 60px; right: -30px; animation-delay: 2.6s; }

.showcase .note-hand {
  position: absolute;
  top: -44px;
  right: 6%;
  z-index: 4;
}

/* ---- marquee -------------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: mq 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--muted) 55%, transparent);
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after {
  content: "✦";
  -webkit-text-stroke: 0;
  color: var(--amber);
  font-size: 1rem;
}
.marquee-track span.solid { color: var(--text); -webkit-text-stroke: 0; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---- deal log (terminal — stays dark in both themes) ---------------- */

.dealog {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(140, 160, 255, 0.3);
  background: #070a14;
  box-shadow: 0 30px 80px -30px var(--shadow-1);
}
.dealog-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(140, 160, 255, 0.13);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: #5d6690;
}
.dealog-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.dealog-body {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 2.1;
  padding: 22px 24px 26px;
  color: #9aa4cb;
}
.dealog-body .t { color: #5d6690; margin-right: 14px; }
.dealog-body .ok { color: #3ddc84; }
.dealog-body .hot { color: #ffb224; }
.dealog-body .cy { color: #3fd8ff; }
.dealog-body .row { display: block; opacity: 0; transform: translateY(6px); }
.dealog.play .row { animation: logrow 0.45s ease forwards; }
.dealog.play .row:nth-child(1) { animation-delay: 0.1s; }
.dealog.play .row:nth-child(2) { animation-delay: 0.7s; }
.dealog.play .row:nth-child(3) { animation-delay: 1.3s; }
.dealog.play .row:nth-child(4) { animation-delay: 1.9s; }
.dealog.play .row:nth-child(5) { animation-delay: 2.5s; }
.dealog.play .row:nth-child(6) { animation-delay: 3.1s; }
.dealog.play .row:nth-child(7) { animation-delay: 3.9s; }
@keyframes logrow { to { opacity: 1; transform: none; } }

/* ---- steps ----------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps.four { grid-template-columns: minmax(0, 1fr); } }
.steps::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), var(--line-2), transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; padding: 30px 26px; text-align: left; }
.step .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(19, 65, 161, 0.6);
  margin-bottom: 20px;
}
.step h3 { font-family: var(--f-body); font-weight: 800; font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---- split feature rows ---------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.rev > .split-copy { order: 2; }
.split.rev > .split-media { order: 1; }
.split-copy .lead { margin-top: 14px; }
.split-copy ul.ticks { margin-top: 22px; }
ul.ticks li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.97rem;
}
ul.ticks li b { color: var(--text); }
ul.ticks svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; transform: translateY(2px); }
.split-copy .btn { margin-top: 26px; }

.split-media { position: relative; }
.split-media .browser { transform: none; }
.split-media::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  background: radial-gradient(60% 60% at 50% 50%, var(--glow), transparent 70%);
  z-index: -1;
  opacity: 0.7;
}
.split-media.green::before {
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--green) 25%, transparent), transparent 70%);
}

/* ---- phone mock (stays dark in both themes) --------------------------- */

.phone {
  width: 320px;
  margin: 0 auto;
  border-radius: 42px;
  border: 1px solid rgba(140, 160, 255, 0.3);
  background: #070a14;
  padding: 12px;
  box-shadow: 0 40px 100px -30px var(--shadow-1);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #05070f;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1020, #0a0f1e);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 34px 16px 12px;
  background: rgba(42, 171, 238, 0.08);
  border-bottom: 1px solid rgba(140, 160, 255, 0.13);
}
.tg-ava {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-btn);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.tg-head b { font-size: 0.86rem; display: block; line-height: 1.25; color: #eef1ff; }
.tg-head small { color: #5d6690; font-size: 0.7rem; }
.tg-body { flex: 1; padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.tg-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #9aa4cb;
}
.tg-msg.in {
  background: rgba(140, 160, 255, 0.08);
  border: 1px solid rgba(140, 160, 255, 0.13);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.tg-msg.out {
  background: rgba(42, 171, 238, 0.14);
  border: 1px solid rgba(42, 171, 238, 0.35);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.tg-msg .who { display: block; font-weight: 800; font-size: 0.68rem; margin-bottom: 3px; }
.tg-msg.in .who { color: #ffb224; }
.tg-msg.out .who { color: #3fd8ff; }
.tg-msg .lnk { font-family: var(--f-mono); font-size: 0.68rem; color: #3fd8ff; word-break: break-all; }
.tg-msg .old { font-family: var(--f-mono); font-size: 0.68rem; color: #5d6690; text-decoration: line-through; word-break: break-all; }
.tg-sys {
  align-self: center;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: #5d6690;
  border: 1px dashed rgba(140, 160, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---- feature tiles ----------------------------------------------------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  padding: 30px 26px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: block;
}
.tile:hover { transform: translateY(-4px); }
:root[data-theme="light"] .tile:hover { box-shadow: 0 16px 36px -14px rgba(21, 44, 96, 0.22); }
.tile::after {
  content: "→";
  position: absolute;
  top: 24px; right: 24px;
  color: var(--dim);
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.tile:hover::after { color: var(--brand); transform: translateX(3px); }
.tile .t-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--accent);
}
:root[data-theme="light"] .tile .t-icon { color: var(--brand); }
.tile .t-icon svg { width: 22px; height: 22px; }
.tile h3 { font-family: var(--f-body); font-weight: 800; font-size: 1.02rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.9rem; }
.tile .mono-chip { margin-top: 14px; display: inline-block; }

/* ---- stats ---------------------------------------------------------------- */

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat-card { padding: 40px 20px 34px; }
.stat-card b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  display: block;
  white-space: nowrap;
  color: var(--accent);
}
:root[data-theme="light"] .stat-card b { color: var(--brand); }
.stat-card > span { color: var(--muted); font-size: 0.88rem; display: block; margin-top: 10px; }
.stat-card b span { font: inherit; color: inherit; display: inline; margin: 0; }

/* ---- network chips ---------------------------------------------------------- */

.net-wall { display: flex; flex-wrap: wrap; gap: 13px; }
.net-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.net-chip:hover { transform: translateY(-3px); border-color: var(--line-2); }
.net-chip i { width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 12px currentColor; }

/* ---- pricing ------------------------------------------------------------------ */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan .p-name {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan .p-price { font-family: var(--f-display); font-weight: 700; font-size: 2.5rem; margin: 14px 0 4px; }
.plan .p-price sup { font-size: 1.1rem; font-weight: 600; margin-right: 3px; color: var(--muted); }
.plan .p-price small { font-family: var(--f-body); font-size: 0.85rem; font-weight: 600; color: var(--dim); }
.plan .p-for { color: var(--dim); font-size: 0.82rem; margin-bottom: 20px; }
.plan ul { border-top: 1px dashed var(--line-2); padding-top: 18px; flex: 1; }
.plan li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--muted);
}
.plan li b { color: var(--text); }
.plan li svg { width: 13px; height: 13px; flex-shrink: 0; transform: translateY(1.5px); }
.plan li.yes svg { color: var(--green); }
.plan li.no { color: var(--dim); }
.plan li.no span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--dim) 55%, transparent); }
.plan li.no svg { color: color-mix(in srgb, var(--dim) 50%, transparent); }
.plan .btn { margin-top: 24px; width: 100%; }

.plan.popular { box-shadow: 0 20px 60px -24px rgba(32, 101, 209, 0.55); }
.plan .pop-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.addon-strip { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.addon-strip .addon {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
}
.addon .plus { font-family: var(--f-display); font-size: 1.3rem; color: var(--amber); }
.addon b { display: block; font-size: 0.95rem; }
.addon small { color: var(--dim); font-size: 0.8rem; }
.addon .a-price {
  margin-left: auto;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.addon .a-price small { font-weight: 500; }

.disclaim { margin-top: 24px; font-size: 0.82rem; color: var(--red); }
.pricing-meta { font-size: 0.82rem; color: var(--dim); margin-top: 8px; }
.pricing-meta a { color: var(--accent); }

/* ---- faq ------------------------------------------------------------------------ */

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--glass-hi), var(--glass-lo));
  margin-bottom: 12px;
  overflow: hidden;
}
:root[data-theme="light"] .faq-item { background: var(--panel); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 700;
  font-size: 0.99rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .qn { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); flex-shrink: 0; }
.faq-item summary .tgl {
  margin-left: auto;
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  color: var(--muted);
}
.faq-item summary .tgl svg { width: 12px; height: 12px; }
.faq-item[open] summary .tgl {
  transform: rotate(45deg);
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}
.faq-item .ans { padding: 0 22px 20px 60px; color: var(--muted); font-size: 0.93rem; }
.faq-item .ans a { color: var(--accent); border-bottom: 1px dotted; }

/* ---- big cta (stays dark in both themes — contrast block) ------------------------ */

.mega-cta {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #070b18;
}
.mega-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 380px at 50% 115%, rgba(32, 101, 209, 0.4), transparent 65%);
  pointer-events: none;
}
.mega-cta h2 {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(2rem, 5.6vw, 4rem);
  line-height: 1.08;
  position: relative;
  color: #eef1ff;
}
.mega-cta p { color: #9aa4cb; font-size: 1.1rem; margin-top: 20px; position: relative; }
.mega-cta .hero-ctas { position: relative; }
.mega-cta .btn-ghost { border-color: rgba(140, 160, 255, 0.3); color: #eef1ff; background: rgba(140, 160, 255, 0.05); }
.mega-cta .btn-ghost:hover { border-color: #7db1ff; color: #7db1ff; }
.mega-cta .hint { margin-top: 20px; font-size: 0.86rem; color: #5d6690; position: relative; }
.mega-cta .hint a { color: #7db1ff; border-bottom: 1px dotted; }
.mega-cta .fire-text { background: linear-gradient(104deg, transparent 2%, rgba(255, 178, 36, 0.28) 8%, rgba(255, 178, 36, 0.28) 94%, transparent 98%); }

/* ---- footer -------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  position: relative;
  z-index: 1;
}
.footer-brand .logo-img { height: 30px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); margin-top: 16px; max-width: 280px; }
.footer-brand .made { margin-top: 18px; font-size: 0.8rem; color: var(--dim); }
.footer-col h3 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--brand); }
:root[data-theme="dark"] .footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 56px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--dim);
  position: relative;
  z-index: 1;
}
.footer-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 12rem);
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--mark-line);
  user-select: none;
  pointer-events: none;
  margin-top: 40px;
  transform: translateY(18%);
}

/* ---- subpage hero ---------------------------------------------------------------- */

.page-hero { padding: 180px 0 40px; }
.crumbs {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--dim);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--dim); }
/* Headline and lead both run the full container width and stack, so the hero
   fills the row instead of capping short and leaving the right side empty. */
.page-hero h1 { max-width: none; }
.page-hero .lead { max-width: none; }
.page-hero .hero-ctas { justify-content: flex-start; }

.prose {
  /* one source of truth for the timeline rail: the rail, its fill, the fill head
     and every section dot are all centred on --rail-x, so they cannot drift apart */
  --rail-x: 11px;   /* rail centre, measured from the .prose left edge */
  --rail-w: 2px;
  --rail-pad: 42px; /* text inset; the dots hang back across it */
  --rail-dot: 12px;
  max-width: 720px;
  min-width: 0;
  color: var(--muted);
  position: relative;
  padding-left: var(--rail-pad);
}
.prose::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(var(--rail-x) - var(--rail-w) / 2);
  top: 8px; bottom: 8px;
  width: var(--rail-w);
  background: var(--line);
  border-radius: var(--rail-w);
}
.prose .rail-fill {
  position: absolute;
  z-index: 1;
  left: calc(var(--rail-x) - var(--rail-w) / 2);
  top: 8px;
  width: var(--rail-w);
  height: 0;
  background: linear-gradient(180deg, var(--brand), var(--green));
  border-radius: 2px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 55%, transparent);
  pointer-events: none;
}
.prose .rail-fill::after {
  content: "";
  position: absolute;
  left: calc(var(--rail-w) / 2);
  bottom: calc(var(--rail-dot) / -2);
  transform: translateX(-50%);
  width: var(--rail-dot); height: var(--rail-dot);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.prose h2 { position: relative; }
.prose h2::before {
  content: "";
  position: absolute;
  z-index: 2;
  /* the h2 box starts after the text inset, so step back across it to the rail */
  left: calc(var(--rail-x) - var(--rail-pad) - var(--rail-dot) / 2);
  top: 0.38em;
  width: var(--rail-dot); height: var(--rail-dot);
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--bg);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.prose h2.lit::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 70%, transparent);
}

/* "On this page" mini-map (built by JS inside the sticky aside) */
.toc {
  margin-bottom: 14px;
  padding: 18px 20px 14px;
  border-radius: var(--r-md);
}
.toc h4 {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 10px;
}
.toc a {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dim);
  padding: 4px 0 4px 14px;
  line-height: 1.4;
  border-left: 2px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc a:hover { color: var(--text); }
.toc a.now { color: var(--brand); border-left-color: var(--brand); }
:root[data-theme="dark"] .toc a.now { color: var(--accent); border-left-color: var(--accent); }
.aside-card .toc {
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px dashed var(--line-2);
  border-radius: 0;
}

.prose h2 {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  margin: 44px 0 14px;
}
.prose h3 {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  margin: 30px 0 10px;
}
.prose p { margin: 14px 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); border-bottom: 1px dotted; }
:root[data-theme="light"] .prose a { color: var(--brand); }
.prose ul { margin: 14px 0; padding-left: 4px; }
.prose ul li { padding: 5px 0 5px 26px; position: relative; }
.prose ul li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); }
.prose code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  padding: 2px 7px;
  border-radius: 6px;
}
:root[data-theme="light"] .prose code { color: var(--brand); }

/* ---- legal pages: ordered lists, tables, summary card ------------------ */

.prose ol { margin: 14px 0; padding-left: 4px; counter-reset: li; list-style: none; }
.prose ol > li { padding: 5px 0 5px 30px; position: relative; counter-increment: li; }
.prose ol > li::before {
  content: counter(li);
  position: absolute; left: 0; top: 5px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
}
.prose .tbl-wrap { overflow-x: auto; max-width: 100%; margin: 20px 0; border-radius: 14px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 520px; }
.prose table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
  padding: 12px 16px;
  background: var(--glass-hi);
  border-bottom: 1px solid var(--line);
}
.prose table td {
  padding: 13px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.prose table tr:last-child td { border-bottom: 0; }
.prose table td:first-child { color: var(--text); font-weight: 700; }

.legal-note {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--glass-hi);
}
.legal-note p:first-child { margin-top: 0; }
.legal-note p:last-child { margin-bottom: 0; }
.legal-note.warn { border-color: color-mix(in srgb, var(--hl-amber) 55%, var(--line-2)); }
.legal-meta {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-top: 18px;
}
.aside-card .doc-links { margin-top: 18px; display: grid; gap: 2px; }
.aside-card .doc-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: block;
}
.aside-card .doc-links a:hover { color: var(--accent); }

.page-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
  align-items: start;
}
.aside-card { position: sticky; top: 110px; padding: 28px 26px; }
.aside-card h3 { font-family: var(--f-body); font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: 0.88rem; }
.aside-card .btn { width: 100%; margin-top: 18px; }
.aside-card .alt { text-align: center; margin-top: 12px; font-size: 0.8rem; color: var(--dim); }

/* Links sitting inside --dim body text. WCAG 1.4.1 wants 3:1 between link and surrounding
   text when colour is the only cue; against --dim it is ~1.2:1, so give them the same
   dotted underline the prose links use and the colour stops carrying the meaning alone. */
.aside-card .alt a,
.inc-note a,
.demo-note a,
.tour-more a,
.rules-more a,
.pricing-meta a,
.price-foot p a,
.legal-meta a {
  color: var(--accent);
  border-bottom: 1px dotted;
}
:root[data-theme="light"] .aside-card .alt a,
:root[data-theme="light"] .inc-note a,
:root[data-theme="light"] .demo-note a,
:root[data-theme="light"] .tour-more a,
:root[data-theme="light"] .rules-more a,
:root[data-theme="light"] .pricing-meta a,
:root[data-theme="light"] .price-foot p a,
:root[data-theme="light"] .legal-meta a { color: var(--brand); }

/* ---- proof / testimonials (draft lives in _drafts/trust-section.html) ---------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.proof-card { padding: 28px; border-radius: var(--r-lg); margin: 0; }
.proof-card blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}
.proof-card blockquote::before { content: "\201C"; color: var(--accent); font-size: 1.4em; line-height: 0; }
.proof-card figcaption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.proof-card figcaption b { font-size: 0.92rem; color: var(--text); }
.proof-card figcaption span { font-family: var(--f-mono); font-size: 0.76rem; color: var(--dim); }
.proof-note {
  margin-top: 34px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* author attribution under long-form prose — the E-E-A-T signal, made visible */
.byline {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}
.byline b { color: var(--text); font-weight: 600; }
.aside-card .alt a { color: var(--accent); }

/* ---- extension screenshot cards ---------------------------------------- */

.ext-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.ext-shots.one { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
.ext-shots .shot {
  margin: 0;
  padding: 14px 14px 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass-hi);
  box-shadow: 0 30px 60px -30px var(--shadow-1);
}
.ext-shots .shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.ext-shots .shot figcaption {
  padding: 14px 4px 16px;
  font-size: 0.82rem;
  color: var(--dim);
  text-align: center;
}
@media (max-width: 640px) {
  .ext-shots { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
}

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a.rel {
  padding: 20px 22px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.related a.rel:hover { transform: translateY(-3px); }
.related a.rel small {
  color: var(--dim);
  font-weight: 500;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- demo terminal (stays dark in both themes) ------------------------------------ */

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.demo-pane {
  border-radius: var(--r-md);
  border: 1px solid rgba(140, 160, 255, 0.3);
  background: #070a14;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
}
.demo-pane-head {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5d6690;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(140, 160, 255, 0.13);
  display: flex;
  align-items: center;
  gap: 9px;
}
.demo-pane-head .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-in { background: #ffb224; box-shadow: 0 0 8px #ffb224; }
.dot-out { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.demo-pane textarea {
  flex: 1;
  background: transparent;
  border: 0;
  resize: none;
  color: #eef1ff;
  font-family: var(--f-mono);
  font-size: 0.83rem;
  line-height: 1.75;
  padding: 16px;
  outline: none;
}
.demo-output {
  flex: 1;
  padding: 16px;
  font-family: var(--f-mono);
  font-size: 0.83rem;
  line-height: 1.75;
  color: #eef1ff;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}
.demo-output .placeholder { color: #5d6690; font-style: italic; }
.demo-output .lnk { color: #3fd8ff; font-weight: 600; }
.demo-output .badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(140, 160, 255, 0.3);
}
.demo-output .share-badge {
  font-size: 0.66rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.35);
  color: #3ddc84;
  opacity: 0;
  animation: logrow 0.4s ease forwards;
}
.demo-output .share-badge:nth-child(2) { animation-delay: 0.15s; }
.demo-output .share-badge:nth-child(3) { animation-delay: 0.3s; }
.demo-output .share-badge:nth-child(4) { animation-delay: 0.45s; }
.demo-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.demo-note { font-size: 0.82rem; color: var(--dim); }
.demo-note a { color: var(--accent); border-bottom: 1px dotted; }
#demo-convert.working { opacity: 0.7; pointer-events: none; }

/* ---- reveal ------------------------------------------------------------------------ */

.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee-track, .float-card, .chip-float, .beam-glow { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- responsive --------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .float-card { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy h1 { font-size: clamp(2rem, 6vw, 2.9rem); }
  .hero-visual { margin-top: 4px; }
  .hero-visual .chip-float.a { left: 6px; top: -14px; }
  .hero-visual .chip-float.b { right: 6px; bottom: -12px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > .split-copy { order: 1; }
  .split.rev > .split-media { order: 2; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-cols { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .aside-card .toc { display: none; }
  .related { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; margin-left: 8px; }
  .theme-toggle { margin-left: auto; }
  .nav-pill { padding: 8px 10px 8px 16px; }
  .logo-img { height: 22px; }
  section { padding: 72px 0; }
  .hero { padding: 128px 0 40px; }
  .page-hero { padding: 128px 0 30px; }
  .hero-visual .note-hand { display: none; }
  .hero-visual .browser { transform: none; }
  .chip-float { font-size: 0.62rem; padding: 7px 10px; }
  .beams { margin-top: 56px; }
  .dealog-body { font-size: 0.72rem; padding: 16px 14px 20px; }
  .prose { --rail-x: 6px; --rail-pad: 30px; --rail-dot: 10px; }
  .browser-url { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 1.2rem; }
  .showcase .note-hand { display: none; }
  .footer-mark { font-size: clamp(2.4rem, 13vw, 12rem); margin-top: 28px; }
  .nav-mobile { padding: 84px 22px 32px; }
}

@media (max-width: 560px) {
  .hero-badge {
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    gap: 7px;
    margin-bottom: 22px;
    white-space: nowrap;
  }
  .hero-badge i { width: 6px; height: 6px; }
  .wrap { padding: 0 18px; }
  .beams { display: none; }
  .chip-float { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mega-cta h2 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .btn { font-size: 0.93rem; padding-left: 18px; padding-right: 18px; }
  .faq-item summary { font-size: 0.97rem; }
}

/* ---- homepage (rebuilt): stacked hero, real-screen tour, slim pricing ---- */
.hero-solo { position: relative; }
.hero-solo h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 1040px;
}
.hero-solo .lead { max-width: 780px; font-size: 1.13rem; }
.hero-solo .hero-visual { margin-top: 60px; }
.hero-solo .hero-visual .browser { transform: rotate(-0.4deg); }
.hero-solo .hero-visual:hover .browser { transform: none; }

.tour { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; }
.tour-card { display: block; text-decoration: none; color: inherit; }
.tour-card .browser {
  transform: none;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.tour-card:hover .browser {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2));
}
.tour-cap { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 0 4px; }
.tour-cap b { color: var(--text); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.tour-cap small { color: var(--dim); font-size: 0.87rem; line-height: 1.5; }
.tour-cap .go { margin-left: auto; color: var(--accent); font-weight: 700; transition: transform 0.25s ease; }
.tour-card:hover .go { transform: translateX(4px); }
.tour-more { margin-top: 34px; color: var(--dim); font-size: 0.92rem; line-height: 2; }
.tour-more a { color: var(--cyan); text-decoration: none; }
.tour-more a:hover { text-decoration: underline; }

.price-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--panel);
}
.price-cell {
  display: block;
  text-decoration: none;
  padding: 28px 26px 26px;
  border-left: 1px solid var(--line-2);
  position: relative;
  transition: background 0.3s ease;
}
.price-cell:first-child { border-left: 0; }
.price-cell:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.price-cell .pb-name {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.price-cell .pb-price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--text);
  margin-top: 10px;
}
.price-cell .pb-price sup { font-size: 0.85rem; margin-right: 2px; }
.price-cell .pb-price small { font-size: 0.78rem; color: var(--dim); font-weight: 400; font-family: var(--f-body); }
.price-cell p { margin-top: 8px; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.price-cell.hot { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.price-cell.hot::after {
  content: "MOST POPULAR";
  position: absolute;
  top: 13px;
  right: 14px;
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--green);
}
.price-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.price-foot p { color: var(--dim); font-size: 0.9rem; max-width: 640px; }

@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .price-band { grid-template-columns: 1fr 1fr; }
  .price-cell { border-left: 0; border-top: 1px solid var(--line-2); }
  .price-cell:nth-child(even) { border-left: 1px solid var(--line-2); }
  .price-cell:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 480px) {
  .price-band { grid-template-columns: 1fr; }
  .price-cell { border-left: 0; border-top: 1px solid var(--line-2); }
  .price-cell:nth-child(even) { border-left: 0; }
  .price-cell:first-child { border-top: 0; }
  .hero-solo .hero-visual { margin-top: 40px; }
}

/* home: demo-in-hero, compatibility line, trust rules */
.hero-demo { margin-top: 56px; }
.hero-demo .hd-label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 14px;
}
.compat-out { margin-top: 26px; color: var(--muted); font-size: 0.95rem; line-height: 1.75; max-width: 780px; }
.compat-out b { color: var(--text); font-weight: 700; }
.compat-out a { color: var(--cyan); text-decoration: none; }
.compat-out a:hover { text-decoration: underline; }

.rules {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin: 0;
  padding: 0;
  counter-reset: rule;
}
.rules li {
  counter-increment: rule;
  padding: 6px 0 2px 22px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 38%, var(--line-2));
}
.rules li::before {
  content: "0" counter(rule);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  display: block;
  margin-bottom: 10px;
}
.rules li b { display: block; color: var(--text); font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.rules li p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
.rules-more { margin-top: 32px; color: var(--dim); font-size: 0.9rem; }
.rules-more a { color: var(--cyan); text-decoration: none; }
.rules-more a:hover { text-decoration: underline; }

.tour-card.wide { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .rules { grid-template-columns: 1fr; gap: 28px; }
  .hero-demo { margin-top: 40px; }
}

/* demo output: unmissable demo-only flag */
.demo-output .demo-flag {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--amber);
}

/* home proof strip under hero */
.strip-kicker {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--dim);
  margin-bottom: 18px;
}

/* home hero: centered, market-standard composition */
.hero-center { text-align: center; }
.hero-center h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  letter-spacing: -0.028em;
  max-width: 920px;
  margin: 0 auto;
}
.hero-center .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-center .hero-ctas { justify-content: center; }
.hero-center .hero-proof { justify-content: center; }
.hero-center .hero-visual { margin-top: 64px; text-align: left; }
#networks .strip-kicker { text-align: center; }
#networks .net-wall { justify-content: center; }

/* home: included checklist grid */
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; max-width: 980px; }
.inc-note { margin-top: 26px; color: var(--dim); font-size: 0.9rem; max-width: 760px; }

/* ---- plain-language explainer (homepage #basics) ------------------------------------ */
.basics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.basic { padding: 26px 28px; border-radius: var(--r-lg); }
.basic h3 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.basic p { font-size: 0.95rem; line-height: 1.75; color: var(--muted); }
.basics-note {
  margin-top: 26px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.basics-note h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 14px;
}
.basics-note p { font-size: 0.97rem; line-height: 1.8; color: var(--muted); max-width: 900px; }
.basics-note p + p { margin-top: 16px; }
/* the global reset makes links inherit colour with no underline, so prose blocks have to
   re-assert them or they become invisible inside body copy (WCAG 1.4.1) */
.basic a, .basics-note a { color: var(--accent); border-bottom: 1px dotted; }
:root[data-theme="light"] .basic a,
:root[data-theme="light"] .basics-note a { color: var(--brand); }
@media (max-width: 820px) {
  .basics-grid { grid-template-columns: 1fr; gap: 14px; }
  .basic { padding: 22px 22px; }
  .basics-note { padding: 24px 22px; }
}
.inc-note a { color: var(--cyan); text-decoration: none; }
.inc-note a:hover { text-decoration: underline; }
@media (max-width: 820px) { .inc-grid { grid-template-columns: 1fr; gap: 10px; } }

/* flow diagrams — /link-converter, /telegram-forwarder
   Wide by design: the five steps only read as a sequence side by side, so the
   figure scrolls inside itself on narrow screens rather than stacking. */
.flowdiag {
  margin: 34px 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.flowdiag svg { display: block; min-width: 660px; width: 100%; height: auto; }
.flowdiag figcaption {
  margin-top: 12px;
  color: var(--dim);
  font-size: 0.88rem;
  max-width: 760px;
}
.flow-box { fill: var(--panel); stroke: var(--line-2); stroke-width: 1; }
.flow-box-hi { fill: var(--panel-2); stroke: var(--green); stroke-width: 1.4; }
.flow-title { fill: var(--text); font-weight: 600; font-size: 13.5px; }
.flow-sub { fill: var(--muted); font-size: 11px; }
.flow-step { fill: var(--accent); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; }
.flow-step-hi { fill: var(--green); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; }
.flow-arrow { stroke: var(--line-2); stroke-width: 1.6; fill: none; }
.flow-arrow-head { fill: var(--line-2); }
