/* ============================================================
   RAYZ — Changemaker Support Guide
   Design tokens from the Rayz App Brand Kit
   rayzappbrandguidelines.netlify.app
   ============================================================ */
:root {
  /* Brand */
  --rz-teal-600: #0a7d8c;
  --rz-teal-500: #0e96a8;
  --rz-teal-400: #16b3c4;
  --rz-cyan: #12a8bf;
  --rz-navy-900: #0b2730;
  --rz-navy-800: #0f3039;
  --rz-navy-700: #143b46;
  --rz-logo-navy: #242a33;
  --rz-logo-cyan: #0097b2;

  /* Semantic */
  --rz-mint: #dff3ee;      /* recurring giving */
  --rz-mint-ink: #0a8f7a;
  --rz-lilac: #e8e7fb;     /* one-off giving */
  --rz-lilac-ink: #5b54c9;
  --rz-live: #e8344e;      /* LIVE only */

  /* Neutrals */
  --rz-ink: #0b1620;
  --rz-ink-2: #1f2a33;
  --rz-text-mid: #5b6b75;
  --rz-text-faint: #94a3ab;
  --rz-line: #e6eced;
  --rz-line-strong: #d2dcde;
  --rz-bg: #fefefe;
  --rz-white: #ffffff;

  /* Gradients */
  --rz-grad-cta: linear-gradient(100deg,#16b3c4,#0a3742);
  --rz-grad-navy: linear-gradient(155deg,#143b46,#0b2730);

  /* Type */
  --font-head: "Satoshi", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: "DM Sans", "Inter", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Build conventions */
  --radius: 4px;
  --sidebar-w: 250px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font-body);
  color: var(--rz-ink-2);
  background: var(--rz-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rz-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--rz-ink); letter-spacing: -0.5px; line-height: 1.2; }
h1 { font-size: clamp(2.7rem, 6.5vw, 4.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: 1.12rem; font-weight: 700; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---------- Mono labels ---------- */
.tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rz-teal-600);
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,254,254,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rz-line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 14px;
}
.wordmark {
  font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
  letter-spacing: -0.5px; color: var(--rz-logo-navy); text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--rz-logo-cyan); }
.topbar .doc-title {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rz-text-faint);
  border-left: 1px solid var(--rz-line-strong); padding-left: 14px;
}
.topbar .spacer { flex: 1; }
.topbar .support-link { font-size: .8rem; color: var(--rz-text-mid); }
@media (max-width: 640px) { .topbar .support-link { display: none; } }

/* ---------- Layout: sidebar + article ---------- */
.shell {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 56px;
}
.sidebar { padding: 40px 0 80px; }
.sidebar-sticky { position: sticky; top: 88px; }
.sidebar .tag { display: block; margin-bottom: 14px; color: var(--rz-text-faint); }
.toc { list-style: none; border-left: 1px solid var(--rz-line); }
.toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: .84rem; color: var(--rz-text-mid); text-decoration: none;
}
.toc a:hover { color: var(--rz-ink); text-decoration: none; }
.toc a.active { color: var(--rz-teal-600); border-left-color: var(--rz-teal-400); font-weight: 600; }
.toc .n { font-family: var(--font-mono); font-size: .68rem; color: var(--rz-text-faint); }
.toc a.active .n { color: var(--rz-teal-500); }

.article { padding: 40px 0 90px; max-width: 720px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; gap: 0; }
  .sidebar { padding: 28px 0 4px; }
  .sidebar-sticky { position: static; }
  .toc { border-left: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .toc a { border-left: 0; padding: 3px 0; }
}

/* ---------- Intro ---------- */
.intro { padding-bottom: 8px; }
.intro .tag { display: block; margin-bottom: 10px; }
.intro .standfirst { margin-top: 20px; font-size: 1.2rem; color: var(--rz-text-mid); }
.essentials {
  margin-top: 28px;
  border: 1px solid var(--rz-line); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
@media (max-width: 560px) { .essentials { grid-template-columns: 1fr; } }
.essentials div { padding: 16px 18px; border-left: 1px solid var(--rz-line); }
.essentials div:first-child { border-left: 0; }
@media (max-width: 560px) { .essentials div { border-left: 0; border-top: 1px solid var(--rz-line); } .essentials div:first-child { border-top: 0; } }
.essentials strong { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.35rem; color: var(--rz-ink); display: block; }
.essentials span { font-size: .8rem; color: var(--rz-text-mid); }
.essentials div:nth-child(1) { background: rgba(22,179,196,.08); }
.essentials div:nth-child(1) strong { color: var(--rz-teal-600); }
.essentials div:nth-child(2) { background: var(--rz-mint); }
.essentials div:nth-child(2) strong { color: var(--rz-mint-ink); }
.essentials div:nth-child(3) { background: var(--rz-lilac); }
.essentials div:nth-child(3) strong { color: var(--rz-lilac-ink); }

/* ---------- Sections ---------- */
.section { margin-top: 64px; border-top: 1px solid var(--rz-line); padding-top: 40px; }
.section-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-eyebrow .n { font-family: var(--font-mono); font-size: .75rem; color: var(--rz-text-faint); }
.section-eyebrow .tag {
  background: var(--acc-bg, rgba(22,179,196,.12));
  color: var(--acc-ink, var(--rz-teal-600));
  padding: 4px 10px; border-radius: var(--radius);
}
.section h2::after {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 2px;
  background: var(--acc-solid, var(--rz-teal-400)); margin-top: 16px;
}
.section .lead { font-size: 1.08rem; }
.sub { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 900; letter-spacing: -0.02em; }

/* Per-section accent palettes (complementary, from the brand kit) */
.acc-teal  { --acc-bg: rgba(22,179,196,.12); --acc-ink: var(--rz-teal-600); --acc-solid: var(--rz-teal-400); }
.acc-navy  { --acc-bg: rgba(20,59,70,.09);   --acc-ink: var(--rz-navy-700); --acc-solid: var(--rz-navy-700); }
.acc-mint  { --acc-bg: var(--rz-mint);       --acc-ink: var(--rz-mint-ink); --acc-solid: var(--rz-mint-ink); }
.acc-lilac { --acc-bg: var(--rz-lilac);      --acc-ink: var(--rz-lilac-ink); --acc-solid: var(--rz-lilac-ink); }
.acc-cyan  { --acc-bg: rgba(18,168,191,.1);  --acc-ink: var(--rz-cyan);     --acc-solid: var(--rz-cyan); }
.section .lead { margin-top: 12px; color: var(--rz-text-mid); }
.section p + p { margin-top: 1em; }
.sub { margin-top: 34px; margin-bottom: 12px; }

/* ---------- Steps (the loop) ---------- */
.steps { list-style: none; margin-top: 26px; }
.steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rz-line); }
.steps li:last-child { border-bottom: 1px solid var(--rz-line); }
.steps .sn {
  font-family: var(--font-num); font-weight: 700; font-size: .85rem;
  color: #fff; background: var(--rz-grad-cta);
  width: 28px; height: 28px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  margin-top: 2px;
}
.acc-mint .steps .sn { background: var(--rz-mint); color: var(--rz-mint-ink); }
.acc-lilac .steps .sn { background: var(--rz-lilac); color: var(--rz-lilac-ink); }
.steps h3 { font-size: .98rem; }
.steps p { font-size: .92rem; color: var(--rz-text-mid); }

/* ---------- Callouts ---------- */
.callout {
  margin: 26px 0; padding: 16px 18px;
  border-radius: var(--radius); font-size: .95rem;
  border: 1px solid var(--rz-line);
  background: var(--rz-white);
}
.callout .tag { display: block; margin-bottom: 6px; }
.callout.mint { background: var(--rz-mint); border-color: transparent; }
.callout.mint .tag { color: var(--rz-mint-ink); }
.callout.mint strong { color: var(--rz-mint-ink); }
.callout.lilac { background: var(--rz-lilac); border-color: transparent; }
.callout.lilac .tag { color: var(--rz-lilac-ink); }
.callout.navy { background: var(--rz-grad-navy); border: 0; color: rgba(254,254,254,.88); }
.callout.navy .tag { color: var(--rz-teal-400); }
.callout.navy strong { color: #fff; }

/* ---------- Quote ---------- */
.quote {
  margin: 30px 0; padding: 4px 0 4px 18px;
  border-left: 2px solid var(--rz-teal-400);
}
.quote p { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.3px; color: var(--rz-ink); line-height: 1.45; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rz-text-faint); }

/* ---------- Two-column compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } }
.compare-col { border: 1px solid var(--rz-line); border-radius: var(--radius); padding: 18px 20px; }
.compare-col.yes { border-color: rgba(22,179,196,.4); background: rgba(22,179,196,.05); }
.compare-col .tag { display: block; margin-bottom: 10px; }
.compare-col.no .tag { color: var(--rz-text-faint); }
.compare-col ul { list-style: none; }
.compare-col li { padding: 6px 0 6px 22px; position: relative; font-size: .88rem; color: var(--rz-text-mid); }
.compare-col.no li::before { content: "✕"; position: absolute; left: 0; color: var(--rz-text-faint); font-size: .8rem; }
.compare-col.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--rz-teal-600); font-weight: 700; font-size: .8rem; }

/* ---------- Reference table ---------- */
.ref-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: .9rem; }
.ref-table th {
  text-align: left; font-family: var(--font-mono); font-weight: 400;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rz-text-faint); padding: 0 14px 8px 0;
  border-bottom: 1px solid var(--rz-line-strong);
}
.ref-table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rz-line); vertical-align: top; color: var(--rz-text-mid); }
.ref-table td:first-child { font-weight: 600; color: var(--rz-ink); white-space: nowrap; }
.ref-table .num { color: var(--rz-ink); }

/* ---------- Ideas bank ---------- */
.ideas { margin-top: 22px; }
.idea { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--rz-line); }
.idea:last-child { border-bottom: 1px solid var(--rz-line); }
.idea .tag { flex: 0 0 118px; padding: 3px 8px; border-radius: var(--radius); align-self: flex-start; }
.idea:nth-child(4n+1) .tag { background: rgba(22,179,196,.12); color: var(--rz-teal-600); }
.idea:nth-child(4n+2) .tag { background: var(--rz-mint); color: var(--rz-mint-ink); }
.idea:nth-child(4n+3) .tag { background: var(--rz-lilac); color: var(--rz-lilac-ink); }
.idea:nth-child(4n+4) .tag { background: rgba(20,59,70,.09); color: var(--rz-navy-700); }
.idea p { font-size: .92rem; color: var(--rz-text-mid); }
.idea p strong { color: var(--rz-ink); font-weight: 600; }
@media (max-width: 560px) { .idea { flex-direction: column; gap: 2px; } .idea .tag { flex: none; } }

/* ---------- Toolkit definition list ---------- */
.toolkit { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .toolkit { grid-template-columns: 1fr; } }
.tool {
  padding: 18px 20px; border: 1px solid var(--rz-line); border-radius: var(--radius);
  border-top: 3px solid var(--rz-teal-400);
}
.tool:nth-child(2) { border-top-color: var(--rz-navy-700); }
.tool:nth-child(3) { border-top-color: var(--rz-mint-ink); }
.tool:nth-child(4) { border-top-color: var(--rz-lilac-ink); }
.tool:nth-child(5) { border-top-color: var(--rz-cyan); }
.tool:last-child { border-bottom: 1px solid var(--rz-line); }
.tool h3 { display: flex; align-items: baseline; gap: 10px; }
.tool h3 .where { font-family: var(--font-mono); font-weight: 400; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rz-text-faint); }
.tool p { margin-top: 6px; font-size: .93rem; color: var(--rz-text-mid); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin-top: 24px; border: 1px solid var(--rz-line); border-radius: var(--radius); overflow: hidden; }
.checklist li { border-top: 1px solid var(--rz-line); }
.checklist li:first-child { border-top: 0; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; cursor: pointer; }
.checklist label:hover { background: rgba(22,179,196,.04); }
.checklist input {
  appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px;
  border: 1.5px solid var(--rz-line-strong); border-radius: var(--radius);
  cursor: pointer; position: relative; background: var(--rz-white);
}
.checklist input:checked { background: var(--rz-teal-500); border-color: var(--rz-teal-500); }
.checklist input:checked::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: .75rem; font-weight: 800;
}
.checklist input:checked + div { opacity: .5; }
.checklist .day { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rz-mint-ink); background: var(--rz-mint); display: inline-block; padding: 1px 7px; border-radius: var(--radius); margin-bottom: 3px; }
.checklist strong { font-size: .95rem; color: var(--rz-ink); font-family: var(--font-head); letter-spacing: -0.2px; }
.checklist span { display: block; font-size: .87rem; color: var(--rz-text-mid); }

/* ---------- Principles ---------- */
.principles-box {
  margin-top: 26px; border-radius: var(--radius);
  background: var(--rz-grad-navy); padding: 28px 28px 14px;
}
.principles-box .tag { color: var(--rz-teal-400); display: block; margin-bottom: 12px; }
.principles { list-style: none; }
.principles li {
  padding: 11px 0; border-top: 1px solid rgba(254,254,254,.12);
  font-size: .9rem; color: rgba(254,254,254,.72);
}
.principles li strong { color: #fefefe; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--rz-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 34px 16px 0;
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.2px;
  font-size: .98rem; color: var(--rz-ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--rz-teal-500); font-size: 1.2rem; font-weight: 400; transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: .92rem; color: var(--rz-text-mid); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rz-line); margin-top: 70px; padding: 30px 0 60px; }
.foot p { font-size: .84rem; color: var(--rz-text-mid); }
.foot .tag { display: block; margin-top: 4px; color: var(--rz-text-faint); }

@media print {
  .topbar, .sidebar { display: none; }
  .shell { display: block; }
  .section { margin-top: 34px; padding-top: 20px; }
}

/* ============================================================
   Sectioned-guide mode: home cards, router views, search, WhatsApp
   ============================================================ */

/* Views: sections hidden until active; home shows intro + cards */
.section { display: none; }
.section.active { display: block; margin-top: 8px; border-top: 0; padding-top: 26px; }
body.section-view .intro, body.section-view .home-cards { display: none; }

/* Home section cards */
.home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 30px; }
@media (max-width: 620px) { .home-cards { grid-template-columns: 1fr; } }
.scard {
  display: block; position: relative;
  border: 1px solid var(--rz-line); border-radius: var(--radius);
  border-top: 3px solid var(--acc-solid, var(--rz-teal-400));
  padding: 18px 20px 16px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.scard:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11,22,32,.08); }
.scard .n { font-family: var(--font-mono); font-size: .68rem; color: var(--acc-ink, var(--rz-teal-600)); }
.scard h3 { margin-top: 6px; font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; color: var(--rz-ink); }
.scard p { margin-top: 4px; font-size: .84rem; color: var(--rz-text-mid); line-height: 1.5; }
.scard .go { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--acc-ink, var(--rz-teal-600)); }

/* Search */
.searchwrap { position: relative; flex: 1; max-width: 330px; margin-left: auto; }
#guide-search {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--rz-line-strong); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .85rem; color: var(--rz-ink);
  background: var(--rz-white); outline: none;
}
#guide-search:focus { border-color: var(--rz-teal-400); box-shadow: 0 0 0 3px rgba(22,179,196,.14); }
.sresults {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--rz-white); border: 1px solid var(--rz-line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(11,22,32,.12); max-height: 340px; overflow: auto;
}
.sresult { display: block; padding: 10px 14px; border-top: 1px solid var(--rz-line); text-decoration: none; }
.sresult:first-child { border-top: 0; }
.sresult:hover { background: rgba(22,179,196,.06); text-decoration: none; }
.sresult .sr-sec { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rz-teal-600); }
.sresult .sr-snip { display: block; font-size: .82rem; color: var(--rz-text-mid); margin-top: 2px; }
.sresult .sr-snip mark { background: rgba(22,179,196,.22); color: var(--rz-ink); border-radius: 2px; padding: 0 1px; }
.sresult.none { font-size: .85rem; color: var(--rz-text-mid); }
@media (max-width: 720px) { .topbar .doc-title { display: none; } }

/* Prev / next section navigation */
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rz-line); }
.pn-btn {
  display: inline-block; padding: 10px 16px;
  border: 1px solid var(--rz-line-strong); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: -0.2px;
  color: var(--rz-ink); text-decoration: none;
}
.pn-btn:hover { border-color: var(--rz-teal-400); color: var(--rz-teal-600); text-decoration: none; }
.pn-btn.next { margin-left: auto; }

/* Ask Dylan (WhatsApp) */
.wa-box { margin-top: 34px; background: var(--rz-mint); border-radius: var(--radius); padding: 22px 24px; }
.wa-box .tag { color: var(--rz-mint-ink); display: block; margin-bottom: 6px; }
.wa-box h3 { color: var(--rz-ink); }
.wa-box p { font-size: .9rem; color: var(--rz-text-mid); margin: 6px 0 12px; }
.wa-box textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rz-line-strong);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .92rem;
  color: var(--rz-ink); background: var(--rz-white); resize: vertical; outline: none;
}
.wa-box textarea:focus { border-color: var(--rz-mint-ink); }
.wa-btn {
  margin-top: 12px; padding: 11px 20px; border: 0; border-radius: var(--radius);
  background: var(--rz-grad-cta); color: #fff; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .88rem;
}
.wa-btn:hover { opacity: .92; }

/* ============================================================
   Embed mode + high-end monochrome overrides
   (single column, no chrome, restrained palette)
   ============================================================ */

/* Single centered column, no sidebar/topbar */
.shell { display: block; max-width: 880px; }
.article { max-width: 100%; padding: 48px 0 90px; }

/* Prominent search, always visible */
.search-hero { margin-bottom: 44px; }
.search-hero .searchwrap { max-width: 100%; margin: 0; }
.search-hero #guide-search {
  padding: 16px 20px; font-size: 1.05rem;
  border: 1.5px solid var(--rz-line-strong); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(11,22,32,.03);
}
.search-hero #guide-search:focus {
  border-color: var(--rz-teal-500);
  box-shadow: 0 0 0 4px rgba(22,179,196,.1);
}

/* Unified, restrained accent system: ink structure, one teal accent */
.acc-teal, .acc-navy, .acc-mint, .acc-lilac, .acc-cyan {
  --acc-bg: rgba(11,22,32,.045);
  --acc-ink: var(--rz-text-mid);
  --acc-solid: var(--rz-teal-500);
}

/* Essentials: quiet, numeric, no tints */
.essentials div:nth-child(1),
.essentials div:nth-child(2),
.essentials div:nth-child(3) { background: transparent; }
.essentials div:nth-child(1) strong,
.essentials div:nth-child(2) strong,
.essentials div:nth-child(3) strong { color: var(--rz-ink); }
.essentials { border-color: var(--rz-line); }

/* Section cards: hairline, hover teal, no coloured tops */
.scard { border-top: 1px solid var(--rz-line); }
.scard:hover { border-color: var(--rz-teal-400); box-shadow: 0 8px 24px rgba(11,22,32,.06); }
.scard .n { color: var(--rz-text-faint); }
.scard .go { color: var(--rz-teal-600); }

/* Steps: solid navy chips */
.steps .sn { background: var(--rz-navy-900); color: #fff; }
.acc-mint .steps .sn, .acc-lilac .steps .sn { background: var(--rz-navy-900); color: #fff; }

/* Ideas: neutral mono chips */
.idea:nth-child(4n+1) .tag, .idea:nth-child(4n+2) .tag,
.idea:nth-child(4n+3) .tag, .idea:nth-child(4n+4) .tag {
  background: rgba(11,22,32,.045); color: var(--rz-text-mid);
}

/* Toolkit: hairline cards, no coloured tops */
.tool, .tool:nth-child(2), .tool:nth-child(3), .tool:nth-child(4), .tool:nth-child(5) {
  border: 1px solid var(--rz-line); border-radius: var(--radius);
}

/* Checklist: neutral day markers */
.checklist .day { background: rgba(11,22,32,.045); color: var(--rz-text-mid); }
.checklist input:checked { background: var(--rz-navy-900); border-color: var(--rz-navy-900); }
.checklist label:hover { background: rgba(11,22,32,.02); }

/* Compare: neutral positive column */
.compare-col.yes { border-color: var(--rz-line-strong); background: rgba(11,22,32,.02); }
.compare-col.yes .tag { color: var(--rz-ink); }
.compare-col.yes li::before { color: var(--rz-teal-600); }

/* Callouts: quiet */
.callout.mint { background: rgba(11,22,32,.03); border: 1px solid var(--rz-line); }
.callout.mint .tag, .callout.mint strong { color: var(--rz-ink); }
.wa-box { background: rgba(11,22,32,.03); border: 1px solid var(--rz-line); }
.wa-box .tag { color: var(--rz-text-mid); }

/* Search results: refined */
.sresult .sr-sec { color: var(--rz-teal-600); }

/* ============================================================
   Search bar redesign: gradient-border pill with icon + divider
   ============================================================ */
.search-hero { margin-bottom: 48px; }
.searchbar {
  display: flex; align-items: center; gap: 0;
  padding: 2px; border-radius: 22px;
  background: linear-gradient(100deg, #16b3c4 0%, #0e96a8 45%, #0a7d8c 100%);
  box-shadow: 0 2px 12px rgba(14,150,168,.1);
}
.searchbar > * { background: transparent; }
.searchbar::before { display: none; }
.searchbar-inner { display: contents; }
.searchbar {
  position: relative;
}
.searchbar .s-icon,
.searchbar .s-divider,
.searchbar #guide-search {
  background: var(--rz-white);
}
.searchbar .s-icon {
  width: 56px; height: 60px; padding: 17px 0 17px 26px;
  color: var(--rz-text-mid);
  border-radius: 20px 0 0 20px;
  flex: 0 0 auto;
}
.searchbar .s-divider {
  width: 1px; align-self: stretch;
  box-shadow: inset -1px 0 0 var(--rz-line-strong);
  padding-left: 18px;
}
.search-hero #guide-search,
.searchbar #guide-search {
  flex: 1; border: 0; outline: none; box-shadow: none;
  height: 60px; padding: 0 26px 0 16px;
  border-radius: 0 20px 20px 0;
  font-family: var(--font-body); font-size: 1.25rem; color: var(--rz-ink);
}
.searchbar #guide-search::placeholder { color: var(--rz-text-faint); }
.searchbar:focus-within {
  box-shadow: 0 4px 20px rgba(14,150,168,.18);
}

/* Results panel: rounded card, roomy rows */
.search-hero .sresults {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 60;
  border: 1px solid var(--rz-line); border-radius: 18px;
  box-shadow: 0 16px 44px rgba(11,22,32,.1);
  padding: 8px; max-height: 420px;
}
.search-hero .sresult { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-top: 0; border-radius: 12px; }
.search-hero .sresult:hover { background: rgba(11,22,32,.04); }
.search-hero .sresult .r-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--rz-ink); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.search-hero .sresult .r-icon svg { width: 18px; height: 18px; color: var(--rz-ink); }
.search-hero .sresult .sr-sec { font-size: .68rem; }
.search-hero .sresult .sr-snip { font-size: .95rem; margin-top: 3px; }
.search-hero .sresult .sr-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--rz-ink); letter-spacing: -0.2px; }
.search-hero .sresult .sr-sec { display: inline; font-family: var(--font-mono); color: var(--rz-text-faint); text-transform: none; letter-spacing: 0; }

/* ============================================================
   Quick-check quiz cards
   ============================================================ */
.quiz {
  margin-top: 44px; padding: 2px; border-radius: 18px;
  background: linear-gradient(100deg, #16b3c4 0%, #0e96a8 45%, #0a7d8c 100%);
}
.quiz-inner {
  background: var(--rz-white); border-radius: 16px; padding: 26px 28px;
}
.quiz-inner .tag { display: block; margin-bottom: 10px; color: var(--rz-teal-600); }
.quiz-inner h3 { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; }
.quiz-opts { margin-top: 16px; display: grid; gap: 10px; }
.quiz-opts button {
  text-align: left; padding: 13px 18px;
  border: 1.5px solid var(--rz-line-strong); border-radius: 10px;
  background: var(--rz-white); cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; color: var(--rz-ink);
  transition: border-color .12s, background .12s;
}
.quiz-opts button:hover:not(:disabled) { border-color: var(--rz-teal-400); background: rgba(22,179,196,.05); }
.quiz-opts button:disabled { cursor: default; color: var(--rz-text-mid); }
.quiz-opts button.right {
  border-color: var(--rz-teal-500); background: rgba(22,179,196,.1);
  color: var(--rz-ink); font-weight: 600;
}
.quiz-opts button.right::after { content: "  ✓"; color: var(--rz-teal-600); font-weight: 800; }
.quiz-opts button.wrong { border-color: var(--rz-line-strong); background: rgba(11,22,32,.04); }
.quiz-opts button.wrong::after { content: "  ✕"; color: var(--rz-text-faint); font-weight: 800; }
.quiz-why { margin-top: 14px; font-size: .93rem; color: var(--rz-text-mid); }
.quiz-why::before { content: ""; }

/* Quiz stepper additions */
.quiz-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.quiz-head .tag { margin-bottom: 0; }
.quiz-progress { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 600; color: var(--rz-text-faint); }
.quiz-next {
  margin-top: 16px; padding: 11px 20px; border: 0; border-radius: 10px;
  background: var(--rz-grad-cta); color: #fff; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .88rem;
}
.quiz-next:hover { opacity: .92; }
.quiz-result h3 .num { font-weight: 700; color: var(--rz-teal-600); }

/* ============================================================
   Search: small utility, top right
   ============================================================ */
.search-hero { margin-bottom: 18px; display: flex; justify-content: flex-end; }
.search-hero .searchwrap { max-width: 260px; flex: 1; }
.searchbar {
  padding: 0; border-radius: 10px; background: var(--rz-white);
  border: 1px solid var(--rz-line-strong); box-shadow: none;
}
.searchbar .s-icon { width: 34px; height: 38px; padding: 10px 0 10px 12px; border-radius: 10px 0 0 10px; color: var(--rz-text-faint); }
.searchbar .s-divider { display: none; }
.search-hero #guide-search, .searchbar #guide-search {
  height: 38px; padding: 0 12px 0 8px; font-size: .88rem; border-radius: 0 10px 10px 0;
}
.searchbar:focus-within { border-color: var(--rz-teal-400); box-shadow: 0 0 0 3px rgba(22,179,196,.1); }
.search-hero .sresults { border-radius: 12px; padding: 4px; left: auto; min-width: 380px; }
@media (max-width: 480px) { .search-hero .sresults { min-width: 0; left: 0; } }
.search-hero .sresult { padding: 10px 12px; border-radius: 8px; }
.search-hero .sresult .sr-title { font-size: .92rem; }
.search-hero .sresult .sr-snip { font-size: .82rem; }
.search-hero .sresult .r-icon { width: 28px; height: 28px; }
.search-hero .sresult .r-icon svg { width: 15px; height: 15px; }

/* Back to main page link, top left (section views only) */
.search-hero { justify-content: space-between; align-items: center; }
.back-home {
  display: none; font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  letter-spacing: -0.2px; color: var(--rz-ink);
}
.back-home:hover { color: var(--rz-teal-600); text-decoration: none; }
body.section-view .back-home { display: inline-block; }
.search-hero .searchwrap { margin-left: auto; }

/* Not/Try examples in the intro-video guide */
.eg { display: block; margin-top: 8px; font-size: .88rem; line-height: 1.55; padding-left: 2px; }
.eg.not { color: var(--rz-text-faint); }
.eg.try { color: var(--rz-ink-2); }

/* ============================================================
   The Big Rayz Quiz: standout card at the bottom of the guide
   ============================================================ */
.big-quiz {
  margin: 64px 0 20px;
  background: var(--rz-grad-navy);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.big-quiz::before {
  content: "";
  position: absolute; top: -120px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,179,196,.28), transparent 65%);
  pointer-events: none;
}
body.section-view .big-quiz { display: none; }
.bq-inner { position: relative; padding: 40px 44px 44px; }
@media (max-width: 560px) { .bq-inner { padding: 30px 24px 34px; } }
.bq-tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rz-teal-400);
}
.big-quiz h2 {
  color: #fefefe; margin-top: 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}
.big-quiz h2::after { display: none; }
.big-quiz h3 { color: #fefefe; font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; margin-top: 18px; }
.bq-intro p { color: rgba(254,254,254,.75); margin-top: 12px; max-width: 46ch; }
.bq-score { font-size: 1.1rem; }
.bq-score .num { font-size: 2.6rem; font-weight: 700; color: var(--rz-teal-400); }
.bq-head { display: flex; justify-content: space-between; align-items: baseline; }
.bq-count { color: rgba(254,254,254,.6); font-weight: 600; font-size: .85rem; }
.bq-track {
  margin-top: 14px; height: 6px; border-radius: 99px;
  background: rgba(254,254,254,.12); overflow: hidden;
}
.bq-track i {
  display: block; height: 100%;
  background: linear-gradient(100deg, #16b3c4, #0e96a8);
  border-radius: 99px; transition: width .35s ease;
}
.bq-opts { margin-top: 18px; display: grid; gap: 10px; }
.bq-opts button {
  text-align: left; padding: 14px 18px;
  border: 1.5px solid rgba(254,254,254,.22); border-radius: 12px;
  background: rgba(254,254,254,.06); cursor: pointer;
  font-family: var(--font-body); font-size: .96rem; color: #fefefe;
  transition: border-color .12s, background .12s, transform .08s;
}
.bq-opts button:hover:not(:disabled) { border-color: var(--rz-teal-400); background: rgba(22,179,196,.14); transform: translateY(-1px); }
.bq-opts button:disabled { cursor: default; color: rgba(254,254,254,.55); }
.bq-opts button.right {
  border-color: var(--rz-teal-400); background: rgba(22,179,196,.2);
  color: #fefefe; font-weight: 600;
}
.bq-opts button.right::after { content: "  ✓"; color: var(--rz-teal-400); font-weight: 800; }
.bq-opts button.wrong { border-color: rgba(254,254,254,.15); background: rgba(254,254,254,.03); }
.bq-opts button.wrong::after { content: "  ✕"; color: rgba(254,254,254,.4); font-weight: 800; }
.bq-why { margin-top: 14px; font-size: .92rem; color: rgba(254,254,254,.75); }
.bq-btn {
  margin-top: 18px; padding: 13px 26px; border: 0; border-radius: 12px;
  background: var(--rz-grad-cta); color: #fff; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
}
.bq-btn:hover { opacity: .92; }

/* ============================================================
   Ask bar: AI question box at the top of the guide
   ============================================================ */
.askbar {
  margin-bottom: 26px; padding: 20px 24px 22px;
  background: linear-gradient(115deg, rgba(232,231,251,.55), rgba(223,243,238,.5));
  border: 1px solid var(--rz-line); border-radius: 14px;
}
body.section-view .askbar { display: none; }
.askbar-head { display: flex; align-items: center; gap: 10px; }
.askbar-head h3 { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; }
.ai-chip {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; color: var(--rz-teal-600);
  border: 1px solid var(--rz-teal-400); border-radius: 5px; padding: 2px 7px;
  background: rgba(22,179,196,.08);
}
.askbar-row {
  margin-top: 14px; display: flex; align-items: center;
  background: var(--rz-white); border: 1px solid var(--rz-line-strong);
  border-radius: 999px; padding: 4px 4px 4px 22px;
  box-shadow: 0 1px 3px rgba(11,22,32,.05);
}
.askbar-row:focus-within { border-color: var(--rz-teal-400); box-shadow: 0 0 0 4px rgba(22,179,196,.1); }
#ask-input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-family: var(--font-body); font-size: .98rem; color: var(--rz-ink);
  height: 44px;
}
#ask-input::placeholder { color: var(--rz-text-faint); }
#ask-go {
  flex: 0 0 auto; border: 0; cursor: pointer;
  padding: 11px 22px; border-radius: 999px;
  background: var(--rz-grad-cta); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
}
#ask-go:hover { opacity: .92; }
#ask-go:disabled { opacity: .55; cursor: default; }
.askbar-answer {
  margin-top: 14px; padding: 14px 18px;
  background: var(--rz-white); border: 1px solid var(--rz-line);
  border-radius: 12px; font-size: .95rem; color: var(--rz-ink-2); line-height: 1.6;
}
.askbar-answer .aa-tag {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rz-teal-600);
  margin-bottom: 6px;
}
.askbar-answer a { color: var(--rz-cyan); }
.askbar-answer.loading { color: var(--rz-text-mid); font-style: italic; }

/* ============================================================
   Ask bar v2: full-bleed gradient, sparkles, live button states
   ============================================================ */
.askbar {
  border: 0; border-radius: 0;
  margin: 0 calc(50% - 50vw) 34px;
  padding: 30px max(24px, calc(50vw - 416px)) 34px;
  background: linear-gradient(120deg, #f1effc 0%, #f4f6fd 45%, #edf7f6 100%);
}
.askbar-inner { max-width: 832px; margin: 0 auto; }
.askbar-head { display: flex; align-items: center; gap: 10px; }
.ai-stars { width: 22px; height: 22px; color: var(--rz-teal-500); flex: 0 0 auto; }
.askbar-row {
  border: 1px solid var(--rz-line);
  box-shadow: 0 1px 2px rgba(11,22,32,.04), 0 6px 20px rgba(11,22,32,.04);
}
.askbar-row:focus-within {
  border-color: var(--rz-line-strong);
  box-shadow: 0 2px 4px rgba(11,22,32,.05), 0 10px 28px rgba(11,22,32,.06);
}
#ask-go {
  background: rgba(11,22,32,.08);
  color: var(--rz-text-faint);
  transition: background .18s ease, color .18s ease, transform .1s ease;
}
#ask-go:hover { opacity: 1; }
#ask-go.ready { background: var(--rz-ink); color: #fff; }
#ask-go.ready:hover { transform: translateY(-1px); }
.askbar-answer { border-radius: 14px; }
.askbar { margin-top: -48px; padding-top: 36px; }

/* Step titles: clearly larger than their descriptions */
.steps h3 { font-size: 1.22rem; font-weight: 900; letter-spacing: -0.02em; }
.steps p { font-size: .95rem; }
.steps .sn { margin-top: 4px; }

/* ============================================================
   Floating Ask Rayz widget (bottom right, always available)
   ============================================================ */
.aiw { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.aiw-fab {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--rz-grad-cta); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(11,22,32,.25), 0 2px 6px rgba(11,22,32,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.aiw-fab svg { width: 26px; height: 26px; }
.aiw-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 30px rgba(11,22,32,.3); }
.aiw-panel {
  width: min(360px, calc(100vw - 44px));
  background: var(--rz-white);
  border: 1px solid var(--rz-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(11,22,32,.18), 0 4px 14px rgba(11,22,32,.08);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.aiw-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rz-line);
}
.aiw-head .ai-stars { width: 18px; height: 18px; }
.aiw-head strong { font-family: var(--font-head); font-weight: 900; letter-spacing: -0.02em; font-size: 1.02rem; color: var(--rz-ink); flex: 1; }
.aiw-close {
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--rz-text-faint);
  padding: 2px 6px; border-radius: 6px;
}
.aiw-close:hover { color: var(--rz-ink); background: rgba(11,22,32,.05); }
.aiw-msgs {
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; overflow-y: auto;
}
.aiw-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.55; }
.aiw-msg.aiw-ai { align-self: flex-start; background: rgba(11,22,32,.05); color: var(--rz-ink-2); border-bottom-left-radius: 4px; }
.aiw-msg.aiw-user { align-self: flex-end; background: var(--rz-ink); color: #fff; border-bottom-right-radius: 4px; }
.aiw-msg.aiw-thinking { color: var(--rz-text-mid); font-style: italic; }
.aiw-msg a { color: var(--rz-cyan); }
.aiw-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; border-top: 1px solid var(--rz-line);
}
#aiw-input {
  flex: 1; border: 1px solid var(--rz-line-strong); border-radius: 10px;
  padding: 10px 12px; font-family: var(--font-body); font-size: .9rem;
  color: var(--rz-ink); outline: none;
}
#aiw-input:focus { border-color: var(--rz-teal-400); box-shadow: 0 0 0 3px rgba(22,179,196,.12); }
#aiw-send {
  flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: var(--rz-grad-cta); color: #fff; font-size: 1.1rem; cursor: pointer;
  transition: opacity .15s;
}
#aiw-send:hover { opacity: .9; }
@media (max-width: 560px) {
  .aiw { right: 14px; bottom: 14px; }
  .aiw-fab { width: 50px; height: 50px; }
}

/* No accent bar under section headlines */
.section h2::after { display: none; }

/* ════════════════════════════════════════════════════════════════
   Foundation design language: iridescent editorial reskin
   Synced with the rayz.space curriculum/FAQ sections (#rzww)
   ════════════════════════════════════════════════════════════════ */
:root {
  --rz-ink: #0c1622;
  --rz-ink-2: #1a2432;
  --rz-text-mid: rgba(12,22,34,0.64);
  --rz-text-faint: rgba(12,22,34,0.46);
  --rz-line: rgba(12,22,34,0.09);
  --rz-line-strong: rgba(12,22,34,0.18);
  --fz-grad: linear-gradient(102deg,#f4f1e7 0%,#d8c7f5 46%,#aeb9f1 100%);
  --fz-grad-soft: linear-gradient(102deg,rgba(244,241,231,0.58) 0%,rgba(216,199,245,0.26) 46%,rgba(174,185,241,0.22) 100%);
  --fz-grad-text: linear-gradient(102deg,#0c1622 0%,#6b5e95 48%,#4f6fb3 100%);
  --fz-fill: linear-gradient(105deg,#efe7fb 0%,#d7ccf6 34%,#bcc2f2 66%,#e9e3fb 100%);
  --fz-on-fill: #0b0d13;
  --fz-ease: cubic-bezier(.22,1,.36,1);
  --fz-shadow: 0 28px 84px -70px rgba(12,22,34,0.34);
}

/* Soft radial washes behind the whole page */
body { background: #ffffff; position: relative; }
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 16%, rgba(216,199,245,0.20) 0%, rgba(216,199,245,0.06) 34%, transparent 68%),
    radial-gradient(ellipse at 84% 80%, rgba(174,185,241,0.20) 0%, rgba(174,185,241,0.06) 38%, transparent 72%),
    radial-gradient(ellipse at 54% 44%, rgba(244,241,231,0.45) 0%, rgba(244,241,231,0.14) 38%, transparent 72%);
  filter: blur(30px); opacity: .9;
}

/* Display type: tighter, Foundation weight */
h1 { font-weight: 700; letter-spacing: -0.05em; }
h1 .grad-line {
  display: block; padding-bottom: 0.14em;
  background: var(--fz-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
h2 { font-weight: 700; letter-spacing: -0.052em; }
.sub { font-weight: 700; letter-spacing: -0.045em; }
.steps h3, .scard h3, .cp-title { letter-spacing: -0.038em; }

/* Kickers: Space Mono with a gradient dash, no chip */
.intro .tag, .section-eyebrow .tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; padding: 0; border-radius: 0;
  font-size: 9.5px; letter-spacing: 0.17em; color: rgba(12,22,34,0.58);
}
.intro .tag::before, .section-eyebrow .tag::before {
  content: ""; width: 22px; height: 2px; border-radius: 999px;
  background: var(--fz-grad); flex: 0 0 auto;
}
.section-eyebrow .n { color: rgba(12,22,34,0.40); }

/* Cards: rounder, softer, iridescent hover */
.scard {
  border-radius: 18px; border: 1px solid rgba(12,22,34,0.07);
  box-shadow: var(--fz-shadow); position: relative; overflow: hidden;
}
.scard::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--fz-fill); opacity: 0;
  transition: opacity .5s var(--fz-ease);
}
.scard > * { position: relative; z-index: 1; }
.scard:hover { border-color: rgba(174,185,241,0.5); box-shadow: 0 30px 70px -50px rgba(12,22,34,0.4); }
.scard:hover::before { opacity: .55; }
.scard:hover h3, .scard:hover p { color: var(--fz-on-fill); }
.scard .go { color: var(--rz-ink); }

/* Tables */
.ref-table th { font-size: 9.5px; letter-spacing: 0.15em; color: rgba(12,22,34,0.46); }

/* Steps: ink number chips */
.steps .sn { background: #0c1622; border-radius: 10px; }

/* Callouts */
.callout { border-radius: 16px; border-color: rgba(12,22,34,0.09); }
.callout.navy {
  background: #0a0c14; border-radius: 18px;
  background-image:
    radial-gradient(circle at 88% 12%, rgba(174,185,241,0.22) 0%, transparent 46%),
    radial-gradient(circle at 8% 90%, rgba(216,199,245,0.16) 0%, transparent 44%);
}
.callout.navy .tag { color: #d8c7f5; }
.callout.mint { background: var(--fz-grad-soft); border: 1px solid rgba(174,185,241,0.24); border-radius: 16px; }

/* Quotes */
.quote { border-left: 2px solid #d8c7f5; }

/* FAQ: sweep-fill accordion rows, Foundation style */
.faq details { position: relative; }
.faq summary {
  position: relative; overflow: hidden;
  padding: 18px 44px 18px 14px;
  transition: color .55s var(--fz-ease);
}
.faq summary::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--fz-fill);
  transform: scaleY(0); transform-origin: top;
  transition: transform .8s var(--fz-ease);
}
.faq summary > * { position: relative; z-index: 1; }
@media (hover:hover) {
  .faq summary:hover { color: var(--fz-on-fill); }
  .faq summary:hover::before { transform: scaleY(1); }
}
.faq summary::after {
  right: 16px; color: var(--rz-ink); z-index: 1;
  font-family: var(--font-body); font-weight: 400;
}
.faq details p { padding-left: 14px; padding-right: 14px; }

/* Ink pill buttons everywhere */
.pn-btn {
  border-radius: 999px; border: 1px solid rgba(12,22,34,0.14);
  padding: 12px 22px; letter-spacing: -0.01em;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.pn-btn:hover { border-color: #0c1622; color: #0c1622; transform: translateY(-1px); }
.pn-btn.next, .pn-continue {
  background: #0c1622; border-color: #0c1622; color: #fff !important;
  box-shadow: 0 18px 42px -30px rgba(12,22,34,0.7);
}
.pn-btn.next:hover { background: #101f30; color: #fff; }
.quiz-next, .wa-btn {
  background: #0c1622; border-radius: 999px;
  box-shadow: 0 18px 42px -30px rgba(12,22,34,0.7);
  transition: transform .22s ease, background .22s ease;
}
.quiz-next:hover, .wa-btn:hover { background: #101f30; transform: translateY(-1px); opacity: 1; }

/* Ask bar: iridescent wash + ink button */
.askbar { background: var(--fz-grad-soft); }
.askbar-row { border-color: rgba(12,22,34,0.10); }
.askbar-row:focus-within { border-color: rgba(174,185,241,0.9); box-shadow: 0 2px 4px rgba(12,22,34,.05), 0 10px 28px rgba(174,185,241,.25); }
.ai-stars { color: #6b5e95; }
#ask-go { border-radius: 999px; }
#ask-go.ready { background: #0c1622; }
#ask-go.ready:hover { background: #101f30; }

/* Search */
.searchbar:focus-within { border-color: rgba(174,185,241,0.9); box-shadow: 0 0 0 3px rgba(174,185,241,0.22); }
.sresult:hover { background: rgba(216,199,245,0.14); }
.sresult .sr-snip mark { background: rgba(216,199,245,0.45); }
.sresult .sr-sec, .search-hero .sresult .sr-sec { color: #6b5e95; }

/* Big quiz: deep ink surface with iridescent accents */
.big-quiz {
  background: #0a0c14; border-radius: 26px;
  box-shadow: var(--fz-shadow);
}
.big-quiz::before {
  background:
    radial-gradient(circle, rgba(216,199,245,0.30), transparent 62%);
}
.bq-tag { color: #d8c7f5; }
.bq-track i { background: var(--fz-grad); }
.bq-opts button { border-radius: 14px; border-color: rgba(255,255,255,0.16); }
.bq-opts button:hover:not(:disabled) { border-color: rgba(216,199,245,0.7); background: rgba(216,199,245,0.12); }
.bq-opts button.right { border-color: rgba(216,199,245,0.85); background: rgba(216,199,245,0.18); }
.bq-opts button.right::after { color: #d8c7f5; }
.bq-score .num { color: #d8c7f5; }
.bq-btn {
  background: var(--fz-fill); color: var(--fz-on-fill); border-radius: 999px;
  transition: transform .22s ease, opacity .22s ease;
}
.bq-btn:hover { transform: translateY(-1px); opacity: 1; }

/* Floating widget */
.aiw-fab { background: var(--fz-fill); color: var(--fz-on-fill); box-shadow: 0 18px 42px -20px rgba(12,22,34,0.5); }
.aiw-panel { border-radius: 20px; border-color: rgba(12,22,34,0.08); box-shadow: 0 40px 100px -40px rgba(12,22,34,0.45); }
.aiw-head .ai-stars { color: #6b5e95; }
.aiw-msg.aiw-user { background: #0c1622; }
.aiw-msg.aiw-ai { background: rgba(216,199,245,0.16); }
#aiw-input:focus { border-color: rgba(174,185,241,0.9); box-shadow: 0 0 0 3px rgba(174,185,241,0.22); }
#aiw-send { background: #0c1622; border-radius: 999px; }
#aiw-send:hover { background: #101f30; opacity: 1; }

/* Toolkit cards + compare: softer radii */
.tool, .compare-col { border-radius: 14px; }
.compare-col.yes { border-color: rgba(174,185,241,0.4); background: rgba(216,199,245,0.10); }
.compare-col.yes li::before { color: #6b5e95; }
.compare-col.yes .tag { color: var(--rz-ink); }

/* Idea + checklist accents onto the new palette */
.idea:nth-child(4n+1) .tag, .idea:nth-child(4n+2) .tag,
.idea:nth-child(4n+3) .tag, .idea:nth-child(4n+4) .tag { background: rgba(216,199,245,0.22); color: rgba(12,22,34,0.62); border-radius: 999px; }
.checklist .day { background: rgba(216,199,245,0.22); color: rgba(12,22,34,0.62); border-radius: 999px; }
.checklist input:checked { background: #0c1622; border-color: #0c1622; }

/* Principles box onto the dark ink surface */
.principles-box {
  background: #0a0c14; border-radius: 22px;
  background-image:
    radial-gradient(circle at 90% 8%, rgba(174,185,241,0.20) 0%, transparent 46%),
    radial-gradient(circle at 6% 92%, rgba(216,199,245,0.14) 0%, transparent 44%);
}
.principles-box .tag { color: #d8c7f5; }

/* Quiz card gradient frames -> iridescent */
.quiz { background: var(--fz-grad); border-radius: 20px; }
.quiz-inner { border-radius: 18px; }
.quiz-opts button { border-radius: 12px; }
.quiz-opts button:hover:not(:disabled) { border-color: rgba(174,185,241,0.8); background: rgba(216,199,245,0.14); }
.quiz-opts button.right { border-color: #aeb9f1; background: rgba(174,185,241,0.20); font-weight: 600; }
.quiz-opts button.right::after { color: #6b5e95; }
.quiz-inner .tag { color: #6b5e95; }

/* Links */
a { color: #4f6fb3; }
.back-home:hover { color: #6b5e95; }
.toc a.active { color: #6b5e95; border-left-color: #aeb9f1; }

/* Fixes: readable gradient headline + sweep fill behind text */
h1 .grad-line { background: var(--fz-grad-text); -webkit-background-clip: text; background-clip: text; }
.faq summary::before { z-index: -1; }
.faq summary { isolation: isolate; }

/* Pure white page background */
body::before { display: none; }
body { background: #ffffff; }

/* Widget: hidden attribute must actually hide the panel */
.aiw-panel[hidden] { display: none !important; }

/* No horizontal overflow (100vw full-bleed vs internal scrollbar) */
html, body { overflow-x: hidden; }

/* Dismissable answer card */
.askbar-answer { position: relative; padding-right: 46px; }
.aa-close {
  position: absolute; top: 8px; right: 10px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.35rem; line-height: 1; padding: 4px 8px;
  color: var(--rz-text-faint); border-radius: 8px;
}
.aa-close:hover { color: var(--rz-ink); background: rgba(12,22,34,.06); }

/* Animated thinking sparkle */
@keyframes rzThink {
  0%   { transform: rotate(0deg) scale(1);    opacity: .45; }
  50%  { transform: rotate(180deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(360deg) scale(1);   opacity: .45; }
}
.think-star {
  width: 16px; height: 16px;
  display: inline-block; vertical-align: -3px; margin-right: 9px;
  color: #6b5e95;
  animation: rzThink 1.1s linear infinite;
}
.askbar-answer.loading, .aiw-msg.aiw-thinking { font-style: normal; }
@media (prefers-reduced-motion: reduce) { .think-star { animation: none; } }

/* Rayz AI small print */
.ai-note {
  margin: 10px 2px 0; font-size: .68rem; line-height: 1.5;
  color: rgba(12,22,34,0.45); letter-spacing: 0.01em;
}
.aiw-note { margin: 0; padding: 8px 14px 11px; text-align: center; }
