/* Niche Financials landing page and its privacy and terms pages.
   Copied from the Niche Sign landing page (same visual language as
   niche-engine.com): white paper, black ink, Niche orange accent, dark
   bands for contrast. Keep the two in step. */

:root {
  --ink: #0a0a0a;
  --night: #0b0b0d;
  --night-2: #141418;
  --paper: #ffffff;
  --cream: #fbfaf7;
  --orange: #ff6b1f;
  --orange-2: #ff8a4c;
  --orange-deep: #e5540a;
  --glow: rgba(255, 107, 31, 0.35);
  --line: rgba(10, 10, 10, 0.08);
  --line-night: rgba(255, 255, 255, 0.1);
  --muted: #4a4a4a;
  --muted-2: #6e6e6e;
  --good: #157a3c;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 640; }
.h3 { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 620; }
.h1, .h2 { text-wrap: balance; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.night .lede { color: rgba(255, 255, 255, 0.68); }
.gradient-text {
  background: linear-gradient(100deg, var(--orange) 0%, #ffb27a 45%, var(--orange) 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.center { text-align: center; margin-inline: auto; }
.narrow { max-width: 760px; }
.num { font-variant-numeric: tabular-nums; }

/* Surfaces */
.night { background: var(--night); color: #fff; }
.cream { background: var(--cream); }
.band { position: relative; padding-block: 56px; }
@media (min-width: 768px) { .band { padding-block: 80px; } }
.card {
  background: #fff; border-radius: 20px; padding: 28px;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 10, 10, 0.03), 0 12px 32px -18px rgba(10, 10, 10, 0.18);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 31, 0.45), 0 0 0 4px rgba(255, 107, 31, 0.06), 0 24px 48px -24px rgba(255, 107, 31, 0.35);
}
.glass {
  background: rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 24px;
  box-shadow: inset 0 0 0 1px var(--line-night);
}

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora::before, .aurora::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.aurora::before {
  width: 620px; height: 620px; left: -160px; top: -220px;
  background: radial-gradient(circle, rgba(255, 107, 31, 0.75), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora::after {
  width: 520px; height: 520px; right: -140px; top: 80px;
  background: radial-gradient(circle, rgba(255, 160, 90, 0.55), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(80px, 60px, 0) scale(1.15); } }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-night) 1px, transparent 1px), linear-gradient(90deg, var(--line-night) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btns.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform 200ms, box-shadow 200ms, background 200ms;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff;
  box-shadow: 0 8px 24px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px rgba(255, 107, 31, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.3); }
.night .btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px var(--line-night); }
.night .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.arrow { transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(3px); }
.invite-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.invite-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 107, 31, 0.7); }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background 300ms, box-shadow 300ms, color 300ms; }
.header.is-scrolled { background: rgba(255, 255, 255, 0.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 600; color: var(--orange); }
.nav { display: none; gap: 4px; font-size: 14.5px; font-weight: 500; }
.nav a { padding: 8px 12px; border-radius: 999px; opacity: 0.85; }
.nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.header.is-scrolled .menu-btn, .header.is-open .menu-btn { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.16); }
.js .menu-btn { display: inline-flex; }
.btn-login { color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn-login:hover { background: rgba(255, 255, 255, 0.08); }
.header.is-scrolled .btn-login, .header.is-open .btn-login { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.16); }
.header.is-scrolled .btn-login:hover, .header.is-open .btn-login:hover { background: rgba(10, 10, 10, 0.04); }
@media (max-width: 479px) { .btn-login { display: none; } .brand { font-size: 17px; } }
@media (min-width: 1100px) { .nav .nav-login { display: none; } }
@media (max-width: 1099px) {
  .header.is-open { background: rgba(255, 255, 255, 0.98); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .header.is-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    padding: 8px 20px 20px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 32px -24px rgba(10, 10, 10, 0.25);
  }
  .header.is-open .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; opacity: 1; }
  .header.is-open .nav a:last-child { border-bottom: 0; }
}
@media (min-width: 1100px) { .nav { display: flex; } .js .menu-btn { display: none; } }

/* Hero */
.hero { padding-top: 68px; isolation: isolate; overflow: hidden; }
.hero-inner { position: relative; padding-block: 48px 64px; text-align: center; }
@media (min-width: 768px) { .hero-inner { padding-block: 72px 88px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  font-size: 13px; color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-night);
}
.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
.hero .h1 { max-width: 920px; margin: 28px auto 0; }
.hero .lede { max-width: 700px; margin: 24px auto 0; }

/* The P&L screen mock in the hero. */
.mock { position: relative; max-width: 900px; margin: 56px auto 0; text-align: left; }
.mock-frame {
  border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.1), 0 30px 80px -30px rgba(10, 10, 10, 0.45), 0 0 120px -40px var(--glow);
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f6f5f2; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e0dc; }
.mock-bar span { margin-left: 10px; font-size: 11px; color: #8a8a8a; }
.mock-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .mock-body { grid-template-columns: 168px 1fr; } }
.mock-side { display: none; padding: 16px 12px; background: #faf9f6; border-right: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
@media (min-width: 720px) { .mock-side { display: block; } }
.mock-side li { padding: 7px 10px; border-radius: 8px; }
.mock-side li.on { background: rgba(255, 107, 31, 0.1); color: var(--orange-deep); font-weight: 600; }
.mock-main { min-width: 0; }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mock-top strong { font-size: 15px; }
.mock-top small { display: block; font-size: 12.5px; color: var(--muted-2); }
.mock-count { font-size: 12.5px; font-weight: 600; color: var(--orange-deep); background: rgba(255, 107, 31, 0.1); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 519px) { .mock-count { display: none; } }
.pl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pl th, .pl td { padding: 9px 20px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pl th:first-child, .pl td:first-child { text-align: left; white-space: normal; }
.pl thead th { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); background: #faf9f6; }
.pl td { color: var(--muted); }
.pl td:first-child { color: var(--ink); }
.pl td.link { color: var(--orange-deep); text-decoration: underline; text-decoration-color: rgba(229, 84, 10, 0.35); text-underline-offset: 3px; }
.pl tr.sum td { font-weight: 650; color: var(--ink); background: #fcfbf9; }
.pl tr.sum td.link { color: var(--orange-deep); }
.pl tr:last-child td { border-bottom: 0; }
.pl tr.sep td { border-top: 1px solid rgba(10, 10, 10, 0.14); }
@media (max-width: 519px) { .pl th, .pl td { padding: 8px 12px; font-size: 12px; } }
.chip {
  position: absolute; z-index: 2; display: none; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: float 6s ease-in-out infinite;
}
.chip-ic { display: inline-flex; width: 32px; height: 32px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 107, 31, 0.12); color: var(--orange); }
.chip b { display: block; font-size: 13.5px; line-height: 1.2; }
.chip span span { display: block; font-size: 12px; color: #8a8a8a; margin-top: 2px; }
.chip-1 { left: -7%; top: 72%; }
.chip-2 { right: -7%; top: 7%; animation-delay: -3s; }
@media (min-width: 1100px) { .chip { display: flex; } .mock-count { visibility: hidden; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.head { max-width: 760px; }
.head .h2 { margin-top: 16px; }
.head .lede { margin-top: 20px; }
.grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.icon {
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 16px; color: #fff;
  background: linear-gradient(140deg, #ff9a5c, #ff6b1f);
}
.card .h3 { margin-top: 22px; }
.card p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step-n {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: var(--orange-2); background: var(--night-2);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 31, 0.5), 0 0 24px -4px var(--glow);
}
.step .h3 { margin-top: 18px; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }

/* Report tiles in the dark band. */
.tile .icon { width: 44px; height: 44px; border-radius: 14px; }
.tile .h3 { margin-top: 18px; }
.tile p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }
.band-note { margin-top: 32px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); text-align: center; }
.band-note strong { color: #fff; font-weight: 600; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-rev > :first-child { order: 2; }
}
.checks { display: grid; gap: 14px; margin-top: 28px; font-size: 16px; line-height: 1.5; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; margin-top: 3px; }
.checks strong { font-weight: 600; }
.checks span span { color: var(--muted); }

/* Example panels: review list, holding P&L, history. */
.panel { padding: 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-head b { font-size: 16px; }
.panel-head small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted-2); font-weight: 400; }
.badge { flex: none; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; color: var(--good); background: rgba(21, 122, 60, 0.1); white-space: nowrap; }
.badge-orange { color: var(--orange-deep); background: rgba(255, 107, 31, 0.1); }
.panel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.panel-row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-row dt { font-weight: 500; overflow-wrap: anywhere; }
.panel-row dt small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--muted-2); }
.panel-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.panel-row.total { border-top: 1px solid rgba(10, 10, 10, 0.14); font-weight: 650; }
.panel-row.total dd { font-weight: 650; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--orange-deep); background: rgba(255, 107, 31, 0.1); white-space: nowrap; }
.tag-grey { color: var(--muted); background: rgba(10, 10, 10, 0.05); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
.history-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history-row:last-child { border-bottom: 0; padding-bottom: 0; }
.history-row p { line-height: 1.45; }
.history-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted-2); }

/* FAQ */
.faq-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 1fr 1.6fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic {
  display: inline-flex; flex: none; width: 24px; height: 24px; margin-top: 2px; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 18px; line-height: 1; color: var(--orange); background: rgba(255, 107, 31, 0.1); transition: transform 250ms;
}
.faq details[open] .faq-ic { transform: rotate(45deg); }
.faq p { margin-top: 12px; max-width: 720px; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.faq p a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { padding-block: 48px 40px; }
.footer-row { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer p { max-width: 380px; margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.footer ul { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 14.5px; }
@media (min-width: 768px) { .footer ul { justify-content: flex-end; max-width: 560px; } }
.footer ul a { color: rgba(255, 255, 255, 0.75); }
.footer ul a:hover { color: #fff; }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-night); font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
.footer .footer-base p { margin: 0; max-width: none; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.family { display: inline-flex; align-items: center; gap: 10px; }
.family img { width: auto; height: 26px; }

/* Privacy and terms pages */
.page-hero { position: relative; padding-top: 68px; isolation: isolate; overflow: hidden; }
.page-hero-inner { position: relative; padding-block: 48px 56px; }
@media (min-width: 768px) { .page-hero-inner { padding-block: 72px 72px; } }
.page-hero .h1 { margin-top: 18px; font-size: clamp(38px, 5.2vw, 60px); }
.page-hero .lede { margin-top: 18px; max-width: 680px; }
.doc { max-width: 780px; }
.draft {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 40px; padding: 16px 20px; border-radius: 16px;
  background: rgba(255, 107, 31, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 107, 31, 0.4); font-size: 15.5px; line-height: 1.55;
}
.draft strong { display: block; font-size: 16.5px; color: var(--orange-deep); }
.draft svg { flex: none; margin-top: 2px; color: var(--orange-deep); }
.doc h2 { margin-top: 48px; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 640; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin-top: 28px; font-size: 18px; letter-spacing: -0.01em; font-weight: 620; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.doc p { margin-top: 14px; }
.doc ul { margin-top: 14px; display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc .toc { margin-top: 0; margin-bottom: 40px; padding: 20px 24px; border-radius: 16px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.doc .toc p { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.doc .toc ol { margin: 0; display: grid; gap: 4px; padding-left: 22px; list-style: decimal; }
@media (min-width: 700px) { .doc .toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.doc .toc li { padding-left: 2px; font-size: 15px; line-height: 1.5; }
.doc .toc li::before { content: none; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { color: var(--orange-deep); }
.ph { padding: 1px 6px; border-radius: 6px; background: #fff1c2; color: #6b4a00; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.table-wrap { margin-top: 16px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc th, .doc td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc th { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); background: var(--cream); }
.doc td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 599px) { .doc td:first-child { white-space: normal; } }

/* One off spacing (the pages have no style attributes: _headers allows none) */
.layer { position: relative; }
.clip { overflow: hidden; isolation: isolate; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

/* Reveal on scroll (content is visible without JavaScript) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Book a call popup */
.book {
  width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.55);
}
.book[open] { display: flex; flex-direction: column; }
.book::backdrop { background: rgba(10, 10, 10, 0.62); backdrop-filter: blur(4px); }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.book-head p { margin: 0; font-size: 16px; font-weight: 600; }
.book-close {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
}
.book-close:hover { background: rgba(10, 10, 10, 0.06); }
.book-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; }
.book-loading { position: absolute; inset: 48px 0 auto; margin: 0; text-align: center; color: var(--muted-2); font-size: 15px; }
.book.is-ready .book-loading { display: none; }
.book-frame { position: relative; display: block; width: 100%; height: 720px; border: 0; }
html.book-open { overflow: hidden; }
@media (max-width: 599px) {
  .book { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
}
