/* elephanttrunk.ai — one stylesheet for the four pages.
   Near-black on white, one accent, hairline grid, Inter and JetBrains Mono self-hosted.
   No scripts, no cookies, no outside requests. */
@font-face {
  font-family: "Inter";
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("jbmono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --wine: #6B183D;
  --wine-deep: #3A0C21;
  --accent: #D6336C;
  --accent-soft: #F6CFDD;
  --accent-ink: #0B0B0C;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 80rem;
  color-scheme: light dark;
  /* platinum band (default) */
  --bg: #ECECEF;
  --bg-grad: linear-gradient(100deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,.35) 62%, rgba(255,255,255,0) 100%), linear-gradient(180deg, #FAFAFB 0%, #E9E9ED 30%, #D6D6DC 65%, #C3C3CA 100%);
  --cell: rgba(252,252,253,.82);
  --bg-2: #E2E2E6;
  --ink: #0B0B0C;
  --ink-2: #44444B;
  --muted: #5F5F67;
  --line: #BEBEC6;
  --bar-base: #C4C4CB;
  --btn-bg: var(--wine);
  --btn-ink: #FFFFFF;
}
.band-dark, .top, footer {
  --bg: #0B0B0C;
  --bg-grad: radial-gradient(70% 60% at 50% 0%, rgba(214, 51, 108, .22), transparent 70%), linear-gradient(180deg, #0F0C0E 0%, #0B0B0C 100%);
  --cell: #121113;
  --bg-2: #1A1518;
  --ink: #F4F4F5;
  --ink-2: #BDBDC4;
  --muted: #8A8A93;
  --line: #2A2328;
  --bar-base: #3A3238;
  --btn-bg: var(--accent-soft);
  --btn-ink: #0B0B0C;
  --accent: #E64980;
  background: var(--bg); background-image: var(--bg-grad); color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1E;
    --bg-grad: linear-gradient(180deg, #202025 0%, #17171B 100%);
    --cell: #202025;
    --bg-2: #26262C;
    --ink: #F4F4F5;
    --ink-2: #BDBDC4;
    --muted: #8A8A93;
    --line: #34343B;
    --bar-base: #45454D;
    --btn-bg: var(--accent-soft);
    --btn-ink: #0B0B0C;
    --accent: #E64980;
  }
}
.band-light { background: var(--bg); background-image: var(--bg-grad); color: var(--ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  background-image: var(--bg-grad);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-feature-settings: "cv11", "ss01", "calt";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; }
.brand:hover { color: inherit; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav .cta { padding: .55rem 1rem; border: 1px solid #3F3F46; border-radius: 6px; color: var(--ink); }
.nav .cta:hover { border-color: var(--ink); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: .5rem 0; font-size: .95rem; color: var(--ink-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ☰"; }
.menu[open] summary::after { content: " ✕"; }
.menu .nav { color: var(--ink); position: absolute; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; min-width: 12rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .4rem 0; }
.menu .nav a { padding: .6rem 1rem; }
.menu .nav .cta { border: 0; margin: .2rem .6rem 0; background: var(--accent-soft); color: var(--accent-ink); text-align: center; }
@media (min-width: 760px) { .menu { display: none; } }
@media (max-width: 759.98px) { .top > .wrap > .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: clamp(34rem, 78vh, 54rem);
  background: #0B0B0C; color: #F4F4F5;
  border-bottom: 1px solid #2A2328;
}
.hero video, .hero .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .still { background:
  radial-gradient(60% 55% at 70% 30%, rgba(214, 51, 108, .55), transparent 70%),
  radial-gradient(50% 60% at 20% 80%, rgba(255, 255, 255, .14), transparent 70%),
  linear-gradient(180deg, #121214 0%, #0B0B0C 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.15) 0%, rgba(11,11,12,.05) 45%, rgba(11,11,12,.6) 100%); }
.hero .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.hero .sub { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 300; color: #E4E4E7; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .6rem; border: 1px solid rgba(244,244,245,.55); border-radius: 5px; color: #F4F4F5;
  background: rgba(11,11,12,.35); text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: #fff; color: #fff; }
.hero .line2 { margin-top: .9rem; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 300; color: #D4D4D8; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 7px; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 500; font-size: .98rem;
  border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.12); }
.hero .btn { margin-top: 1.8rem; background: var(--accent-soft); color: #0B0B0C; }
.hero .stage { margin-top: 1.4rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #D4D4D8; }
.hero .stage b { font-weight: 500; color: #fff; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 8rem) 0; }
.eyebrow { margin-bottom: 1.25rem; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 26ch; }
.lede { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 56ch; font-weight: 300; }
.lede b, .lede strong { font-weight: 500; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }

/* hairline grid of cells */
.grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 3rem; background: var(--line); }
.grid.c3 { grid-template-columns: 1fr; gap: 1px; }
@media (min-width: 760px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.grid.c2 { grid-template-columns: 1fr; gap: 1px; }
@media (min-width: 640px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } }
.cell { background: var(--cell); padding: 1.6rem 1.5rem 1.8rem; }
.cell h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: .6rem; }
.cell p { color: var(--ink-2); font-size: .98rem; }
.cell .mono { margin-bottom: 1.1rem; display: block; }

/* ---------- Measured ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 2.25rem; }
.stat { background: var(--cell); padding: 1.3rem 1.3rem 1.4rem; }
.stat .v { font-size: clamp(1.7rem, 2.2vw, 2.2rem); white-space: nowrap; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.stat .v small { font-size: .55em; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.stat .l { margin-top: .4rem; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 639.98px) { .stats { grid-template-columns: 1fr; } }
.chart { margin-top: 0; background: var(--cell); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.5rem 1.2rem; }
.chart .t { font-size: .98rem; font-weight: 500; }
.chart .s { font-size: .86rem; color: var(--muted); margin-top: .15rem; }
.chart svg { width: 100%; height: auto; margin-top: 1rem; font-family: var(--sans); }
.chart .lab { font-size: 12.5px; fill: var(--ink-2); }
.chart .val { font-size: 12px; fill: var(--ink); font-weight: 500; }
.chart .ax { font-size: 11px; fill: var(--muted); }
.chart .ref { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 0; opacity: .6; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--ink); }
.chart .base { fill: var(--bar-base); }
.caveat { margin-top: 1rem; font-size: .86rem; color: var(--muted); max-width: 60ch; }
.key { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: .9rem; font-size: .82rem; color: var(--ink-2); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.key .ki { background: var(--accent); }
.key .kb { background: var(--bar-base); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 1rem; }
table.data th, table.data td { text-align: left; padding: .45rem .6rem; border-top: 1px solid var(--line); }
table.data th { font-weight: 500; color: var(--ink-2); }
table.data td:last-child, table.data th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
details.tbl summary { cursor: pointer; font-size: .86rem; color: var(--ink-2); margin-top: 1rem; }

/* ---------- Pricing ---------- */
.plans { margin-top: 3rem; background: var(--cell); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan { display: grid; grid-template-columns: 1fr; gap: .6rem 2rem; padding: 1.5rem 1.5rem 1.6rem; border-top: 1px solid var(--line); }
.plan:first-child { border-top: 0; }
@media (min-width: 760px) { .plan { grid-template-columns: 11rem 14.5rem 1fr; align-items: baseline; padding: 1.7rem 1.75rem; } }
.plan .n { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.plan .n small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: .15rem; }
.plan .p { font-size: 1.6rem; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .p small { font-size: .55em; letter-spacing: 0; color: var(--muted); }
.plan .d { color: var(--ink-2); font-size: .95rem; }
.plan.addon { background: var(--bg-2); }
.fine { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); max-width: 70ch; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--cell); padding: 1.4rem 1.4rem 1.5rem; color: var(--ink-2); font-size: .95rem; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); margin-bottom: .9rem; }
.steps li b { color: var(--ink); font-weight: 500; }

/* ---------- Contact and footer ---------- */
.contact .big { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 300; letter-spacing: -.02em; }
.contact .big a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact .big a:hover { border-color: var(--accent); }
footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); }
footer .wrap { max-width: none; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; align-items: end; } }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer p { max-width: 60ch; }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 4rem; max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal .updated { margin: 1rem 0 2.5rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.legal h2 { font-size: 1.25rem; font-weight: 500; margin: 2.4rem 0 .6rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: .6rem 0; }
.legal ul, .legal ol { margin: .6rem 0; padding-left: 1.3rem; }
.legal li { margin: .3rem 0; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal .note { background: var(--cell); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: .8rem 1rem; margin: 1.2rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: .5rem .6rem; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 500; }

/* ---------- round 4: value props, transcript, diagram ---------- */
.list { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .98rem; }
.list li { margin: .3rem 0; }
.list.num { padding-left: 1.2rem; }
.list b { color: var(--ink); font-weight: 500; }
.h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; margin-top: 3.5rem; }
.vp { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .vp { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.vp-text > .mono { margin-bottom: 1rem; }
.vp-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: 1rem; }
.vp-text p { color: var(--ink-2); margin-top: .8rem; }
.vp-text .stats { margin-top: 1.75rem; }
:root { --seg1: #6B6B74; --seg2: #9A9AA4; --seg3: #C94C7D; --seg4: #E64980; }
.band-dark { --seg1: #4A4A52; --seg2: #6F6F78; --seg3: #B03767; --seg4: #E64980; }
.chart .seg1 { fill: var(--seg1); } .chart .seg2 { fill: var(--seg2); } .chart .seg3 { fill: var(--seg3); } .chart .seg4 { fill: var(--seg4); }
.chart g:hover rect { filter: brightness(1.15); }
.chat { background: var(--cell); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem 1rem; font-size: .95rem; }
.chat-h { padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.msg { max-width: 92%; margin: .7rem 0; line-height: 1.5; }
.msg.user { margin-left: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px 12px 2px 12px; padding: .6rem .9rem; width: fit-content; }
.msg.ai { color: var(--ink-2); }
.msg.ai b { color: var(--ink); font-weight: 500; }
.msg.ai ol { margin: .2rem 0 .5rem; padding-left: 1.2rem; }
.msg.ai li { margin: .25rem 0; }
.tool { border-left: 2px solid var(--accent); margin: .6rem 0 .6rem .2rem; padding-left: .9rem; }
.tool-h { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }
.tool-h code { font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.tool-h .arg { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.tool pre { margin: .45rem 0 0; font-family: var(--mono); font-size: .74rem; line-height: 1.5; color: var(--ink-2); white-space: pre; overflow-x: auto; }
.chat .caveat { margin-top: .9rem; }
.diagram { width: 100%; height: auto; background: var(--cell); border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); }
.d-link { stroke: var(--line); stroke-width: 1.5; }
.d-core { fill: var(--bg-2); stroke: var(--accent); stroke-width: 1.5; }
.d-core-t { font-size: 17px; font-weight: 500; fill: var(--ink); }
.d-core-s { font-size: 11px; fill: var(--muted); }
.d-node { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.d-node-t { font-size: 12.5px; fill: var(--ink); }
.d-edge { font-size: 10.5px; fill: var(--muted); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* phone: keep the transcript and charts inside their column */
.vp > * { min-width: 0; }
.chat { min-width: 0; overflow: hidden; }
.vp-visual .chart { min-width: 0; }
