/* ============================================================
   comail — landing
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-100-900.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── tokens ────────────────────────────────────────────────── */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f8f8f7;
  --ink:       #0f1013;
  --ink-2:     #454951;
  --muted:     #6e737e;
  --line:      #e6e6e3;
  --line-soft: #efefec;

  --dark:      #0b0c0f;
  --dark-2:    #101116;

  --accent:    #e84c3d;
  --accent-hi: #ff6b59;
  --accent-dk: #cd3c2e;

  --ok:        #12855f;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* policy pills — light surfaces */
  --allow-bg: #e9f6ef;  --allow-fg: #0b6e4f;  --allow-bd: #c6e5d6;
  --deny-bg:  #f1f2f4;  --deny-fg:  #6e737e;  --deny-bd:  #e2e4e8;
  --hold-bg:  #fdf4e3;  --hold-fg:  #8a5a00;  --hold-bd:  #f0ddb0;

  --r:   14px;
  --r-lg: 18px;
}

/* pills on dark surfaces */
.hero, .close, .code { color-scheme: dark;
  --allow-bg: rgba(45,212,150,.12);  --allow-fg: #54d7a4;  --allow-bd: rgba(84,215,164,.24);
  --deny-bg:  rgba(255,255,255,.05); --deny-fg:  #8a8f9b;  --deny-bd:  rgba(255,255,255,.11);
  --hold-bg:  rgba(245,170,50,.12);  --hold-fg:  #edb24c;  --hold-bd:  rgba(237,178,76,.24);
}

/* ── reset ─────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

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

/* fixed header must not cover the target of an in-page jump */
[id] { scroll-margin-top: 88px; }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-size: .875rem;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 16px; }

/* ── typography ────────────────────────────────────────────── */

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.3rem + 4.2vw, 4.05rem); line-height: 1.04; letter-spacing: -0.042em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2vw, 2.85rem); line-height: 1.08; }
h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.014em; }

code { font-family: var(--mono); font-size: .875em; }

/* ── layout ────────────────────────────────────────────────── */

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 780px; }

.section { padding: clamp(84px, 9vw, 132px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.head { max-width: 680px; margin-bottom: clamp(48px, 5vw, 72px); }
.head__sub { margin-top: 20px; font-size: 1.0625rem; color: var(--muted); text-wrap: pretty; }

.kicker {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker--on-dark { color: var(--accent-hi); }

/* ── buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9375rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(15,16,19,.16), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn--accent:hover { background: var(--accent-dk); }

.btn--ghost {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); }

.btn--sm    { padding: 9px 16px; font-size: .875rem; border-radius: 8px; }
.btn--block { width: 100%; padding: 15px 22px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ── header ────────────────────────────────────────────────── */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  --hdr-fg: #fff;
  --hdr-muted: rgba(255,255,255,.64);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, backdrop-filter .25s;
}
.header.is-stuck {
  /* opaque enough to stay white where it crosses the dark pricing band */
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom-color: var(--line);
  --hdr-fg: var(--ink);
  --hdr-muted: var(--muted);
}
.header__in {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}

.logo {
  color: var(--hdr-fg);
  font-size: 1.3rem; font-weight: 600; letter-spacing: -0.045em;
  text-decoration: none; line-height: 1;
  transition: color .25s;
}
.logo__co   { color: var(--accent); }
.logo__dots { color: var(--accent); margin: 0 .02em; }
.logo--sm   { font-size: 1.15rem; }

.nav {
  display: flex; gap: 28px; margin-left: auto;
  font-size: .9rem;
}
.nav a {
  color: var(--hdr-muted); text-decoration: none;
  transition: color .16s;
}
.nav a:hover { color: var(--hdr-fg); }

.header .btn--accent { margin-left: 0; }
.nav + .btn { margin-left: 0; }

@media (max-width: 880px) {
  .nav { display: none; }
  .header .btn { margin-left: auto; }
}

/* ── hero ──────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--dark);
  color: rgba(255,255,255,.72);
}
.hero::before {           /* faint grid */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000, transparent 72%);
}
.hero__glow {
  position: absolute; z-index: -1;
  top: -280px; left: 50%; transform: translateX(-56%);
  width: min(1000px, 130%); height: 700px;
  background: radial-gradient(circle at 50% 50%, rgba(232,76,61,.26), rgba(232,76,61,0) 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  /* padding-block, not the shorthand: .wrap owns the inline padding */
  padding-block: 152px 116px;
}
.hero__copy, .hero__viz { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  font-size: .8125rem; color: rgba(255,255,255,.7);
  margin-bottom: 28px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 3px rgba(232,76,61,.18);
}

.hero h1 { color: #fff; }

.lede {
  margin-top: 26px; max-width: 33em;
  font-size: 1.125rem; line-height: 1.6;
  color: rgba(255,255,255,.66);
  text-wrap: pretty;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__note {
  margin-top: 22px; font-size: .875rem;
  color: rgba(255,255,255,.42);
}

.hero__caption {
  margin-top: 18px; text-align: center;
  font-size: .8125rem; color: rgba(255,255,255,.4);
}

@media (max-width: 1040px) {
  .hero__in { grid-template-columns: 1fr; padding-block: 128px 88px; }
  .hero__viz { margin-top: 8px; }
}

/* ── policy card (hero diagram) ────────────────────────────── */

.policy {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 34px 70px -24px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}

.policy__tabs {
  display: flex; gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.policy__tabs::-webkit-scrollbar { display: none; }

.policy__tab {
  position: relative;
  flex: none;
  padding: 11px 13px 12px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: .75rem; letter-spacing: -0.01em;
  color: rgba(255,255,255,.42);
  border-radius: 8px 8px 0 0;
  transition: color .16s, background-color .16s;
}
.policy__tab:hover { color: rgba(255,255,255,.72); background: rgba(255,255,255,.03); }
.policy__tab.is-active { color: #fff; background: rgba(255,255,255,.05); }
.policy__tab.is-active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.policy__panel { padding: 20px 20px 4px; }

.policy__endpoint {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; min-width: 0;
}
.policy__endpoint span {
  flex: none;
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .09em;
  padding: 3px 6px; border-radius: 4px;
  background: rgba(232,76,61,.14); color: var(--accent-hi);
}
.policy__endpoint code {
  font-size: .75rem; color: rgba(255,255,255,.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.policy__foot {
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .75rem; line-height: 1.5;
  color: rgba(255,255,255,.36);
}
.policy__foot code { color: rgba(255,255,255,.62); }

/* ── ruleset table ─────────────────────────────────────────── */

.ruleset {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: .8125rem;
}
.ruleset td { padding: 7px 0; vertical-align: middle; border-top: 1px solid rgba(255,255,255,.055); }
.ruleset tr:first-child td { border-top: 0; }

.r-n      { width: 22px; color: rgba(255,255,255,.22); font-size: .6875rem; }
.r-perm   { width: 74px; color: rgba(255,255,255,.82); }
.r-target {
  padding-left: 14px !important;
  color: rgba(255,255,255,.4);
  overflow-wrap: anywhere;   /* .policy clips overflow — wrap rather than truncate */
}
.r-target b { font-weight: 500; color: rgba(255,255,255,.78); }
.r-target--dim { color: rgba(255,255,255,.26); }

.pill {
  /* min-width sized to the longest label ("approval") so the policy column stays a column */
  display: inline-block; min-width: 72px; text-align: center;
  padding: 3px 8px; border-radius: 5px;
  border: 1px solid; font-size: .6875rem; font-weight: 500; line-height: 1.5;
}
.pill--allow { background: var(--allow-bg); color: var(--allow-fg); border-color: var(--allow-bd); }
.pill--deny  { background: var(--deny-bg);  color: var(--deny-fg);  border-color: var(--deny-bd); }
.pill--hold  { background: var(--hold-bg);  color: var(--hold-fg);  border-color: var(--hold-bd); }

/* compact variant, on light cards. Columns are tightened so a long target
   like `domain:sequoiacap.com` still fits a three-up card. */
.ruleset--sm { font-size: .75rem; }
.ruleset--sm td { padding: 6px 0; border-top-color: var(--line-soft); }
.ruleset--sm .r-perm   { width: 54px; color: var(--ink); }
.ruleset--sm td:nth-child(2) { width: 74px; }
.ruleset--sm .pill     { min-width: 66px; padding-inline: 6px; }
.ruleset--sm .r-target {
  padding-left: 10px !important;
  color: var(--muted);
  /* `anywhere` (not `break-word`) shrinks min-content, so auto table layout
     can narrow this column instead of overflowing the card. */
  overflow-wrap: anywhere;
}
.ruleset--sm .r-target b { color: var(--ink); }
.ruleset--sm .r-target--dim { color: #a8acb4; }

/* tighten the hero ruleset once the card gets narrow */
@media (max-width: 560px) {
  /* the tab strip scrolls here — fade the right edge so that reads as scrollable */
  .policy__tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
            mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .policy__panel { padding: 18px 14px 4px; }
  .policy__foot  { padding: 14px 14px 16px; }
  .ruleset { font-size: .75rem; }
  .ruleset .r-n    { width: 16px; }
  .ruleset .r-perm { width: 56px; }
  .ruleset .pill   { min-width: 64px; padding-inline: 6px; }
  .ruleset .r-target { padding-left: 10px !important; }
}

/* ── cards ─────────────────────────────────────────────────── */

.cards-3 {
  display: grid;
  /* min() so the track floor can't exceed the container on very narrow screens */
  grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr));
  gap: 24px;
}
.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.card__num {
  display: block;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  color: var(--accent); margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card h3 code { font-size: .9em; }
.card p  { font-size: .9375rem; color: var(--muted); text-wrap: pretty; }
.card p code { color: var(--ink); }

/* ── mailbox diagram (explicit mode) ───────────────────────── */

.mbox {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  overflow: hidden;
}
.mbox__bar {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 20px;
  background: #fcfcfb;
  border-bottom: 1px solid var(--line);
}
.mbox__bar span {
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.mbox__bar code { font-size: .8125rem; color: var(--ink-2); }

.mbox__list { list-style: none; margin: 0; padding: 0; }
.mrow {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto;
  gap: 20px; align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9375rem;
}
.mrow:last-child { border-bottom: 0; }
.mrow__from { color: var(--ink); font-weight: 500; }
.mrow__subj {
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mbox__cap {
  margin-top: 18px; margin-bottom: clamp(48px, 5vw, 72px);
  font-size: .875rem; color: var(--muted);
  max-width: 76ch; text-wrap: pretty;
}
.mbox__cap code { color: var(--ink); overflow-wrap: anywhere; }

.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-alt);
  font-family: var(--mono); font-size: .75rem; line-height: 1.35;
  color: var(--ink-2); white-space: nowrap;
}
.tag b { font-weight: 500; color: var(--accent-dk); }
.tag--none {
  border-style: dashed;
  background: transparent;
  font-family: var(--sans); letter-spacing: .01em;
  color: #b3b7bd;
}

@media (max-width: 720px) {
  .mrow {
    grid-template-columns: 1fr;
    gap: 7px; align-items: start;
    padding-block: 17px;
  }
  .mrow__subj { white-space: normal; }
  .tag { justify-self: start; white-space: normal; }
}

/* ── steps ─────────────────────────────────────────────────── */

.steps { list-style: none; padding: 0; display: grid; gap: 8px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }

.step__n {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--mono); font-size: .8125rem; color: var(--ink);
}
.step__body { max-width: 720px; min-width: 0; }
.step__body h3 { margin-bottom: 10px; }
.step__body p  { font-size: .9375rem; color: var(--muted); text-wrap: pretty; }
.step__foot { margin-top: 14px; font-size: .8125rem !important; }

@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 16px; }
}

/* ── code block ────────────────────────────────────────────── */

.code {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  background: var(--dark);
  overflow: hidden;
  box-shadow: 0 20px 40px -22px rgba(11,12,15,.55);
}
.code__bar {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em;
  color: rgba(255,255,255,.36);
}
.code pre {
  margin: 0; padding: 18px 16px;
  overflow-x: auto;
  font-family: var(--mono); font-size: .75rem; line-height: 1.75;
  color: rgba(255,255,255,.86);
}
.code .k { color: #7fb2ff; }   /* keys    */
.code .s { color: #54d7a4; }   /* strings */
.code .p { color: rgba(255,255,255,.34); }

/* ── use-case cards ────────────────────────────────────────── */

.agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.agent {
  display: flex; flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.agent:hover {
  border-color: #d8d8d4;
  box-shadow: 0 18px 40px -26px rgba(15,16,19,.28);
  transform: translateY(-2px);
}
.agent__role {
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.agent__name {
  font-family: var(--mono); font-size: .9375rem; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}
.agent__desc code { color: var(--ink); }
.agent__desc {
  margin: 12px 0 22px;
  font-size: .9375rem; color: var(--muted); text-wrap: pretty;
  flex: 1;
}
.agent .ruleset {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

@media (prefers-reduced-motion: reduce) {
  .agent:hover { transform: none; }
}

/* ── feature tables ────────────────────────────────────────── */

.table-block + .table-block { margin-top: clamp(56px, 6vw, 84px); }

.table-block__title {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  margin-bottom: 0;
}
.table-block__foot {
  margin-top: 18px;
  font-size: .875rem; color: var(--muted); max-width: 72ch; text-wrap: pretty;
}
.table-block__foot code { color: var(--ink); }

.table-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }

.grid {
  width: 100%; min-width: 620px;
  border-collapse: collapse;
  font-size: .9375rem;
  text-align: left;
}
.grid thead th {
  padding: 14px 20px;
  background: #fcfcfb;
  border-bottom: 1px solid var(--line);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.grid tbody th,
.grid tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  font-weight: 400;
  color: var(--muted);
  text-wrap: pretty;
}
.grid tbody tr:last-child th,
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody th { color: var(--ink); font-weight: 500; }
.grid tbody th code { font-weight: 500; color: var(--accent-dk); }
.grid td code { color: var(--ink); }
.grid .dim { color: #b3b7bd; }

.grid--check { min-width: 740px; }
.grid--check thead th:not(:first-child),
.grid--check tbody td { text-align: center; width: 150px; }
.grid--check tbody th code { color: var(--accent-dk); font-weight: 500; }
.grid--check thead th { white-space: normal; }   /* "Gmail add-on optional" wraps */
.grid--check tbody td { vertical-align: middle; font-size: .8125rem; }
.grid--check tbody th { vertical-align: middle; }

/* "optional" badge in a column header */
.opt {
  display: inline-block; margin-left: 6px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: .6875rem; letter-spacing: .04em;
  color: #9aa0a8;
}

.tick, .cross { display: inline-block; position: relative; width: 16px; height: 16px; }
.tick::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 11px;
  border: 2px solid var(--ok); border-top: 0; border-left: 0;
  transform: rotate(42deg);
}
.cross::before, .cross::after {
  content: ''; position: absolute; left: 7px; top: 2px;
  width: 2px; height: 12px; border-radius: 1px;
  background: #cfd2d7;
}
.cross::before { transform: rotate(45deg); }
.cross::after  { transform: rotate(-45deg); }

/* ── faq ───────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 500; letter-spacing: -0.012em;
  transition: color .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: ''; flex: none;
  width: 11px; height: 11px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s;
  opacity: .5;
}
.faq details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.faq details p code { color: var(--ink); }

.faq details p {
  padding-bottom: 24px;
  max-width: 68ch;
  font-size: .9375rem; color: var(--muted); text-wrap: pretty;
}

/* ── closing band: pricing + waitlist ──────────────────────── */

.close {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--dark);
  color: rgba(255,255,255,.66);
  padding: clamp(84px, 9vw, 128px) 0;
}
.close::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, #000, transparent 70%);
}
.close__glow {
  position: absolute; z-index: -1;
  bottom: -420px; left: 50%; transform: translateX(-50%);
  width: min(900px, 120%); height: 700px;
  background: radial-gradient(circle at 50% 50%, rgba(232,76,61,.18), rgba(232,76,61,0) 62%);
  filter: blur(20px);
}

.close__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 940px) {
  .close__in { grid-template-columns: 1fr; }
}

/* price card */
.price {
  padding: 36px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.price__tag { display: flex; align-items: baseline; gap: 8px; }
.price__amount {
  font-size: clamp(3rem, 2rem + 3vw, 3.75rem);
  font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  color: #fff;
}
.price__per { font-size: 1rem; color: rgba(255,255,255,.44); }

.price__unit {
  margin-top: 14px;
  font-family: var(--mono); font-size: .8125rem;
  color: rgba(255,255,255,.6);
}
.price__badge {
  display: inline-block; margin-top: 20px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(232,76,61,.28);
  background: rgba(232,76,61,.11);
  font-size: .75rem; color: var(--accent-hi);
}

.price__lock {
  margin-top: 16px;
  font-size: .875rem; line-height: 1.55;
  color: rgba(255,255,255,.6); text-wrap: pretty;
}

.price__list {
  list-style: none; padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: grid; gap: 13px;
  font-size: .9375rem;
}
.price__list li {
  position: relative; padding-left: 26px;
  color: rgba(255,255,255,.72); text-wrap: pretty;
}
.price__list li::before {
  content: ''; position: absolute; left: 4px; top: 6px;
  width: 5px; height: 10px;
  border: 1.5px solid var(--allow-fg); border-top: 0; border-left: 0;
  transform: rotate(42deg);
}
.price__foot {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8125rem; color: rgba(255,255,255,.36);
}

/* apply form */
.apply h2 { color: #fff; }
.apply__sub {
  margin-top: 16px; margin-bottom: 32px;
  font-size: 1rem; color: rgba(255,255,255,.55); text-wrap: pretty;
}

.form { display: grid; gap: 20px; }

.field { display: grid; gap: 8px; }
.field label {
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.82);
}
.field__opt {
  font-weight: 400; color: rgba(255,255,255,.34); margin-left: 4px;
}

.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: .9375rem; line-height: 1.55;
  transition: border-color .16s, background-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.28); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(232,76,61,.6);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(232,76,61,.16);
}
.field input[aria-invalid='true'] { border-color: rgba(255,107,89,.7); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  font-size: .875rem; min-height: 1px;
}
.form__status:empty { display: none; }
.form__status[data-state='error'] { color: var(--accent-hi); }
.form__status[data-state='ok']    { color: var(--allow-fg); }

.form__note { font-size: .8125rem; color: rgba(255,255,255,.34); }

/* success state replaces the form */
.done {
  padding: 34px;
  border: 1px solid var(--allow-bd);
  border-radius: var(--r-lg);
  background: var(--allow-bg);
}
.done h3 { color: #fff; margin-bottom: 10px; }
.done p  { font-size: .9375rem; color: rgba(255,255,255,.66); }

/* ── footer ────────────────────────────────────────────────── */

.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 40px 0;
}
.footer__in {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer .logo { color: #fff; }
.footer__tag {
  font-size: .875rem; color: rgba(255,255,255,.36);
  padding-left: 20px; margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.footer__meta {
  margin-left: auto;
  font-size: .8125rem; color: rgba(255,255,255,.3);
}
.footer__link {
  font-family: var(--mono); font-size: .8125rem;
  color: rgba(255,255,255,.52); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.footer__link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.55); }
.footer__sep { margin: 0 8px; color: rgba(255,255,255,.18); }
@media (max-width: 600px) {
  .footer__tag { padding-left: 0; margin-left: 0; border-left: 0; width: 100%; }
  .footer__meta { margin-left: 0; }
}

/* ── reveal ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* 404 */
.nf { min-height: 58vh; display: grid; place-content: center; text-align: center;
      padding: clamp(72px, 11vh, 148px) 0; }
.nf__code { font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
            color: var(--muted); margin: 0 0 18px; }
.nf__title { font-size: clamp(32px, 5vw, 56px); line-height: 1.04;
             letter-spacing: -.02em; margin: 0 0 18px; }
.nf__text { color: var(--ink-2); max-width: 46ch; margin: 0 auto 34px; }
.nf__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
