:root {
  --navy-950: #071126;
  --navy-900: #0b1730;
  --navy-800: #14274b;
  --blue: #2e7cf6;
  --blue-soft: #e9f1ff;
  --sky: #5ac8fa;
  --coral: #ff633f;
  --orange: #ff8b36;
  --yellow: #ffc94f;
  --teal: #18b8a8;
  --green: #1ca76f;
  --red: #d8505b;
  --ink: #17243a;
  --muted: #66758c;
  --line: #dbe3ef;
  --surface: #ffffff;
  --canvas: #eef3fa;
  --shadow: 0 18px 48px rgba(31, 55, 91, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.simulation-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: 34px;
  padding: 7px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(90deg, #ffd45f, #ff9a47);
  color: #3f2506;
  font-size: .78rem;
  letter-spacing: .02em;
  text-align: center;
}

.simulation-bar strong { letter-spacing: .08em; }

.app-shell {
  min-height: 100vh;
  padding-top: 34px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  top: 34px;
  bottom: 0;
  left: 0;
  width: 250px;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 5% 18%, rgba(46,124,246,.22), transparent 28%),
    radial-gradient(circle at 95% 62%, rgba(255,99,63,.16), transparent 32%),
    var(--navy-950);
  border-right: 1px solid rgba(255,255,255,.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 22px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand-lockup img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(255,201,79,.8);
}

.brand-lockup strong {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.25rem;
  line-height: .95;
  letter-spacing: .035em;
  color: #fff;
}

.brand-lockup span {
  display: block;
  margin-top: 6px;
  color: var(--yellow);
  font-size: .66rem;
  letter-spacing: .16em;
  font-weight: 800;
}

.nav-list {
  display: grid;
  gap: 5px;
  margin-top: 20px;
}

.nav-item {
  width: 100%;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #b7c4d9;
  text-align: left;
  font-size: .91rem;
  font-weight: 700;
  transition: .2s ease;
}

.nav-item span {
  color: #6f83a3;
  font-size: .68rem;
  letter-spacing: .09em;
}

.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(46,124,246,.92), rgba(46,124,246,.58));
  box-shadow: 0 10px 26px rgba(19,86,201,.28);
}
.nav-item.active span { color: #dceaff; }

.sidebar-card {
  margin-top: auto;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
}

.sidebar-card p {
  margin: 6px 0 0;
  color: #c1cce0;
  font-size: .78rem;
  line-height: 1.55;
}

.powered-by { padding: 17px 4px 0; color: #7f91ae; }
.powered-by span, .powered-by small { display: block; font-size: .68rem; }
.powered-by strong { display: block; margin: 2px 0; color: #ced8e9; font-size: .8rem; }

.main-panel {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 34px;
  z-index: 50;
  min-height: 88px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.page-heading { min-width: 255px; }
.page-heading h1 { margin: 1px 0 0; font-size: 1.35rem; line-height: 1.2; }
.eyebrow { font-size: .68rem; font-weight: 850; letter-spacing: .14em; color: #71819a; }
.eyebrow.coral { color: #dc4b2b; }

.global-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.global-controls label, .table-toolbar label {
  display: grid;
  gap: 3px;
  color: #738199;
  font-size: .69rem;
  font-weight: 750;
}

select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
}

.period-switch {
  padding: 3px;
  display: flex;
  gap: 2px;
  border-radius: 10px;
  background: #e9eef6;
}

.period-switch button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #66758c;
  font-size: .76rem;
  font-weight: 800;
}

.period-switch button.active { background: var(--navy-900); color: #fff; box-shadow: 0 3px 8px rgba(11,23,48,.22); }
.mobile-menu { display: none; }

.views { padding: 28px; }
.view { display: none; animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.overview-intro {
  min-height: 252px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow);
}

.intro-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(90,200,250,.12), transparent 35%),
    linear-gradient(135deg, var(--navy-900), #122b58);
}

.intro-copy .eyebrow { color: #ffb39e; }
.intro-copy h2 { max-width: 680px; margin: 8px 0 10px; font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.03em; }
.intro-copy p { max-width: 680px; margin: 0; color: #c4d1e4; font-size: 1rem; }

.intent-chips { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.intent-chips span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #dbe5f4; background: rgba(255,255,255,.06); font-size: .72rem; }

.intro-image { position: relative; min-height: 252px; overflow: hidden; background: #182c48; }
.intro-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900), transparent 38%); pointer-events: none; }
.intro-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-caption { position: absolute; right: 18px; bottom: 18px; z-index: 2; padding: 8px 12px; border-radius: 9px; background: rgba(7,17,38,.80); color: #d8e2f1; font-size: .76rem; backdrop-filter: blur(8px); }
.image-caption strong { color: var(--yellow); }

.metric-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.18fr repeat(4, 1fr);
  gap: 14px;
}

.metric-card {
  min-height: 144px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(31,55,91,.055);
}

.metric-card.featured { color: #fff; border-color: transparent; background: linear-gradient(140deg, #2e7cf6, #2154bb); }
.metric-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.metric-card.featured .metric-label { color: #d8e8ff; }
.metric-value { margin-top: 11px; font-size: 2.45rem; line-height: 1; font-weight: 850; letter-spacing: -.045em; }
.metric-value small { margin-left: 3px; font-size: .92rem; color: #8390a4; letter-spacing: 0; }
.metric-card.featured .metric-value small { color: #c5dafd; }
.metric-foot { margin-top: 11px; color: #7a899e; font-size: .76rem; }
.metric-foot strong { color: var(--ink); }
.metric-card.featured .metric-foot { color: #d5e5ff; }
.progress { height: 5px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.22); }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); transition: width .3s ease; }
.info-button { width: 19px; height: 19px; padding: 0; border: 1px solid #bbc6d6; border-radius: 50%; background: transparent; color: #7a899f; font-size: .68rem; font-weight: 800; }
.featured .info-button { border-color: rgba(255,255,255,.5); color: #fff; }

.dashboard-grid { margin-top: 18px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(31,55,91,.05); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head h3, .table-toolbar h3 { margin: 3px 0 0; font-size: 1.1rem; }

.legend { display: flex; align-items: center; gap: 7px; color: #6f7c91; font-size: .72rem; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.legend-dot.mention { background: var(--blue); }
.legend-dot.citation { background: var(--coral); }

.chart-wrap { position: relative; margin-top: 18px; padding-left: 38px; }
.trend-chart { width: 100%; height: 215px; overflow: visible; }
.trend-chart line { stroke: #e6ebf3; stroke-width: 1; }
.trend-chart .line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mention-line { stroke: var(--blue); }
.citation-line { stroke: var(--coral); }
.chart-points circle { fill: #fff; stroke-width: 4; }
.mention-points circle { stroke: var(--blue); }
.citation-points circle { stroke: var(--coral); }
.y-labels { position: absolute; top: 1px; bottom: 25px; left: 0; display: flex; flex-direction: column; justify-content: space-between; color: #93a0b2; font-size: .68rem; }
.x-labels { display: flex; justify-content: space-between; padding: 0 2px 0 1px; color: #7f8da1; font-size: .7rem; }

.status-pill { padding: 5px 8px; border-radius: 999px; font-size: .61rem; letter-spacing: .07em; font-weight: 850; white-space: nowrap; }
.status-pill.mentioned { color: #0d7d54; background: #dcf8ed; }
.status-pill.simulation { color: #7a4a00; background: #fff0c3; }
.status-pill.missing { color: #a63b46; background: #ffeaed; }
.status-pill.uncited { color: #805a00; background: #fff4ce; }

.platform-row { margin-top: 20px; display: grid; grid-template-columns: 34px auto 1fr; align-items: center; gap: 9px; }
.platform-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--navy-900); color: #fff; font-weight: 900; }
.platform-row strong { font-size: .82rem; }
.platform-row small { color: #8c98aa; text-align: right; }
.result-panel blockquote { margin: 18px 0; padding: 0; color: #40506a; font-size: .93rem; line-height: 1.7; }
mark { padding: 1px 4px; border-radius: 4px; background: #fff0a9; color: #3f3000; }
.source-box { padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #cfe0fa; border-radius: 12px; background: #f4f8ff; }
.source-box div { display: grid; }
.source-box span { color: #71809a; font-size: .6rem; letter-spacing: .08em; font-weight: 800; }
.source-box strong { margin-top: 3px; font-size: .79rem; }
.source-box a { color: #1c63d4; font-size: .73rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.microcopy { margin: 13px 0 0; color: #7e8b9e; font-size: .7rem; line-height: 1.55; }

.query-preview { margin-top: 18px; }
.text-button { padding: 7px 0; border: 0; background: transparent; color: #1c63d4; font-size: .78rem; font-weight: 800; }
.table-wrap { width: 100%; margin-top: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th { padding: 9px 11px; color: #7c899d; background: #f5f7fb; border-bottom: 1px solid var(--line); text-align: left; font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
td { padding: 12px 11px; border-bottom: 1px solid #edf1f6; color: #435169; font-size: .77rem; vertical-align: middle; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: #f8faff; }
td.prompt-cell { max-width: 360px; color: var(--ink); font-weight: 650; }
.table-link { color: #2467cc; font-weight: 750; text-decoration: none; }
.table-link.muted { color: #9ba6b5; pointer-events: none; }

.section-title { margin-bottom: 22px; display: flex; justify-content: space-between; gap: 34px; align-items: flex-end; }
.section-title h2 { max-width: 760px; margin: 5px 0 0; font-size: clamp(1.65rem, 2.6vw, 2.55rem); line-height: 1.1; letter-spacing: -.035em; }
.section-title p { max-width: 520px; margin: 0; color: var(--muted); font-size: .91rem; }

.query-lab-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; margin-bottom: 18px; }
.field-label { display: block; margin: 15px 0 6px; color: #617088; font-size: .75rem; font-weight: 800; }
.full-control { width: 100%; }
textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfcfe; font-size: .9rem; line-height: 1.55; }
textarea:focus, select:focus { outline: 3px solid rgba(46,124,246,.16); border-color: var(--blue); }
.primary-button { width: 100%; min-height: 43px; margin-top: 12px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #2e7cf6, #1f61d6); font-weight: 850; box-shadow: 0 9px 20px rgba(46,124,246,.22); }
.answer-card { padding: 0; overflow: hidden; }
.answer-top { padding: 12px 18px; display: flex; justify-content: space-between; color: #a7b8d3; background: var(--navy-900); font-size: .66rem; font-weight: 800; letter-spacing: .07em; }
.answer-card > p { margin: 0; padding: 25px; font-size: 1rem; line-height: 1.75; }
.answer-citation { margin: 0 25px; padding: 13px; display: grid; grid-template-columns: 27px 1fr auto; gap: 10px; align-items: center; border: 1px solid #d5e3f7; border-radius: 12px; background: #f6f9fe; }
.answer-citation > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 850; }
.answer-citation div { display: grid; }
.answer-citation strong { font-size: .8rem; }
.answer-citation small { color: #77869b; }
.answer-citation a { color: #1c63d4; font-size: .72rem; font-weight: 800; text-decoration: none; }
.measurement-tags { padding: 18px 25px 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.measurement-tags span { padding: 5px 8px; border-radius: 7px; color: #22664f; background: #e5f6ef; font-size: .66rem; font-weight: 750; }
.table-toolbar { display: flex; align-items: flex-end; gap: 12px; }
.table-toolbar > div { margin-right: auto; }
.tall-table { max-height: 560px; overflow: auto; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card { position: relative; min-height: 212px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(31,55,91,.045); }
.topic-card::after { content: ""; position: absolute; right: -28px; bottom: -36px; width: 108px; height: 108px; border-radius: 50%; background: var(--accent-soft); }
.topic-card .topic-number { position: relative; z-index: 1; color: var(--accent); font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.topic-card h3 { position: relative; z-index: 1; margin: 9px 0 8px; font-size: 1rem; }
.topic-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: .79rem; }
.topic-progress { position: absolute; z-index: 2; inset: auto 20px 18px; }
.topic-progress div { height: 5px; overflow: hidden; border-radius: 99px; background: #ecf0f5; }
.topic-progress div span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.topic-progress small { margin-top: 5px; display: flex; justify-content: space-between; color: #8190a4; font-size: .65rem; }
.content-roadmap { margin-top: 18px; }
.roadmap-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.roadmap-grid > div { padding: 16px; border-radius: 13px; background: #f5f8fd; }
.roadmap-grid span { color: var(--coral); font-size: .68rem; font-weight: 900; }
.roadmap-grid strong { display: block; margin-top: 7px; font-size: .88rem; }
.roadmap-grid p { margin: 6px 0 0; color: var(--muted); font-size: .74rem; }

.attribution-flow { margin-bottom: 18px; padding: 20px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; border-radius: var(--radius); background: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.flow-step { min-height: 108px; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); }
.flow-step span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #392900; font-size: .68rem; font-weight: 900; }
.flow-step strong { display: block; margin: 8px 0 4px; font-size: .88rem; }
.flow-step small { color: #b9c6da; font-size: .7rem; line-height: 1.4; }
.flow-arrow { color: var(--yellow); font-size: 1.15rem; }
.traffic-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.big-inline { color: var(--blue); font-size: 1.2rem; }
.source-bars { margin-top: 20px; display: grid; gap: 15px; }
.source-bar-head { display: flex; justify-content: space-between; gap: 10px; font-size: .76rem; }
.source-bar-head strong { color: var(--ink); }
.source-bar-head span { color: #6f7c90; }
.source-bar-track { height: 9px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.source-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .3s ease; }
.confidence-row { margin-top: 12px; padding: 12px; display: grid; grid-template-columns: 68px 1fr; gap: 12px; border-radius: 12px; background: #f8fafc; }
.confidence-row > span { align-self: start; padding: 5px 7px; border-radius: 7px; text-align: center; font-size: .64rem; font-weight: 850; }
.confidence-row.exact > span { color: #0d7651; background: #ddf7ec; }
.confidence-row.partial > span { color: #856000; background: #fff2c6; }
.confidence-row.modeled > span { color: #94414a; background: #ffe8eb; }
.confidence-row strong { font-size: .82rem; }
.confidence-row p { margin: 3px 0 0; color: var(--muted); font-size: .7rem; }
.honesty-note { margin-top: 14px; padding: 12px; border-left: 3px solid var(--coral); border-radius: 8px; background: #fff5f1; color: #69564f; font-size: .72rem; }
.events-panel { margin-top: 18px; }
.event-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.event-grid > div { padding: 13px; border-radius: 11px; background: #f5f8fc; }
.event-grid span { color: var(--blue); font-size: .65rem; font-weight: 900; }
.event-grid strong { display: block; margin: 6px 0 3px; font-size: .77rem; }
.event-grid small { color: var(--muted); font-size: .64rem; }

.synthia-layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; align-items: start; }
.phone-frame { position: relative; padding: 14px 14px 18px; overflow: hidden; border: 8px solid var(--navy-950); border-radius: 42px; background: #eef1f5; box-shadow: 0 22px 55px rgba(11,23,48,.20); }
.phone-frame::before { content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; width: 86px; height: 19px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: var(--navy-950); }
.phone-frame > img { width: 100%; height: 325px; object-fit: cover; object-position: top; display: block; border-radius: 28px 28px 16px 16px; }
.chat-bubble { position: relative; z-index: 2; width: 90%; margin: -48px auto 10px; padding: 13px; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(28,51,82,.18); }
.chat-bubble strong { color: var(--blue); font-size: .72rem; }
.chat-bubble p { margin: 3px 0 0; font-size: .84rem; }
.choice-stack { display: grid; gap: 7px; }
.choice-stack button { min-height: 38px; padding: 7px 12px; border: 1px solid #cbd8e9; border-radius: 9px; background: #fff; color: #2a3b56; text-align: left; font-size: .72rem; font-weight: 700; }
.synthia-content { display: grid; gap: 16px; }
.boundary-card { background: linear-gradient(135deg, #fff, #f4f8ff); }
.boundary-card h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.boundary-card p { margin: 0; color: var(--muted); }
.mini-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-card-grid > div { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mini-card-grid span { color: var(--coral); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.mini-card-grid strong { display: block; margin: 6px 0 4px; font-size: .88rem; }
.mini-card-grid p { margin: 0; color: var(--muted); font-size: .73rem; }
.outcome-card h3 { margin: 4px 0 14px; }
.funnel-row { margin-top: 7px; }
.funnel-row span { width: var(--w); min-width: 170px; padding: 8px 11px; display: block; border-radius: 7px; color: #fff; background: linear-gradient(90deg, var(--blue), #54b7ef); font-size: .72rem; font-weight: 800; }

.pricing-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 18px; align-items: stretch; }
.price-card { padding: 28px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 90% 12%, rgba(255,201,79,.22), transparent 28%), linear-gradient(145deg, var(--navy-900), #183b73); box-shadow: var(--shadow); }
.price-badge { padding: 6px 9px; border-radius: 7px; color: #493100; background: var(--yellow); font-size: .64rem; font-weight: 900; letter-spacing: .09em; }
.price-kicker { margin: 25px 0 0; color: #b9c9df; font-size: .8rem; }
.price { margin: 2px 0 5px; font-size: 3.3rem; font-weight: 900; letter-spacing: -.05em; }
.price > span { font-size: 1.7rem; vertical-align: 1rem; color: var(--yellow); }
.price small { margin-left: 6px; color: #b9c9df; font-size: .76rem; letter-spacing: 0; }
.partnership-title { margin: 8px 0 12px; color: #fff; font-size: 2.35rem; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.partnership-title small { margin-top: 9px; display: block; color: var(--yellow); font-size: .72rem; font-weight: 800; letter-spacing: .02em; line-height: 1.35; }
.price-note { color: #c8d4e6; font-size: .76rem; }
.price-breakdown { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.price-breakdown div { padding: 11px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.10); font-size: .76rem; }
.price-breakdown span { color: #b9c9df; }
.check-list { margin: 17px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 25px; color: #40506a; font-size: .82rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: .66rem; font-weight: 900; }
.scope-exclusion { margin-top: 18px; padding: 12px; border-radius: 10px; background: #f4f6fa; color: #6e7d91; font-size: .7rem; }
.phase-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.phase-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.phase-grid span { color: var(--blue); font-size: .66rem; font-weight: 900; }
.phase-grid h3 { margin: 8px 0 6px; font-size: .93rem; }
.phase-grid p { margin: 0; color: var(--muted); font-size: .73rem; }

.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.definition-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.definition-grid span { color: var(--coral); font-size: .66rem; font-weight: 900; letter-spacing: .09em; }
.definition-grid h3 { margin: 8px 0 6px; font-size: .97rem; }
.definition-grid p { margin: 0; color: var(--muted); font-size: .76rem; }
.protocol-card { margin-top: 18px; }
.protocol-card ol { margin: 15px 0 0; padding-left: 22px; display: grid; gap: 10px; color: #526179; font-size: .8rem; }
.protocol-card li { padding-left: 5px; }
.protocol-card strong { color: var(--ink); }
.principle-banner { margin-top: 18px; padding: 22px; display: flex; justify-content: center; align-items: center; gap: 10px; border-radius: 15px; text-align: center; background: var(--navy-900); color: #bac8dd; }
.principle-banner strong { color: var(--yellow); }

.modal-backdrop { position: fixed; z-index: 200; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(4,11,25,.70); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.info-modal { position: relative; width: min(520px, 100%); padding: 28px; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.info-modal h2 { margin: 7px 0 8px; }
.info-modal p { margin: 0; color: var(--muted); }
.modal-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf1f6; color: #42526b; font-size: 1.3rem; }
.formula { margin-top: 18px; padding: 13px; border-radius: 10px; color: #264e89; background: #edf4ff; font-size: .78rem; font-weight: 800; }

.roger-widget {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 22px;
}

.widget-cloud {
  position: relative;
  width: 338px;
  min-height: 82px;
  padding: 10px 16px 10px 10px;
  display: grid;
  grid-template-columns: 60px 1fr 18px;
  align-items: center;
  gap: 11px;
  border: 2px solid #ff8246;
  border-radius: 28px 28px 28px 9px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.9), transparent 24%),
    linear-gradient(120deg, #e9f7ff, #fff);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 17px 46px rgba(17,45,84,.23);
  transition: transform .2s ease, box-shadow .2s ease;
}

.widget-cloud::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-left: 2px solid #ff8246;
  border-bottom: 2px solid #ff8246;
  background: #eef9ff;
  transform: skewY(-34deg) rotate(-18deg);
}

.widget-cloud:hover { transform: translateY(-2px); box-shadow: 0 20px 52px rgba(17,45,84,.28); }
.widget-cloud img { width: 60px; height: 60px; object-fit: cover; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 5px 14px rgba(21,68,125,.22); }
.widget-copy { min-width: 0; display: grid; }
.widget-copy strong { color: #e34e2e; font-family: Impact, "Arial Black", sans-serif; font-size: 1.12rem; letter-spacing: .055em; line-height: 1; }
.widget-copy > span { margin-top: 4px; overflow: hidden; color: #344967; font-size: .73rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.widget-copy small { margin-top: 4px; color: #708097; font-size: .65rem; }
.widget-copy i { width: 7px; height: 7px; display: inline-block; margin-right: 3px; border-radius: 50%; background: #24b879; box-shadow: 0 0 0 3px rgba(36,184,121,.12); }
.widget-arrow { color: #e34e2e; font-size: 1.8rem; font-weight: 300; }

.chat-window {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(382px, calc(100vw - 28px));
  height: min(590px, calc(100vh - 92px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid #cad7e8;
  border-radius: 24px;
  background: #f3f7fc;
  box-shadow: 0 28px 90px rgba(7,17,38,.34);
  transform-origin: bottom right;
  animation: chatOpen .22s ease;
}
.chat-window[hidden] { display: none; }
@keyframes chatOpen { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.chat-header {
  min-height: 76px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 48px 1fr auto 34px;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: linear-gradient(120deg, #132d59, var(--navy-900));
}
.chat-header > img { width: 48px; height: 48px; object-fit: cover; border: 2px solid var(--yellow); border-radius: 50%; }
.chat-header > div:nth-of-type(1) { display: grid; }
.chat-header strong { font-size: .88rem; }
.chat-header span { color: #aebed6; font-size: .63rem; }
.chat-languages { padding: 2px; display: flex; border-radius: 8px; background: rgba(255,255,255,.10); }
.chat-languages button { min-width: 29px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #aebed6; font-size: .64rem; font-weight: 850; }
.chat-languages button.active { color: var(--navy-900); background: var(--yellow); }
.chat-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #d9e3f1; background: rgba(255,255,255,.10); font-size: 1.15rem; }

.chat-messages { padding: 17px; overflow-y: auto; }
.chat-message { max-width: 88%; margin-bottom: 10px; padding: 12px 13px; border-radius: 15px; box-shadow: 0 5px 16px rgba(31,55,91,.07); }
.chat-message.bot { border-bottom-left-radius: 4px; background: #fff; }
.chat-message.user { margin-left: auto; border-bottom-right-radius: 4px; color: #fff; background: var(--blue); }
.chat-message p { margin: 0; font-size: .78rem; line-height: 1.55; }
.chat-message span { margin-top: 7px; display: block; color: #8895a7; font-size: .6rem; }
.quick-replies { display: grid; gap: 7px; margin: 12px 0 18px 30px; }
.quick-replies button { padding: 9px 11px; border: 1px solid #b9cce7; border-radius: 10px; color: #25579c; background: #fff; text-align: left; font-size: .72rem; font-weight: 750; }
.quick-replies button:hover { border-color: var(--blue); background: #edf4ff; }
.chat-input { min-height: 62px; padding: 10px; display: grid; grid-template-columns: 1fr auto; gap: 7px; border-top: 1px solid #d7e0ec; background: #fff; }
.chat-input input { min-width: 0; padding: 0 12px; border: 1px solid #d4deeb; border-radius: 10px; color: var(--ink); background: #f8fafc; font-size: .76rem; }
.chat-input input:focus { outline: 3px solid rgba(46,124,246,.13); border-color: var(--blue); }
.chat-input button { padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: var(--blue); font-size: .72rem; font-weight: 850; }

@media (max-width: 1250px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-card.featured { grid-column: span 1; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { width: 84px; padding-inline: 12px; }
  .brand-lockup { justify-content: center; }
  .brand-lockup img { width: 46px; height: 46px; }
  .brand-lockup > div, .sidebar-card, .powered-by { display: none; }
  .nav-item { padding: 11px 6px; justify-content: center; font-size: 0; }
  .nav-item span { font-size: .72rem; }
  .main-panel { grid-column: 2; }
  .overview-intro { grid-template-columns: 1fr; }
  .intro-image { max-height: 240px; }
  .intro-image::after { background: linear-gradient(180deg, var(--navy-900), transparent 30%); }
  .dashboard-grid, .query-lab-grid, .traffic-grid, .pricing-layout { grid-template-columns: 1fr; }
  .synthia-layout { grid-template-columns: 320px 1fr; }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .attribution-flow { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
}

@media (max-width: 780px) {
  .simulation-bar { min-height: 50px; padding: 7px 12px; flex-direction: column; gap: 0; font-size: .66rem; }
  .app-shell { padding-top: 50px; display: block; }
  .sidebar { top: 50px; width: min(290px, 84vw); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 18px 0 50px rgba(0,0,0,.25); }
  .sidebar.open { transform: translateX(0); }
  .brand-lockup { justify-content: flex-start; }
  .brand-lockup > div, .sidebar-card, .powered-by { display: block; }
  .nav-item { padding: 11px 12px; justify-content: flex-start; font-size: .91rem; }
  .nav-item span { font-size: .68rem; }
  .main-panel { width: 100%; }
  .topbar { top: 50px; min-height: auto; padding: 12px 15px; flex-wrap: wrap; }
  .mobile-menu { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 1rem; }
  .page-heading { min-width: 0; flex: 1; }
  .page-heading h1 { font-size: 1rem; }
  .global-controls { width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
  .global-controls label { min-width: 135px; }
  .period-switch { min-width: 324px; }
  .views { padding: 15px; }
  .intro-copy { padding: 24px 20px; }
  .intro-copy h2 { font-size: 1.85rem; }
  .intro-image { min-height: 200px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 132px; padding: 16px; }
  .metric-card.featured { grid-column: span 2; }
  .metric-value { font-size: 2rem; }
  .panel { padding: 17px; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-title h2 { font-size: 1.75rem; }
  .section-title p { font-size: .84rem; }
  .query-lab-grid, .synthia-layout { grid-template-columns: 1fr; }
  .table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .table-toolbar > div { width: 100%; }
  .table-toolbar label { flex: 1; min-width: 135px; }
  .topic-grid, .definition-grid, .mini-card-grid { grid-template-columns: 1fr; }
  .roadmap-grid, .phase-grid { grid-template-columns: 1fr; }
  .attribution-flow { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-frame { max-width: 360px; margin: 0 auto; }
  .answer-citation { grid-template-columns: 27px 1fr; }
  .answer-citation a { grid-column: 2; }
  .principle-banner { align-items: flex-start; flex-direction: column; text-align: left; }
  .roger-widget { right: 12px; bottom: 12px; }
  .widget-cloud { width: 74px; min-height: 74px; padding: 6px; grid-template-columns: 1fr; border-radius: 50%; }
  .widget-cloud::after, .widget-copy, .widget-arrow { display: none; }
  .widget-cloud img { width: 58px; height: 58px; justify-self: center; }
  .chat-window { right: 0; bottom: 0; height: min(570px, calc(100vh - 66px)); }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card.featured { grid-column: auto; }
  .period-switch { min-width: 310px; }
  .period-switch button { padding-inline: 9px; }
  .source-box { align-items: flex-start; flex-direction: column; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .platform-row { grid-template-columns: 34px 1fr; }
  .platform-row small { grid-column: 2; text-align: left; }
  .event-grid { grid-template-columns: 1fr; }
  .definition-grid { grid-template-columns: 1fr; }
  .price { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
