:root {
  --ink: #1E1F22;
  --ink-soft: #3A3B3F;
  --muted: #5E5F63;
  --orange: #E8590C;
  --orange-text: #C2410C;
  --ground: #F2F2F0;
  --card: #FFFFFF;
  --line: #DCDCD8;
  --ok: #2F7D4F;
  --ok-bg: #E3F1E8;
  --error: #B42318;
  --on-dark: #D2D3D6;
  --on-dark-muted: #B4B5B9;
  --radius: 16px;
  --header-h: 76px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--orange-text); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.section-lede { color: var(--muted); max-width: 60ch; }

section { padding: 96px 0; }
/* Keep section tops clear of the sticky header when jumping to them */
section[id] { scroll-margin-top: var(--header-h); }
.flush-top { padding-top: 0; }
section.flush-top[id] { scroll-margin-top: calc(var(--header-h) + 40px); }

.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.button:hover { background: var(--orange-text); border-color: var(--orange-text); color: #fff; }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }
.button-light:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.button-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 242, 240, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.button), .nav-trigger {
  text-decoration: none; font: 500 15px/1.2 var(--font); color: var(--ink);
}
.site-nav a[aria-current="page"], .nav-trigger.is-current { color: var(--orange-text); }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 0; cursor: pointer;
}
.nav-trigger svg { transition: transform .15s; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 260px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30, 31, 34, 0.12);
  list-style: none; margin: 0; padding: 8px;
}
.nav-menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--ground); color: var(--ink); }
.nav-menu b { font-weight: 600; font-size: 15px; }
.nav-menu span { font-size: 13px; color: var(--muted); }
.nav-menu .soon { padding: 10px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.button), .nav-trigger { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; width: 100%; justify-content: space-between; }
  .nav-menu { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 8px 12px; min-width: 0; background: transparent; }
  .nav-menu a { padding: 10px 0; }
  .site-nav .button { margin-top: 16px; }
}

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin-bottom: 22px; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 22px; }
.hero-note { font-size: 15px; color: var(--muted); }
.hero-figure {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px;
}
.hero-figure svg { width: 100%; height: auto; }
.hero-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

.pulse { transform-origin: center; transform-box: fill-box; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lede { max-width: none; }
}

/* Beliefs / pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.pillar { border-top: 3px solid var(--ink); padding-top: 22px; }
.pillar h3 { font-size: 24px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.pillar h3 svg { width: 28px; height: 28px; flex: 0 0 28px; }
.pillar p { color: var(--ink-soft); }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Dark band with stats */
.problem { background: var(--ink); color: #fff; }
.problem .section-title { max-width: 22ch; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.stat { border-top: 3px solid var(--orange); padding-top: 22px; }
.stat-figure { font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.stat-text { color: var(--on-dark); font-size: 16px; }
.source-note { margin-top: 36px; font-size: 13px; color: var(--on-dark-muted); }
.source-note a { color: #E6E6E8; }
.source-note a:hover { color: #FFB38A; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Products */
.product-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 40px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 34px;
  display: flex; flex-direction: column; gap: 16px;
}
.product-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-card.dark p { color: var(--on-dark); }
.product-card.dark a { color: #fff; }
.product-card.dark a:hover { color: #FFB38A; }
.product-card h3 { font-size: 30px; }
.product-card p { color: var(--ink-soft); max-width: 52ch; }
.product-card .text-link { margin-top: auto; padding-top: 8px; }
.chip {
  align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 10px; color: var(--orange-text);
}
.product-card.dark .chip { color: #FFB38A; }
.product-card .checks { margin-top: 4px; }
@media (max-width: 860px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.benefit svg { width: 40px; height: 40px; margin-bottom: 16px; }
.benefit h3 { font-size: 21px; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 960px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefit-grid { grid-template-columns: minmax(0, 1fr); } }

/* Steps (high level) */
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange-text);
  font-family: var(--mono); font-weight: 500; margin-bottom: 20px;
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card-icon { width: 48px; height: 48px; color: var(--ink); margin-bottom: 18px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); }
@media (max-width: 860px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* App */
.app { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.app-copy > p { color: var(--ink-soft); max-width: 46ch; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232F7D4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

.phone {
  width: 100%; max-width: 340px; margin: 0 auto;
  background: var(--ground); border: 10px solid var(--ink); border-radius: 40px;
  overflow: hidden; padding-bottom: 18px;
}
.phone-alert { background: var(--orange-text); color: #fff; padding: 26px 20px 18px; display: flex; flex-direction: column; }
.phone-alert-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.phone-alert-sub { font-size: 14px; }
.phone-card { margin: 12px 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.phone-card svg { width: 100%; height: auto; aspect-ratio: 350 / 240; }
.phone-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.phone-zones { display: grid; gap: 8px; font-size: 14px; }
.phone-zones > span { display: flex; justify-content: space-between; align-items: center; }
.phone-zones b { font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.phone-zones .ok { color: var(--ok); background: var(--ok-bg); }
.phone-zones .alert { color: #fff; background: var(--orange-text); }
.phone-caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
@media (max-width: 860px) { .app-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* Who */
.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.who-item { border-top: 2px solid var(--ink); padding-top: 20px; }
.who-item h3 { font-size: 20px; margin-bottom: 8px; }
.who-item p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 960px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: minmax(0, 1fr); } }

/* Labs */
.labs-hero { background: var(--ink); color: #fff; padding: 88px 0 96px; }
.labs-hero .lede { color: var(--on-dark); max-width: 44ch; }
.labs-logo { width: 300px; height: auto; margin-bottom: 36px; }
.labs-hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin-bottom: 22px; max-width: 16ch; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.area {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.area h3 { font-size: 24px; }
.area p { color: var(--ink-soft); }
.area .redacted { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.area .redacted span { height: 10px; border-radius: 4px; background: var(--ground); border: 1px solid var(--line); }
.area .redacted span:nth-child(2) { width: 82%; }
.area .redacted span:nth-child(3) { width: 58%; }
@media (max-width: 860px) { .area-grid { grid-template-columns: minmax(0, 1fr); } }
.partner-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.partner-list li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }

/* Labs teaser band on the home page */
.labs-band { background: var(--ink); color: #fff; }
.labs-band-inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.labs-band .labs-logo { width: 260px; margin: 8px 0 0; }
.labs-band p { color: var(--on-dark); max-width: 58ch; }
.labs-band .text-link { color: #fff; margin-top: 22px; }
.labs-band .text-link:hover { color: #FFB38A; }
@media (max-width: 860px) { .labs-band-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } .labs-band .labs-logo { width: 220px; } }

/* Call to action band */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-inner h2 { font-size: clamp(28px, 3.4vw, 38px); max-width: 22ch; }
.cta-inner p { color: var(--ink-soft); margin-top: 10px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .cta-inner { padding: 28px; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.form-grid > * { min-width: 0; }
.form-grid > div > p:not(.eyebrow) { color: var(--ink-soft); }
.inquiry-form {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  font: 16px/1.4 var(--font); color: var(--ink);
  border: 1.5px solid #BDBDB8; border-radius: 12px; padding: 12px 14px; background: #fff; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-error { font-size: 13px; color: var(--error); }
.form-status { font-size: 15px; color: var(--muted); min-height: 1.5em; }
.form-status:empty { display: none; }
.form-status.success { color: var(--ok); font-weight: 600; }
.form-status.error { color: var(--error); }
.form-privacy { font-size: 13px; color: var(--muted); }
.form-privacy a { color: var(--ink); }
.inquiry-form button[disabled] { opacity: 0.6; cursor: progress; }
/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .inquiry-form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
}

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 40px; border-top: 1px solid #34353A; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 140px; height: auto; }
.footer-tagline { font-size: 18px; font-weight: 500; }
.footer-col h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 500; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #FFB38A; }
.footer-meta { font-size: 14px; color: var(--on-dark-muted); margin-top: 40px; padding-top: 24px; border-top: 1px solid #34353A; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .flush-top { padding-top: 0; }
  .hero { padding: 48px 0 72px; }
  .labs-hero { padding: 56px 0 72px; }
  .lede { font-size: 18px; }
  .cta-band { padding-bottom: 72px; }
}
