@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14122B;
  --ink-2: #3B3858;
  --muted: #5E5B78;
  --paper: #F5F4FF;
  --paper-2: #ECEAFE;
  --white: #FFFFFF;
  --line: #DCD8F5;
  --ring-off: #D3CFF0;
  --violet: #7B61FF;
  --violet-deep: #5B3FE0;
  --sky: #35C2FF;
  --mint: #5BF0B5;
  --night: #14122B;
  --night-text: #C9C5EC;
  --night-muted: #9F9AC9;
  --grad: linear-gradient(135deg, #7B61FF 0%, #35C2FF 55%, #5BF0B5 100%);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 5vw + 1rem, 4.5rem);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand .badge { border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.98rem; font-weight: 550; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--violet); }
.site-nav .nav-cta { background: var(--ink); color: var(--white); padding: 9px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { color: var(--white); background: var(--violet-deep); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; font: inherit; font-weight: 600; font-size: 0.95rem;
    background: transparent; border: 1px solid var(--line); color: var(--ink);
    padding: 7px 14px; border-radius: 999px; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--violet-deep); }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; padding: 12px 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--white); cursor: pointer;
}
.btn:hover { background: var(--violet-deep); border-color: var(--violet-deep); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 34ch; margin: 24px 0 32px; line-height: 1.5; }
.hero-note { margin-top: 20px; font-size: var(--step--1); color: var(--muted); }
.hero-mark { width: 100%; max-width: 520px; margin-left: auto; overflow: visible; }
.hero-label { font-family: 'Figtree', sans-serif; font-size: 4.4px; font-weight: 700; fill: var(--ink); letter-spacing: -0.02em; }
.hero-label-small { font-size: 2.6px; font-weight: 600; fill: var(--muted); }
.hero-ring { stroke-dasharray: 104 104; stroke-dashoffset: 0; stroke-linecap: round; }
.hero-dot { transform-origin: 50px 53.83px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-ring { animation: draw 1.4s cubic-bezier(.6,.05,.2,1) both; }
  .hero-ring-1 { animation-delay: .18s; }
  .hero-ring-2 { animation-delay: .36s; }
  .hero-dot, .hero-label { animation: appear .5s ease-out 1.5s both; }
  .hero-dot { animation-name: pop; }
}
@keyframes draw { from { stroke-dashoffset: 104; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 360px; margin: 8px auto 0; order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section:not(.night) + .section:not(.night) { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); font-weight: 780; }
.section-head p { font-size: var(--step-1); color: var(--ink-2); margin-top: 14px; line-height: 1.5; }

.surfaces { display: grid; gap: 0; border-top: 1px solid var(--line); }
.surface { display: grid; grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.surface h3 { font-size: var(--step-2); font-weight: 760; }
.surface .kicker { color: var(--muted); font-size: var(--step-0); margin-top: 8px; }
.surface ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.surface li { padding-left: 22px; position: relative; color: var(--ink-2); }
.surface li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--violet); }
.surface li strong { color: var(--ink); font-weight: 650; }
@media (max-width: 760px) {
  .surface { grid-template-columns: 1fr; }
  .surface .ring-icon { width: 48px; height: 48px; }
}

/* Plain fact rows */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.facts h3 { font-size: var(--step-1); font-weight: 720; margin-bottom: 8px; }
.facts p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Night band (privacy) ---------- */
.night { background: var(--night); color: var(--night-text); }
.night h2, .night h3, .night strong { color: var(--white); }
.night a { color: var(--mint); }
.night .section-head p { color: var(--night-text); }
.night-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.promises li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.promises li::before { content: ''; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--grad); }
.promises strong { display: block; font-size: var(--step-1); font-weight: 680; margin-bottom: 2px; }
.night .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.night .btn:hover { background: var(--mint); border-color: var(--mint); }
@media (max-width: 860px) { .night-grid { grid-template-columns: 1fr; } }

/* ---------- Closing call ---------- */
.closing { text-align: left; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.closing h2 { font-size: var(--step-3); max-width: 18ch; }
.closing p { color: var(--ink-2); margin: 12px 0 0; max-width: 48ch; }

/* ---------- Simple pages ---------- */
.page-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; }
.page-head .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; margin-top: 18px; line-height: 1.5; }
.crumb { font-size: var(--step--1); margin-bottom: 14px; }
.crumb a { color: var(--muted); }

.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 0.6em; }
.prose section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin: 1.6em 0 0.5em; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--violet); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 680; color: var(--ink); }
.prose td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.table-scroll table { margin: 0; min-width: 560px; }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 10px; padding: 16px 20px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }

/* Legal docs */
.doc-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 40px); }
.doc-head h1 { font-size: clamp(2.1rem, 3.5vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
.doc-meta { color: var(--muted); font-size: var(--step--1); margin-top: 12px; }
.doc-intro { max-width: 70ch; font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; margin-top: 18px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(64px, 8vw, 112px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: 0.93rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc h2 { font-size: 0.93rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--violet); font-weight: 600; }
.related { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-1); margin: 0 0 0.6em; }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
}

/* Legal index list */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 820px; }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; text-decoration: none; color: var(--ink); }
.doc-list a:hover h2 { color: var(--violet-deep); }
.doc-list h2 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.doc-list p { grid-column: 1; color: var(--ink-2); margin: 0; }

/* FAQ */
.faq { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: var(--step-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq .answer p:last-child { margin: 0; }

/* Steps (genuinely ordered) */
.steps { counter-reset: step; list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }

/* Two-column contact */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.contact-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.contact-block h2 { font-size: var(--step-1); margin-bottom: 8px; }
.contact-block p { color: var(--ink-2); }
.contact-block p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 32px; }
.footer-brand p { color: var(--ink-2); max-width: 32ch; margin-top: 14px; }
.footer-company { color: var(--muted) !important; font-size: var(--step--1); line-height: 1.55; }
.footer-heading { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-ack { margin-top: 40px; }
.footer-ack p { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; max-width: 90ch; }
.footer-base { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.footer-base p { margin: 0 0 6px; max-width: 90ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.lost { padding: clamp(64px, 12vw, 160px) 0; }
.lost h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
.lost p { font-size: var(--step-1); color: var(--ink-2); max-width: 40ch; margin: 16px 0 28px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Closing photo band (home) ---------- */
.band { position: relative; min-height: 70vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: var(--white); }
.band-photo { position: absolute; inset: 0; }
.band-photo img, .band-photo .photo-missing { width: 100%; height: 100%; object-fit: cover; display: flex; }
.band-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,43,.92) 0%, rgba(20,18,43,.55) 45%, rgba(20,18,43,.1) 100%); }
.band .photo-missing { background: radial-gradient(60% 60% at 70% 30%, rgba(255,190,120,.35), transparent 70%), radial-gradient(50% 50% at 25% 40%, rgba(123,97,255,.35), transparent 70%), #2A2550; align-items: flex-start; }
.band-inner { position: relative; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.band h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; color: var(--white); }
.band p { font-size: var(--step-1); color: var(--night-text); max-width: 46ch; margin: 14px 0 26px; }
.band .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.band .btn:hover { background: var(--mint); border-color: var(--mint); }

/* ---------- Welcome / not okay examples (community guidelines) ---------- */
.ex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 1.4em; }
.ex > div { border-radius: 12px; padding: 14px 16px 6px; border: 1px solid; }
.ex-ok { background: #EEFBF5; border-color: #C3EBD8 !important; }
.ex-no { background: #FFF3F0; border-color: #F4D3CA !important; }
.ex-head { font-weight: 700; font-size: .95rem; margin: 0 0 6px; }
.ex-ok .ex-head { color: #137A52; }
.ex-no .ex-head { color: #B2402A; }
.ex ul { margin: 0 0 .6em; padding-left: 1.15em; font-size: .97rem; }
.ex li { margin-bottom: .45em; }
.ex-ok li::marker { color: #19A974; }
.ex-no li::marker { color: #D9573B; }
@media (max-width: 640px) { .ex { grid-template-columns: 1fr; } }
