/* Veridical Insights v2: white canvas, ink type, navy glass, one amber accent. Direction: docs/brand/site-v2-direction.md */
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0B0F14; --ink-2: #374151; --mute: #6B7280; --faint: #9CA3AF;
  --line: #E7E9EE; --line-2: #D7DBE2; --wash: #F7F7F5; --white: #FFFFFF;
  --navy: #14295A; --navy-deep: #071023; --navy-wash: #EEF2FA; --navy-line: #C9D3EA;
  --amber: #F0A21A; --amber-deep: #B87400; --amber-wash: #FFF6E6;
  --r: 14px; --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
body { margin: 0; font-family: "Plex", system-ui, sans-serif; color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.mono { font-family: "Plex Mono", ui-monospace, monospace; font-size: .82em; letter-spacing: .01em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 300; letter-spacing: -0.02em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.005em; }
.sub { color: var(--mute); font-size: 18px; max-width: 620px; margin: 14px 0 0; }
section { padding: 120px 0; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 9px; font: 500 15px/1 "Plex", sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; border: 1px solid transparent; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-solid { background: var(--navy-deep); color: #fff; }
.btn-solid:hover { background: var(--navy); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* header: hides on scroll down, returns on scroll up */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); transition: transform .3s var(--ease), box-shadow .3s; }
.top.lifted { box-shadow: 0 1px 0 var(--line); }
.top.tucked { transform: translateY(-100%); }
.bar { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand small { font: 500 11px/1 "Plex Mono", monospace; color: var(--mute); letter-spacing: .14em; text-transform: uppercase; margin-left: 2px; transform: translateY(1px); }
.top nav { display: flex; gap: 26px; margin-left: 12px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--navy); }
.top .btn { margin-left: auto; }

/* hero: the floor canvas fills the right and fades diagonally into white */
.hero { position: relative; min-height: min(860px, 100vh); padding: 0; display: flex; align-items: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }  /* glass.js draws the fade itself (no CSS mask: Chrome dropped it for a frame) */
.hero-copy { position: relative; width: 100%; padding-top: 80px; }
.hero h1 { max-width: 640px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 520px; margin: 26px 0 0; line-height: 1.5; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.where { margin-top: 40px; color: var(--mute); font-size: 14px; }

/* stepper card slides over the bottom of the hero */
.how { padding: 0 0 40px; position: relative; z-index: 2; margin-top: -110px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px -40px rgba(11,15,20,.22); }
.steps { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 48px 56px; }
.tabs { list-style: none; margin: 0; padding: 0; }
.tabs button { all: unset; display: grid; grid-template-columns: 42px 1fr; column-gap: 8px; width: 100%; padding: 18px 0 0; cursor: pointer; box-sizing: border-box; }
.tabs .n { font: 400 22px/1.2 "Plex", sans-serif; color: #D1D5DB; transition: color .3s; }
.tabs .t { font-size: 22px; line-height: 1.2; color: var(--ink); transition: color .2s; }
.tabs button:not(.active) .t { color: #4B5563; }
.tabs button:not(.active):hover .t { color: var(--ink); }
.tabs .d { grid-column: 2; color: var(--mute); font-size: 16px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.tabs .track { grid-column: 1 / -1; height: 1px; background: var(--line); margin-top: 18px; position: relative; overflow: hidden; }
.tabs .fill { position: absolute; inset: 0; height: 2px; top: -0.5px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.tabs .active .n { color: var(--amber-deep); }
.tabs .active .d { max-height: 90px; opacity: 1; margin-top: 8px; }

.panels { position: relative; min-height: 300px; background: var(--wash); border-radius: 16px; padding: 30px 32px; }
.panel.enter { animation: enter .35s var(--ease) .1s both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.ph { margin: 0 0 18px; font-weight: 500; font-size: 17px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px; font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s; }
.chip.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); background: var(--amber-wash); }
.count { color: var(--mute); font-size: 14px; margin: 16px 0 0; text-align: center; }
.count b { color: var(--ink); font-size: 16px; }
.rows, .fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rows li { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: 15px; opacity: .45; transition: opacity .3s, border-color .3s; }
.rows li em { font-style: normal; font-size: 13px; color: var(--mute); }
.rows li.on { opacity: 1; border-color: var(--line-2); }
.rows li.on em::before { content: "✓ "; color: var(--amber-deep); font-weight: 600; }
.mini-chart { height: 170px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--ink); padding: 0 6px; }
.mini-chart i { flex: 1; height: calc(var(--h) * 100%); background: var(--line-2); border-radius: 4px 4px 0 0; transform-origin: bottom; transition: transform .6s var(--ease); }
/* bar heights live here: the CSP (style-src 'self') blocks inline style attributes */
.mini-chart i:nth-child(1) { --h: .37; }
.mini-chart i:nth-child(2) { --h: .82; }
.mini-chart i:nth-child(3) { --h: 1; }
.mini-chart i:nth-child(4) { --h: .92; }
.mini-chart i:nth-child(5) { --h: .5; }
.mini-chart i:nth-child(6) { --h: .45; }
.mini-chart i:nth-child(7) { --h: .39; }
.mini-chart i:nth-child(8) { --h: .42; }
.mini-chart i:nth-child(9) { --h: .5; }
.mini-chart i:nth-child(10) { --h: .47; }
.mini-chart i.hot { background: var(--amber); }
.fixes { counter-reset: f; }
.fixes li { counter-increment: f; display: grid; grid-template-columns: 30px 1fr; row-gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; opacity: .4; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.fixes li::before { content: counter(f); grid-row: span 2; font: 500 15px/1.4 "Plex Mono", monospace; color: var(--amber-deep); }
.fixes li b { font-weight: 500; font-size: 15px; }
.fixes li span { color: var(--mute); }
.fixes li.on { opacity: 1; transform: none; }

/* answers: hairline grid */
.answers h2, .sample h2, .privacy h2 { max-width: 760px; }
.weeks + .answers { padding-top: 0; }
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.grid6 > div { padding: 32px 30px 34px 0; border-bottom: 1px solid var(--line); }
.grid6 > div:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.grid6 p { color: var(--mute); margin: 10px 0 14px; font-size: 16px; }
.grid6 .mono { color: var(--amber-deep); }

/* sample: a study window */
.sample { background: var(--navy-wash); }
.window { margin: 52px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -50px rgba(11,15,20,.35); }
.chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.chrome span { margin-left: 10px; color: var(--ink-2); font-weight: 500; }
.chrome em { margin-left: auto; font-style: normal; font: 500 11px/1 "Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-deep); background: var(--amber-wash); padding: 6px 8px; border-radius: 6px; }
.win-body { padding: 34px 40px 38px; }
.win-body h3 { font-size: 24px; font-weight: 400; max-width: 760px; line-height: 1.3; }
.chart-scroll { overflow-x: auto; margin: 26px 0 8px; }
.chart { min-width: 640px; width: 100%; font-family: "Plex", sans-serif; }
.sample-dl { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.sample-dl p { margin: 0; max-width: 560px; color: var(--mute); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 18px; }
.stats div { padding: 22px 20px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font-weight: 300; font-size: 40px; letter-spacing: -0.03em; }
.stats span { color: var(--mute); font-size: 15px; }

/* privacy cards */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.pcard { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 66px 24px 26px; background: linear-gradient(#FFFBF3, #fff 45%); }
.pcard svg { position: absolute; top: -46px; left: 18px; width: 120px; filter: drop-shadow(0 14px 14px rgba(184,116,0,.15)); }
.pcard p { color: var(--mute); font-size: 15px; margin: 8px 0 0; }
.more { color: var(--mute); font-size: 15px; margin-top: 34px; }

/* industries */
.industries { padding-top: 40px; }
.grid-ind { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; padding: 0; overflow: hidden; max-width: calc(var(--wrap) - 56px); }
.grid-ind > div { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-ind > div:nth-child(4n+3), .grid-ind > div:nth-child(4) { border-right: 0; }
.grid-ind > div:nth-child(n+5) { border-bottom: 0; }
.grid-ind p { color: var(--mute); font-size: 15px; margin: 8px 0 0; }
.ind-lead { grid-column: span 2; grid-row: span 1; display: flex; flex-direction: column; align-items: flex-start; }
.ind-lead p { font-size: 17px !important; margin: 12px 0 22px !important; max-width: 420px; }

/* faq */
.faq h2 { margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 32px; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 36px; }
.faq details p { color: var(--mute); margin: 0 0 24px; max-width: 720px; }

/* contact */
.contact { background: var(--wash); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
.contact a { color: var(--ink); }
form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.opt { color: var(--faint); font-weight: 400; }
input, textarea { font: 400 16px "Plex", sans-serif; color: var(--ink); border: 1px solid var(--line-2); border-radius: 9px; padding: 12px 13px; background: #fff; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,41,90,.12); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.fine { color: var(--mute); font-size: 13px; margin: 0; }
form .btn { justify-self: start; }

/* footer: the glass floor rises out of the contact section into a navy base */
.foot { position: relative; background: var(--navy-deep); padding: 0 0 36px; font-size: 14px; color: #A9B6D3; }
.foot canvas { display: block; width: 100%; height: 300px; }  /* fade drawn in glass.js */
.contact + .foot, main + .foot { margin-top: 0; }
.foot { background: linear-gradient(var(--wash) 0, var(--wash) 120px, var(--navy-deep) 300px); }
.foot .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding-top: 8px; }
.foot .brand { font-size: 16px; color: #fff; }
.foot .brand small { color: #8C9AC0; }
.foot a { color: #E3E9F6; }
@media (max-width: 620px) { .foot a { display: inline-block; padding: 8px 0; } }

/* secondary pages: privacy, thanks, errors */
.page-head { padding: 150px 0 24px; background: linear-gradient(180deg, var(--navy-wash), #fff); }
.eyebrow { color: var(--amber-deep); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-body { padding: 40px 0 110px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 20px; }
.teaser-shot { display: block; width: 100%; height: auto; margin-top: 28px; border: 1px solid var(--line-2); border-radius: 9px; }
.prose li { margin: 0 0 10px; }
.prose a:not(.btn) { color: var(--navy); }
.foot.plain { background: var(--navy-deep); padding-top: 34px; }

/* small screens */
@media (max-width: 980px) {
  .top nav { display: none; }
  .steps { grid-template-columns: 1fr; padding: 32px 24px; }
  .grid6 { grid-template-columns: 1fr 1fr; }
  .grid6 > div { padding: 26px 20px 28px 0 !important; border-left: 0 !important; }
  .grid6 > div:nth-child(2n) { padding-left: 20px !important; border-left: 1px solid var(--line) !important; }
  .cards4 { grid-template-columns: 1fr 1fr; row-gap: 70px; }
  .grid-ind { grid-template-columns: 1fr 1fr; }
  .grid-ind > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .ind-lead { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .wrap { padding: 0 18px; }
  .hero { min-height: 680px; align-items: flex-start; }
  .hero-copy { padding-top: 120px; }
  .hero { min-height: 760px; }  .brand small { display: none; }
  .where { display: none; }
  .how { margin-top: -40px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .grid6, .cards4, .grid-ind, .row2, .stats { grid-template-columns: 1fr; }
  .grid6 > div:nth-child(2n) { padding-left: 0 !important; border-left: 0 !important; }
  .stats div + div { padding-left: 0; border-left: 0; }
  .sample-dl { flex-direction: column; align-items: flex-start; gap: 14px; }
  .win-body { padding: 24px 20px; }
  .panels { padding: 22px 18px; }
}

/* /ai page (Q49, site-v3 preview) */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.offer { border: 1px solid var(--line); border-radius: 18px; padding: 34px 34px 36px; background: linear-gradient(var(--navy-wash), #fff 38%); display: flex; flex-direction: column; align-items: flex-start; }
.offer + .offer { background: linear-gradient(var(--wash), #fff 38%); }
.offer .tag { color: var(--amber-deep); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin: 0 0 10px; }
.offer h3 { font-size: 26px; font-weight: 500; margin: 0; }
.offer .price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer .price b { font-weight: 300; font-size: 44px; letter-spacing: -0.03em; }
.offer .price span { color: var(--mute); font-size: 14px; }
.offer .facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 28px; font-size: 15px; }
.offer .facts span { display: block; color: var(--mute); font-size: 13px; }
.offer > p:not(.tag):not(.price) { color: var(--ink-2); margin: 20px 0 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 28px; flex: 1; }
.ticks li { position: relative; padding: 0 0 10px 26px; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--amber-deep); border-bottom: 2px solid var(--amber-deep); transform: rotate(-45deg); }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.grid4 > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.grid4 > div + div { padding-left: 26px !important; border-left: 1px solid var(--line) !important; }
.grid4 h3 { margin-top: 8px; }
.grid4 .mono { color: var(--amber-deep); }
.table-scroll { overflow-x: auto; }
.score { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
.score th { text-align: left; font-weight: 500; color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.score td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.score td:first-child { width: 52%; }
.score .go { color: var(--navy); font-weight: 600; }
.score .no { color: var(--mute); font-weight: 500; }
@media (max-width: 980px) {
  .offers { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid4 > div + div { padding-left: 0 !important; border-left: 0 !important; }
  .grid4 > div:nth-child(2n) { padding-left: 20px !important; border-left: 1px solid var(--line) !important; }
}
@media (max-width: 620px) {
  .grid4 { grid-template-columns: 1fr; }
  .grid4 > div:nth-child(2n) { padding-left: 0 !important; border-left: 0 !important; }
  .offer { padding: 26px 22px 28px; }
}
.note-ill { margin: 18px 0 0; display: inline-block; font-size: 14px; color: var(--amber-deep); background: var(--amber-wash); padding: 8px 12px; border-radius: 8px; }
.offer > p { color: var(--ink-2); margin: 4px 0 0; }
