/* ==========================================================================
   Sudota Intelligence — homepage
   Page chrome: hero, figure bands, the line, stats, capabilities,
   grounding layers, credits, the pile, plans, faq, footer.
   Nav/auth modal live in /assets/nav.css (shared with other public pages).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out),
              color .18s var(--ease-out), transform .18s var(--ease-out);
}
.btn:hover { background: var(--volt); border-color: var(--volt); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }

.btn--volt { background: var(--volt); border-color: var(--volt); }
.btn--volt:hover { background: var(--volt-hover); border-color: var(--volt-hover); }

.btn--launch {
  background: linear-gradient(135deg, #1D6AE5, #0EA5E9);
  border-color: transparent;
  color: #fff;
}
.btn--launch:hover { filter: brightness(1.05); background: linear-gradient(135deg, #1D6AE5, #0EA5E9); border-color: transparent; }

.btn--sm { padding: 9px 14px; font-size: 12px; }

/* --------------------------------------------------------------------------
   Section furniture
   -------------------------------------------------------------------------- */
.sec { padding: 104px 0; }
.sec--tight { padding: 72px 0; }
#how-it-works { padding-bottom: 48px; }
#knowledge { padding-top: 48px; }

/* anchor jumps clear the sticky nav */
section[id], div[id="reply-desk"] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--volt);
  margin-bottom: 18px;
}
.eyebrow .p { color: var(--muted); margin-right: 6px; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 28ch;
}
.lede {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Figure band (the signature frame)
   -------------------------------------------------------------------------- */
.fig {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fig__body { position: relative; }

.livepill {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.livepill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pass);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 48px 0 0;
  background:
    radial-gradient(720px 360px at 78% 12%, rgba(29, 106, 229, .10), transparent 70%),
    linear-gradient(180deg, var(--volt-soft) 0%, transparent 40%);
}
.hero__eyebrow {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}
.hero__eyebrow b { color: var(--volt); font-weight: 500; margin-right: 8px; }

.hero h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.8vw, 64px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--ink);
}
.hero h1 em.loop {
  display: inline-block;
  min-height: 1.08em;   /* reserves the line so a phrase swap cannot shift layout */
  background: linear-gradient(transparent 62%, #FEF9C3 62%);
  padding: 0 .06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}
.hero h1 em.loop.is-swap { opacity: 0; transform: translateY(.4em); }
.hero__sub {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.hero__cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 14px; font-size: 12.5px; color: var(--muted-2); }
.hero__note b { color: var(--volt); font-weight: 600; }

.hero__fig { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Hero — wide desktop two-column layout
   At >=1280px the demo console sits beside the copy instead of under it, so
   the product is inside the first viewport on 1280x800 and 1440x900 (the two
   desktop sizes that carry most paid and organic traffic). Every hero child
   except .hero__fig is a direct sibling, so the grid needs no markup change.
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    column-gap: 44px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 8px;
  }
  .hero > *:not(.hero__fig) { grid-column: 1; }
  .hero__fig {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin-top: 0;
  }
  /* the copy column is ~460px: drop the 16ch cap and scale the headline down
     so "Your AI-powered inbox" (503px at 3.1vw) fits one line — three clean
     <br> lines instead of an orphaned fourth */
  .hero h1 { max-width: none; font-size: clamp(32px, 2.78vw, 42px); }
  .hero__sub { max-width: 46ch; font-size: 15px; }
  .hero__cta { margin-top: 20px; }
  .cite-legend { margin: 18px 0 0; }
  .hero__fig .console { grid-template-columns: 224px minmax(0, 1fr); min-height: 528px; }
  .hero__fig .reader { padding: 22px 18px 14px; }
  /* six stages no longer fit one row at ~430px of reader width — wrap the
     rail to a 3x2 grid instead of clipping it behind a sideways scroll */
  .hero__fig .pipe {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 12px;
    overflow: visible;
  }
  .hero__fig .pipe__node { min-width: 0; padding-right: 0; }
  .hero__fig .pipe__node::before { right: -12px; }
  .hero__fig .pipe__node:nth-child(3n)::before { right: 0; }
}

.trusted {
  margin-top: 40px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  font-size: 12px;
  color: var(--muted);
}
.trusted span { color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.trusted b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Who it's for
   -------------------------------------------------------------------------- */
.who {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.who__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.who__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.who__k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--volt);
}
.who__card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.who__card > p:not(.who__k) {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted-2);
  flex: 1;
}
.who__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.who__chips span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--panel);
}

/* --------------------------------------------------------------------------
   fig.2 — the line
   -------------------------------------------------------------------------- */
.flow { padding: 64px 40px 36px; overflow-x: auto; }
.flow__inner { min-width: 860px; }

.flow__entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 340px;
  margin-bottom: 26px;
}
.flow__entry .ic {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.flow__entry b { display: block; font-size: 13.5px; font-weight: 600; }
.flow__entry small {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.flow__rail { position: relative; height: 74px; }
.flow__rail .wire {
  position: absolute;
  left: 0; right: 0; top: 40px;
  height: 1.5px;
  background: var(--ink);
}
.flow__rail .wire.is-drawn { animation: draw 1.1s var(--ease-out) both; transform-origin: left; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.node {
  position: absolute;
  top: 40px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.node--start { left: 8px; transform: translate(0, -50%); gap: 6px; grid-auto-flow: column; }
.node--start .d {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--volt);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
}
.node--start .sq { width: 12px; height: 12px; background: var(--volt); }

.node--gate { left: var(--x); }
.node--gate .d {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--acid-ink);
  color: var(--acid);
  display: grid; place-items: center;
  font-size: 12px;
  box-shadow: 0 0 0 5px var(--panel);
}
.node--gate .lb {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.flow__cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
  margin-top: 34px;
}
.fcol { border-top: 1px solid var(--line); padding-top: 14px; }
.fcol__h { display: flex; align-items: baseline; gap: 8px; }
.fcol__n { color: var(--volt); font-size: 12px; font-weight: 600; }
.fcol__t { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.fcol__opt { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
.fcol__d { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--muted-2); }

.fig__cap {
  margin-top: 40px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
}
.stat { padding: 30px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__v {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat__v .u { color: var(--volt); }
.stat__k { margin-top: 10px; font-size: 12.5px; font-weight: 600; }
.stat__d { margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Capabilities + desk.yaml
   -------------------------------------------------------------------------- */
.caps { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: start; }

.cap { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.cap:first-child { border-top: 0; padding-top: 0; }
.cap__n { color: var(--volt); font-size: 12.5px; font-weight: 600; padding-top: 3px; }
.cap__t { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.cap__d { margin-top: 7px; font-size: 12.5px; line-height: 1.75; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   fig.3 — setup mocks (connect · knowledge · voice · inbox)
   -------------------------------------------------------------------------- */
.mocks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
.mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.mock__k { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.mock__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mock__foot { margin-top: auto; font-size: 10.5px; color: var(--muted); }

.fbbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #1877f2;
  background: #1877f2;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s var(--ease-out);
}
.fbbtn:hover { filter: brightness(1.08); }
.fbbtn__f {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #1877f2;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.drop {
  padding: 18px 14px;
  border: 1.5px dashed var(--line);
  background: var(--panel);
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-2);
}

.chip {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}
.chip--on { border-color: var(--pass); color: var(--pass-ink); background: rgba(127, 209, 139, .08); }
.chip--inv { border-color: rgba(255, 255, 255, .42); background: transparent; color: rgba(255, 255, 255, .85); }

.vlines { display: grid; gap: 9px; }
.vlines p { display: flex; gap: 9px; align-items: baseline; font-size: 11.5px; line-height: 1.6; color: var(--muted-2); }
.vlines b { flex: none; font-size: 9px; letter-spacing: .12em; padding: 2px 7px; border: 1px solid var(--line); font-weight: 700; }
.vlines b.do   { color: var(--pass-ink); border-color: var(--pass); }
.vlines b.dont { color: var(--fail); border-color: var(--fail); }
.vlines b.tone { color: var(--volt); border-color: var(--volt); }

.mrows { display: grid; gap: 8px; }
.mrow {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.mrow__av {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--inkband);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10.5px;
}
.mrow__t { font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__s { font-size: 9px; letter-spacing: .12em; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); }
.mrow__s[data-s="drafted"] { border-color: var(--volt); color: var(--volt); }

/* --------------------------------------------------------------------------
   Trust pillars — voice + playbooks + live lookup (knowledge has its own section)
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
.pillar { padding: 28px 26px 30px; border-left: 1px solid var(--line); min-width: 0; }
.pillar:first-child { border-left: 0; }
.pillar__k { font-size: 10.5px; letter-spacing: .14em; color: var(--volt); font-weight: 600; }
.pillar__t { margin-top: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.pillar__spec {
  margin-top: 16px;
  padding: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--volt);
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: normal;
  overflow: hidden;
}
.pillar__file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
}
.pillar__file span { font-weight: 500; color: var(--muted-2); }
.pillar__quote {
  padding: 12px 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.pillar__quote b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 6px; }
.pillar__d { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Field note (full-bleed indigo)
   -------------------------------------------------------------------------- */
.note { background: var(--inkband); color: #fff; padding: 88px 0; }
.note .eyebrow { color: rgba(255, 255, 255, .55); }
.note .h2 { color: #fff; max-width: 22ch; }
.note__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.note__quote {
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .88);
  max-width: 40ch;
}
.note__who { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .6); }

.bench {
  background: var(--card);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 26px 26px 22px;
}
.bench__h { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.bench__bars {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  align-items: end;
  height: 132px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.bench__bars i {
  display: block;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-bottom: 0;
  height: 4%;
  transition: height .9s var(--ease-out);
}
.bench.is-in .bench__bars i { height: var(--h); }
.bench.is-in .bench__bars i:nth-child(2) { transition-delay: .06s; }
.bench.is-in .bench__bars i:nth-child(3) { transition-delay: .12s; }
.bench.is-in .bench__bars i:nth-child(4) { transition-delay: .18s; }
.bench.is-in .bench__bars i:nth-child(5) { transition-delay: .24s; }
.bench.is-in .bench__bars i:nth-child(6) { transition-delay: .3s; }
.bench.is-in .bench__bars i:nth-child(7) { transition-delay: .36s; }
.bench.is-in .bench__bars i:nth-child(8) { transition-delay: .42s; }
.bench__bars i.hot { background: var(--volt); border-color: var(--volt); }
.bench__x { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 8px; }
.bench__x span { font-size: 9.5px; color: var(--muted); text-align: center; }
.bench__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.bench__row div { border-top: 1px solid var(--line); padding-top: 10px; }
.bench__row b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.bench__row span { font-size: 10.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Knowledge funnel
   -------------------------------------------------------------------------- */
.kb-funnel {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.kb-funnel__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.kb-scatter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  min-height: 280px;
  align-content: start;
  background: var(--panel-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.kb-file {
  --r: 0deg;
  position: relative;
  left: auto;
  top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}
.kb-file__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-file i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 20px;
  border-radius: 4px;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  font-family: var(--mono);
}
.kb-file i.pdf { background: #FEF2F2; color: var(--fail); }
.kb-file i.xls { background: var(--volt-soft); color: var(--volt); }
.kb-file i.doc { background: #ECFDF5; color: var(--pass-ink); }
.kb-funnel.is-in .kb-file {
  animation: kb-file-in .7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes kb-file-in {
  0% { opacity: 0; transform: rotate(var(--r, 0deg)) translateX(-20px); }
  70% { opacity: 1; transform: rotate(var(--r, 0deg)) translateX(12px); }
  100% { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
.kb-funnel__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.kb-funnel__shape {
  position: relative;
  width: 160px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: none;
}
.kb-funnel__svg {
  width: 160px;
  height: 72px;
  max-width: none;
  overflow: visible;
}
.kb-funnel__body {
  fill: var(--volt-soft);
  stroke: var(--volt);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.kb-funnel__seam {
  fill: none;
  stroke: rgba(29, 106, 229, .32);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.kb-flow-dot {
  fill: var(--volt);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.kb-funnel.is-in .kb-flow-dot {
  animation: kb-flow 2.4s linear infinite;
}
.kb-funnel.is-in .kb-flow-dot--2 { animation-delay: .8s; }
.kb-funnel.is-in .kb-flow-dot--3 { animation-delay: 1.6s; }
@keyframes kb-flow {
  0% { opacity: 0; transform: translateX(0) scale(.7); }
  14% { opacity: 1; }
  70% { opacity: 1; transform: translateX(116px) scale(.7); }
  88% { opacity: 1; transform: translateX(154px) scale(1); }
  100% { opacity: 0; transform: translateX(164px) scale(.7); }
}
.kb-funnel__ai {
  justify-self: center;
  display: inline-flex;
  width: fit-content;
  margin-inline: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, .08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ai);
}
.kb-funnel__mid-copy {
  display: grid;
  gap: 6px;
}
.kb-funnel__mid-copy b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.kb-funnel__mid-copy span:last-child {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.4;
}
.kb-out {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.kb-out__row {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}
.kb-out__row:first-child { border-top: 0; }
.kb-out__row b { display: block; font-size: 13px; font-weight: 600; }
.kb-out__row p { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.kb-out__row span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--cite-kb);
}
.kb-funnel.is-in .kb-out__row {
  animation: kb-row-in .45s var(--ease-out) both;
  animation-delay: calc(.85s + var(--i, 0) * 120ms);
}
@keyframes kb-row-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.plan { padding: 30px 26px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan.is-hot { background: var(--panel); box-shadow: inset 0 3px 0 var(--volt); }
.plan__tag { font-size: 9.5px; letter-spacing: .14em; color: var(--volt); min-height: 14px; }
.plan__n { margin-top: 8px; font-size: 14px; font-weight: 600; }
.plan__p { margin-top: 14px; font-size: 32px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.plan__p small { font-size: 12px; color: var(--muted); letter-spacing: 0; }
.plan__d { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.plan__ul { margin: 20px 0 26px; display: grid; gap: 8px; }
.plan__ul li { font-size: 12px; line-height: 1.6; color: var(--muted-2); padding-left: 14px; position: relative; }
.plan__ul li::before { content: "·"; position: absolute; left: 2px; color: var(--volt); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans__note { margin-top: 16px; font-size: 11px; color: var(--muted); }
.plans__note a { color: var(--volt-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.plans__note a:hover { color: var(--volt); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s var(--ease-out), padding-left .2s var(--ease-out);
}
.faq__q:hover { color: var(--volt); padding-left: 8px; }
.faq__q .pm { color: var(--volt); font-weight: 500; flex: none; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease-out);
  border-bottom: 1px solid var(--line);
}
.faq__a p { padding: 4px 4px 24px; max-width: 68ch; font-size: 13px; line-height: 1.85; color: var(--muted-2); }
.faq__item.is-open .faq__a { max-height: 320px; }

/* --------------------------------------------------------------------------
   Close + footer
   -------------------------------------------------------------------------- */
.close {
  padding: 110px 0;
  text-align: left;
  background: linear-gradient(180deg, transparent 0%, var(--volt-soft) 100%);
}
.close .h2 { max-width: 18ch; }
.close__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.close__note { margin-top: 20px; font-size: 12px; color: var(--muted); }

.foot { background: var(--inkband); color: rgba(255, 255, 255, .72); padding: 68px 0 36px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot__grid--legal {
  grid-template-columns: max-content max-content;
  justify-content: start;
  column-gap: 64px;
}
.foot__brand b { color: #fff; font-size: 14px; font-weight: 700; }
.foot__brand p { margin-top: 12px; font-size: 12px; line-height: 1.8; max-width: 30ch; color: rgba(255, 255, 255, .72); }
.foot h3.foot__h,
.foot h4 { font-size: 10.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .72); margin-bottom: 14px; font-weight: 600; }
.foot li { margin-bottom: 9px; }
.foot li a { font-size: 12.5px; text-decoration: none; color: rgba(255, 255, 255, .72); }
.foot li a:hover { color: #fff; }
/* a mailto in a link column reads as plain text without an affordance */
.foot li a[href^="mailto:"] { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.foot__base {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, .68);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .caps { grid-template-columns: 1fr; gap: 44px; }
  .note__grid { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .who { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { padding-top: 40px; }
  .sec { padding: 72px 0; }
  .flow { padding: 40px 20px 28px; }
  .mocks { grid-template-columns: 1fr; padding: 14px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid--legal { grid-template-columns: max-content max-content; }
  .kb-funnel { grid-template-columns: 1fr; gap: 20px; }
  .kb-scatter { grid-template-columns: 1fr; }
  .kb-funnel.is-in .kb-file { animation-name: kb-file-in-m; }
  .kb-funnel__mid { gap: 12px; padding: 20px 16px; }
  /* Rotated SVG keeps a 140×64 layout box — center with translate, not grid alone */
  .kb-funnel__shape { width: 64px; height: 140px; display: block; }
  .kb-funnel__svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 64px;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }
}
@keyframes kb-file-in-m {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .stats, .plans { grid-template-columns: 1fr; }
  .stat, .plan { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child, .plan:first-child { border-top: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   v3 extras — credit meter, toast, blog, scope, credit table
   -------------------------------------------------------------------------- */
.hero-trust {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  max-width: 52ch;
}
.hero-trust span {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}
.hero-trust span::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--volt);
}
.hero-trust b { color: var(--ink); font-weight: 600; }

.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  color: var(--ink-2);
}
.credit-chip b { color: var(--volt); font-variant-numeric: tabular-nums; }
.credit-chip.is-low b { color: var(--fail); }

.page-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-2);
}
.page-chip em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.toast {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 8;
  padding: 12px 14px;
  background: var(--inkband);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: none; }
.toast b { color: #fff; }

.scope {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.scope b { color: var(--ink); }

.credit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.credit-table th,
.credit-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.credit-table th { font-size: 11px; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.credit-table td:last-child,
.credit-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.credit-table .zero { color: var(--pass-ink); font-weight: 600; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.blog-card:hover { border-color: var(--volt); box-shadow: var(--shadow-md); }
.blog-card__tag { font-size: 11px; letter-spacing: .08em; color: var(--volt); font-weight: 600; }
.blog-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.blog-card p { font-size: 13px; line-height: 1.7; color: var(--muted-2); }
.blog-card__meta { margin-top: auto; font-size: 12px; color: var(--muted); }

.cite-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 20px 0 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.cite-legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.cite-legend .kb { background: var(--cite-kb); }
.cite-legend .voice { background: var(--cite-voice); }
.cite-legend .play { background: var(--cite-play); }
.cite-legend .web { background: var(--cite-web); }

.fig__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.fig__toolbar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.fig__body { position: relative; }
.fig__body > .livepill { top: 58px; }

/* Clickable how-it-works story (homepage story-slide, no sticky scroll) */
.how-hint {
  margin-top: 28px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--volt);
}
.how-story {
  --color-primary: var(--volt);
  --color-primary-hover: var(--volt-hover);
  --color-primary-subtle: var(--volt-soft);
  --color-surface: var(--card);
  --color-canvas: var(--paper);
  --color-border: var(--line);
  --color-border-light: var(--line-soft);
  --color-muted: var(--panel-2);
  --color-text-secondary: var(--ink-2);
  --color-text-muted: var(--muted-2);
  --color-text-faint: var(--muted);
  --color-success: var(--pass);
  --color-success-subtle: #ECFDF5;
  --color-warning: var(--cite-web);
  --color-warning-subtle: #FFFBEB;
  --color-danger: var(--fail);
  --color-danger-subtle: #FEF2F2;
  --color-purple: var(--ai);
  --color-purple-subtle: rgba(124, 58, 237, .08);
  --font-display: var(--font-display);
  --font-sans: var(--sans);
  --radius-full: 9999px;
  --radius-sm: 6px;
  --radius-xl: 20px;
  --shadow-md: var(--shadow-md);
  margin-top: 44px;
}
.how-story .story-rail {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 28px;
  --story-dot-r: 15px;
  --story-span: calc(100% - 2 * var(--story-dot-r));
  padding: 0 var(--story-dot-r);
  height: 36px;
}
.how-story .story-line {
  position: absolute;
  top: 50%;
  left: var(--story-dot-r);
  right: var(--story-dot-r);
  height: 2px;
  transform: translateY(-50%);
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.how-story .story-line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--volt);
  border-radius: 2px;
  transition: width .25s var(--ease-out);
}
.how-story .story-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.how-story .story-dot[data-step="0"] { left: var(--story-dot-r); }
.how-story .story-dot[data-step="1"] { left: calc(var(--story-dot-r) + var(--story-span) * 0.2); }
.how-story .story-dot[data-step="2"] { left: calc(var(--story-dot-r) + var(--story-span) * 0.4); }
.how-story .story-dot[data-step="3"] { left: calc(var(--story-dot-r) + var(--story-span) * 0.6); }
.how-story .story-dot[data-step="4"] { left: calc(var(--story-dot-r) + var(--story-span) * 0.8); }
.how-story .story-dot[data-step="5"] { left: calc(var(--story-dot-r) + var(--story-span)); }
.how-story .story-dot.on,
.how-story .story-dot:hover {
  background: var(--volt);
  border-color: var(--volt);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29, 106, 229, .3);
  transform: translate(-50%, -50%) scale(1.1);
}
.how-story .story-viewport {
  position: relative;
  height: auto;
  min-height: 0;
}
.how-story .story-slide {
  position: relative;
  display: none;
  align-items: flex-start;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.how-story .story-slide.on { display: flex; }
.how-story .step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
}
.how-story .step-copy h3 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.how-story .step-lead {
  font-size: 14px;
  color: var(--muted-2);
  margin-top: 10px;
  max-width: 42ch;
  line-height: 1.6;
}
.how-story .step-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.how-story .step-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.how-story .ui-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 12px;
}
.how-story .ui-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
}
.how-story .ui-card-head .spacer { flex: 1; }
.how-story .pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--volt-ink);
  background: var(--volt-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.how-story .ui-body { padding: 10px 0; }
.how-story .ui-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.how-story .ui-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: var(--volt);
}
.how-story .ui-row-body { flex: 1; min-width: 0; }
.how-story .ui-row-top { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.how-story .ui-row-sub { font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.how-story .intent-chip { font-size: 9px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--volt-soft); color: var(--volt); }
.how-story .intent-chip.green { background: #ECFDF5; color: var(--pass-ink); }
.how-story .status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--pass); }
.how-story .status-dot.amber { background: var(--cite-web); }
.how-story .file-row { display: flex; align-items: center; gap: 11px; padding: 8px 14px; }
.how-story .file-ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--volt-soft);
  color: var(--volt);
}
.how-story .file-ico.red { background: #FEF2F2; color: var(--fail); }
.how-story .file-name { font-size: 12px; font-weight: 600; }
.how-story .file-sub { font-size: 11px; color: var(--muted); }
.how-story .file-done { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--pass-ink); }
.how-story .ui-note {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
}
.how-story .fact-card { padding: 12px 14px; }
.how-story .fact-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.how-story .tone-row { display: flex; gap: 7px; flex-wrap: wrap; }
.how-story .tone-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.how-story .tone-pill.on { background: var(--volt); border-color: var(--volt); color: #fff; }
.how-story .playbook-row {
  display: flex;
  gap: 9px;
  padding: 9px 10px;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.how-story .fact-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  margin-bottom: 7px;
  font-size: 12px;
}
.how-story .fact-text small { display: block; font-weight: 500; color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.how-story .verified { font-size: 10px; font-weight: 700; color: var(--pass-ink); }
.how-story .approve-card { padding: 12px 14px; }
.how-story .reply-mini {
  background: var(--panel-2);
  border-left: 3px solid var(--volt);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.how-story .mini-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.how-story .mini-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.how-story .mini-chip.kb { color: var(--cite-kb); border-color: rgba(5,150,105,.3); }
.how-story .mini-chip.voice { color: var(--cite-voice); border-color: rgba(124,58,237,.3); }
.how-story .mini-chip.playbook { color: var(--cite-play); border-color: rgba(29,106,229,.3); }
.how-story .mini-chip.web { color: var(--cite-web); border-color: rgba(217,119,6,.35); }
.how-story .approve-actions { display: flex; gap: 7px; margin-top: 11px; }
.how-story .mini-btn { font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); }
.how-story .mini-btn.go { background: var(--pass-ink); border-color: var(--pass-ink); color: #fff; }

@media (max-width: 860px) {
  .how-story .step-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Touch ergonomics — WCAG 2.2 SC 2.5.8 (44x44 targets)
   Padding and min-height grow the hit box; the visual weight of the small
   buttons is unchanged on desktop, which is not a coarse pointer.
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn, .btn--sm, .faq__q, .srcpill { min-height: 44px; }
  .btn--sm { padding: 12px 18px; font-size: 13px; }
  .foot li { margin-bottom: 14px; }
  .foot li a { display: inline-block; padding: 8px 0; }
  /* the story dots stay 36px on screen; the hit area grows around them */
  .how-story .story-dot::after { content: ""; position: absolute; inset: -6px; }
  .how-story .mini-btn { min-height: 40px; padding: 9px 16px; }
}

/* --------------------------------------------------------------------------
   12px type floor for small screens and touch
   47 declarations in this stylesheet ship 9–11.5px copy. One floor here beats
   47 scattered edits and keeps the desktop homepage at its intended
   density. Avatar initials inside fixed 26px shapes (.mrow__av,
   .how-story .ui-av) are excluded — they are glyphs, not reading copy.
   -------------------------------------------------------------------------- */
@media (max-width: 760px), (pointer: coarse) {
  .livepill, .who__k, .who__chips span, .flow__entry small, .node--start .d,
  .fcol__opt, .fig__cap, .stat__d, .mock__k, .mock__foot, .drop, .chip,
  .vlines p, .vlines b, .mrow__t, .mrow__s, .pillar__k, .pillar__file,
  .pillar__quote b, .bench__h, .bench__x span, .bench__row span,
  .kb-funnel__k, .kb-file i, .kb-funnel__ai, .kb-out__row span,
  .kb-funnel__mid-copy span:last-child, .plan__tag, .plan__d, .plans__note,
  .foot h4, .page-chip, .credit-table th, .blog-card__tag,
  .how-story .pill, .how-story .ui-row-sub, .how-story .intent-chip,
  .how-story .file-ico, .how-story .file-sub, .how-story .file-done,
  .how-story .ui-note, .how-story .fact-title, .how-story .tone-pill,
  .how-story .fact-text small, .how-story .verified, .how-story .mini-chip,
  .how-story .mini-btn { font-size: 12px; }

  /* letterspaced kickers lose the extra tracking once they reach 12px */
  .fcol__opt, .mock__k, .pillar__k, .plan__tag, .foot h4,
  .how-story .fact-title { letter-spacing: .08em; }

  /* badges and file-type chips have to hold 12px without clipping */
  .kb-file i { width: 34px; height: 22px; }
  .how-story .file-ico { width: 32px; height: 32px; }
  .plan__tag { min-height: 18px; }
  .vlines b, .mrow__s, .how-story .mini-chip, .how-story .pill { padding: 2px 9px; }
  .bench__x { grid-template-columns: repeat(4, 1fr); gap: 8px 10px; }
}

/* --------------------------------------------------------------------------
   Beta landing — form + layout
   -------------------------------------------------------------------------- */
.beta-page {
  padding-block: 48px 80px;
}
.beta-copy {
  max-width: 52ch;
  margin-bottom: 28px;
}
.beta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "legend ."
    "demo form";
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
}
.beta-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 12px 0 16px;
}
.beta-copy .lede { max-width: 42ch; }
.beta-cta { margin-top: 20px; }
.beta-cta .btn { display: inline-flex; }
#join { scroll-margin-top: calc(var(--nav-h) + 16px); }
.beta-layout > .cite-legend {
  grid-area: legend;
  margin: 0;
}
.beta-layout > .fig {
  grid-area: demo;
  margin-top: 0;
}
.beta-layout > .beta-form-card { grid-area: form; }
.beta-layout .console {
  min-height: 0;
  grid-template-columns: 180px minmax(0, 1fr);
}
.beta-layout .mitem__ch { display: none; }
.beta-layout .reader { padding: 16px 14px 12px; }
.beta-layout .draft { min-height: 0; }
.beta-layout .pipe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 12px;
  overflow: visible;
}
.beta-layout .pipe__node { min-width: 0; padding-right: 0; }
.beta-layout .pipe__node::before { right: -12px; }
.beta-layout .pipe__node:nth-child(3n)::before { right: 0; }
.beta-form-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.beta-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.beta-form-card p.beta-form__intro {
  font-size: 14px;
  color: var(--muted-2);
  margin: 0 0 20px;
}
.beta-form { display: grid; gap: 16px; align-content: start; }
.beta-form[hidden],
#beta-form-panel[hidden] {
  display: none !important;
}
.beta-field { display: grid; gap: 6px; }
.beta-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.beta-field input:not([type="checkbox"]):not([type="radio"]),
.beta-field select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.beta-field input:not([type="checkbox"]):not([type="radio"]):focus,
.beta-field select:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px var(--volt-soft);
}
.beta-msel { position: relative; }
.beta-msel__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--muted-2);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.beta-msel__trigger:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px var(--volt-soft);
}
.beta-msel__value.has-value { color: var(--ink); }
.beta-msel__chev {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  transition: transform .15s var(--ease-out);
}
.beta-msel.is-open .beta-msel__chev { transform: rotate(180deg); }
.beta-msel__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
}
.beta-msel__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.beta-msel__option:hover { background: var(--muted); }
.beta-msel__option input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--volt);
}
.beta-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.beta-check input { margin-top: 3px; flex-shrink: 0; }
.beta-form__status {
  font-size: 13px;
  margin: 0;
  min-height: 1.2em;
}
.beta-form__status.is-ok { color: var(--pass-ink); }
.beta-form__status.is-err { color: var(--fail); }
.beta-form__legal {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}
.beta-form__legal a { color: var(--volt-ink); }
.grecaptcha-badge { visibility: hidden; }
.beta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-success {
  text-align: center;
  padding: 32px 16px;
}
.beta-success h2 { margin-bottom: 8px; }
.privacy-page { padding: 48px 0 80px; max-width: 720px; }
.privacy-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
}
.privacy-page p { color: var(--ink-2); line-height: 1.65; margin-bottom: 16px; }

@media (max-width: 900px) {
  .beta-page { padding-block: 32px 64px; }
  .beta-copy { margin-bottom: 20px; }
  .beta-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "legend"
      "demo"
      "form";
    gap: 32px;
  }
  .beta-layout .console {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .beta-layout .inbox { max-height: none; }
  .beta-layout .reader {
    border-top: 1px solid var(--line);
    padding: 18px 16px 16px;
  }
  .beta-form-card { padding: 20px; }
  .beta-page > .cite-legend { margin-bottom: 12px; }
}
