@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  --navy: #071a2e;
  --navy-2: #0e2a45;
  --ink: #17202b;
  --muted: #67717e;
  --cream: #f7f3ea;
  --paper: #fffdfa;
  --gold: #c79a52;
  --gold-light: #ead7ae;
  --sage: #79a893;
  --line: #dde1e3;
  --danger: #b7554b;
  --shadow: 0 24px 70px rgba(7, 26, 46, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.55; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.wide-shell { width: min(1280px, calc(100% - 40px)); }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: 78px; padding: 0 max(20px, calc((100vw - 1140px)/2)); color: white; background: rgba(7,26,46,.96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: Georgia, serif; font-weight: 700; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: #a9b7c5; font-size: 11px; }
nav { display: flex; gap: 4px; }
.nav-link { border: 0; padding: 10px 13px; color: #cad4dd; background: transparent; text-decoration: none; font-size: 13px; }
.nav-link:hover { color: white; }

.view { display: none; }
.view.active { display: block; }
.hero { min-height: 760px; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 120px; }
.view[data-view="home"] { background: linear-gradient(180deg, var(--navy) 0 760px, var(--paper) 760px); }
.eyebrow, .kicker { display: block; margin-bottom: 18px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { max-width: 880px; margin: 0; color: white; font-size: clamp(52px, 8vw, 98px); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { color: var(--gold-light); font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
.hero-copy { max-width: 690px; margin: 30px 0 0; color: #bdc9d4; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 64px; padding-bottom: 18px; color: #aebdca; font-size: 14px; line-height: 1.5; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--sage); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s, border .2s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: var(--navy); background: var(--gold-light); }
.button.primary:hover { background: #f2dfb7; }
.button.ghost { color: white; border-color: rgba(255,255,255,.26); background: transparent; }
.button.secondary { color: white; background: var(--navy); }
.button.ghost-dark { color: var(--navy); border-color: #bdc6cd; background: white; }
.button.light { color: var(--navy); background: white; }
.button.wide { width: 100%; min-height: 56px; }

.section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 60px; margin-bottom: 42px; }
.section h2, .career-band h2, .about-block h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { position: relative; min-height: 280px; padding: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(7,26,46,.04); }
.tool-card.featured { grid-column: span 3; min-height: 330px; color: white; background: var(--navy); border-color: var(--navy); }
.tool-card.featured::after { content: ""; position: absolute; right: -90px; bottom: -160px; width: 430px; height: 430px; border: 1px solid rgba(234,215,174,.25); border-radius: 50%; box-shadow: 0 0 0 55px rgba(234,215,174,.04), 0 0 0 110px rgba(234,215,174,.03); }
.number { display: block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.tag { position: absolute; top: 26px; right: 28px; padding: 5px 10px; border-radius: 999px; color: var(--navy); background: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tool-card h3 { position: relative; z-index: 1; max-width: 600px; margin: 44px 0 12px; font-size: clamp(25px, 3vw, 38px); line-height: 1.06; letter-spacing: -.035em; }
.tool-card p { position: relative; z-index: 1; max-width: 620px; margin: 0 0 34px; color: var(--muted); }
.tool-card.featured p { color: #b8c5d1; }
.card-link { position: absolute; z-index: 2; left: 32px; bottom: 28px; padding: 0; border: 0; color: var(--ink); background: none; font-weight: 700; }
.card-link span { margin-left: 8px; color: var(--gold); }
.featured .card-link { color: white; }
.career-band { color: white; background: var(--navy-2); }
.career-inner { min-height: 410px; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.career-inner > div { max-width: 730px; }
.career-band p { max-width: 650px; color: #c0ccd5; }
.kicker.light { color: var(--gold-light); }
.about-block { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.principles { border-top: 1px solid var(--line); }
.principles p { display: grid; grid-template-columns: 140px 1fr; gap: 28px; margin: 0; padding: 25px 0; border-bottom: 1px solid var(--line); }
.principles strong { color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.principles span { color: var(--muted); }

.tool-shell { padding: 58px 0 110px; }
.back-link { border: 0; padding: 10px 0; color: var(--muted); background: transparent; font-size: 13px; }
.tool-intro { max-width: 850px; margin: 54px 0 46px; }
.tool-intro h1 { margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.05em; }
.tool-intro p { max-width: 700px; margin-top: 22px; color: var(--muted); font-size: 18px; }
.tool-form { max-width: 920px; }
.wide-shell .tool-form { max-width: none; }
.form-card { margin-bottom: 18px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(7,26,46,.035); }
.form-card h2 { margin: 0 0 24px; font-size: 22px; letter-spacing: -.025em; }
.form-note { margin: -14px 0 24px; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field-grid.two { grid-template-columns: repeat(2, 1fr); }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; color: #34404c; font-size: 13px; font-weight: 600; }
label > span { color: #8a949e; font-weight: 500; }
input, select { width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid #cdd4d9; border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,82,.15); }
.range-field { display: block; }
.range-heading, .range-scale { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.range-heading > span { color: #34404c; font-weight: 600; }
.range-heading output { color: var(--navy); font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
input[type="range"] { height: 34px; margin-top: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: var(--gold); cursor: grab; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]:focus { border: 0; box-shadow: none; }
.range-scale { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }

.result-panel { max-width: 920px; margin-top: 30px; padding: 34px; scroll-margin-top: 100px; border-radius: var(--radius); color: var(--ink); background: var(--cream); box-shadow: var(--shadow); }
.wide-shell .result-panel { max-width: none; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid #ddd5c7; }
.result-head h2 { margin: 4px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.03; letter-spacing: -.04em; }
.result-label { color: #8b724b; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.big-score { min-width: 110px; text-align: right; color: var(--navy); font-size: 48px; font-weight: 700; line-height: 1; }
.big-score small { color: var(--muted); font-size: 14px; font-weight: 500; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.metric { padding: 20px; border-radius: 14px; background: white; }
.metric span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; margin-top: 8px; font-size: 24px; letter-spacing: -.03em; }
.score-list { margin: 26px 0; }
.score-item { display: grid; grid-template-columns: 150px 1fr 42px; align-items: center; gap: 14px; margin: 14px 0; font-size: 13px; }
.score-track { height: 8px; overflow: hidden; border-radius: 999px; background: #ddd7cc; }
.score-fill { height: 100%; border-radius: inherit; background: var(--gold); }
.action-list { margin: 24px 0; padding: 0; list-style: none; }
.action-list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid #ded7ca; }
.action-list li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.result-note { padding: 15px 17px; border-left: 3px solid var(--gold); color: #59626c; background: rgba(255,255,255,.55); font-size: 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.bar-list { display: grid; gap: 14px; margin: 25px 0; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 90px; align-items: center; gap: 14px; font-size: 13px; }
.bar-row .track { height: 12px; overflow: hidden; border-radius: 999px; background: #ded8cc; }
.bar-row .fill { height: 100%; border-radius: inherit; background: var(--navy-2); }
.bar-row strong { text-align: right; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.scenario { padding: 22px; border: 1px solid #ddd5c7; border-radius: 14px; background: white; }
.scenario span { display: block; color: var(--muted); font-size: 12px; }
.scenario strong { display: block; margin: 8px 0 2px; font-size: 26px; }
.scenario small { color: var(--muted); }

.scorecard-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.scorecard-head .rating-guide { padding: 8px 12px; border-radius: 8px; color: #34404c; background: var(--cream); font-size: 16px; font-weight: 700; line-height: 1.4; }
.score-grid { overflow-x: auto; }
.score-row { min-width: 840px; display: grid; grid-template-columns: minmax(230px, 1.7fr) 110px repeat(3, minmax(135px, 1fr)); align-items: center; border-top: 1px solid var(--line); }
.agency-score-row { grid-template-columns: minmax(260px, 1.8fr) 110px repeat(2, minmax(150px, 1fr)); }
.score-row.header { border: 0; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.score-row > * { padding: 13px 10px; }
.score-row label { display: block; }
.mobile-score-label { display: none; }
.score-row select { height: 40px; margin: 0; }
.criterion strong, .criterion small { display: block; }
.criterion small { margin-top: 4px; color: var(--muted); }
.comparison-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.comparison-results.two { grid-template-columns: repeat(2, 1fr); }
.option-result { padding: 24px; border-radius: 14px; background: white; }
.option-result h3 { margin: 0 0 16px; font-size: 18px; }
.option-result .score { font-size: 38px; font-weight: 700; line-height: 1; }
.option-result small { display: block; margin-top: 9px; color: var(--muted); }

footer { color: #b5c1cc; background: var(--navy); }
.footer-inner { min-height: 190px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.footer-inner strong { color: white; }
.footer-inner p { max-width: 700px; margin: 8px 0 0; font-size: 12px; }
.footer-inner a { color: var(--gold-light); text-decoration: none; }

@media (max-width: 760px) {
  .shell, .wide-shell { width: min(100% - 28px, 1140px); }
  .site-header { min-height: 66px; padding: 0 14px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 10px; }
  .nav-link { padding: 9px 7px; font-size: 12px; }
  .hero { min-height: 700px; padding: 80px 0 92px; }
  .view[data-view="home"] { background: linear-gradient(180deg, var(--navy) 0 700px, var(--paper) 700px); }
  .hero h1 { font-size: 51px; }
  .hero-copy { font-size: 17px; }
  .trust-row { gap: 10px 20px; margin-top: 48px; padding-bottom: 22px; font-size: 13px; }
  .section { padding: 76px 0; }
  .section-heading, .about-block { grid-template-columns: 1fr; gap: 24px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card.featured { grid-column: span 1; }
  .tool-card { min-height: 300px; padding: 25px; }
  .tool-card h3 { margin-top: 38px; }
  .card-link { left: 25px; }
  .career-inner { min-height: 480px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .principles p { grid-template-columns: 1fr; gap: 7px; }
  .tool-shell { padding-top: 30px; }
  .tool-intro { margin: 38px 0 32px; }
  .tool-intro h1 { font-size: 45px; }
  .form-card, .result-panel { padding: 20px; border-radius: 16px; }
  .field-grid, .field-grid.two, .field-grid.three { grid-template-columns: 1fr; }
  .metric-grid, .scenario-grid, .comparison-results, .comparison-results.two { grid-template-columns: 1fr; }
  .scorecard-head { display: block; }
  .scorecard-head .rating-guide { display: inline-block; margin: -6px 0 20px; font-size: 15px; }
  .range-heading output { font-size: 18px; }
  .score-grid { overflow: visible; }
  .agency-score-row { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 18px 0; }
  .agency-score-row.header { display: none; }
  .agency-score-row .criterion { grid-column: 1 / -1; padding: 0 0 10px; }
  .agency-score-row > label { min-width: 0; padding: 0; }
  .agency-score-row select { min-width: 0; padding: 0 8px; font-size: 12px; }
  .mobile-score-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
  .score-item { grid-template-columns: 110px 1fr 36px; }
  .bar-row { grid-template-columns: 120px 1fr; }
  .bar-row strong { grid-column: 2; text-align: left; }
  .result-head { display: block; }
  .big-score { margin-top: 18px; text-align: left; }
  .footer-inner { min-height: 230px; flex-direction: column; justify-content: center; align-items: flex-start; }
}

@media print {
  .site-header, footer, .tool-form, .back-link, .no-print, .view[data-view="home"] { display: none !important; }
  body { background: white; }
  .view.active { display: block !important; }
  .tool-shell { padding: 0; }
  .tool-intro { margin: 0 0 20px; }
  .tool-intro h1 { font-size: 34px; }
  .result-panel { display: block !important; margin: 0; box-shadow: none; border: 1px solid #ccc; }
}
