:root {
  --ink: #101a27;
  --ink-2: #17283b;
  --paper: #fbf7ef;
  --paper-2: #f1eadc;
  --white: #ffffff;
  --muted: #5e6671;
  --line: #d8d0c2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --orange: #ff5a36;
  --orange-dark: #b9361e;
  --yellow: #f5c94a;
  --green: #a3d139;
  --blue: #8ea6ff;
  --radius: 16px;
  --shadow: 0 22px 60px rgba(16, 26, 39, 0.12);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--orange-dark); }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(11, 21, 34, 0.96);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(12px);
}
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; font-weight: 850; letter-spacing: .08em; }
.brand-mark { width: 42px; height: 25px; overflow: visible; flex: 0 0 auto; }
.brand-mark path { fill: none; stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.brand-mark .mark-navy { stroke: currentColor; }
.brand-mark .mark-orange { stroke: #ff7658; }
.brand-mark .mark-green { stroke: #a3d139; }
.brand-sub { color: #aeb9c5; font-size: 12px; font-weight: 650; }
.desktop-nav { display: flex; align-items: center; gap: 22px; }
.desktop-nav a { color: #dce4ed; text-decoration: none; font-size: 14px; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--white); }
.nav-login { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; }
.nav-login:hover { border-color: rgba(255,255,255,.62); }
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 15px; border-radius: 8px; background: var(--orange); color: var(--ink) !important; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { min-width: 48px; min-height: 44px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-dark); border-radius: 8px; list-style: none; font-weight: 750; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: 52px; width: min(290px, calc(100vw - 32px)); padding: 10px; display: grid; gap: 4px; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--ink-2); box-shadow: var(--shadow); }
.mobile-menu a { min-height: 44px; display: flex; align-items: center; padding: 9px 12px; color: var(--white); text-decoration: none; border-radius: 8px; }
.mobile-menu .mobile-cta { color: var(--ink); background: var(--orange); }
.eyebrow { margin: 0 0 14px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow.light { color: var(--yellow); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 850px; margin-bottom: 22px; font-size: clamp(42px, 7vw, 80px); }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 52px); }
h3 { margin-bottom: 10px; font-size: 22px; }
.lede { max-width: 740px; margin: 0; color: #c2ccd7; font-size: clamp(17px, 2vw, 20px); }
.page-lede { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; }
.hero { color: var(--white); background: var(--ink); overflow: hidden; }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr); gap: 64px; align-items: center; padding-block: 76px; }
.hero-actions, .button-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; text-decoration: none; font-weight: 800; }
.button.primary { color: var(--ink); background: var(--orange); }
.button.primary:hover { background: #ff7658; }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.28); background: transparent; }
.button.dark { color: var(--white); background: var(--ink); }
.button.outline { color: var(--ink); border-color: #a79f92; background: transparent; }
.hero-note { margin-top: 18px; color: #aeb9c5; font-size: 13px; }
.hero-note a { color: #ff9a84; font-weight: 800; }
.hero-console { padding: 20px; border: 1px solid var(--line-dark); border-radius: 18px; background: #101f30; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.console-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); color: #bfc9d4; font-size: 12px; }
.console-row { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.console-row:last-child { border-bottom: 0; }
.console-row strong { display: block; margin-bottom: 5px; color: var(--white); font-size: 14px; }
.console-row span { color: #bfc9d4; font-size: 13px; }
.tag { display: inline-flex; margin-top: 9px; padding: 4px 8px; border-radius: 999px; color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.console-row .tag { color: var(--ink); }
.tag.needs-you { background: #ff7658; }
.tag.blocked { background: #f5c94a; }
.tag.going-stale { background: #9fb3ff; }
.page-hero { padding-block: 88px 72px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 920px; margin-bottom: 20px; color: var(--ink); font-size: clamp(42px, 6vw, 68px); }
.section { padding-block: 88px; }
.section.dark { color: var(--white); background: var(--ink); }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.dark .section-head p { color: #bdc8d4; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.58); }
.card h2 { margin-bottom: 10px; font-size: 22px; }
.card p + p { margin-top: 14px; }
.dark .card { border-color: var(--line-dark); background: rgba(255,255,255,.04); }
.card p { margin: 0; color: var(--muted); }
.dark .card p { color: #bdc8d4; }
.card-kicker { display: block; margin-bottom: 16px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dark .card-kicker { color: var(--yellow); }
.number { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 10px; color: var(--ink); background: var(--yellow); font-weight: 900; }
.callout { padding: 28px; border-left: 5px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: var(--white); box-shadow: var(--shadow); }
.callout p:last-child { margin-bottom: 0; }
.list-clean { padding: 0; margin: 0; list-style: none; }
.list-clean li { position: relative; padding: 9px 0 9px 28px; }
.list-clean li::before { content: "✓"; position: absolute; left: 0; color: var(--orange-dark); font-weight: 900; }
.demo { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 18px; background: #101f30; box-shadow: var(--shadow); }
.demo-top { padding: 16px 20px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-dark); color: #bcc7d2; font-size: 12px; }
.demo-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.thread-buttons { padding: 14px; border-right: 1px solid var(--line-dark); }
.inbox-list-heading { display: flex; justify-content: space-between; gap: 12px; padding: 5px 8px 15px; color: #91a0ad; font-size: 12px; }
.inbox-list-heading strong { color: var(--white); font-size: 14px; }
.thread-button { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 0 10px; margin-bottom: 7px; padding: 14px; color: #dbe3ec; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; }
.thread-button:hover, .thread-button[aria-pressed="true"] { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.thread-priority { width: 8px; height: 8px; grid-row: 1 / 3; margin-top: 7px; border-radius: 50%; }
.thread-priority.critical { background: #ff7658; }
.thread-priority.blocked { background: #f5c94a; }
.thread-priority.stale { background: #9fb3ff; }
.thread-copy { min-width: 0; }
.thread-button strong, .thread-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-button strong { margin-bottom: 2px; color: var(--white); font-size: 14px; }
.thread-copy span, .thread-button small { color: #aeb9c5; font-size: 12px; }
.thread-button time { color: #9baab7; font-size: 11px; white-space: nowrap; }
.thread-button small { grid-column: 2 / -1; margin-top: 8px; line-height: 1.4; }
.demo-detail { min-height: 540px; padding: 24px 28px 28px; color: var(--white); }
.demo-detail > p { color: #c3cdd6; }
.email-detail-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; color: #9baab7; font-size: 12px; }
.demo-status { padding: 3px 8px; border-radius: 999px; color: var(--ink); background: #ff7658; font-weight: 850; white-space: nowrap; }
.demo-status.blocked { background: #f5c94a; }
.demo-status.going-stale { background: #9fb3ff; }
.summary-panel { padding: 16px 18px; margin: 18px 0 0; border: 1px solid rgba(163,209,57,.32); border-radius: 10px; background: rgba(163,209,57,.08); }
.summary-panel strong { color: #d9f19d; font-size: 13px; }
.summary-panel p { margin: 7px 0 0; color: #e2e8ee; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-block: 24px; }
.fact { padding: 12px; border: 1px solid var(--line-dark); border-radius: 9px; background: rgba(255,255,255,.04); }
.fact small { display: block; color: #94a1ae; }
.fact strong { display: block; margin-top: 3px; color: var(--white); }
.action-box { padding: 16px; border-left: 4px solid var(--green); background: rgba(163,209,57,.08); }
.message-stack { display: grid; gap: 9px; margin-bottom: 20px; }
.message-preview { padding: 13px 15px; border: 1px solid var(--line-dark); border-radius: 9px; background: rgba(255,255,255,.035); }
.message-preview.outbound { margin-left: 36px; background: rgba(142,166,255,.09); }
.message-preview header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #bdc8d4; font-size: 12px; }
.message-preview p { margin: 0; color: #dce4ec; font-size: 13px; line-height: 1.5; }
.draft-box { display: none; margin-top: 16px; padding: 16px; white-space: pre-line; border: 1px solid var(--line-dark); border-radius: 10px; color: #dce4ec; background: rgba(0,0,0,.18); }
.draft-box.visible { display: block; }
.status-strip { padding: 14px 18px; border: 1px solid #e0b835; border-radius: 10px; background: #fff5cd; color: #4c3b00; font-weight: 750; }
.draft-banner { padding: 14px 18px; color: #4c3b00; background: #fff0b8; border-bottom: 1px solid #d9b54b; text-align: center; font-weight: 850; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.55); }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list p { margin: 13px 0 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 13px; border: 1px solid #a9a194; border-radius: 9px; color: var(--ink); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: 13px; }
.local-result { display: none; margin-top: 18px; padding: 16px; border: 1px solid #96b937; border-radius: 10px; background: #edf7d1; }
.local-result.visible { display: block; }
.compliance-grid a { color: inherit; text-decoration: none; }
.compliance-grid .card { height: 100%; transition: transform .16s ease, box-shadow .16s ease; }
.compliance-grid a:hover .card { transform: translateY(-3px); box-shadow: var(--shadow); }
.site-footer { padding-block: 50px; color: #aeb9c5; background: #081019; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr; gap: 32px; }
.footer-grid h2 { margin-bottom: 12px; color: var(--white); font-size: 16px; letter-spacing: 0; }
.footer-grid p { margin: 0; font-size: 13px; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #dce4ed; text-decoration: none; font-size: 13px; }
.footer-bottom { margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); font-size: 12px; }
.dev-badge { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--yellow); font-weight: 850; }

@media (max-width: 940px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; min-height: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .demo-grid { grid-template-columns: 1fr; }
  .thread-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .inbox-list-heading { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 28px, var(--content)); }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-grid { padding-block: 54px; }
  .page-hero { padding-block: 62px 52px; }
  .section { padding-block: 64px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child, .field.full { grid-column: auto; }
  .thread-buttons { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .demo-detail { min-height: 0; padding: 20px; }
}
@media (max-width: 430px) {
  h1 { font-size: 42px; }
  .hero-actions .button, .button-row .button { width: 100%; }
  .fact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
