/* Tangent design system — light-dominant, vivid brand, dark bands for emphasis.
   The reference set (Amplitude, Tiger, C3, Datadog) is predominantly light with
   strong colour; Snowplow is the dark outlier. Light is the base here, and
   `section.invert` flips a band to the dark palette where a section needs weight. */

:root {
  /* ground */
  --bg:          #FFFFFF;
  --bg-2:        #F5F7FB;
  --surface:     #FFFFFF;
  --surface-2:   #F7F9FD;
  --glass:       #F7F9FD;

  /* ink */
  --ink:         #0B1020;
  --ink-2:       #4C5670;
  --ink-3:       #7C879C;

  /* lines */
  --line:        rgba(11,16,32,0.11);
  --line-2:      rgba(11,16,32,0.07);
  --grid:        rgba(11,16,32,0.038);

  /* brand — darkened from the dark-mode values so they pass contrast on white */
  --violet:      #5B46E0;
  --violet-2:    #7C68F0;
  --cyan:        #0C93C4;
  --brand-grad:  linear-gradient(115deg, #5B46E0 0%, #0FA9D8 100%);
  --brand-soft:  rgba(91,70,224,0.075);
  --brand-line:  rgba(91,70,224,0.32);

  /* semantic — separate from the brand hue */
  --up:          #0F9D6E;
  --down:        #D1485F;
  --warn:        #B57614;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --sans:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 66ch;
  --edge: clamp(1.15rem, 4.5vw, 4.5rem);
  --max: 1240px;
  --r: 14px;
  --r-sm: 10px;
}

/* The dark palette, applied to an inverted band or to the whole page when the
   viewer has asked for dark. Defined once, reused by both. */
section.invert, footer.invert {
  --bg:          #080A10;
  --bg-2:        #0C0F17;
  --surface:     #121724;
  --surface-2:   #171D2D;
  --glass:       rgba(255,255,255,0.045);
  --ink:         #F4F7FC;
  --ink-2:       #A9B4C6;
  --ink-3:       #6C7689;
  --line:        rgba(255,255,255,0.09);
  --line-2:      rgba(255,255,255,0.055);
  --grid:        rgba(255,255,255,0.028);
  --violet:      #6D5EF7;
  --violet-2:    #8E7BFF;
  --cyan:        #21D4FD;
  --brand-grad:  linear-gradient(115deg, #6D5EF7 0%, #21D4FD 100%);
  --brand-soft:  rgba(109,94,247,0.16);
  --brand-line:  rgba(109,94,247,0.42);
  --up:          #34D399;
  --down:        #FB7185;
  --warn:        #FBBF24;
}
/* No prefers-color-scheme switch: a brand site commits to its palette. Dark is
   used deliberately, per section, via `section.invert`. */

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

/* Grid and flex items size their minimum to content by default, so a single wide
   child — the product mockup, a code block, a table — widens its track and drags
   the rest of the page past the viewport with it. */
.hero-grid > *, .split > *, .row > *, .cards > *, .roles > *,
.spine > *, .flow > *, .proof > *, .band > *, .two-paths > * { min-width: 0; }
.app, .app-main, .panel, pre { min-width: 0; max-width: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--bg);   /* plain: no grid on the customer-facing site (owner, 2026-10-12) */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the glow that gives the page depth */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 900px;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(760px 420px at 82% -6%, rgba(91,70,224,0.10), transparent 64%),
    radial-gradient(620px 380px at 6% 2%, rgba(15,169,216,0.07), transparent 62%);
}
main, header.top, footer { position: relative; z-index: 1; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--edge); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

/* gradient text, used once or twice per page and no more */
.grad {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan); margin: 0;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--cyan); opacity: 0.6; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: var(--measure); }
.note { font-size: 0.88rem; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px;
}

/* ── masthead ─────────────────────────────────────────────────────────────── */
header.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
.top-in { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
}
.top nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.top nav > a { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.top nav > a:hover { color: var(--ink); }
.top nav a.docs {
  color: var(--ink); border: 1px solid var(--line); padding: 0.44rem 0.9rem;
  border-radius: 99px; font-size: 0.88rem;
}
.top nav a.docs:hover { border-color: var(--brand-line); background: var(--brand-soft); }
@media (max-width: 900px) { .top nav .hide-sm, .top nav > a.hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 600; text-decoration: none;
  padding: 0.72rem 1.3rem; border: 1px solid transparent; border-radius: 99px;
  background: var(--violet); color: #fff;   /* solid: no gradients on buttons (owner, 2026-10-12) */
  box-shadow: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.btn:hover { transform: translateY(-1px); background: var(--violet-2); }
/* `.top nav > a` (link grey) outranks `.btn`; a button in the header keeps its white label. */
.top nav > a.btn:not(.ghost) { color: #fff; }
/* Header account links. "Log in" is quiet text so it does not compete with the primary
   action beside it; both point at the product, which lives on another origin. */
.signin {
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.signin:hover { color: var(--ink); }

/* The header is 56px tall, so the standard .btn is too heavy for it. */
.btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.88rem;
  border-radius: 8px;
  white-space: nowrap;
}

.mob-docs {
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
  padding-top: 0.7rem;
}

.btn.ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--brand-line); background: var(--brand-soft); transform: translateY(-1px); }

/* ── rhythm ───────────────────────────────────────────────────────────────── */
section { padding-block: clamp(3.25rem, 5.5vw, 5rem); position: relative; }
section + section { border-top: 1px solid var(--line-2); }
section.hero { padding-block: clamp(2.75rem, 4.5vw, 4rem) clamp(3rem, 5vw, 4.5rem); border-top: 0; }
.head { display: grid; gap: 0.9rem; margin-bottom: 2.4rem; max-width: 62ch; }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1fr 1.08fr; } }
.hero-copy { display: grid; gap: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ── surfaces ─────────────────────────────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 28px 70px -40px rgba(0,0,0,0.9);
  overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line-2); background: var(--bg-2);
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); flex: none; }

pre {
  margin: 0; padding: 1.15rem 1.2rem; overflow-x: auto;
  font-family: var(--mono); font-size: 0.83rem; line-height: 1.7; color: var(--ink);
  background: var(--bg-2);
}
code { font-family: var(--mono); }
.k { color: var(--cyan); }
.c { color: var(--ink-3); font-style: italic; }

/* ── product mockup: real Tangent UI, rebuilt in markup ───────────────────── */
.app {
  border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  background: var(--surface); box-shadow: 0 44px 90px -46px rgba(0,0,0,0.95);
  display: grid; grid-template-columns: 148px 1fr; font-size: 0.76rem;
}
.app-side { background: var(--bg-2); border-right: 1px solid var(--line-2); padding: 0.85rem 0.6rem; display: grid; gap: 0.1rem; align-content: start; }
.app-brand { display: flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-weight: 700; font-size: 0.85rem; padding: 0.2rem 0.4rem 0.7rem; }
.app-nav { padding: 0.3rem 0.5rem; border-radius: 7px; color: var(--ink-2); }
.app-nav.on { background: var(--brand-soft); color: var(--ink); }
.app-sec { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 0.7rem 0.5rem 0.25rem; }
.app-main { padding: 0.95rem 1rem 1.1rem; display: grid; gap: 0.8rem; align-content: start; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.app-title { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.app-chip { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-3); border: 1px solid var(--line); padding: 0.16rem 0.44rem; border-radius: 99px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0.6rem 0.65rem; display: grid; gap: 0.15rem; }
.tile .lbl { font-size: 0.62rem; color: var(--ink-3); }
.tile .val { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.tile .why { font-size: 0.6rem; color: var(--cyan); }
.tile svg { display: block; margin-top: 0.1rem; }
/* Placed after the .app rules on purpose: a media query does not raise
   specificity, so an equal-weight rule later in the file would beat it. */
@media (max-width: 620px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
}

/* ── cards ────────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 1.1rem; }
@media (min-width: 820px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.card h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.card p { font-size: 0.93rem; color: var(--ink-2); }
.card .who {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
}
/* .card p is class+element, so it outranks a bare .class — match that weight. */
.card p.price, p.price { font-family: var(--display); font-weight: 700; font-size: 2.3rem; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.card p.price span, p.price span { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-3); font-weight: 500; }

/* Plan-card feature list (public pricing cards, generated from plan.features at build). */
.cards.four .card.panel { display: flex; flex-direction: column; align-content: stretch; }
.card p.muted { color: var(--ink-3); font-size: 0.86rem; margin-top: 0.15rem; }
.card p.limits { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--ink-2); font-family: var(--mono); }
.card ul.plan-feats { list-style: none; margin: 0.7rem 0 1.2rem; padding: 0; display: grid; gap: 0.45rem; align-content: start; flex: 1 1 auto; }
.card ul.plan-feats li { position: relative; padding-left: 1.05rem; font-size: 0.85rem; color: var(--ink-2); line-height: 1.35; }
.card ul.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-family: var(--mono); font-size: 0.72rem; top: 0.1rem; }
.cards.four .card .btn { margin-top: auto; }   /* pin the CTA to the bottom of every card */

/* "Most chosen" is a ribbon floating above the popular tile — out of flow, so the card's own
   heading and price stay aligned with the other tiles. .panel clips (overflow:hidden), so the
   featured card must let the ribbon overflow. */
.cards.four .card.featured { overflow: visible; }
.cards.four .card.featured .who {
  position: absolute; top: -0.72rem; left: 50%; transform: translateX(-50%);
  width: max-content; margin: 0; z-index: 1;
}

/* ── lists ────────────────────────────────────────────────────────────────── */
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
ul.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.8rem; font-size: 0.97rem; color: var(--ink-2); }
ul.ticks strong { color: var(--ink); font-weight: 600; }
.tick {
  font-family: var(--mono); font-size: 0.7rem; color: var(--cyan);
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border: 1px solid var(--brand-line); border-radius: 7px; background: var(--brand-soft);
}

/* ── split / rows ─────────────────────────────────────────────────────────── */
.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split .copy { display: grid; gap: 1.2rem; }

.rows { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.row { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (min-width: 960px) { .row { grid-template-columns: 1fr 1fr; } .row.flip .row-visual { order: -1; } }
.row-copy { display: grid; gap: 1rem; align-content: start; }
.row-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.row-copy p { color: var(--ink-2); font-size: 1rem; }

/* ── tables ───────────────────────────────────────────────────────────────── */
table.seg { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.seg th {
  text-align: left; font-family: var(--mono); font-weight: 400; font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-2);
}
table.seg td { padding: 0.72rem 1rem; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
table.seg tr:last-child td { border-bottom: 0; }
table.seg .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); }
.down { color: var(--down) !important; }
.chip {
  font-family: var(--mono); font-size: 0.66rem; padding: 0.18rem 0.5rem;
  border: 1px solid var(--line); border-radius: 99px; color: var(--ink-3); white-space: nowrap;
}
.chip.ok { color: var(--up); border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.1); }

.ptable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ptable th, .ptable td { padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.ptable thead th { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; border-bottom: 1px solid var(--line); }
.ptable tbody th { font-weight: 500; color: var(--ink); }
.ptable td.y { color: var(--up); font-family: var(--mono); }
.ptable td.n { color: var(--ink-3); font-family: var(--mono); }
.ptable tr.grp th { background: var(--surface-2, rgba(127,127,127,0.06)); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }

/* ── roles / analyses grids ───────────────────────────────────────────────── */
.roles { display: grid; gap: 1.1rem; }
@media (min-width: 680px)  { .roles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 1.35rem; display: grid; gap: 0.45rem; align-content: start;
  transition: border-color 160ms ease, transform 160ms ease;
}
.role:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.role .who { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--cyan); }
.role h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.role p { font-size: 0.92rem; color: var(--ink-2); }
.role .ask { font-family: var(--mono); font-size: 0.79rem; color: var(--ink); padding-top: 0.35rem; border-top: 1px solid var(--line-2); margin-top: 0.25rem; }

/* ── lifecycle spine ──────────────────────────────────────────────────────── */
.spine { display: grid; gap: 1rem; }
@media (min-width: 900px) { .spine { grid-template-columns: repeat(4, 1fr); } }
.stage {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; position: relative;
}
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--brand-grad); opacity: 0.75; }
.stage .n { font-family: var(--mono); font-size: 0.68rem; color: var(--cyan); letter-spacing: 0.14em; }
.stage h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.stage p { font-size: 0.9rem; color: var(--ink-2); }
.stage ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.stage li { font-size: 0.85rem; color: var(--ink); display: flex; gap: 0.5rem; }
.stage li::before { content: "—"; color: var(--ink-3); flex: none; }

/* ── pipeline ─────────────────────────────────────────────────────────────── */
.flow { display: grid; gap: 0.9rem; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.node {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 1.1rem; display: grid; gap: 0.35rem; align-content: start;
}
.node .lbl { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.node strong { font-size: 0.95rem; font-weight: 600; }
.node span.d { font-size: 0.84rem; color: var(--ink-2); }

/* ── proof ────────────────────────────────────────────────────────────────── */
.proof { display: grid; gap: 1rem; }
@media (min-width: 760px)  { .proof { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.pf { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.3rem; display: grid; gap: 0.4rem; align-content: start; }
.pf strong { font-size: 0.98rem; }
.pf span { font-size: 0.9rem; color: var(--ink-2); }
.pf a { color: var(--cyan); text-decoration: none; font-size: 0.85rem; font-family: var(--mono); }
.pf a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── band / doclinks ──────────────────────────────────────────────────────── */
.band {
  background: linear-gradient(135deg, rgba(109,94,247,0.14), rgba(33,212,253,0.07));
  border: 1px solid var(--brand-line); border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3rem); display: grid; gap: 1.8rem;
}
@media (min-width: 900px) { .band { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.doclinks { display: grid; gap: 0.2rem; }
.doclink {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.8rem; border-radius: var(--r-sm); text-decoration: none; font-size: 0.93rem;
  border: 1px solid transparent;
}
.doclink:hover { background: var(--glass); border-color: var(--line-2); }
.dl-name { font-weight: 600; }
.doclink:hover .dl-name { color: var(--cyan); }
.dl-meta { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); }

/* ── SDK installer ────────────────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.tab {
  font-family: var(--sans); font-weight: 500; font-size: 0.84rem; padding: 0.45rem 0.9rem;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2);
  border-radius: 99px; cursor: pointer; transition: all 140ms ease;
}
.tab:hover { color: var(--ink); border-color: var(--brand-line); }
.tab[aria-selected="true"] { background: var(--violet); color: #fff; border-color: transparent; font-weight: 600; }
.sdk-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.85rem 1rem; border-top: 1px solid var(--line-2); font-size: 0.88rem;
}
.sdk-foot a { color: var(--cyan); font-weight: 600; text-decoration: none; }
.sdk-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── interior pages ───────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-top: 0; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .lede { margin-top: 1.1rem; }
.crumb { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.crumb a { color: var(--cyan); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── mega menu ────────────────────────────────────────────────────────────── */
.menu { position: relative; }
.menu > button {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 0.35rem; align-items: center;
}
.menu > button:hover { color: var(--ink); }
.menu-panel {
  position: absolute; top: calc(100% + 1.2rem); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.6rem; min-width: 320px; display: none; z-index: 50;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.95);
}
/* Bridge the gap between the button and the panel. Without it the 1.2rem of empty space below the
   button is a dead zone: the cursor leaves .menu on the way down and the hover panel closes before
   it can be reached, so it only stayed open on click (focus-within). This always-present transparent
   strip keeps the hover continuous from button to panel. */
.menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.4rem; }
.menu:hover .menu-panel, .menu:focus-within .menu-panel { display: grid; }
.menu-panel a { display: grid; gap: 0.12rem; padding: 0.62rem 0.7rem; border-radius: var(--r-sm); text-decoration: none; }
.menu-panel a:hover { background: var(--brand-soft); }
.menu-panel .mi-name { font-size: 0.92rem; color: var(--ink); font-weight: 600; }
.menu-panel .mi-desc { font-size: 0.81rem; color: var(--ink-3); }

/* ── faq ──────────────────────────────────────────────────────────────────── */
details.faq { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 1rem 1.15rem; margin-bottom: 0.6rem; background: var(--bg-2); }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--cyan); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 0.8rem; font-size: 0.94rem; color: var(--ink-2); max-width: var(--measure); }

/* ── changelog / prose ────────────────────────────────────────────────────── */
.log { display: grid; gap: 0; }
.entry { padding: 1.6rem 0; border-top: 1px solid var(--line-2); display: grid; gap: 0.55rem; }
@media (min-width: 780px) { .entry { grid-template-columns: 10rem 1fr; column-gap: 2.5rem; } }
.entry time { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); }
.entry h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.entry p { font-size: 0.94rem; color: var(--ink-2); }

.prose { max-width: 72ch; display: grid; gap: 1.2rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.4rem; }
.prose h3 { font-size: 1.05rem; margin-top: 0.9rem; }
.prose p, .prose li { color: var(--ink-2); font-size: 0.97rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--cyan); }
.callout {
  border: 1px solid var(--warn); background: rgba(251,191,36,0.09);
  border-radius: var(--r); padding: 1.1rem 1.2rem; font-size: 0.93rem; color: var(--ink-2);
}
.callout strong { display: block; margin-bottom: 0.3rem; color: var(--warn); }

/* ── footer ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line-2); padding-block: 4rem 3rem; background: rgba(0,0,0,0.22); }
.foot-grid { display: grid; gap: 2.2rem; }
@media (min-width: 700px)  { .foot-grid.wide { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .foot-grid.wide { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.foot-col h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.9rem; font-weight: 400; }
.foot-col a { display: block; font-size: 0.9rem; text-decoration: none; color: var(--ink-2); padding: 0.25rem 0; }
.foot-col a:hover { color: var(--cyan); }
.colophon { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2); font-size: 0.83rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── closing dual CTA ─────────────────────────────────────────────────────── */
.two-paths { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 820px) { .two-paths { grid-template-columns: 1fr 1fr; } }
.path { padding: 1.9rem; display: grid; gap: 0.7rem; align-content: start; }
.path h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.path p { font-size: 0.95rem; color: var(--ink-2); }


/* ── inverted band ────────────────────────────────────────────────────────── */
section.invert {
  background-color: #080A10;
  background-image:
    radial-gradient(720px 400px at 80% 0%, rgba(109,94,247,0.22), transparent 62%);
  color: var(--ink);
  border-top: 0;
}
section.invert + section { border-top: 0; }
footer.invert { background-color: #080A10; border-top: 0; }

/* light-mode surfaces want a soft shadow, not the dark one */
.panel { box-shadow: 0 18px 46px -28px rgba(11,16,32,0.28); }
.app   { box-shadow: 0 34px 80px -34px rgba(11,16,32,0.42); }
.btn   { color: #fff; }
section.invert .btn.ghost { color: var(--ink); }
section.invert pre, footer.invert pre { background: rgba(0,0,0,0.32); }


/* A featured plan must not push its own content down — the row has to align. */
.card.featured { border-color: var(--brand-line); box-shadow: 0 20px 50px -26px rgba(91,70,224,0.42); }
.card.featured .who {
  position: absolute; top: -0.72rem; left: 1.5rem;
  background: var(--violet); color: #fff; border-radius: 99px;
  padding: 0.2rem 0.66rem; letter-spacing: 0.1em;
}


/* ── narrow screens ───────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  /* .panel clips (overflow:hidden), so a table inside it cannot scroll out of
     trouble — it has to fit instead. */
  table.seg th, table.seg td { padding: 0.6rem 0.65rem; font-size: 0.8rem; }
  table.seg .num { white-space: normal; }
  table.seg th:first-child, table.seg td:first-child { word-break: break-word; }
  .chip { font-size: 0.6rem; padding: 0.14rem 0.4rem; }

  /* code keeps its own scroller, but make the runway shorter */
  pre { font-size: 0.74rem; padding: 0.9rem 1rem; }

  .btn { width: 100%; }
  .cta-row { gap: 0.6rem; }
  .cta-row .btn { flex: 1 1 100%; }
}


/* ── wordmark ─────────────────────────────────────────────────────────────
   "Lens" sits at the lower right of "Tangent" rather than beside it: the
   domain and the product read as one lockup, and the eye still lands on
   Tangent first. flex-end drops it to the baseline of the larger word. */
.brand .wordmark { display: inline-flex; align-items: flex-end; line-height: 1; }
.brand .lens {
  font-size: 0.52em; font-weight: 600; letter-spacing: 0.01em;
  color: var(--violet); margin-left: 0.14em; transform: translateY(0.06em);
}
footer .brand .lens { color: var(--cyan); }


/* ── mobile menu ──────────────────────────────────────────────────────────── */
.mob { display: none; position: relative; }
.mob > summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface);
}
.mob > summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: var(--ink); content: ""; position: relative;
}
.bars::before { top: -5px; } .bars::after { top: 3px; }
.mob[open] > summary { border-color: var(--brand-line); background: var(--brand-soft); }

.mob-panel {
  position: absolute; right: 0; top: calc(100% + 0.7rem);
  width: min(80vw, 296px); max-height: min(82vh, 720px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 26px 60px -26px rgba(11,16,32,0.45);
  padding: 0.5rem; display: grid; gap: 0.05rem; z-index: 60;
}
.mob-panel a {
  display: block; padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500;
}
.mob-panel a:hover { background: var(--brand-soft); }
.mob-sec {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); padding: 0.6rem 0.7rem 0.25rem;
}
.mob-panel .mob-cta {
  margin-top: 0.45rem; padding-block: 0.6rem; text-align: center; background: var(--violet);
  color: #fff; font-weight: 600;
}

@media (max-width: 900px) {
  .mob { display: block; }
  .top nav { gap: 0.8rem; }
  .top nav a.docs { display: none; }   /* it lives inside the panel on mobile */
}
