/* Vela — shared styles for the pages beside the homepage.
   Copied from public/index.html (the design law); keep the two in step.
   Light is the default: Vela's paper, ink and sage. Dark is the Resend ramp
   (cool alpha grays) with mint. Every colour below reads these tokens. */
:root {
  --bg: #FDFAF4;
  --gray-11: #6B635B;
  --gray-12: #1F1812;
  --gray-a2: rgba(31,24,18,.035);
  --gray-a3: rgba(31,24,18,.12);
  --mint: #25865D;
  --strong: #1F1812;
  --on-fill: #FDFAF4;
  --fill-hover: #000;
  --nav-bg: rgba(253,250,244,.92);
  --nav-fade: rgba(253,250,244,0);
  --menu-bg: rgba(253,250,244,.97);
  --glow-a: rgba(47,158,110,.10);
  --glow-b: rgba(47,158,110,.16);
  color-scheme: light;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --display: "Instrument Serif", ui-serif, Georgia, serif;
}
:root[data-theme="dark"] {
  --bg: #131414;
  --gray-11: #a1a4a5;
  --gray-12: #f0f0f0;
  --gray-a2: #18191ce0;
  --gray-a3: #b0c7d925;
  --mint: #7FE0B0;
  --strong: #fff;
  --on-fill: #000;
  --fill-hover: #fff;
  --nav-bg: rgba(19,20,20,.9);
  --nav-fade: rgba(19,20,20,0);
  --menu-bg: rgba(22,24,27,.96);
  --glow-a: rgba(47,158,110,.10);
  --glow-b: rgba(127,224,176,.16);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--gray-12); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a, button { color: inherit; text-decoration: none; font: inherit; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Top bar ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 28px;
  background: linear-gradient(to bottom, var(--nav-bg), var(--nav-fade));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { color: var(--mint); }
.links { display: flex; gap: 6px; }
.links a, .ghost-sm {
  height: 38px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: 12px; font-size: 16px; color: var(--gray-11);
}
.links a:hover, .ghost-sm:hover { background: var(--gray-a3); color: var(--gray-12); }
.links a[aria-current="page"] { color: var(--gray-12); }
.right { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.btn {
  height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 500;
  transition: background .2s var(--ease);
}
.btn-fill { background: var(--gray-12); color: var(--on-fill); }
.btn-fill:hover { background: var(--fill-hover); }
.btn-ghost { background: var(--gray-a2); color: var(--gray-12); box-shadow: inset 0 0 0 1px var(--gray-a3); }
.btn-ghost:hover { background: var(--gray-a3); }

/* Light / dark: one drawn glyph each, no icon library */
.theme-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--gray-11); cursor: pointer;
}
.theme-btn:hover { background: var(--gray-a3); color: var(--gray-12); }
.theme-btn .sun, [data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }

/* Mobile menu: two drawn lines, no icon library */
.menu-btn {
  display: none; position: relative; width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3); cursor: pointer;
}
.menu-btn i {
  position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 1px; background: var(--gray-12);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-btn i:first-child { top: 15px; }
.menu-btn i:last-child  { top: 22px; }
.nav.open .menu-btn i:first-child { top: 18.25px; transform: rotate(45deg); }
.nav.open .menu-btn i:last-child  { top: 18.25px; transform: rotate(-45deg); }
.menu {
  display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 4px);
  flex-direction: column; padding: 8px; border-radius: 16px;
  background: var(--menu-bg); box-shadow: inset 0 0 0 1px var(--gray-a3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.menu a { height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; font-size: 17px; color: var(--gray-12); }
.menu a:hover { background: var(--gray-a3); }
.menu a:last-child { color: var(--gray-11); border-top: 1px solid var(--gray-a3); border-radius: 0 0 12px 12px; margin-top: 4px; }

@media (max-width: 920px) {
  .links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .right .ghost-sm { display: none; }
  .menu-btn { display: block; }
  .nav.open .menu { display: flex; }
  .nav.open { background: var(--nav-bg); }
}

/* ── Rhythm: one band size, one heading size, hairlines between ── */
.band { position: relative; padding: 144px 28px; scroll-margin-top: 24px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.h2, .page-h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--strong) 40%, var(--gray-11));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 em, .page-h1 em { font-style: italic; }
.h2, .page-h1 { text-wrap: balance; }
.lede { margin: 20px 0 0; max-width: 32em; font-size: 18px; line-height: 1.55; color: var(--gray-11); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 64px; }
.head .lede { margin-top: 0; max-width: 24em; }
.more { color: var(--gray-11); font-size: 16px; white-space: nowrap; transition: color .2s var(--ease); }
.more:hover { color: var(--gray-12); }
.ctas { margin-top: 32px; display: flex; gap: 12px; align-items: stretch; }
.ctas .btn { height: 52px; padding: 0 26px; font-size: 17px; border-radius: 14px; }

/* The top of a page: the hero's type, without the hero */
.page-top { position: relative; padding: 184px 28px 0; overflow: hidden; }
.page-top .page-h1 { font-size: clamp(52px, 7vw, 104px); line-height: 1; padding-bottom: .06em; }
.page-top .lede { font-size: 19px; max-width: 30em; margin-top: 24px; }
.page-top + .band { padding-top: 112px; }

/* People: a picture or initials, a name, a line */
.person { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--gray-11); line-height: 1.35; }
.person img, .person i {
  flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--gray-a3);
}
.person i { display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 500; color: var(--gray-11); background: var(--gray-a2); }
.person b { display: block; color: var(--gray-12); font-weight: 500; }
.person a { color: var(--gray-11); transition: color .2s var(--ease); }
.person a:hover { color: var(--gray-12); }

/* Hairline lists of facts */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 24px 0; border-top: 1px solid var(--gray-a3); }
.facts li:last-child { border-bottom: 1px solid var(--gray-a3); }
.facts h3 { margin: 0; font-size: 19px; font-weight: 500; }
.facts p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; color: var(--gray-11); }

/* Questions */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq details { border-top: 1px solid var(--gray-a3); }
.faq details:last-child { border-bottom: 1px solid var(--gray-a3); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 6.25px; height: 1.5px; border-radius: 1px; background: var(--gray-11);
  transition: transform .25s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: -6px 0 0; padding: 0 40px 26px 0; font-size: 17px; line-height: 1.6; color: var(--gray-11); }
.faq details p + p { margin-top: 0; }
.faq details a { color: var(--gray-12); text-decoration: underline; text-decoration-color: var(--gray-a3); text-underline-offset: 3px; }

/* Closing: the hero's horizon, once more */
.fx { position: absolute; pointer-events: none; z-index: 0; }
.horizon {
  left: -20%; right: -20%; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 74%, var(--glow-a) 88%, var(--glow-b) 96%, transparent 100%);
  filter: blur(36px);
}
.horizon-core {
  left: -10%; right: -10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg) 92%, transparent 100%);
  filter: blur(18px);
}
.close { overflow: hidden; text-align: center; padding-bottom: 176px; }
.close .horizon { bottom: -96%; height: 150%; }
.close .horizon-core { bottom: -100%; height: 150%; }
.close .wrap { position: relative; z-index: 1; }
.close .h2 { font-size: clamp(52px, 7vw, 104px); }
.close .lede { margin: 20px auto 0; }
.close .ctas { margin-top: 36px; justify-content: center; }

/* Footer */
.foot { padding: 72px 28px 40px; border-top: 1px solid var(--gray-a3); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot .brand { font-size: 18px; }
.foot-line { margin: 14px 0 0; font-size: 15px; color: var(--gray-11); }
.foot h4 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--gray-12); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { font-size: 15px; color: var(--gray-11); transition: color .2s var(--ease); }
.foot ul a:hover { color: var(--gray-12); }
.foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--gray-a3); font-size: 14px; color: var(--gray-11);
}
.foot-base nav { display: flex; gap: 20px; }
.foot-base a:hover { color: var(--gray-12); }

/* A quiet rise as each band arrives; off when motion is reduced or JS is absent */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

/* ── Testimonials ────────────────────────────────────── */
.vid {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000;
  box-shadow: 0 0 0 1px var(--gray-a3); object-fit: contain;
}
.film { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; margin: 0; }
.film blockquote { margin: 0; font-family: var(--display); font-size: clamp(28px, 2.9vw, 40px); line-height: 1.18; letter-spacing: -0.01em; }
.film .person { margin-top: 28px; }
.film .person img { width: 44px; height: 44px; }
.films { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.films li {
  display: flex; flex-direction: column; gap: 24px;
  padding: 16px 16px 28px; border-radius: 18px; background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3);
}
.films blockquote { margin: 0; padding: 0 12px; font-size: 17px; line-height: 1.55; color: var(--gray-12); flex: 1; }
.films .person { padding: 0 12px; }
.letters { list-style: none; margin: 0; padding: 0; }
.letters li { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 40px 0; border-top: 1px solid var(--gray-a3); }
.letters li:last-child { border-bottom: 1px solid var(--gray-a3); }
.letters blockquote { margin: 0; max-width: 36em; }
.letters p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--gray-12); }
.letters p + p { margin-top: 16px; }
.letters .person { align-items: flex-start; }

/* ── FAQ page: groups ────────────────────────────────── */
.faq-group + .faq-group { margin-top: 96px; }
.faq-group h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.01em; }
.faq-group .faq > div:first-child { position: sticky; top: 104px; }
.faq-group .faq > div:first-child p { margin: 14px 0 0; max-width: 18em; font-size: 16px; line-height: 1.55; color: var(--gray-11); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; font-size: 15px; color: var(--gray-11); background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3); transition: color .2s var(--ease), background .2s var(--ease); }
.jump a:hover { color: var(--gray-12); background: var(--gray-a3); }
.faq-group { scroll-margin-top: 96px; }

/* ── Team ────────────────────────────────────────────── */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.people li { padding: 28px; border-radius: 18px; background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3); }
.people img, .people .initials {
  display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 220px; border-radius: 14px; object-fit: cover;
  box-shadow: 0 0 0 1px var(--gray-a3);
}
.people .initials { display: grid; place-items: center; font-family: var(--display); font-size: 72px; color: var(--gray-11); background: var(--bg); }
.people h3 { margin: 28px 0 0; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; }
.people .role { display: block; margin-top: 6px; font-size: 15px; color: var(--mint); }
.people p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--gray-11); max-width: 28em; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }

/* ── For professionals: the steps ────────────────────── */
.path { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.path li { display: grid; grid-template-columns: 64px 220px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--gray-a3); counter-increment: step; }
.path li:last-child { border-bottom: 1px solid var(--gray-a3); }
.path li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 34px; line-height: 1; color: var(--mint); }
.path h3 { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.35; }
.path .when { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--gray-11); }
.path p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--gray-11); max-width: 34em; }
.path p + p { margin-top: 12px; }
.cards3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards3 li { padding: 28px; border-radius: 18px; background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3); }
.cards3 h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
.cards3 p { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--gray-11); }
.prose p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--gray-11); max-width: 34em; }
.prose p + p { margin-top: 18px; }
.prose a { color: var(--gray-12); text-decoration: underline; text-decoration-color: var(--gray-a3); text-underline-offset: 3px; }

/* ── Legal documents ─────────────────────────────────── */
.doc { max-width: 42em; margin: 0 auto; padding: 168px 28px 144px; }
.doc h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; color: var(--strong); }
.doc .doc-lede { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--gray-11); }
.doc .updated { margin: 16px 0 0; padding-bottom: 40px; border-bottom: 1px solid var(--gray-a3); font-size: 15px; color: var(--gray-11); }
.doc h2 { margin: 48px 0 0; font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: var(--gray-12); }
.doc p { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--gray-11); }
.doc strong { font-weight: 500; color: var(--gray-12); }
.doc a { color: var(--gray-12); text-decoration: underline; text-decoration-color: var(--gray-a3); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.doc a:hover { text-decoration-color: var(--gray-12); }

@media (max-width: 920px) {
  .faq { grid-template-columns: 1fr; gap: 48px; }
  .faq-group .faq { gap: 24px; }
  .faq-group .faq > div:first-child { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .film { grid-template-columns: 1fr; gap: 32px; }
  .films { grid-template-columns: 1fr; margin-top: 48px; }
  .letters li { grid-template-columns: 1fr; gap: 20px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .cards3 { grid-template-columns: 1fr; }
  .path li { grid-template-columns: 56px 1fr; }
  .path li > div:last-child { grid-column: 2; }
}
@media (max-width: 720px) {
  .nav { padding: 0 16px; height: 64px; }
  .band { padding: 96px 16px; }
  .page-top { padding: 136px 16px 0; }
  .page-top .page-h1 { font-size: min(14vw, 64px); }
  .page-top .lede { font-size: 17px; }
  .page-top + .band { padding-top: 72px; }
  .head { display: block; margin-bottom: 40px; }
  .head .lede { margin-top: 16px; }
  .head .more { display: inline-block; margin-top: 16px; }
  .lede { font-size: 16px; }
  .ctas { flex-direction: column; align-items: stretch; max-width: 360px; }
  .ctas .btn { height: 48px; padding: 0 18px; font-size: 15px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .faq-group + .faq-group { margin-top: 72px; }
  .close { padding-bottom: 120px; }
  .close .ctas { margin-left: auto; margin-right: auto; }
  .foot { padding: 56px 16px 32px; }
  .films li { padding: 12px 12px 24px; }
  .letters li { padding: 32px 0; }
  .letters p { font-size: 17px; }
  .people { grid-template-columns: 1fr; }
  .people li, .cards3 li { padding: 20px; }
  .people h3 { font-size: 32px; }
  .cards3 h3 { font-size: 30px; }
  .path li { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .path li > div:last-child { grid-column: auto; }
  .path li::before { font-size: 28px; }
  .prose p { font-size: 17px; }
  .doc { padding: 120px 16px 96px; }
  .doc .doc-lede { font-size: 17px; }
  .doc h2 { font-size: 19px; margin-top: 40px; }
}

/* Footer column labels: labels, not headings */
.foot-h { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--gray-12); }
