/* Typography and brand tokens match public/index.html. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin.woff2') format('woff2');
}

:root {
  --ink: #14171c;
  --gold: #d4a843;
  --gold-deep: #b8912f;
  --gold-text: #8a6a15;
  --slate: #464f5c;
  --bg: #fff;
  --surface: #fff;
  --border: #e4e6e9;
  --border2: #eceef1;
  --blue: var(--gold-text);
  --cyan: var(--gold-text);
  --orange: var(--slate);
  --purple: #6a7585;
  --green: #13865c;
  --muted: #606b7b;
  --dim: #606b7b;
  --dimmer: #606b7b;
  --text: var(--ink);
  --subtext: var(--slate);
  --sans: 'Geist', Arial, sans-serif;
  --mono: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; }
.shell, .wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }
.wrap { padding: 64px 0 72px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Reuse the homepage's logo lockup, navigation, and gold buttons. */
.site-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
.brand { display: inline-flex; align-items: center; }
.sb-lockup { display: inline-flex; align-items: center; gap: 14px; }
.sb-lockup-mark { width: 75px; height: 75px; display: block; flex-shrink: 0; }
.sb-lockup-rule { width: 1px; height: 44px; background: rgba(20,23,28,.22); }
.sb-lockup-text { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.sb-lockup-word { font-size: 25px; font-weight: 400; letter-spacing: .3em; line-height: 1; padding-right: .3em; }
.sb-lockup-tag { font-size: 8px; font-weight: 700; color: var(--gold-text); letter-spacing: .15em; line-height: 1; padding-right: .15em; text-transform: uppercase; white-space: nowrap; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a, .text-link { color: #555e6a; font-size: 14px; font-weight: 550; }
.site-header nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--gold-text); }
.header-actions { display: flex; gap: 20px; align-items: center; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 650; box-shadow: 0 4px 10px rgba(194,152,45,.18); transition: .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--gold-deep); }
.button-small { min-height: 37px; padding: 0 13px; font-size: 13px; }
.nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; }
.menu-button, .mobile-menu { display: none; }

.page-intro { padding-bottom: 40px; max-width: 740px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 750; margin-bottom: 17px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #f6f7f8; }
.page-title { font-size: clamp(38px, 4.5vw, 60px); line-height: 1.04; letter-spacing: -.055em; font-weight: 670; }
.page-desc { max-width: 650px; margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.label { font-size: 11px; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; }
.sub { font-size: 12px; color: var(--dim); line-height: 1.6; }
.cols { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 28px; align-items: start; }
.left-col, .right-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.left-col { padding: 20px; background: #f9f9fa; border: 1px solid var(--border); border-radius: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.left-col > .panel { padding: 22px 18px; border-radius: 12px; }
.panel-head { margin-bottom: 16px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tab { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 8px; cursor: pointer; font-size: 11px; letter-spacing: .025em; color: var(--slate); font-weight: 550; transition: background .15s, border-color .15s; }
.tab:hover { border-color: var(--gold); background: #fdfaf1; }
.tab[aria-pressed="true"] { background: #fdf6e4; border-color: var(--gold); color: var(--gold-text); font-weight: 700; }
.input-section { display: none; }
.input-section.visible { display: block; }
.slider-row { margin-bottom: 22px; }
.slider-row:last-child { margin-bottom: 0; }
.slider-labels { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.slider-name { display: block; font-size: 12px; color: var(--slate); font-weight: 550; }
.slider-hint { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.slider-val { font-size: 14px; color: var(--text); font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slider-track { position: relative; height: 28px; display: flex; align-items: center; cursor: pointer; border-radius: 6px; }
.slider-track:focus-within { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.track-bg { position: absolute; left: 0; right: 0; height: 4px; background: #eceef1; border-radius: 4px; overflow: hidden; }
.track-fill { height: 100%; border-radius: 4px; }
.track-thumb { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; pointer-events: none; box-shadow: 0 1px 4px rgba(20,23,28,.18) !important; }
input[type=range] { position: absolute; width: 100%; opacity: 0; height: 28px; cursor: pointer; appearance: none; }
.price-detail { margin-top: 16px; padding: 16px; background: #fdf6e4; border: 1px solid #f0e3bd; border-radius: 8px; }

.headline-bar { background: #21252a; color: #fff; border: 1px solid #21252a; border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.headline-bar .label, .headline-bar .sub, .headline-bar .roi-sub { color: #c6cbd3 !important; }
.roi-badge { display: inline-flex; align-items: center; gap: 16px; }
.roi-multiple { font-size: 48px; font-weight: 670; color: var(--gold); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.roi-label { font-size: 11px; color: var(--gold); font-weight: 650; letter-spacing: .04em; }
.roi-sub { font-size: 12px; margin-top: 4px; }
#total-hours { color: #fff !important; }
.cards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 18px; border-top: 3px solid; }
.metric-val { font-size: clamp(23px, 2.2vw, 30px); font-weight: 650; line-height: 1.2; margin-top: 12px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-sub { font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.5; }
.line-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border2); }
.line-item:last-of-type { border-bottom: none; }
.line-label { font-size: 14px; color: var(--subtext); font-weight: 500; margin-bottom: 3px; }
.line-calc { font-size: 11px; color: var(--muted); line-height: 1.6; }
.line-time { font-size: 11px; margin-top: 3px; }
.line-value { font-size: 18px; font-weight: 650; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.subtotal-row { display: flex; justify-content: space-between; gap: 14px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--border2); }
.subtotal-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.subtotal-val { font-size: 18px; font-weight: 650; white-space: nowrap; }
.workload-row { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border2); }
.workload-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.workload-hrs { font-size: 17px; font-weight: 650; text-align: right; white-space: nowrap; }
.workload-per { font-size: 10px; color: var(--dim); text-align: right; }

/* Milestones wrap independently, including when breakeven is near day one. */
.ttv-track-wrap { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 22px 0 16px; margin-top: 4px; }
.ttv-line { position: absolute; top: 51px; left: 10%; right: 10%; height: 2px; background: var(--border); }
.ttv-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width .5s ease; }
.ttv-dot-wrap { position: relative; left: auto !important; top: auto !important; min-width: 0; }
.ttv-dot-label { font-size: 10px; font-weight: 550; color: var(--dim); text-align: center; margin-bottom: 8px; }
.ttv-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; margin: 0 auto; background: #fff; border: 2px solid #b5bdc8; }
.ttv-dot.highlight { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px #fdf6e4; }
.ttv-dot-event { font-size: 10px; text-align: center; margin: 10px auto 0; line-height: 1.5; max-width: 94px; color: var(--muted); }
.ttv-dot-event.highlight { color: var(--gold-text); font-weight: 600; }
.summary-bar { background: #f9fafb; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 12px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.summary-num { font-size: 26px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--border2); margin: 14px 0; }
.quote-block { padding: 32px; background: #fafaf8; border: 1px solid var(--border); border-radius: 16px; margin-top: 36px; }
.quote-text { max-width: 830px; font-size: 16px; color: var(--slate); line-height: 1.7; }
.quote-attr { margin-top: 14px; font-size: 10px; color: var(--dim); letter-spacing: .09em; font-weight: 650; }
.site-footer { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.site-footer p { margin-right: auto; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer small { width: 100%; font-size: 11px; }
.footer-brand .sb-lockup { gap: 11px; }
.footer-brand .sb-lockup-mark { width: 57px; height: 57px; }
.footer-brand .sb-lockup-rule { height: 29px; }
.footer-brand .sb-lockup-word { font-size: 19px; }
.footer-brand .sb-lockup-tag { font-size: 7px; }

@media (max-width: 1100px) {
  .site-header nav { gap: 18px; }
  .header-actions .text-link { display: none; }
  .cols { grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
  .headline-bar { padding: 24px; }
}
@media (max-width: 900px) {
  .site-header { min-height: 82px; }
  .sb-lockup { gap: 11px; }
  .sb-lockup-mark { width: 63px; height: 63px; }
  .sb-lockup-rule { height: 31px; }
  .sb-lockup-word { font-size: 21px; }
  .sb-lockup-tag { font-size: 7px; }
  .site-header nav, .header-actions { display: none; }
  .menu-button { display: inline-flex; padding: 10px; cursor: pointer; }
  .nav-toggle { right: 0; width: 42px; height: 42px; z-index: 2; cursor: pointer; }
  .nav-toggle:focus-visible + .menu-button { outline: 2px solid var(--gold-text); outline-offset: 2px; }
  .nav-toggle:checked ~ .mobile-menu { display: flex; }
  .mobile-menu { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; flex-direction: column; padding: 12px; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,23,28,.1); }
  .mobile-menu a { padding: 12px; color: var(--slate); }
  .mobile-menu-signin { display: flex; gap: 8px; align-items: center; }
  .wrap { padding-top: 40px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .left-col { padding: 16px; }
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-val { font-size: 28px; }
}
@media (max-width: 480px) {
  .shell, .wrap { width: calc(100% - 32px); }
  .page-intro { padding-bottom: 28px; }
  .page-desc { font-size: 15px; }
  .panel, .headline-bar { padding: 20px; }
  .headline-bar { gap: 20px; }
  .headline-bar > div:last-child { text-align: left !important; }
  .cards-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .metric-card { padding: 18px 20px; }
  .metric-val { font-size: 30px; }
  .quote-block { padding: 24px; }
  .line-value, .subtotal-val { font-size: 16px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
