/* AIYVO marketing page: Editorial Intelligence, with the slope chart and the slope-mark wordmark. Static, no JavaScript. */

@font-face { font-family: "AIYVO Editorial"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/AIYVOEditorial-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "DejaVu Sans Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/DejaVuSansMono.woff2") format("woff2"); }

:root {
  --ivory: #F5F1E8;
  --paper: #FBF9F4;
  --ink: #1D1E20;
  --muted: #55585E;
  --line: #DCD5C6;
  --line-strong: #BDB4A2;
  --citron: #D7E14E;
  --copper: #9A4F27;
  --panel: #1B1A18;
  --panel-text: #EEEAE1;
  --panel-muted: #A9A497;
  --panel-line: #34322E;
  --series-record: #A0582F;
  --series-success: #919E28;
  --serif: "AIYVO Editorial", Charter, "Bitstream Charter", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DejaVu Sans Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.panel :focus-visible, .cta :focus-visible { outline-color: var(--citron); }
.skip {
  position: absolute; left: 16px; top: -56px; z-index: 10; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Brand */
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.lockup svg { flex: none; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .16em; line-height: 1; }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; border-bottom: 1px solid var(--line); }
.nav-links { display: flex; gap: 36px; font-size: 14.5px; color: var(--muted); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #34363A; }
.btn-citron { background: var(--citron); color: var(--ink); }
.btn-citron:hover { background: #CAD43F; }
.btn-line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* Hero */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }
.hero { padding: var(--s7) 0 var(--s5); display: grid; grid-template-columns: 1fr 320px; gap: var(--s5); align-items: end; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.026em;
  margin-top: 22px;
}
.highlight { background: linear-gradient(transparent 62%, var(--citron) 62%, var(--citron) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.descriptor { font-size: 21px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.lede { font-size: 17.5px; color: var(--muted); margin-top: 12px; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.cta-note { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Analysis panel */
.panel { background: var(--panel); color: var(--panel-text); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(59, 42, 18, .6); scroll-margin-top: 24px; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px;
  border-bottom: 1px solid var(--panel-line); font-family: var(--mono); font-size: 12.5px; color: var(--panel-muted); }
.synthetic-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--panel);
  background: var(--citron); padding: 2px 8px; border-radius: 4px; }
.panel-grid { display: grid; grid-template-columns: 1fr 330px; }
.panel-chart { padding: 26px 28px 22px; border-right: 1px solid var(--panel-line); min-width: 0; }
.panel-chart h2 { font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.25; max-width: 640px; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; color: var(--panel-muted); margin-top: 12px; }
.legend li { display: flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-record { background: var(--series-record); }
.dot-success { background: var(--series-success); }
.chart { margin-top: 14px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-mobile { display: none; }
.panel-note { font-family: var(--mono); font-size: 12px; color: var(--panel-muted); margin-top: 8px; }

.callouts { padding: 26px 28px; display: flex; flex-direction: column; gap: 26px; }
.callout-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--panel);
  background: var(--panel-muted); padding: 2px 7px; border-radius: 4px; display: inline-block; }
.callout h3 { font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.4; }
.callout p { font-size: 14px; color: var(--panel-muted); margin-top: 6px; }
.callout .callout-num { font-family: var(--serif); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -.02em; margin-top: 10px; color: var(--panel-text); }
.callout .callout-num.citron { color: var(--citron); }
.callout code { color: var(--panel-text); font-size: 13px; }
.callout .caveat { color: var(--panel-text); }

/* Sections */
.section { padding-top: var(--s8); scroll-margin-top: 24px; }
.section-title { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04;
  letter-spacing: -.02em; margin-top: 14px; max-width: 900px; }
.section-intro { color: var(--muted); font-size: 17.5px; margin-top: 16px; max-width: 700px; }

.reversal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s5); align-items: start; }
.reversal > div { min-width: 0; } /* let the detail table scroll in its box instead of widening the column */
.reversal p { font-size: 18px; color: var(--muted); line-height: 1.7; }
.reversal p + p { margin-top: 16px; }
.reversal strong { color: var(--ink); font-weight: 600; }
.formula { margin-top: 26px; padding: 20px 22px; border-left: 3px solid var(--citron); background: var(--paper);
  font-family: var(--mono); font-size: 14.5px; line-height: 1.8; }
.ranks { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.ranks caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted); padding-top: 14px; }
.ranks thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; color: var(--muted);
  text-align: right; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ranks thead th:first-child { text-align: left; }
.ranks tbody th { text-align: left; font-family: var(--mono); font-size: 14px; font-weight: 400; padding: 16px 0;
  border-bottom: 1px solid var(--line); }
.ranks tbody th small { display: block; color: var(--muted); font-size: 12px; }
.ranks td { text-align: right; padding: 16px 0 16px 12px; border-bottom: 1px solid var(--line); font-family: var(--serif);
  font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ranks td small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.ranks td.moved { color: var(--copper); }

/* Secondary financial detail: native <details> under the rankings table */
details.data { margin-top: 22px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
details.data summary { cursor: pointer; font-weight: 600; color: var(--ink); width: max-content; max-width: 100%;
  text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.table-scroll { overflow-x: auto; }
.data table { margin-top: 12px; border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 13px; }
.data caption { text-align: left; color: var(--muted); padding-bottom: 6px; font-family: var(--sans); font-size: 12.5px; }
.data th, .data td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data thead th { color: var(--muted); font-weight: 400; }
.data td { text-align: right; font-variant-numeric: tabular-nums; padding: 8px 0 8px 14px; }
.data-notes { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.data-notes li { padding-left: 14px; position: relative; }
.data-notes li + li { margin-top: 6px; }
.data-notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 1px; background: var(--muted); }

/* Demo prompt after the financial demonstration (inline, not sticky) */
.demo-cta { margin-top: var(--s5); display: flex; justify-content: space-between; align-items: center; gap: 16px 32px;
  flex-wrap: wrap; padding: 24px 28px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.demo-cta p { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.3; }
.demo-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s5); }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-num { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--copper); line-height: 1; }
.steps h3 { font-size: 18px; font-weight: 600; margin-top: 14px; }
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.steps code { display: inline-block; margin-top: 12px; font-size: 12.5px; background: var(--paper); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 4px; }
.offline { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.offline b { color: var(--ink); font-weight: 400; background: var(--citron); padding: 1px 6px; margin-right: 8px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s5); }
.compare h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.compare li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; display: flex; gap: 14px; align-items: flex-start; }
.status { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; margin-top: 3px; }
.status-today { background: var(--citron); color: var(--ink); }
.status-no { border: 1px solid var(--line-strong); color: var(--muted); }
.status-planned { border: 1px solid var(--copper); color: var(--copper); }

.vision { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.plan { border: 1px dashed var(--copper); border-radius: 16px; padding: 26px; background: var(--paper); }
.plan h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin-top: 16px; line-height: 1.2; }
.plan p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.vision-note { margin-top: 20px; font-size: 15px; color: var(--muted); }
.vision-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }

.cta { margin-top: var(--s8); background: var(--panel); color: var(--panel-text); border-radius: 26px; padding: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; scroll-margin-top: 24px; }
.cta h2 { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; font-weight: 700; }
.cta p { color: var(--panel-muted); margin-top: 12px; font-size: 16.5px; }
.cta p a { color: var(--citron); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 56px 0 64px; font-size: 13.5px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 32px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot .wordmark { font-size: 18px; }
.disclaimer { margin-top: 18px; max-width: 800px; }

/* Responsive: documented 1080px and 720px breakpoints, plus 900px for the two-row navigation */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { max-width: 560px; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-chart { border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 26px; }
}
@media (max-width: 900px) {
  .nav { height: auto; padding-top: 16px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
  .nav-links { order: 3; width: 100%; gap: 12px; justify-content: space-between; overflow-x: auto; padding: 2px 0 4px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .ranks td small { white-space: normal; } /* "#2 per successful request" wraps under its figure */
  .nav { height: auto; padding-top: 16px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
  .nav-links { order: 3; width: 100%; gap: 12px; justify-content: space-between; overflow-x: auto; font-size: 13.5px; padding: 2px 0 4px; }
  .nav .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .wordmark { font-size: 19px; }
  .hero { padding: 44px 0 28px; gap: 22px; }
  .descriptor { font-size: 19px; }
  .lede { font-size: 16.5px; }
  .hero-ctas { flex-direction: column; }
  .panel { border-radius: 18px; }
  .panel-bar { padding: 12px 18px; }
  .panel-chart { padding: 20px 18px; }
  .chart-desktop { display: none; }
  .chart-mobile { display: block; }
  .callouts { grid-template-columns: 1fr; padding: 22px 18px; }
  .callout .callout-num { font-size: 52px; }
  .section { padding-top: 88px; }
  .reversal, .compare { grid-template-columns: 1fr; gap: 36px; }
  .reversal p { font-size: 17px; }
  .demo-cta { flex-direction: column; align-items: stretch; padding: 22px 20px; margin-top: 36px; }
  .demo-cta-actions { flex-direction: column; }
  .demo-cta p { font-size: 20px; }
  .panel-chart h2 { font-size: 22px; }
  .ranks td { font-size: 20px; }
  .steps, .vision { grid-template-columns: 1fr; gap: 26px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 30px; margin-top: 96px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .highlight { background: none; text-decoration: underline; }
  .dot, .chart circle, .chart line { forced-color-adjust: none; }
}
