/* Campus Velocity — website styles, built from the Campus Velocity Design System tokens. */

:root {
  color-scheme: light;
  --page: #F6F7F9;
  --card: #FFFFFF;
  --sunken: #EEF0F4;
  --ink: #0D1117;
  --ink-muted: #4A5568;
  --line: #E3E6EB;
  --line-strong: #8A94A3;
  --chrome: #0D1117;
  --chrome-raised: #1E2329;
  --chrome-ink: #FFFFFF;
  --chrome-muted: #A9B2C1;
  --brand: #00B4A6;
  --action: #00786F;
  --action-hover: #00665E;
  --on-action: #FFFFFF;
  --link: #00665E;
  --focus: #00786F;
  --confirmed-bg: #E3F5F3;
  --confirmed-ink: #00665E;
  --attention: #F59E0B;
  --attention-bg: #FEF3E2;
  --attention-ink: #8A5300;
  --overdue: #D64535;
  --overdue-bg: #FDECEA;
  --overdue-ink: #B42318;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --control-height: 44px;
  --content-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap, .narrow { padding: 0 16px; } }

/* Top bar */
.topbar { background: var(--chrome); color: var(--chrome-ink); }
.topbar .wrap { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.mark { font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .08em; color: var(--chrome-ink); text-decoration: none; }
.mark span { color: var(--brand); }
.mark:hover { color: var(--chrome-ink); }
.topnav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.topnav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--chrome-muted); text-decoration: none; font-size: 14px; }
.topnav a:hover { color: var(--chrome-ink); background: var(--chrome-raised); }
.topbar .btn { min-height: 40px; }
.topbar :focus-visible { outline-color: var(--brand); }
/* Phones: one row, logo and the check. The section links just scroll this page; the footer links the rest. */
@media (max-width: 880px) {
  .topbar .wrap { flex-wrap: nowrap; justify-content: space-between; }
  .topnav { display: none; }
  .topbar .btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
}

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.display { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 18px; }
.mono { font-family: var(--font-mono); }
.accent-red { color: var(--overdue-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 0 18px; border-radius: var(--radius-md); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink-muted); }
.btn-on-dark { background: var(--brand); color: #0D1117; }
.btn-on-dark:hover { background: #2CCFC1; color: #0D1117; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; min-height: var(--control-height); font: inherit; font-size: 14px; color: var(--link); text-decoration: underline; cursor: pointer; }

/* Cards and sections */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
@media (max-width: 600px) { .section { padding: 48px 0; } }
.section-head { max-width: 680px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card-lg { padding: 32px; }
@media (max-width: 600px) { .card, .card-lg { padding: 20px; } }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Chips */
.chip { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: var(--radius-sm); text-transform: uppercase; white-space: nowrap; }
.chip-ok { background: var(--confirmed-bg); color: var(--confirmed-ink); }
.chip-warn { background: var(--attention-bg); color: var(--attention-ink); }
.chip-risk { background: var(--overdue-bg); color: var(--overdue-ink); }
.chip-quiet { background: var(--sunken); color: var(--ink-muted); }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-visual { flex: 1 1 340px; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-muted); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--action); }

/* Example result */
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.score { font-family: var(--font-mono); font-size: 56px; line-height: 1; font-weight: 600; }
.domain-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.domain-row:first-of-type { border-top: 0; }
.domain-name { font-size: 14px; font-weight: 600; min-width: 0; }
.domain-row > .row { flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; }
.domain-score { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }

/* Steps */
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); }
.step-meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Compare */
.compare-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.compare-list li { display: flex; gap: 12px; align-items: flex-start; }
.compare-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.ic-bad { color: var(--overdue-ink); }
.ic-good { color: var(--confirmed-ink); }

/* Domain cards */
.domain-card { display: flex; flex-direction: column; gap: 8px; }
.domain-card .official { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-top: -4px; }
.domain-card .num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--action); }

/* Offer */
.offer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.offer-list li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.offer-list li:first-child { border-top: 0; }
.offer-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--confirmed-ink); }
.price-box { background: var(--sunken); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.about img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.about-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }

/* Dark band */
.band { background: var(--chrome); color: var(--chrome-ink); }
.band .muted { color: var(--chrome-muted); }
.band .eyebrow { color: var(--chrome-muted); }
.band :focus-visible { outline-color: var(--brand); }

/* Footer */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-line { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }

/* Funnel progress (scorecard, schedule, confirmed) */
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.progress-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.progress-steps li::before { content: ""; height: 4px; border-radius: var(--radius-pill); background: var(--sunken); }
.progress-steps li.done::before { background: var(--action); }
.progress-steps li.current { color: var(--ink); font-weight: 600; }
.progress-steps li.current::before { background: var(--action); }

/* Scorecard */
.bar { height: 6px; border-radius: var(--radius-pill); background: var(--sunken); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--action); transition: width .3s ease; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-md); font: inherit; font-size: 15px; cursor: pointer; }
.option:hover { border-color: var(--action); }
.option[aria-pressed="true"] { border: 2px solid var(--action); background: var(--confirmed-bg); padding: 11px 15px; }
.option .key { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { min-height: var(--control-height); padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); flex: 0 0 auto; }
.stat { background: var(--sunken); border-radius: var(--radius-md); padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-mono); font-size: 24px; font-weight: 600; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--sunken); border-top-color: var(--action); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.note { background: var(--sunken); border-radius: var(--radius-md); padding: 14px 16px; font-size: 14px; }
.copy-box { background: var(--sunken); border-radius: var(--radius-md); padding: 16px; font-family: var(--font-mono); font-size: 13px; white-space: pre-wrap; }
.embed-slot { background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; }

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

/* Media slots (homepage). A labelled placeholder until the file in /media loads. */
.media { position: relative; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.media img, .media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--sunken); box-shadow: 0 12px 32px -16px rgba(13, 17, 23, .25); }
.media:not(.loaded) img, .media:not(.loaded) video { visibility: hidden; position: absolute; inset: 0; }
.media-ph { aspect-ratio: 16 / 10; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--sunken); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; color: var(--ink-muted); font-size: 14px; }
.media-ph-kind { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--action); }
.media-ph code { font-family: var(--font-mono); font-size: 12px; }
.media.loaded .media-ph { display: none; }
.media[data-optional]:not(.loaded) { display: none; }
.media figcaption { font-weight: 600; text-align: center; }
.media-lg { max-width: 960px; margin: 0 auto; }
.media-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 32px auto 0; }

/* Steps on one line */
.steps-line { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.steps-line li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.steps-line .step-num { grid-row: span 2; font-size: 20px; color: var(--action); }
.steps-line b { font-size: 15px; }
.steps-line .chip { grid-column: 3; grid-row: 1 / span 2; }
.steps-line .small { grid-column: 2; }
.steps-line .step-paid { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }

/* Six domains as icons */
.domain-icons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.domain-icons li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); font-weight: 600; font-size: 15px; line-height: 1.3; }
.domain-icons svg { width: 28px; height: 28px; fill: none; stroke: var(--action); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Diagnostic summary */
.diag { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.diag .price-box { min-width: 220px; }
@media (max-width: 600px) { .diag { grid-template-columns: 1fr; } }
.guarantee { margin-top: 16px; text-align: center; }

/* FAQ (Diagnostic page) */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--action); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

/* Newsletter signup (hero and footer) */
.signup { display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.signup-label { font-size: 15px; font-weight: 600; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup-row input { flex: 1 1 200px; min-width: 0; min-height: var(--control-height); padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.signup-row .btn { flex: 0 0 auto; }
.signup [data-msg].ok { color: var(--confirmed-ink); font-weight: 600; }
.signup [data-msg].err { color: var(--overdue-ink); }
.signup .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.footer-signup { margin-bottom: 24px; }
.footer-signup .signup { margin-top: 0; padding-top: 0; border-top: 0; }
