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

:root {
  /* Surface palette — from STrOp design system */
  --bg: #f0ece5;
  --bg2: #e8e4dd;
  --surface: #f7f4ef;
  --card: #faf8f4;
  --card2: #ede9e1;

  /* Ink scale */
  --ink: #1a1714;
  --ink2: #2a2420;
  --ink3: #4a4440;
  --ink4: #6a6460;
  --ink5: #75695f; /* AA (5.3:1) on white — was #9a9088 (3.1:1) */

  /* Rules */
  --rule: #ddd8ce;
  --rule2: #ccc6ba;

  /* Brand */
  --brand: #a85c08; /* AA (5.0:1) for white button text and links — was #b56e0a (4.0:1) */
  --brand-dim: #e8a44a;
  --brand-light: #f5e6cc;
  --brand-dark: #7a4506;

  /* Module colors (used in boxes palette) */
  --c-setup: #d4b896;
  --c-field: #c8956a;

  /* Dark bar (footer, dark CTA) */
  --bar-bg: #1a1714;
  --bar-rule: rgba(255, 255, 255, 0.07);

  --font: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-condensed: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max-width: 1080px;
  --radius: 7px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 6px 20px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: #fff;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--brand-dim);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark span {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.logo-text {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.12s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--brand);
  padding: 8px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.12s;
}

.nav-cta:hover {
  background: var(--brand-dark);
}

/* Boxes wrapper — spans hero + pain so the grid is continuous */
.boxes-wrapper {
  position: relative;
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  padding: 160px 0 100px;
  pointer-events: none;
}

/* Boxes grid layer */
.hero-boxes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.boxes-grid {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-20%, -50%) skewX(-48deg) skewY(14deg) scale(0.675);
}

.boxes-row {
  display: flex;
}

.boxes-cell {
  flex-shrink: 0;
  border-right: 1px solid rgba(120, 90, 40, 0.14);
  border-bottom: 1px solid rgba(120, 90, 40, 0.14);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boxes-plus {
  color: rgba(120, 90, 40, 0.22);
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Radial vignette — fades grid to white at edges */
.hero-boxes-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 0%, transparent 55%, #fff 98%);
  pointer-events: none;
}

/* Left curtain — solid wash so headline sits on clean background */
.hero-boxes-curtain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, #fff 0%, #fff 38%, transparent 56%);
  pointer-events: none;
}

/* Content sits above masks but passes pointer events to boxes */
.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

.hero-left {
  max-width: 520px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-condensed);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 24px;
}

.highlight {
  color: var(--brand);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink4);
  max-width: 520px;
  margin: 0 0 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Launch pill — dismissible news strip in the hero; script.js reveals it
   while the announcement window is open and it hasn't been dismissed. */
.launch-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  background: var(--brand-light);
  border: 1px solid var(--brand-dim);
  border-radius: var(--radius);
}

/* The explicit display above would otherwise defeat the `hidden` attribute. */
.launch-pill[hidden] {
  display: none;
}

.launch-pill a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 2px 7px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-dark);
  text-decoration: none;
}

.launch-pill a:hover span:last-child {
  text-decoration: underline;
}

.launch-pill-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand-dark);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.launch-pill-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1;
  padding: 8px 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--card2);
  color: var(--ink3);
  border: 1px solid var(--rule);
}

.btn-secondary:hover {
  color: var(--ink);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Pain section */
.pain {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  pointer-events: none;
}

.pain a,
.pain button,
.pain input,
.pain select {
  pointer-events: auto;
}

/* Frosted backdrop for centered text sitting over the boxes grid */
.pain > .container,
.how > .container,
.bot-content {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  padding: 48px 32px;
}

.pain h2,
.how h2,
.bot-section h2,
.faq h2,
.beta h2 {
  font-family: var(--font-condensed);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--ink4);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.pain-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.pain-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.pain-card p {
  color: var(--ink4);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* How / Lifecycle */
.how {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  pointer-events: none;
}

.how a,
.how button {
  pointer-events: auto;
}

.lifecycle {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lifecycle-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 24px;
  background: var(--surface);
}

.lifecycle-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--brand);
  min-width: 32px;
  padding-top: 4px;
}

.lifecycle-item h3 {
  font-family: var(--font-condensed);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.lifecycle-item p {
  color: var(--ink4);
  font-size: 0.875rem;
}

/* Bot section */
.bot-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  pointer-events: none;
}

.bot-section a,
.bot-section button {
  pointer-events: auto;
}

.bot-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.bot-content p {
  color: var(--ink4);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 16px;
}

/* FAQ */
.faq {
  padding: 100px 0 80px;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  font-family: var(--font-condensed);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--brand);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 4px 20px;
  max-width: 620px;
  color: var(--ink4);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-more {
  text-align: center;
  margin-top: 28px;
}

.faq-more a {
  font-family: var(--font-condensed);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  text-decoration: none;
}

.faq-more a:hover {
  text-decoration: underline;
}

/* Trust band — security posture + integrations, one quiet strip */
.trust {
  padding: 48px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.trust-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.trust-body {
  color: var(--ink3);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Beta / Form — dark CTA variant per style guide */
.beta {
  padding: 100px 0;
  background: var(--bar-bg);
}

.beta h2 {
  color: #fff;
}

.beta .section-sub {
  color: rgba(255, 255, 255, 0.55);
}

.beta-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.beta-form input,
.beta-form select,
.beta-form textarea {
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.12s;
  width: 100%;
}

.beta-form textarea {
  resize: vertical;
  min-height: 64px;
  margin-bottom: 12px;
}

/* Honeypot — hidden from people, present for bots (see app-side /api/beta-signup). */
.hp-field {
  display: none;
}

.turnstile-container:not(:empty) {
  margin-bottom: 12px;
}

.beta-form input::placeholder,
.beta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.beta-form select {
  appearance: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
}

.beta-form select:valid {
  color: rgba(255, 255, 255, 0.9);
}

.beta-form select option {
  background: var(--bar-bg);
  color: rgba(255, 255, 255, 0.9);
}

.beta-form input:focus,
.beta-form select:focus,
.beta-form textarea:focus {
  border-color: var(--brand-dim);
}

.beta-form .btn {
  margin-top: 8px;
  background: var(--brand-dim);
  color: var(--ink);
  font-weight: 700;
}

.beta-form .btn:hover {
  background: var(--brand-light);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: 12px;
}

/* Inline error / validation message — readable amber, drops the mono micro-caps. */
.form-note.error {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--brand-dim);
}

/* Success state */
.form-success {
  text-align: center;
  padding: 40px 0;
}

.form-success h3 {
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.form-success p {
  color: rgba(255, 255, 255, 0.55);
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  background: var(--bar-bg);
  border-top: 1px solid var(--bar-rule);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 4px;
}

.footer-brand .logo-text {
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.footer-links {
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-dim);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  /* Four text links + the CTA don't fit a phone-width row and the site has no
     hamburger, so below the mobile breakpoint the links collapse to the footer
     (which carries all four), leaving the logo and the primary CTA. */
  .nav-links .nav-link {
    display: none;
  }

  .nav-cta {
    padding: 8px 14px;
    white-space: nowrap;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .launch-pill {
    align-items: flex-start;
  }

  .launch-pill a {
    flex-wrap: wrap;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Smallest phones: keep the logo + CTA comfortable once the text links are gone. */
@media (max-width: 380px) {
  .nav-inner {
    padding: 12px;
    gap: 8px;
  }

  .logo {
    gap: 8px;
  }

  .logo-text {
    letter-spacing: 1px;
  }

  .nav-cta {
    font-size: 0.8125rem;
    padding: 7px 12px;
  }
}
