/* shared.css — design tokens + chrome reused across subpages (contact, features, saas, ecommerce, high-volume) */

:root {
  --bg: #F6F4EE;
  --surface: #FFFFFF;
  --ink: #0B0B0E;
  --ink-2: #1A1A22;
  --ink-3: #3D3D49;
  --ink-4: #6B6B78;
  --ink-5: #9C9CA8;
  --rule: #E6E2D6;
  --rule-soft: #EFEBDD;
  --accent: #1E3AFF;
  --accent-deep: #0F1F8C;
  --accent-soft: #E6E9FF;
  --accent-2: #FF5B2E;
  --highlight: #E8FF52;
  --green: #00B86B;
  --green-soft: #E1F8EC;
  --red: #FF3A3A;
  --amber: #FFB020;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; width: 100%; }

.serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400; letter-spacing: -0.02em;
}
.micro {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.display {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: var(--ink);
}
.h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  font-size: 17px;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand .dot { color: var(--accent); }
.nav { display: inline-flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink-3); font-size: 14px; font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active { font-weight: 600; }
@media (max-width: 880px) { .nav { display: none; } }
.header-actions { display: inline-flex; align-items: center; gap: 14px; }
.header-signin {
  color: var(--ink-2);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.header-signin:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap; letter-spacing: -0.005em;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 20px -8px rgba(11,11,14,0.4);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 20px -8px rgba(30,58,255,0.45);
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-on-dark {
  background: #fff; color: var(--ink);
}
.btn-on-dark:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost-on-dark {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost-on-dark:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.32); }

/* Page hero (subpage standard) */
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 3vw, 40px);
}
.page-hero .micro { margin-bottom: 18px; display: inline-block; }
.page-hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.98;
  margin: 0 0 22px;
  max-width: 18ch;
}
.page-hero p.lede {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-3);
  max-width: 60ch;
  margin: 0 0 30px;
  line-height: 1.55;
}
.page-hero .hero-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
}

/* Section */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

/* Section divider */
.divider {
  padding: clamp(20px, 3vw, 36px) 0;
}
.divider__line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rule) 18%,
    var(--rule) 82%,
    transparent 100%);
}

/* FAQ */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px; color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 72ch;
}

/* Final CTA */
.final-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  margin: clamp(40px, 5vw, 72px) 0;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 90% at 80% 20%, color-mix(in oklch, var(--accent) 35%, transparent), transparent 60%);
  pointer-events: none;
}
.final-cta .micro { color: var(--highlight); margin-bottom: 18px; display: inline-block; }
.final-cta h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0 0 18px;
  max-width: 20ch;
  position: relative;
}
.final-cta p {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  margin: 0 0 28px;
  position: relative;
}
.final-cta .actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  position: relative;
}

/* Founder voice note — subtle card on subpages */
.founder-note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .founder-note { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px; }
}
.founder-note__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--rule);
}
@media (max-width: 520px) {
  .founder-note__photo { width: 56px; height: 56px; }
}
.founder-note__body { min-width: 0; }
.founder-note__quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.founder-note__attrib {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.founder-note__attrib b {
  color: var(--ink); font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--sans);
  font-size: 13px;
}
.founder-note__attrib a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.founder-note__attrib a:hover { opacity: 0.75; }
.founder-note__sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-5); opacity: 0.6;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  background: var(--bg);
}
footer.site-footer .row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
footer.site-footer .meta { color: var(--ink-4); font-size: 13px; }
footer.site-footer .foot-links {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-4); font-size: 13px;
  flex-wrap: wrap;
}
footer.site-footer .foot-links a {
  color: var(--ink-2); transition: color .15s ease;
}
footer.site-footer .foot-links a:hover { color: var(--ink); }
footer.site-footer .foot-links .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-4); opacity: 0.5;
}

/* ── Mobile (subpages: features / saas / ecommerce / high-volume) ─── */
@media (max-width: 760px) {
  :root { --gutter: 18px; --radius: 12px; }
  html, body { font-size: 15px; }

  /* Header */
  .site-header .row { height: 56px; gap: 10px; }
  .brand { font-size: 15px; }
  .brand img { width: 24px; height: 24px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 14px; font-size: 13px; }
  .header-signin { font-size: 13px; }

  /* Page hero */
  .page-hero { padding: 32px 0 16px; }
  .page-hero .micro { margin-bottom: 14px; font-size: 11px; }
  .page-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
    max-width: 100%;
    text-wrap: balance;
  }
  .page-hero h1 br { display: none; }
  .page-hero p.lede {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .page-hero p.lede br { display: none; }
  .page-hero .hero-actions { gap: 10px; width: 100%; }
  .page-hero .hero-actions .btn { padding: 12px 16px; font-size: 14px; flex: 1; min-width: 0; justify-content: center; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }
  .divider { padding: 16px 0; }

  /* FAQ */
  .faq-item { padding: 18px 0; }
  .faq-item summary { font-size: 16px; gap: 14px; }
  .faq-item p { font-size: 14.5px; }

  /* Final CTA */
  .final-cta {
    border-radius: 18px;
    padding: 40px 22px;
    margin: 24px 0;
  }
  .final-cta .micro { margin-bottom: 14px; }
  .final-cta h2 { font-size: clamp(28px, 8.5vw, 40px); letter-spacing: -0.03em; }
  .final-cta p { font-size: 15px; margin-bottom: 22px; }
  .final-cta .actions { width: 100%; gap: 10px; }
  .final-cta .actions .btn { flex: 1; min-width: 0; justify-content: center; padding: 12px 16px; font-size: 14px; }

  /* Footer */
  footer.site-footer { padding: 24px 0; }
  footer.site-footer .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer.site-footer .meta { font-size: 12px; }
  footer.site-footer .foot-links { font-size: 12.5px; gap: 12px; }

  /* Buttons base — never let them blow out the row */
  .btn { white-space: normal; }
}

@media (max-width: 420px) {
  .page-hero h1 { font-size: clamp(28px, 9vw, 36px); }
  .final-cta h2 { font-size: clamp(26px, 8vw, 34px); }
  .page-hero .hero-actions { flex-direction: column; }
  .page-hero .hero-actions .btn { width: 100%; flex: 0 0 auto; }
  .final-cta .actions { flex-direction: column; }
  .final-cta .actions .btn { width: 100%; flex: 0 0 auto; }
}
