/* tel.seanbehan.ca — dark technical theme, no external assets or fonts. */

:root {
  --bg: #0a0f16;
  --bg-2: #0d141d;
  --panel: #111a26;
  --panel-2: #0e1621;
  --line: #1d2a3b;
  --line-bright: #2b3d55;
  --text: #dce6f2;
  --muted: #94a6bc;
  --faint: #6b7f97;
  --accent: #5eead4;
  --accent-2: #7dd3fc;
  --accent-3: #c4b5fd;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 18% -8%, rgba(94, 234, 212, 0.08), transparent 60%),
    radial-gradient(820px 460px at 88% 4%, rgba(125, 211, 252, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.55em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); }
em { font-style: normal; color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 15, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 18px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--mono); font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-prompt { color: var(--accent); font-weight: 700; }
.brand-name { letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.92rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-gh { border: 1px solid var(--line-bright); border-radius: 999px; padding: 5px 13px; color: var(--text) !important; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lede { font-size: 1.13rem; color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04201d; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--line-bright); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); }
.install-line {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; overflow-x: auto;
  margin: 0 0 22px; padding: 9px 14px;
  border: 1px solid var(--line-bright); border-radius: var(--radius-sm);
  background: #080d14; font-family: var(--mono); font-size: 0.88rem; color: var(--muted);
}
.install-prompt { color: var(--accent); font-weight: 700; }
.install-line code { color: var(--text); white-space: nowrap; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.hero-facts li::before { content: "→"; color: var(--accent); font-family: var(--mono); margin-right: 9px; }

/* ---------- code cards ---------- */
.code-card {
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%), var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-bright); display: block; }
.dots i:first-child { background: #f87171; }
.dots i:nth-child(2) { background: #fbbf24; }
.dots i:nth-child(3) { background: #34d399; }
.code-title { color: var(--text); }
.code-badge { margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 0.72rem; color: var(--accent); white-space: nowrap; }
.code-body {
  margin: 0; padding: 18px 18px 20px;
  overflow-x: auto;
  font-family: var(--mono); font-size: 0.84rem; line-height: 1.62;
  color: #c9d6e5;
  tab-size: 2;
}
.code-body.small { font-size: 0.78rem; padding: 14px 16px; }
.code-body code { white-space: pre; }

.tok-kw { color: #f472b6; }
.tok-str { color: #86efac; }
.tok-num { color: #fbbf24; }
.tok-com { color: #64748b; font-style: italic; }
.tok-fn { color: #7dd3fc; }
.tok-type { color: #5eead4; }
.tok-punc { color: #8fa3bc; }

/* ---------- metrics ---------- */
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); padding: 0; }
.metric { background: var(--bg-2); padding: 24px 22px; }
.metric-value { font-family: var(--mono); font-size: 1.75rem; color: var(--accent); letter-spacing: -0.03em; }
.metric-label { font-weight: 600; font-size: 0.92rem; margin-top: 3px; }
.metric-note { color: var(--faint); font-size: 0.8rem; line-height: 1.45; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; color: var(--accent); margin-bottom: 10px; }
.section-lede { color: var(--muted); font-size: 1.02rem; }
.muted { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 21px;
}
.feature-kicker { font-family: var(--mono); color: var(--accent); font-size: 0.76rem; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; }
.feature p:last-child { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }
.dogfood { border-color: var(--line-bright); }

/* ---------- tour ---------- */
.tour-root { min-height: 420px; }
.tour-live { display: grid; gap: 18px; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  font: inherit; font-size: 0.88rem; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; cursor: pointer;
}
.tab:hover { color: var(--text); border-color: var(--line-bright); }
.tab.is-active { color: #04201d; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.tour-panel, .sample {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.sample { margin-bottom: 16px; }
.sample-head, .panel-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.sample-title { font-weight: 600; }
.sample-tokens { margin-left: auto; font-family: var(--mono); font-size: 0.76rem; color: var(--accent); }
.sample-blurb { color: var(--muted); font-size: 0.91rem; padding: 15px 16px 0; margin-bottom: 12px; }
.sample-run { padding: 12px 16px; margin: 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.78rem; }
.sample-run code { color: var(--muted); }
.chip {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent-2);
  border: 1px solid var(--line-bright); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.tour-panel .code-body { border-bottom: 1px solid var(--line); }

/* ---------- estimator ---------- */
.estimator { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 13px; }
.field-label { font-size: 0.92rem; font-weight: 600; }
textarea {
  width: 100%; resize: vertical; min-height: 118px;
  background: #080d14; color: var(--text); border: 1px solid var(--line-bright); border-radius: var(--radius-sm);
  padding: 12px 13px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.55;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.14); }
.estimate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.estimate-out { color: var(--muted); font-size: 0.9rem; }
.estimate-out strong { color: var(--accent); font-family: var(--mono); font-size: 1.12rem; }
.fineprint { color: var(--faint); font-size: 0.78rem; line-height: 1.5; }

/* ---------- tables ---------- */
.token-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin: 8px 0 34px;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.06), transparent 70%), var(--panel);
}
.token-stat { display: grid; gap: 2px; }
.token-number { font-family: var(--mono); font-size: 2.7rem; line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.token-stat.dim .token-number { color: var(--faint); }
.token-label { color: var(--muted); font-size: 0.86rem; }
.token-vs { color: var(--faint); font-family: var(--mono); }
.token-delta { margin-left: auto; font-family: var(--mono); font-size: 1.5rem; color: var(--accent-3); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
table.bench { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 540px; }
.bench th, .bench td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
.bench thead th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.bench .num { text-align: right; font-family: var(--mono); }
.bench .num.strong { color: var(--accent); }
.bench .total td { border-bottom: 0; background: rgba(94, 234, 212, 0.05); font-weight: 600; }
.bar-col { min-width: 190px; }
.bar-cell { display: flex; align-items: center; gap: 10px; }
.bar-pct { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); min-width: 42px; }
progress {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 7px; border: 0; border-radius: 999px; overflow: hidden; background: #1b2738;
}
progress::-webkit-progress-bar { background: #1b2738; border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--mono); font-size: 0.85rem; color: #04201d; background: var(--accent); margin-bottom: 12px;
}
.step-note { color: var(--muted); font-size: 0.9rem; }
.step .code-body { background: #080d14; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 12px 0 0; }

/* ---------- agents ---------- */
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { color: var(--muted); padding-left: 26px; position: relative; font-size: 0.94rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.checks strong { color: var(--text); }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-family: var(--mono); }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }

/* ---------- 404 ---------- */
.notfound { padding: 90px 24px 110px; max-width: 760px; }
.notfound h1 code { font-size: 0.75em; color: var(--accent-2); word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #070b11; padding: 46px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 30px; align-items: start; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.footer-links { display: grid; gap: 8px; font-size: 0.9rem; }
.footer-links a { color: var(--muted); }
.footer-note p { color: var(--faint); font-size: 0.84rem; margin: 0 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .token-delta { margin-left: 0; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .nav-links { gap: 13px; font-size: 0.85rem; }
  .nav-links a:not(.nav-gh) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .section { padding: 56px 0; }
  .token-hero { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Grid and flex children must be allowed to shrink; long code lines scroll
   inside .code-body instead of widening the page. */
.hero-grid > *, .feature-grid > *, .steps > *, .tour-live > *, .tour-panel, .sample, .table-wrap { min-width: 0; }
