/* Tyvra.ai — the agentic platform. One stylesheet, no build step. */

:root {
  --ground: #F6F5F2;
  --paper: #FFFFFF;
  --ink: #1A1A18;
  --muted: #57564F;
  --faint: #86847C;
  --line: #DDDAD2;
  --accent: #5A4FCF;

  --mint: #CFE8DC;   --mint-ink: #16382B;   --mint-sub: #3E6656;
  --sky: #CFE0F2;    --sky-ink: #1F3350;    --sky-sub: #46618C;
  --peach: #FBD9C8;  --peach-ink: #5A3320;  --peach-sub: #8A5537;
  --blush: #F3D3DC;  --blush-ink: #5A2536;  --blush-sub: #8A4157;
  --butter: #F5E6B8; --butter-ink: #4D3D10; --butter-sub: #776221;
  --lilac: #DCD6F2;  --lilac-ink: #332C66;  --lilac-sub: #554B94;
  --pistachio: #E2EBC9; --pistachio-ink: #34401A; --pistachio-sub: #5B6B2C;
  --aqua: #CDE9EC;   --aqua-ink: #16424A;   --aqua-sub: #2F6C76;

  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --radius-lg: clamp(20px, 2.2vw, 28px);
  --radius-md: clamp(14px, 1.6vw, 18px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 60px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 60px); max-width: 20ch; }
.section-head p { width: min(380px, 100%); flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-invert { background: var(--ground); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.wordmark { display: inline-flex; align-items: flex-start; gap: 2px; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -0.015em; }
/* The AI sits at cap height, small, like a ™ — not on the baseline. */
.wordmark span { font-family: var(--display); font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: 0.04em; color: #FFFFFF; background: var(--accent); border-radius: 4px; padding: 2px 4px 1px; margin-top: 1px; }
.wordmark img { display: block; width: 98px; height: 20px; }
.nav-pill { display: flex; align-items: center; gap: 2px; background: var(--paper); border-radius: 999px; padding: 6px; }
.nav-pill a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; color: var(--muted); }
.nav-pill a:hover { background: var(--ground); color: var(--ink); }
.nav-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-login { min-height: 48px; padding: 0 22px; font-size: 15px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-login:hover { background: var(--ink); color: var(--ground); }
/* On desktop the header button is the login; inside the menu it only exists for phones. */
.nav-pill .nav-login { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(16px, 3vw, 28px); }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border-radius: 999px; padding: 9px 18px;
  font-family: var(--mono); font-size: clamp(10px, 1vw, 12px); letter-spacing: 0.1em;
  text-transform: uppercase; color: #3A3835;
}
.badge i { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }
.hero h1 { margin-top: 28px; font-size: clamp(42px, 8vw, 116px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-body { display: flex; justify-content: space-between; align-items: flex-end; gap: clamp(32px, 5vw, 60px); margin-top: clamp(28px, 4vw, 40px); flex-wrap: wrap; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.run-card { width: min(640px, 100%); background: var(--paper); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }
.run-head b { font-weight: 400; color: var(--accent); }
.run-steps { display: flex; flex-direction: column; gap: 14px; }
.run-step { display: flex; gap: 16px; align-items: baseline; }
.run-step dt { font-family: var(--mono); font-size: 11px; color: var(--faint); width: 68px; flex-shrink: 0; }
.run-step dd { margin: 0; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.4; }
.chip { font-family: var(--mono); font-size: clamp(12px, 1.1vw, 14px); border-radius: 8px; padding: 6px 11px; display: inline-block; }
.chip-read { background: var(--sky); color: var(--sky-ink); }
.chip-act { background: var(--mint); color: var(--mint-ink); }
.run-rail { background: var(--ground); border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.run-rail span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--faint); }
.run-rail code { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track ul { display: flex; align-items: center; gap: 36px; padding: 28px 18px; white-space: nowrap; font-family: var(--mono); font-size: clamp(13px, 1.2vw, 15px); color: var(--ground); }
.marquee-track li::after { content: '◆'; color: var(--accent); margin-left: 36px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- claim ---------- */
.claim { display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(28px, 5vw, 80px); padding-block: clamp(60px, 9vw, 110px); flex-wrap: wrap; }
.claim h2 { font-size: clamp(32px, 4.6vw, 64px); max-width: 14ch; }
.claim p { width: min(400px, 100%); color: var(--muted); }

/* ---------- agents bento ---------- */
.legend { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.dot-live { background: var(--ink); }
.dot-spec { box-shadow: inset 0 0 0 1px #A8A59C; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.team { border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.team.wide { grid-column: span 2; }
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.team-head h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; }
.team-head .tools { font-family: var(--mono); font-size: clamp(10px, 1vw, 12px); }
.roster { display: flex; flex-direction: column; gap: 9px; }
.team.wide .roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agent { background: var(--paper); border-radius: var(--radius-md); padding: 15px 18px; display: flex; flex-direction: column; gap: 4px; }
.agent b { display: flex; align-items: center; gap: 9px; font-size: clamp(15px, 1.3vw, 17px); font-weight: 600; }
.agent small { font-size: clamp(13px, 1.2vw, 15px); line-height: 1.45; color: var(--muted); font-weight: 400; }

.stat-cell { background: var(--ink); color: var(--ground); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stat-cell .eyebrow { color: #A8A59C; }
.stat-cell strong { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 9vw, 130px); line-height: 0.82; letter-spacing: -0.05em; display: block; }
.stat-cell p { color: #C9C6BD; margin-top: 10px; }

/* ---------- dark band ---------- */
.band-dark { background: var(--ink); color: var(--ground); padding-block: clamp(56px, 7vw, 84px); margin-top: clamp(64px, 9vw, 110px); }
.band-dark h2 { color: var(--ground); }
.band-dark p { color: #A8A59C; }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(32px, 5vw, 52px); }
.pipeline li { border-top: 1px solid #3A3835; padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.pipeline li:last-child { border-top-color: var(--ground); padding-right: 0; }
.pipeline .num { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.pipeline li:last-child .num { color: var(--ground); }
.pipeline b { font-size: 17px; }
.pipeline small { font-size: 15px; line-height: 1.5; color: #A8A59C; }

/* ---------- voice band ---------- */
.band-voice { background: var(--lilac); padding-block: clamp(56px, 7vw, 84px); }
.band-voice .section-head p { color: #3A3470; }
.metrics { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(16px, 2vw, 24px); margin-top: clamp(32px, 4vw, 44px); flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric .eyebrow { color: var(--lilac-sub); }
.metric strong { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.4vw, 72px); line-height: 0.9; letter-spacing: -0.045em; }
.metric strong i { font-style: normal; font-size: 0.42em; }
.metric small { font-size: 15px; line-height: 1.5; color: #3A3470; max-width: 190px; }
.plus { font-family: var(--display); font-size: 40px; color: #A79FD9; padding-bottom: 56px; }
.metric-total { background: var(--ink); color: var(--ground); border-radius: var(--radius-lg); padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; width: min(300px, 100%); }
.metric-total .eyebrow { color: #A8A59C; }
.metric-total strong { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.2vw, 56px); line-height: 0.95; letter-spacing: -0.045em; }
.metric-total small { color: #C9C6BD; font-size: 15px; line-height: 1.5; }
.langs { display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 1px solid #C5BEE8; padding-top: 28px; margin-top: clamp(32px, 4vw, 44px); flex-wrap: wrap; }
.langs ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 30px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.025em; color: var(--lilac-ink); }
.langs p { width: min(300px, 100%); font-size: 15px; color: #3A3470; }

/* ---------- channels ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 40px); }
.card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(22px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.025em; }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); }

.pulse { background: var(--peach); color: var(--peach-ink); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 48px); margin-top: 16px; flex-wrap: wrap; }
.pulse h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.pulse p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; max-width: 700px; }
.pulse .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; background: var(--peach-ink); color: var(--peach); border-radius: 999px; padding: 5px 11px; }
.pulse .price { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.pulse a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--peach-sub); }

/* ---------- packs ---------- */
.packs { display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(28px, 4vw, 60px); flex-wrap: wrap; }
.packs h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 14ch; }
.packs .intro { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; max-width: 800px; }
.pills li { background: var(--paper); border-radius: 999px; padding: 14px 24px; font-size: clamp(15px, 1.4vw, 18px); }
.pills li.last { background: var(--ink); color: var(--ground); }

/* ---------- control ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 40px); }
.level { border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.level .num { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); line-height: 0.9; letter-spacing: -0.045em; }
.level h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; }
.level p { font-size: clamp(15px, 1.4vw, 16px); line-height: 1.5; }
.assurances { display: flex; gap: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); padding-top: 24px; margin-top: clamp(28px, 4vw, 40px); flex-wrap: wrap; }
.assurances div { display: flex; flex-direction: column; gap: 5px; flex: 1 1 220px; }
.assurances b { font-size: 16px; }
.assurances small { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- cta + footer ---------- */
.cta { background: var(--ink); color: var(--ground); padding-block: clamp(56px, 8vw, 96px); margin-top: clamp(56px, 8vw, 80px); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: clamp(32px, 5vw, 80px); flex-wrap: wrap; }
.cta h2 { font-size: clamp(36px, 6vw, 76px); font-weight: 800; letter-spacing: -0.042em; line-height: 0.95; max-width: 14ch; color: var(--ground); }
.cta p { max-width: 620px; color: #A8A59C; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; margin-top: 24px; }
.cta-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-actions small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.8; color: var(--faint); }

.site-footer { padding-block: clamp(40px, 5vw, 56px); }
.footer-top { display: flex; justify-content: space-between; gap: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.footer-top > p { max-width: 380px; color: var(--muted); }
.footer-cols { display: flex; gap: clamp(32px, 5vw, 80px); flex-wrap: wrap; }
.footer-cols ul { display: flex; flex-direction: column; gap: 12px; }
.footer-cols a { font-size: 16px; color: var(--muted); }
.footer-mark { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.footer-mark .big { display: flex; align-items: flex-start; gap: 0.04em; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 11vw, 150px); line-height: 0.8; letter-spacing: -0.05em; }
.footer-mark .big span { font-family: var(--display); font-size: 0.16em; font-weight: 700; line-height: 1; letter-spacing: 0.02em; color: #FFFFFF; background: var(--accent); border-radius: 0.24em; padding: 0.14em 0.28em 0.1em; margin-top: 0.32em; }
.footer-mark small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; line-height: 1.9; text-align: right; color: var(--faint); }

/* ---------- breakpoints ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team.wide { grid-column: span 2; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus { display: none; }
  .metrics { gap: 32px; }
  .metric { flex: 1 1 140px; }
}

@media (max-width: 860px) {
  .nav-pill { display: none; }
  .nav-pill.open { display: flex; position: absolute; top: 76px; right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; padding: 10px; z-index: 20;
    /* the desktop pill's 999px radius turns a tall menu into a circle */
    border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(26, 26, 24, 0.12); }
  .btn-login { display: none; }
  .nav-pill.open .nav-login { display: inline-flex; font-weight: 600; color: var(--ink); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: var(--paper); border: 0; border-radius: 999px; cursor: pointer; }
  .site-header { position: relative; gap: 10px; }
  /* logo left; Book a demo then the menu icon together on the right edge */
  .header-actions { margin-left: auto; }
  .nav-toggle { order: 3; flex-shrink: 0; }
  .header-actions .btn { width: auto; white-space: nowrap; }
  .levels { grid-template-columns: 1fr; }
  .run-card { width: 100%; }
}

@media (max-width: 700px) {
  .bento, .cards-4 { grid-template-columns: 1fr; }
  .team.wide { grid-column: span 1; }
  .team.wide .roster { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline li { padding-right: 16px; }
  .btn { width: 100%; }
  .header-actions .btn { width: auto; }
  /* the header's Book a demo carries inline desktop sizing; trim it so it stays on one line */
  .header-actions .btn-dark { padding: 0 18px !important; min-height: 44px !important; font-size: 14px !important; }
  .hero-actions { width: 100%; }
  .footer-mark small { text-align: left; }
}

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.legal-head h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; }
.legal-date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); }
.legal-summary { grid-column: 2; grid-row: 2; position: sticky; top: 24px; background: var(--mint); color: var(--mint-ink); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.legal-summary h2 { font-size: 22px; letter-spacing: -0.02em; }
.legal-summary ul { display: flex; flex-direction: column; gap: 10px; }
.legal-summary li { font-size: 15px; line-height: 1.5; padding-left: 18px; position: relative; }
.legal-summary li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 999px; background: var(--mint-ink); }
.legal-body { grid-column: 1; grid-row: 2; max-width: 720px; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 44px); }
.legal-body section { display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; }
.legal-body h3 { font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-top: 8px; }
.legal-body p, .legal-list li { color: var(--muted); line-height: 1.7; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.legal-list li::marker { color: var(--faint); }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal-summary { grid-column: 1; grid-row: 2; position: static; }
  .legal-body { grid-column: 1; grid-row: 3; }
}
.legal-steps { list-style: decimal; }
.legal-body section[id] { scroll-margin-top: 24px; }
.legal-summary a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-table-wrap { overflow-x: auto; border-radius: var(--radius-md); background: var(--paper); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--ground); line-height: 1.55; }
.legal-table th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.legal-table td:first-child { color: var(--ink); font-weight: 500; width: 46%; }
.legal-table td { color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink); }
.free-chips { margin-top: clamp(24px, 3vw, 32px); align-items: center; }
.free-chips .chips-label { background: transparent; padding-left: 0; font-weight: 600; color: var(--accent); }

/* ---------- the eight Talents ---------- */
.suite { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.talent { border-radius: var(--radius-lg); padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.talent.wide { grid-column: span 2; }
.talent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.talent-head h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.talent-fn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.talent-desc { font-size: 15px; line-height: 1.5; opacity: 0.9; }
.talent .roster { display: flex; flex-direction: column; gap: 8px; }
.talent.wide .roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.talent .agent { padding: 12px 14px; }
.talent .agent b { font-size: 15px; }
.talent .agent small { font-size: 13px; }
.thinker { grid-column: span 2; }
.thinker strong { display: flex; align-items: baseline; gap: 14px; }
.thinker .stat-unit { font-family: var(--display); font-size: 0.32em; font-weight: 700; letter-spacing: -0.02em; color: #C9C6BD; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; align-items: stretch; }
.plan { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(22px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.plan-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-tag { font-size: 10px; letter-spacing: 0.1em; background: var(--accent); color: #FFFFFF; border-radius: 999px; padding: 4px 9px; }
.plan-price { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; }
.plan-price span { font-family: var(--body); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--faint); margin-left: 2px; }
.plan-price-text { font-size: clamp(28px, 2.6vw, 34px); }
.plan-logins { font-size: 14px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--ground); padding-top: 14px; }
.plan-logins b { color: var(--ink); font-size: 15px; }
.fuel { display: flex; flex-direction: column; gap: 8px; }
.fuel dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.fuel dl div { display: flex; align-items: baseline; gap: 10px; }
.fuel dt { font-family: var(--display); font-weight: 700; font-size: 18px; min-width: 74px; }
.fuel dd { margin: 0; font-size: 14px; color: var(--muted); }
.plan-feats { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.plan-lead { font-size: 14px; font-weight: 600; color: var(--accent); }
.plan-feats ul { display: flex; flex-direction: column; gap: 6px; }
.plan-feats li { font-size: 14px; line-height: 1.45; padding-left: 18px; position: relative; color: var(--ink); }
.plan-feats li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 1px; }
.plan.featured { background: var(--ink); color: var(--ground); }
.plan.featured .plan-name, .plan.featured .plan-lead { color: #B9B2F3; }
.plan.featured .plan-price span, .plan.featured .fuel dd, .plan.featured .plan-logins { color: #A8A59C; }
.plan.featured .plan-logins { border-top-color: #3A3835; }
.plan.featured .plan-logins b, .plan.featured .plan-feats li { color: var(--ground); }
.plan.featured .plan-feats li::before { color: #B9B2F3; }
.plan.featured .plan-tag { background: #B9B2F3; color: var(--ink); }
.plan-summit-copy { font-size: 15px; line-height: 1.55; color: var(--muted); }
.plan.summit .btn { margin-top: auto; align-self: flex-start; }

.pricing-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.extra { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(22px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.extra h3 { font-size: 20px; letter-spacing: -0.02em; }
.price-rows { display: flex; flex-direction: column; gap: 8px; }
.price-rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ground); border-radius: var(--radius-md); padding: 12px 16px; }
.price-rows span { display: flex; flex-direction: column; gap: 2px; }
.price-rows b { font-size: 15px; }
.price-rows small { font-size: 13px; color: var(--muted); }
.price-rows strong { font-family: var(--display); font-size: 20px; color: var(--accent); }
.extra-note { font-size: 14px; line-height: 1.55; color: var(--muted); }
.pricing-note { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; line-height: 1.7; color: var(--faint); }

@media (max-width: 1100px) {
  .suite, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .suite, .plans, .pricing-extras { grid-template-columns: 1fr; }
  .talent.wide, .thinker { grid-column: span 1; }
  .talent.wide .roster { grid-template-columns: 1fr; }
}

.lang-banner { margin-top: 16px; background: var(--lilac); color: var(--lilac-ink); border-radius: var(--radius-md); padding: 14px 20px; font-size: 15px; line-height: 1.5; }
.fuel-band { margin-top: 16px; background: var(--ink); color: var(--ground); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: center; }
.fuel-band h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; color: var(--ground); }
.fuel-band-copy { display: flex; flex-direction: column; gap: 10px; }
.fuel-band-copy p { font-size: 15px; line-height: 1.55; color: #C9C6BD; }
.fuel-band-copy strong { color: var(--ground); font-weight: 600; }
.fuel-meters { display: flex; flex-direction: column; gap: 14px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 13px; color: #C9C6BD; }
.meter i { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: rgba(246, 245, 242, 0.14); position: relative; overflow: hidden; }
.meter i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--fill); border-radius: 999px; background: linear-gradient(90deg, #B9B2F3, #F3D3DC); }
.closing-chips { margin-top: 16px; justify-content: center; }
@media (max-width: 700px) { .fuel-band { grid-template-columns: 1fr; } }

/* ---------- the TYVRA app ---------- */
.app-band { background: var(--ink); color: var(--ground); padding-block: clamp(64px, 9vw, 112px); overflow: hidden; }
.app-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 820px; margin: 0 auto; }
.app-head h2 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: var(--ground); }
.app-lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: #C9C6BD; max-width: 640px; }
.badge-dark { background: #2A2926; color: #E9E7E1; }
.badge-dark i { background: #FF6B3D; }
.phone { position: relative; flex-shrink: 0; border-radius: calc(46px * var(--s)); box-shadow: 0 0 0 calc(10px * var(--s)) #2E2D2A, 0 0 0 calc(11px * var(--s)) #44423D, 0 30px 80px rgba(0, 0, 0, 0.45); overflow: hidden; background: #F4F1EB; font-family: 'Geist', system-ui, sans-serif; text-align: left; }
.phone-screen { width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; }
/* The screens are the app's own markup: keep the site's base rules out of them. The app
   sets no box-sizing reset, so its elements are content-box unless they say otherwise. */
.phone-screen :is(h1, h2, h3, p, ul, a) { all: revert; }
.phone-screen * { box-sizing: content-box; }

@media (max-width: 1100px) {
}
@media (max-width: 860px) {
}

/* ---------- app walkthrough player ---------- */
.app-player { display: grid; grid-template-columns: minmax(0, 460px) auto; justify-content: center; align-items: center; gap: clamp(40px, 7vw, 120px); max-width: 1120px; margin: clamp(48px, 6vw, 80px) auto 0; }
.player-copy { display: flex; flex-direction: column; gap: 18px; }
.now { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: #8F8C84; }
.now-num { color: #FF6B3D; }
.now-title { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.045em; color: var(--ground); }
.now-line { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: #C9C6BD; min-height: 3em; max-width: 30ch; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.chapter { position: relative; display: inline-flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 44px; padding: 11px 16px 9px; border: 0; border-radius: 14px; background: rgba(246, 245, 242, 0.06); color: #A8A59C; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
.chapter:hover { background: rgba(246, 245, 242, 0.12); color: var(--ground); }
.chapter.is-active { background: var(--ground); color: var(--ink); }
.chapter-bar { height: 2px; border-radius: 2px; background: rgba(26, 26, 24, 0.12); overflow: hidden; opacity: 0; }
.chapter.is-active .chapter-bar { opacity: 1; }
.chapter-bar i, .seg i { display: block; height: 100%; width: 0; background: #FF6B3D; border-radius: inherit; }
.player-copy .player-toggle { align-self: flex-start; margin-top: 6px; }
.player-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.player-stage::before { content: ''; position: absolute; inset: 8% -30% -4%; background: radial-gradient(closest-side, rgba(255, 107, 61, 0.28), rgba(90, 79, 207, 0.16) 55%, transparent 75%); filter: blur(10px); z-index: 0; pointer-events: none; }
.player-stage > * { position: relative; z-index: 1; }
.segs { display: flex; gap: 4px; width: 100%; max-width: 351px; }
.seg { flex: 1; height: 3px; border-radius: 3px; background: rgba(246, 245, 242, 0.14); overflow: hidden; }
.player-phone .phone-screen { position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(34px) scale(0.985); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; }
.slide.is-leaving { opacity: 0; transform: translateX(-34px) scale(0.985); }
.player-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(246, 245, 242, 0.08); color: #D9D6CE; font: inherit; font-size: 14px; cursor: pointer; }
.player-toggle:hover { background: rgba(246, 245, 242, 0.14); color: var(--ground); }
.player-toggle .ic-play { display: none; }
.player-toggle[aria-pressed="true"] .ic-play { display: inline; }
.player-toggle[aria-pressed="true"] .ic-pause { display: none; }
.app-player:not(.is-ready) .player-toggle, .app-player:not(.is-ready) .segs { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .slide, .chapter { transition: none; } }
@media (max-width: 430px) {
  .player-phone { --s: 0.78 !important; width: 304px !important; height: 658px !important; }
  .segs { max-width: 304px; }
}
@media (max-width: 900px) {
  .app-player { grid-template-columns: 1fr; justify-items: center; }
  .player-stage { order: -1; }
  .player-copy { align-items: center; text-align: center; width: 100%; }
  .now-line { max-width: 34ch; min-height: 0; }
  .chapters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; justify-content: flex-start; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters li { flex: 0 0 auto; scroll-snap-align: center; }
  .player-copy .player-toggle { align-self: center; }
}

.app-head h2 em { font-style: normal; color: #FF6B3D; white-space: nowrap; }

/* ---------- sign-in dialog ---------- */
.login-modal { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--ground); color: var(--ink); box-shadow: 0 40px 120px rgba(26, 26, 24, 0.35); overflow: auto; }
.login-modal::backdrop { background: rgba(26, 26, 24, 0.45); backdrop-filter: blur(6px); }
.login-modal[open] { animation: login-in .32s cubic-bezier(.2,.7,.2,1); }
@keyframes login-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .login-modal[open] { animation: none; } }
.login-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 40px); margin: 0; }
.login-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.login-close:hover { background: var(--paper); color: var(--ink); }
.login-mark { font-size: 20px; margin-bottom: 6px; }
.login-card h2 { font-size: clamp(30px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.04em; }
.login-sub { font-size: 15px; line-height: 1.5; color: var(--muted); margin-bottom: 6px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink); }
.login-field input { width: 100%; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.login-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90, 79, 207, 0.18); }
.login-pass { position: relative; display: block; }
.login-pass input { padding-right: 76px; }
.login-reveal { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ground); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.login-reveal:hover { color: var(--ink); }
.login-error { font-size: 14px; line-height: 1.45; color: #9F2A2A; background: #FBE3E1; border-radius: var(--radius-md); padding: 10px 14px; }
.login-submit { width: 100%; margin-top: 4px; }
.login-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }
.login-foot { font-size: 13px; line-height: 1.6; color: var(--faint); text-align: center; }
.login-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
