/* Airy Light 2 — editorial restraint + mobile layout fixes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.lab-banner {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .01em;
  border-bottom: 1px solid var(--lab-banner-border, rgba(0,0,0,.08));
  background: var(--lab-banner-bg, #fff);
  color: var(--lab-banner-fg, #555);
  line-height: 1.35;
  text-align: center;
}
.lab-banner a { color: var(--lab-banner-link, #2563eb); text-decoration: none; font-weight: 600; }
.lab-banner a:hover { text-decoration: underline; }

:root {
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shell: 1120px;
  --header-height: 60px;
  --lab-banner-offset: 33px;
  /* Quiet, near-flat shadows */
  --shadow-xs: 0 1px 2px rgba(18, 22, 31, .04);
  --shadow-sm: 0 2px 8px rgba(18, 22, 31, .05);
  --shadow-md: 0 4px 16px rgba(18, 22, 31, .06);
  --shadow-lg: 0 8px 28px rgba(18, 22, 31, .07);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 104px;
}

html {
  scroll-padding-top: calc(var(--header-height) + var(--lab-banner-offset) + 12px);
  overflow-x: clip;
}
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  background: var(--t-canvas);
  color: var(--t-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.shell { width: min(calc(100% - 64px), var(--shell)); }
.section { padding: var(--space-8) 0; }
.section-small { padding: var(--space-7) 0; }

/* ——— Nav: solid, no glass ——— */
.site-header {
  top: var(--lab-banner-offset);
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--t-canvas);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--t-border);
  background: #fff;
  box-shadow: none;
}
.brand {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.desktop-nav a,
.sign-in {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t-ink-soft);
}
.desktop-nav a:hover,
.sign-in:hover { color: var(--t-ink); }
.header-actions { gap: 10px; }

/* ——— Buttons: solid, no glow / lift ——— */
.button, .button-primary, .button-secondary, .button-white, .button-dark-outline,
.bento-card, .hero-product, .hero-photo-card, .demo-shell, .demo-image-panel,
.product-card, .solution-grid article, .spec-definition-card, .custom-spec-callout,
.sample-button, .document-tab, .country-tags span, .output-options span,
.mini-check-list li, .hero-checks div, .final-cta-inner, .faq-list details,
.privacy-grid, .privacy-grid article, .code-window {
  border-radius: var(--radius) !important;
}
.button {
  border-radius: 10px !important;
  min-height: 46px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  padding: 0 22px;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { transform: none !important; }
.button-small {
  border-radius: 8px !important;
  min-height: 36px;
  font-size: 13px;
  padding: 0 14px;
}
.button-primary {
  background: var(--t-accent) !important;
  color: var(--t-on-accent);
  border-color: transparent;
  box-shadow: none !important;
}
.button-primary:hover {
  background: var(--t-accent-dark) !important;
  transform: none !important;
  box-shadow: none !important;
}
.button-secondary {
  background: #fff;
  border: 1px solid var(--t-border-strong);
  color: var(--t-ink);
  box-shadow: none !important;
}
.button-secondary:hover {
  border-color: #b8c0cc;
  background: #fff;
  box-shadow: none !important;
  transform: none !important;
}

/* ——— Hero: flat canvas, no radial glow ——— */
.hero.section {
  padding-block: 80px 72px;
  min-height: auto;
  position: relative;
  background: var(--t-canvas) !important;
  background-image: none !important;
  overflow: visible;
}
.hero::after { display: none !important; }
.hero h1 {
  font-size: clamp(40px, 4.8vw, 60px);
  font-weight: 700;
  letter-spacing: -0.036em;
  line-height: 1.08;
  color: var(--t-ink);
}
.hero h1 > span {
  color: var(--t-ink-soft);
  font-weight: 600;
}
.hero-lead {
  font-size: 17.5px;
  line-height: 1.62;
  max-width: 520px;
  color: var(--t-ink-soft);
  font-weight: 400;
  margin-top: 4px;
}
.hero-grid { gap: 56px; align-items: center; }
.hero-actions {
  margin-top: 24px;
  gap: 10px;
}
.hero-docs {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}
.hero-proof {
  margin-top: 16px;
  color: var(--t-ink-mute);
  font-size: 13px;
}
.hero-checks { gap: 8px; margin-top: 18px; }
.hero-checks div {
  font-size: 13px;
  font-weight: 500;
  color: var(--t-ink-soft);
  background: transparent !important;
  border: 0 !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.hero-product {
  border: 1px solid var(--t-border);
  box-shadow: var(--shadow-sm);
  background: #fff;
  overflow: hidden;
  border-radius: var(--radius-lg) !important;
  max-width: 100%;
}
.hero-product::before { display: none !important; }
.hero-photo-card {
  box-shadow: none;
  border: 1px solid var(--t-border);
  min-width: 0;
}
.hero-workflow {
  min-width: 0;
  max-width: 100%;
}

/* ——— Proof band ——— */
.proof-band {
  padding: 28px 0;
  border-block: 1px solid var(--t-border);
  background: #fff;
}
.proof-grid { gap: 20px; }
.proof-grid strong {
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.proof-grid span {
  font-size: 13px;
  color: var(--t-ink-mute);
  line-height: 1.45;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: inherit !important;
}

/* ——— Section titles ——— */
.section-heading { margin-bottom: 44px; }
.section-heading h2,
.specs-copy h2,
.faq-intro h2,
.privacy-heading h2,
.api-bridge-copy h2 {
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--t-ink);
}
.section-heading > p:last-child,
.specs-copy > p,
.split-heading > p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--t-ink-soft);
  max-width: 560px;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t-ink-mute) !important;
  font-family: inherit !important;
}

/* ——— Cards & grids: flatter, less “perfect SaaS” ——— */
.bento-grid {
  gap: 16px !important;
  border: 0 !important;
}
.bento-card {
  border: 1px solid var(--t-border) !important;
  background: #fff !important;
  box-shadow: none;
  transition: border-color .15s ease;
}
.bento-card:hover {
  box-shadow: none;
  border-color: var(--t-border-strong) !important;
  transform: none !important;
}
.bento-large { background: #fff !important; padding: 32px 0 0 32px; }
.bento-small { padding: 28px; }
.bento-card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.demo-shell {
  border: 1px solid var(--t-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  background: #fff;
}
.demo-toolbar {
  background: var(--t-surface-alt) !important;
  border-bottom: 1px solid var(--t-border);
}

.solution-grid {
  gap: 14px !important;
  border: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: transparent !important;
}
.solution-grid article {
  border: 1px solid var(--t-border) !important;
  border-top: 1px solid var(--t-border) !important;
  border-left: 1px solid var(--t-border) !important;
  background: #fff;
  padding: 26px 24px;
  box-shadow: none;
  min-height: 0 !important;
  transition: border-color .15s ease;
}
.solution-grid article:hover {
  box-shadow: none;
  border-color: var(--t-border-strong) !important;
  transform: none !important;
}
.solution-grid h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.product-grid {
  gap: 14px !important;
  border: 0 !important;
}
.product-card {
  border: 1px solid var(--t-border) !important;
  border-radius: var(--radius) !important;
  background: #fff !important;
  box-shadow: none;
  padding: 26px;
  min-height: 0 !important;
  transition: border-color .15s ease;
}
.product-card:hover {
  box-shadow: none;
  background: #fff !important;
  border-color: var(--t-border-strong) !important;
  transform: none !important;
}
.product-card h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.spec-definition-card {
  border: 1px solid var(--t-border);
  box-shadow: none;
  background: #fff;
}
.custom-spec-callout {
  background: var(--t-accent-soft);
  border-color: #d5e0f2;
  box-shadow: none;
}

.privacy-grid {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--t-border);
  box-shadow: none;
}

/* ——— FAQ: simple list, not card stack ——— */
.faq-list { border: 0 !important; }
.faq-list details {
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--t-border) !important;
  margin-bottom: 0;
  padding: 4px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.faq-list details[open] {
  border-color: var(--t-border) !important;
  box-shadow: none !important;
}
.faq-list summary {
  font-weight: 600;
  letter-spacing: -0.012em;
}

/* ——— Final CTA: solid, quiet ——— */
.final-cta {
  padding-block: 64px 88px;
  background: var(--t-canvas);
  border: 0;
}
.final-cta-inner {
  border-radius: var(--radius-lg) !important;
  padding: 64px 52px;
  box-shadow: none;
  border: 1px solid transparent;
  background: var(--t-cta) !important;
}
.final-cta-inner::before { display: none !important; }
.cta-decoration { display: none !important; }

/* ——— Section surface rhythm ——— */
.capabilities,
.specs-section,
.products-section,
.privacy-section { background: #fff; }
.solutions-section,
.demo-section,
.faq-section { background: var(--t-surface-alt); }
.api-bridge { background: #fff; }

.code-window {
  border: 1px solid var(--t-deep-border);
  box-shadow: var(--shadow-xs);
}


/* Pin chrome while the mobile menu is open (overflow:hidden breaks sticky) */
body.menu-open { overflow: hidden; }
body.menu-open .lab-banner {
  position: fixed;
  left: 0; right: 0; top: 0;
  width: 100%;
}
body.menu-open .site-header {
  position: fixed;
  left: 0; right: 0;
  top: var(--lab-banner-offset);
  width: 100%;
}

/* ========== Tablet ========== */
@media (max-width: 960px) {
  :root { --lab-banner-offset: 32px; }
  .lab-banner {
    padding: 8px 12px;
    gap: 6px;
    font-size: 11.5px;
  }
  .site-header { top: var(--lab-banner-offset); }
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .final-cta-inner { padding: 44px 28px; }
  .hero.section { padding-block: 56px 48px; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .hero-product { width: min(100%, 640px); margin-inline: auto; }
  .hero-workflow {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) !important;
    gap: 8px;
    padding-inline: 14px;
    min-width: 0;
  }
  .mobile-nav {
    /* Viewport-fixed: header no longer creates a containing block */
    position: fixed !important;
    top: calc(var(--lab-banner-offset) + var(--header-height)) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset-inline: 0 !important;
    max-height: none;
    height: auto;
    background: #fff !important;
    border-top: 1px solid var(--t-border);
    z-index: 180;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
}

/* ========== Phone ========== */
@media (max-width: 680px) {
  :root {
    --lab-banner-offset: 32px;
    --header-height: 56px;
  }
  .lab-banner {
    padding: 7px 10px;
    font-size: 11px;
    gap: 4px 8px;
    /* Prefer one line when possible; wrap cleanly if not */
    line-height: 1.3;
  }
  .site-header { top: var(--lab-banner-offset); }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding: 64px 0; }
  .section-small { padding: 52px 0; }

  .solution-grid { grid-template-columns: 1fr; }
  .solution-grid article,
  .solution-grid article:nth-child(3),
  .solution-grid article:nth-child(4) {
    min-height: 0 !important;
    border: 1px solid var(--t-border) !important;
  }

  .hero.section {
    padding-block: 40px 36px;
    min-height: 0 !important;
  }
  .hero h1 { font-size: clamp(32px, 8.5vw, 42px); }
  .hero-lead { font-size: 16px; max-width: none; }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .hero-actions .button {
    width: 100% !important;
    min-height: 48px;
  }
  .button { min-height: 46px; border-radius: 10px !important; }
  .final-cta-inner { padding: 36px 20px; width: calc(100% - 28px) !important; }
  .bento-large {
    padding: 24px !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  .bento-small { padding: 22px; min-height: 0 !important; }
  .bento-grid { grid-template-columns: 1fr !important; }

  /* Stack hero photo comparison — fixes cramped / cut-off cards */
  .hero-workflow {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px 12px !important;
    min-height: 0 !important;
  }
  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
    width: 28px;
    height: 28px;
  }
  .hero-photo-card { width: 100%; max-width: 280px; margin-inline: auto; }
  .source-photo-wrap { height: auto !important; aspect-ratio: 1; }
  .hero-checks {
    flex-direction: column !important;
    padding: 0 12px 16px !important;
    gap: 6px !important;
  }
  .hero-product-top { padding-inline: 12px !important; }
  .api-status { padding: 12px !important; flex-wrap: wrap; }

  .proof-grid { grid-template-columns: 1fr !important; }
  .proof-grid > div,
  .proof-grid > div:nth-child(even),
  .proof-grid > div:nth-child(3),
  .proof-grid > div:nth-child(4) {
    min-height: 0 !important;
    padding: 16px 0 !important;
    border-left: 0 !important;
    border-top: 1px solid var(--t-border) !important;
  }
  .proof-grid > div:first-child { border-top: 0 !important; padding-top: 0 !important; }

  .product-grid { grid-template-columns: 1fr !important; }
  .product-card { padding: 22px; }

  .faq-list summary {
    font-size: 16px;
    padding-block: 16px;
    min-height: 48px;
  }
  .faq-list details p {
    padding-right: 8px !important;
    font-size: 15px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .demo-toolbar { padding: 14px; }
  .demo-content { padding: 10px; min-width: 0; }
  .demo-result-grid { grid-template-columns: 1fr !important; }
  .document-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .document-tab { flex: 0 0 auto; }

  .section-heading h2,
  .specs-copy h2,
  .faq-intro h2,
  .privacy-heading h2,
  .api-bridge-copy h2 { font-size: 28px; }

  .privacy-grid { grid-template-columns: 1fr !important; }
  .privacy-grid article,
  .privacy-grid article:nth-child(3),
  .privacy-grid article:nth-child(4) {
    min-height: 0 !important;
    border-color: var(--t-border) !important;
  }

  .code-window { max-width: 100%; }
  .code-window pre {
    padding: 16px 12px;
    font-size: 12.5px;
    overflow-x: auto;
  }

  .bridge-actions,
  .final-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bridge-actions .button,
  .final-actions .button { width: 100%; }
}

/* Banner wraps below ~440px — match sticky offset to real height */
@media (max-width: 420px) {
  :root { --lab-banner-offset: 48px; }
}

/* Extra-narrow phones */
@media (max-width: 400px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .hero h1 { font-size: clamp(30px, 8vw, 36px); }
  .lab-banner { font-size: 10.5px; padding: 6px 8px; }
}
