/* Throughline Sales Systems — site styles. Tokens mirror the Throughline design system (Daylight theme). */
:root {
  --page: #f6f7f9;
  --page-raised: #ffffff;
  --page-sunk: #eaeef2;
  --rule: #d4dbe3;
  --ink: #0f2536;
  --ink-muted: #4b5b6b;
  --navy: #0f2536;
  --navy-rule: #24384b;
  --on-navy: #f6f7f9;
  --on-navy-muted: #d8e1ea;
  --on-navy-quiet: #a9b8c7;
  --orange: #e0843a;
  --orange-ink: #a14e14;
  --teal: #1f6f78;
  --teal-soft: #e0f0f1;
  --plum: #8c3b5c;
  --plum-soft: #f5e3eb;
  --slate: #5e6b78;
  --slate-dot: #7d8b9b;
  --focus: #1f6f78;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: 120px;
  --section-y: 96px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.on-navy :focus-visible { outline-color: var(--orange); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--orange); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Type roles */
.label {
  font-family: var(--sans); font-weight: 600; font-size: 12px; line-height: 16px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.display { font-family: var(--serif); font-weight: 600; font-size: 42px; line-height: 1.1; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: var(--radius-lg); text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #f09a55; color: var(--navy); }
.btn-text { color: var(--on-navy); text-decoration: underline; text-underline-offset: 5px; padding: 0 12px; }
.btn-text:hover { color: var(--orange); }

/* Hero band */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); }
.hero-rail { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 120px; pointer-events: none; }
.rail-wide { height: auto; aspect-ratio: 12 / 1; }
.rail-narrow { display: none; }
.nav { position: relative; border-bottom: 1px solid var(--navy-rule); }
.nav .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; padding: 0; }
.nav-links a { color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--orange); }
.nav-links .nav-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 2px solid var(--on-navy);
  border-radius: var(--radius-lg); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-links .nav-cta:hover { border-color: var(--orange); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 2px solid var(--on-navy); border-radius: var(--radius-md);
  background: transparent; color: var(--on-navy); place-items: center; padding: 0; cursor: pointer;
}

.hero-body {
  position: relative; padding-top: 88px; padding-bottom: 136px;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 72px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero .label { font-size: 13px; color: var(--on-navy-quiet); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 61px; line-height: 1.1; letter-spacing: -0.01em; }
.hero-lead { max-width: 600px; font-size: 20px; line-height: 30px; color: var(--on-navy-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; }

/* Stage card */
.stage-card {
  background: var(--page-raised); color: var(--ink); border-radius: var(--radius-md); padding: 28px 30px 24px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(15, 37, 54, .08), 0 18px 40px rgba(0, 0, 0, .25);
}
.stage-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stage-card h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.stage-card-head span { font-size: 13px; color: var(--ink-muted); }
.stages { display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; }
.stage { display: grid; grid-template-columns: 112px minmax(0, 1fr) 48px; gap: 14px; align-items: center; }
.stage-name { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.stage-bar { height: 26px; background: var(--page-sunk); border-radius: 3px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.stage-count { font-family: var(--serif); font-weight: 600; font-size: 22px; text-align: right; }
.stage-move { padding-left: 126px; font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stage.is-play .stage-name { color: var(--teal); }
.stage.is-play .stage-bar i { background: var(--teal); }
.stage.is-won .stage-name, .stage.is-won .stage-count { color: var(--orange-ink); }
.stage.is-won .stage-bar i { background: var(--orange); }
.slip { color: var(--plum); font-weight: 600; }
.chip {
  display: inline-block; padding: 1px 8px; border-radius: var(--radius-sm); font-weight: 600; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.chip-stalled { background: var(--plum-soft); color: var(--plum); }
.chip-play { background: var(--teal-soft); color: var(--teal); }
.stage-note { padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 19px; color: var(--ink-muted); }

/* Credentials strip */
.creds { background: var(--page-sunk); }
.creds .wrap { padding-top: 30px; padding-bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.creds .label { font-size: 13px; white-space: nowrap; }
@media (min-width: 1241px) { .creds .creds-list { flex-wrap: nowrap; white-space: nowrap; gap: 20px 48px; } }
.creds-list { display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: baseline; list-style: none; padding: 0; }
.creds-list li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--ink-muted); }
.creds-list strong { font-family: var(--serif); font-weight: 600; font-size: 35px; line-height: 1; color: var(--ink); }

/* Sections */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-white { background: var(--page-raised); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section-head .lead { max-width: 460px; }

/* Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.problem-copy { display: flex; flex-direction: column; gap: 20px; }
.problem-copy .lead { max-width: 520px; }
.callout {
  margin-top: 12px; background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 24px 28px;
  font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 31px;
}
.symptoms { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.symptoms li {
  display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule);
  font-size: 18px; line-height: 27px;
}
.symptoms li::before { content: ""; width: 12px; height: 12px; margin-top: 8px; border-radius: 3px; background: var(--slate-dot); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.step {
  border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 32px; background: var(--page);
  display: flex; flex-direction: column; gap: 16px;
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-n {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--navy); color: var(--on-navy);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 29px; line-height: 1.15; }
.step p { color: var(--ink-muted); }
.step ul { padding: 16px 0 0 18px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; }

.score {
  background: var(--page-raised); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 28px 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.score .label { letter-spacing: 0.12em; }
.score-value { font-family: var(--serif); font-weight: 600; font-size: 51px; line-height: 56px; letter-spacing: -0.01em; }
.score-value small { font-size: 28px; color: var(--ink-muted); }
.score-delta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-muted); }
.delta { padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.delta-up { background: var(--teal-soft); color: var(--teal); }
.delta-flat { background: var(--page-sunk); color: var(--slate); }
.score p { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.fineprint { margin-top: 24px; font-size: 14px; color: var(--ink-muted); }

.fit { border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.fit h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.fit ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 25px; }
.fit-yes { border-color: var(--teal); }
.fit-yes h3 { color: var(--teal); }
.fit-no { background: var(--page); }
.fit-no h3 { color: var(--slate); }
.fit-no ul { color: var(--ink-muted); }

/* About */
.about { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; align-items: center; }
.about img { width: 340px; aspect-ratio: 340 / 376; height: auto; object-fit: cover; border-radius: var(--radius-md); }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy p:not(.label) { max-width: 680px; font-size: 18px; line-height: 28px; }
.about-copy p:not(.label) + p { color: var(--ink-muted); }

/* Contact */
.contact { padding-bottom: var(--section-y); }
.contact-card {
  background: var(--navy); color: var(--on-navy); border-radius: 24px; padding: 64px 72px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; align-items: center;
}
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.contact-copy h2 { font-family: var(--serif); font-weight: 600; font-size: 45px; line-height: 1.1; letter-spacing: -0.01em; }
.contact-copy p { max-width: 560px; font-size: 18px; line-height: 28px; color: var(--on-navy-muted); }
.contact-copy .btn { align-self: flex-start; margin-top: 10px; }
.contact-direct { display: flex; flex-direction: column; gap: 14px; padding-left: 40px; border-left: 1px solid var(--navy-rule); font-size: 18px; line-height: 26px; }
.contact-direct .label { color: var(--on-navy-quiet); }
.contact-direct a { color: var(--on-navy); }
.contact-direct a:hover { color: var(--orange); }
.contact-direct .quiet { color: var(--on-navy-quiet); }

/* Footer */
.footer { background: var(--navy); color: var(--on-navy-quiet); }
.footer .wrap { padding-top: 44px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-top img { height: 36px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; font-size: 15px; }
.footer-links a { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--navy-rule); font-size: 13px; }
.footer-bottom .tag { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 64px; }
  .hero h1 { font-size: 52px; }
  .nav-links { gap: 24px; }
  .creds .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; --section-y: 72px; }
  .hero-body { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 120px; }
  .stage-card { max-width: 560px; }
  .problem { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
  .about img { width: 260px; }
  .contact-card { grid-template-columns: 1fr; padding: 48px; gap: 36px; }
  .contact-direct { padding-left: 0; padding-top: 28px; border-left: 0; border-top: 1px solid var(--navy-rule); }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--navy); border-bottom: 1px solid var(--navy-rule);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--navy-rule); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .nav-cta { display: flex; justify-content: center; margin-top: 16px; height: 48px; border-bottom: 2px solid var(--on-navy); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --section-y: 48px; }
  .nav .wrap { height: 68px; }
  .nav-logo img { height: 30px; }
  .hero-rail { bottom: 14px; height: 80px; }
  .rail-wide { display: none; }
  .rail-narrow { display: block; }
  .hero-body { padding-top: 44px; padding-bottom: 88px; gap: 32px; }
  .hero-copy { gap: 20px; }
  .hero .label { font-size: 11px; }
  .hero h1 { font-size: 37px; line-height: 41px; }
  .hero-lead { font-size: 18px; line-height: 27px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; }
  .hero-actions .btn-text { border: 2px solid var(--on-navy); border-radius: var(--radius-lg); text-decoration: none; }
  .stage-card { padding: 20px; gap: 12px; }
  .stage-card h2 { font-size: 18px; }
  .stage { grid-template-columns: 96px minmax(0, 1fr) 30px; gap: 10px; }
  .stage-name { font-size: 12px; }
  .stage-bar { height: 20px; }
  .stage-count { font-size: 18px; }
  .stage-move { padding-left: 106px; gap: 6px; }
  .stage-note { font-size: 12px; line-height: 17px; }
  .creds .wrap { padding-top: 24px; padding-bottom: 24px; gap: 14px; }
  .creds .label { font-size: 11px; }
  .creds-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .creds-list li { display: block; font-size: 13px; line-height: 17px; }
  .creds-list strong { display: block; font-size: 31px; line-height: 34px; }
  .creds-list li.creds-roles { grid-column: 1 / -1; }
  .label { font-size: 11px; }
  .display { font-size: 35px; line-height: 38px; }
  .lead { font-size: 17px; line-height: 26px; }
  .section-head { margin-bottom: 28px; }
  .problem { gap: 24px; }
  .problem-copy { gap: 18px; }
  .symptoms li { grid-template-columns: 10px minmax(0, 1fr); gap: 14px; padding: 16px 0; font-size: 16px; line-height: 24px; }
  .symptoms li::before { width: 10px; height: 10px; margin-top: 7px; }
  .callout { padding: 20px; font-size: 20px; line-height: 27px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .step, .fit { padding: 20px; gap: 12px; }
  .step h3 { font-size: 25px; }
  .score { padding: 20px; }
  .score-value { font-size: 43px; line-height: 48px; }
  .fit ul { font-size: 16px; line-height: 24px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about img { width: 160px; }
  .about-copy { gap: 16px; }
  .about-copy p:not(.label) { font-size: 17px; line-height: 26px; }
  .contact-card { padding: 28px 20px; border-radius: 16px; gap: 28px; }
  .contact-copy h2 { font-size: 33px; }
  .contact-copy p { font-size: 17px; line-height: 26px; }
  .contact-copy .btn { align-self: stretch; }
  .contact-direct { font-size: 17px; }
  .footer .wrap { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-top img { height: 30px; }
  .footer-bottom { flex-direction: column; }
}
