/* Pillar: shared styles for index, privacy and 404.
   Layout is mobile-first; breakpoints at 768px and 1024px. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lime: #CEFD85;
  --slate: #53595B;
  --ink: #111314;
  --band: #F4F5F2;
  --line: #D9DCD6;
  --line-soft: #E6E8E4;
  --grey: #9AA0A2;
  --on-dark: #FFFFFF;
  --on-dark-soft: #C9CDCE;
  --mark-dark: #7E8384;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
  --section-y: 64px;
  --content: 1200px;
  --radius-btn: 10px;
  --radius-card: 14px;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; --section-y: 96px; }
}
@media (min-width: 1024px) {
  :root { --gutter: clamp(64px, 8.333vw, 120px); --section-y: 128px; }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, blockquote, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-underline-offset: 5px; }
a:hover { color: var(--slate); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--lime); }

[id] { scroll-margin-top: 88px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--ink); color: #FFFFFF; border-radius: var(--radius-btn);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.band { background: var(--band); }
.dark { background: var(--ink); color: var(--on-dark); }

/* ---------- Type ---------- */

.hl {
  background: var(--lime);
  color: var(--ink);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
}
.dark .eyebrow { color: var(--lime); }
@media (min-width: 768px) {
  .eyebrow { font-size: 13px; letter-spacing: 0.28em; }
}

.display {
  font-size: clamp(46px, 6.39vw, 92px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.h2 {
  margin-top: 16px;
  font-size: clamp(36px, 4.17vw, 60px);
  line-height: 1.09;
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 1040px;
}
@media (min-width: 768px) { .h2 { margin-top: 20px; } }

.lede {
  margin-top: 20px;
  font-size: clamp(18px, 1.46vw, 21px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 780px;
}
@media (min-width: 768px) { .lede { margin-top: 28px; } }
.dark .lede { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  background: var(--lime);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn:hover { background: #BDF06A; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 12px 18px; font-size: 15px; }
.btn--lg { padding: 18px 34px; font-size: 18px; }
@media (min-width: 768px) {
  .btn--sm { padding: 12px 22px; font-size: 16px; }
  .btn--xl { padding: 20px 36px; font-size: 19px; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
@media (min-width: 1024px) { .site-header .wrap { height: 88px; } }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  text-decoration: none; color: var(--ink);
}
.brand svg { width: 26px; height: 20px; flex-shrink: 0; }
.brand span { font-size: 15px; font-weight: 400; letter-spacing: 0.4em; margin-right: -0.4em; }
.brand:hover { color: var(--ink); }
@media (min-width: 1024px) {
  .brand { gap: 14px; }
  .brand svg { width: 34px; height: 26px; }
  .brand span { font-size: 18px; letter-spacing: 0.42em; margin-right: -0.42em; }
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav .nav-link {
  display: none;
  align-items: center; min-height: 44px;
  font-size: 16px; color: var(--slate); text-decoration: none;
}
.site-nav .nav-link:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 768px) {
  .site-nav { gap: 28px; }
  .site-nav .nav-link { display: inline-flex; }
}
@media (min-width: 1024px) { .site-nav { gap: 36px; } }

/* ---------- Hero ---------- */

.hero { padding-block: 64px 72px; }
@media (min-width: 768px) { .hero { padding-block: 96px 112px; } }
@media (min-width: 1024px) { .hero { padding-block: 128px 144px; } }

.hero .display { max-width: 1120px; }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(20px, 1.81vw, 26px);
  line-height: 1.4;
  color: var(--slate);
  max-width: 760px;
}
.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 36px;
}
.hero-actions .btn { padding: 17px 24px; }
.hero-actions .text-link { justify-content: center; font-size: 17px; }
.hero-note {
  margin-top: 24px;
  font-size: 16px; line-height: 1.45; color: var(--slate);
  text-align: center;
}
@media (min-width: 768px) {
  .hero-sub { margin-top: 40px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 28px; margin-top: 52px; }
  .hero-actions .btn { padding: 18px 34px; font-size: 18px; }
  .hero-actions .text-link { font-size: 18px; text-underline-offset: 6px; }
  .hero-note { margin-top: 36px; font-size: 18px; text-align: left; }
}

/* ---------- Founders band ----------
   Phones: 4:3 photo, then the ink panel overlapping its bottom edge; founders stacked.
   From 768px: the photo keeps one fixed shape (1440 x 778) at every width, and the panel
   starts 61% of the way down it, so it sits in the same place on the photo on every screen.
   It hangs below the photo by however much its content needs. */

.founders-band { padding-bottom: 48px; background: #FFFFFF; }
.founders-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 10%; }
.founders-panel {
  position: relative;
  margin: -48px var(--gutter) 0;
  padding: 32px 28px 30px;
  border-radius: var(--radius-card);
}
.founders-panel .h2 { margin-top: 0; }
.founders-panel .lede { margin-top: 14px; }
.founders-list {
  display: grid; gap: 20px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid #2A2E30;
}
.founder-name { font-size: 18px; font-weight: 500; line-height: 1.35; color: #FFFFFF; }
/* Names link to LinkedIn. The padding/negative margin gives a 44px tap target without moving anything. */
.founder-name a {
  display: inline-block; padding-block: 10px; margin-block: -10px;
  color: #FFFFFF;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.founder-name a:hover { color: var(--lime); text-decoration-color: currentColor; }
.founder-name span {
  display: inline-block; margin-left: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lime);
}
.founder-bio { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--on-dark-soft); }
.founder-focus { display: block; }

@media (min-width: 768px) {
  .founders-band { padding-bottom: 64px; }
  /* 1440 x 778: the photo is 54.03% as tall as it is wide. */
  .founders-photo { aspect-ratio: 1440 / 778; object-position: 50% 4%; }
  .founders-panel {
    /* Negative % margins are measured against the band's width: 54.03% x (1 - 0.61) = 21.07%. */
    margin: -21.07% 0 0 max(var(--gutter), calc((100% - var(--content)) / 2));
    width: min(880px, calc(100% - 2 * var(--gutter)));
    padding: 40px 48px 36px;
  }
  .founders-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 24px; padding-top: 22px; }
}

/* ---------- What we do ---------- */

.areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
.area {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 16px;
  border-top: 4px solid var(--lime);
}
.area h3 { font-size: 20px; line-height: 1.25; font-weight: 500; }
.area p { font-size: 15px; line-height: 1.5; color: var(--slate); }
@media (min-width: 768px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; margin-top: 56px; }
  .area { gap: 10px; padding-top: 22px; border-top-width: 5px; }
  .area h3 { font-size: 21px; }
  .area p { font-size: 16px; }
}
@media (min-width: 1024px) {
  .areas { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 64px; }
}

/* ---------- Proof ---------- */

.clients { display: flex; flex-direction: column; gap: 20px; }
.logos {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: space-between; align-items: center;
}
.logos li { display: flex; align-items: center; height: 56px; }
.logos img { width: auto; }
.logo-kernel { height: 20px; }
.logo-rig { height: 22px; }
.logo-moonfire { height: 13.5px; }
@media (min-width: 768px) {
  .clients { flex-direction: row; align-items: center; gap: 48px; }
  /* Logos fill the space to the right of the label, spread evenly edge to edge. */
  .logos { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 20px 56px; }
  .logos li { height: 72px; }
  .logo-kernel { height: 28px; }
  .logo-rig { height: 30px; }
  .logo-moonfire { height: 23.5px; }
}

.quotes { margin-top: 44px; }
@media (min-width: 768px) { .quotes { margin-top: 72px; } }

/* One quote per "page"; slides stretch to the tallest so the section never jumps. */
.quotes-track {
  position: relative;
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.quotes-track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 100%; scroll-snap-align: start; }
.quote blockquote { max-width: 1040px; }
.quote p {
  font-size: clamp(28px, 3.06vw, 44px);
  line-height: 1.28;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.quote figcaption { margin-top: 20px; font-size: 16px; color: var(--slate); }
@media (min-width: 768px) {
  .quote figcaption { margin-top: 28px; font-size: 18px; }
}

/* Controls only appear when JavaScript is running (the .js class is set in <head>). */
.quotes-controls { display: none; align-items: center; gap: 8px; margin-top: 32px; }
.js .quotes-controls { display: flex; }
@media (min-width: 768px) { .quotes-controls { margin-top: 40px; } }

.quotes-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: #FFFFFF; color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.quotes-btn:hover { border-color: var(--ink); }
.quotes-btn svg { width: 20px; height: 20px; }

.quotes-dots { display: flex; margin-left: 12px; }
.quotes-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.quotes-dot::before {
  content: ""; width: 24px; height: 4px; border-radius: 2px;
  background: var(--line);
  transition: background-color 0.15s ease;
}
.quotes-dot:hover::before { background: var(--slate); }
.quotes-dot[aria-current="true"]::before { background: var(--ink); }

/* ---------- How we work ---------- */

.steps {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  margin-top: 32px;
}
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-btn);
  background: var(--lime);
  font-size: 19px; font-weight: 500;
}
.step h3 { margin-top: 20px; font-size: 24px; line-height: 1.2; font-weight: 500; }
.step p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--slate); }
.step .btn { margin-top: 18px; font-size: 16px; padding: 14px 24px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 48px; }
  .step-num { width: 52px; height: 52px; font-size: 22px; }
  .step h3 { margin-top: 32px; font-size: clamp(26px, 2.08vw, 30px); }
  .step p { margin-top: 16px; font-size: 18px; }
  .step .btn { margin-top: 24px; font-size: 17px; padding: 14px 26px; }
}

.system {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid var(--line);
}
.system-title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.3; font-weight: 400; }
.system p:last-child { font-size: clamp(17px, 1.46vw, 21px); line-height: 1.5; color: var(--slate); }
@media (min-width: 768px) {
  .system { gap: 14px; margin-top: 80px; padding-top: 56px; }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-top: 40px;
}
.plan {
  display: flex; flex-direction: column;
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.plan h3 {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate);
}
.plan-price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-price strong { font-size: clamp(48px, 4.17vw, 60px); line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; }
.plan-price span { font-size: 15px; color: var(--slate); }
.plan-time {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 18px; line-height: 1.4;
}
@media (min-width: 768px) {
  .plans { margin-top: 56px; gap: 24px; }
  .plan { padding: 40px; }
  .plan h3 { font-size: 14px; }
  .plan-price { margin-top: 28px; }
  .plan-price span { font-size: 16px; }
  .plan-time { margin-top: 28px; padding-top: 24px; font-size: 19px; }
}
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan { padding: clamp(28px, 2.78vw, 40px); }
}

.points {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-top: 40px;
}
.points li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.55; }
.points li::before {
  content: ""; flex-shrink: 0;
  width: 5px; height: 20px; margin-top: 3px;
  border-radius: 2px; background: var(--slate);
}
@media (min-width: 768px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 64px; margin-top: 64px; }
  .points li { gap: 18px; font-size: 18px; }
  .points li::before { width: 6px; height: 22px; }
}

/* ---------- Point of view ---------- */

.dark .h2 { color: var(--on-dark); }
.pov-link {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 20px;
  font-size: 17px; font-weight: 500;
  color: var(--lime);
}
.pov-link:hover { color: #FFFFFF; }
@media (min-width: 768px) {
  .pov-link { margin-top: 28px; font-size: 18px; text-underline-offset: 6px; }
}

/* ---------- Closing ---------- */

.closing { padding-block: 64px 72px; }
@media (min-width: 768px) { .closing { padding-block: var(--section-y) 136px; } }

.closing-lead { font-size: clamp(21px, 1.94vw, 28px); line-height: 1.38; color: var(--slate); }
.closing .display { margin-top: 12px; }
.closing-cta { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.closing-cta .btn { padding: 18px 16px; }
.closing-cta p { font-size: 15px; line-height: 1.45; color: var(--slate); }
@media (min-width: 768px) {
  .closing .display { margin-top: 16px; }
  .closing-cta { align-items: flex-start; gap: 14px; margin-top: 56px; }
  .closing-cta .btn { padding: 20px 36px; font-size: 19px; }
  .closing-cta p { font-size: 16px; }
}

.not-ready {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.not-ready p:first-child { font-size: 17px; line-height: 1.45; }
.not-ready p:last-child { font-size: 15px; color: var(--slate); }
.not-ready a { display: inline-block; padding-block: 11px; }
@media (min-width: 768px) {
  .not-ready {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 48px;
    margin-top: 80px; padding-top: 40px;
  }
  .not-ready p:first-child { font-size: 18px; }
  .not-ready p:last-child { font-size: 16px; }
}

/* Closing: copy and the working-session photo side by side on desktop. */
.closing-photo { margin: 40px 0 0; }
.closing-photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 55% 40%;
  border-radius: var(--radius-card);
}
@media (min-width: 1024px) {
  .closing-main {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px; align-items: center;
  }
  .closing-main .display { font-size: clamp(56px, 5vw, 76px); }
  .closing-photo { margin: 0; }
  .closing-photo img { aspect-ratio: 5 / 4; }
}

/* ---------- Footer ---------- */

.site-footer { padding-block: 56px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 28px; }
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand:hover { color: #FFFFFF; }
.company { font-size: 15px; line-height: 1.6; color: var(--on-dark-soft); }
.regulatory { font-size: 13px; line-height: 1.6; color: var(--grey); max-width: 820px; }
.regulatory a { color: inherit; }
.regulatory a:hover { color: #FFFFFF; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: #FFFFFF;
}
.footer-links a:hover { color: var(--lime); }
@media (min-width: 768px) {
  .site-footer { padding-block: 88px; }
  .site-footer .wrap { gap: 40px; }
  .company { font-size: 16px; }
  .regulatory { font-size: 14px; }
  .footer-links { flex-direction: row; gap: 32px; }
}

/* ---------- Plain pages (privacy, 404) ---------- */

.page { padding-block: 64px 96px; }
@media (min-width: 768px) { .page { padding-block: 112px 144px; } }
.page .display { font-size: clamp(40px, 4.86vw, 70px); }
.prose { margin-top: 40px; max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: clamp(24px, 2.08vw, 30px); line-height: 1.25; font-weight: 500; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; color: var(--ink); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose .meta { color: var(--slate); font-size: 16px; }
/* Legal pages (terms, privacy): numbered clauses, lettered sub-clauses, tables, contents list. */
.legal h2 { margin-top: 56px; scroll-margin-top: 96px; }
.legal h3 { margin-top: 32px; font-size: 20px; line-height: 1.3; font-weight: 500; }
.legal .intro { font-size: 19px; color: var(--slate); }
.legal ol { padding-left: 1.6em; }
.legal ol[type="a"] { list-style-type: lower-alpha; }
.legal ol[type="i"] { list-style-type: lower-roman; margin-top: 10px; }
.legal li { padding-left: 4px; }
.legal li::marker { color: var(--slate); }
.legal ol li + li { margin-top: 12px; }
.legal [id] { scroll-margin-top: 96px; }
.legal .toc { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.legal .toc ol { list-style: decimal; columns: 2; column-gap: 40px; padding-left: 1.4em; }
.legal .toc li { break-inside: avoid; font-size: 16px; margin: 0 0 6px; }
.legal .toc li + li { margin-top: 0; }
.table-scroll { margin-top: 20px; overflow-x: auto; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal thead th { font-weight: 500; border-bottom-color: var(--ink); }
.legal tbody th { font-weight: 500; color: var(--slate); }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }

.draft-note {
  padding: 20px 24px;
  border: 1px dashed var(--grey); border-radius: var(--radius-card);
  background: var(--band);
  color: var(--slate);
}
