:root {
  --canvas: #f6f9f8;
  --paper: #ffffff;
  --ink: #18373c;
  --muted: #627477;
  --subtle: #849392;
  --teal: #3a7878;
  --teal-dark: #275f60;
  --teal-light: #eaf3f1;
  --line: #dee8e5;
  --green: #16806d;
  --amber: #d3a24f;
  --grey: #a1a7af;
  --shadow: 0 24px 64px rgba(20,63,63,.08);
  font-family: 'Aptos', 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid #d3a24f; outline-offset: 4px; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; padding: 13px 18px; z-index: 90; background: var(--ink); color:white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.shell { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.site-header { height: 116px; background:rgba(255,255,255,.93); border-bottom:1px solid #e5eeeb; position:relative; z-index:3; }
.header-inner { max-width: 1200px; margin:auto; padding:0 36px; height:100%; display:flex; align-items:center; justify-content:space-between; gap: 30px; }
.brand { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; user-select:none; flex-shrink:0; min-width:95px; gap:2px; }
.brand-mark { display:block; width:48px; height:45px; object-fit:contain; }
.brand-name { color:#244b58; font-size:18px; font-weight:730; line-height:1.06; letter-spacing:.025em; white-space:nowrap; }
.header-actions { display:flex; align-items:center; gap:25px; }
.header-tool-label { font-size:12px; color:var(--muted); padding-right:25px; border-right:1px solid var(--line); }
.share-button { display:inline-flex; align-items:center; gap:9px; border:0; background:none; color:var(--teal-dark); font-size:13px; font-weight:650; padding:11px 3px; }
.share-button:hover { color:#162e33; }
.main-area { flex:1; }
.screen { animation:fadeUp .36s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
.welcome-screen { max-width:1200px; margin:auto; padding:74px 36px 38px; }
.welcome-grid { display:grid; grid-template-columns:1.06fr .94fr; align-items:center; gap:48px; min-height:530px; }
.eyebrow { display:flex; align-items:center; gap:10px; color:var(--teal-dark); font-size:11px; font-weight:760; letter-spacing:2px; margin-bottom:29px; }
.eyebrow-line { background:#d8ab68; height:2px; width:28px; }
h1,h2,h3,h4,p { margin-top:0; }
h1,h2,h3 { letter-spacing:-.03em; }
h1 { font-size:clamp(42px,4.6vw,65px); line-height:1.095; max-width:640px; margin-bottom:25px; font-weight:700; }
h1 em { font-family:Georgia, 'Times New Roman',serif; color:var(--teal); font-weight:400; font-style:italic; }
.welcome-lede { font-size:18px; line-height:1.76; color:#536b70; max-width:560px; margin-bottom:30px; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:12px; border-radius:9px; border:1px solid transparent; font-weight:700; min-height:47px; padding:12px 20px; text-decoration:none; transition:background .18s,transform .18s,border-color .18s; }
.button:hover:not(:disabled) { transform:translateY(-1px); }
.button-primary { color:white; background:var(--teal); box-shadow:0 9px 22px rgba(58,120,120,.18); }
.button-primary:hover:not(:disabled) { background:var(--teal-dark); }
.button-secondary { color:var(--teal-dark); background: white; border-color:#c8dbd6; }
.button-secondary:hover:not(:disabled) { background:var(--teal-light); }
.button-quiet { border:0; background:none; color:var(--muted); font-weight:630; padding:12px 8px; }
.button-quiet:hover { color:var(--ink); }
.button-large { padding:16px 26px; min-height:54px; }
.button-full { width:100%; }
.quick-facts { margin-top:26px; display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; font-size:12px; color:#647b7c; }
.quick-facts > span { white-space:nowrap; }
.fact-icon { font-size:16px; color:var(--teal); vertical-align:-1px; margin-right:4px; }
.hero-visual { min-height:518px; display:flex; align-items:center; justify-content:center; position:relative; isolation:isolate; }
.hero-visual::before { content:''; position:absolute; width:460px; height:460px; border-radius:50%; background:#e8f1ee; top:30px; left:50%; transform:translateX(-50%); z-index:-2; }
.hero-orbit { position:absolute; border:1px solid #d2e5de; border-radius:50%; z-index:-1; }
.hero-orbit-1 { width:525px; height:525px; transform:rotate(-20deg); }
.hero-orbit-2 { width:385px; height:385px; border-style:dashed; }
.preview-document { width:min(100%,420px); background:white; padding:30px 31px 25px; box-shadow:0 25px 70px rgba(30,80,79,.17); border:1px solid #ebf1ef; transform:rotate(-3deg); }
.preview-topline { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:31px; }
.mini-word { font-size:12px; color:var(--teal); letter-spacing:2.1px; font-weight:800; }
.mini-pill { font-size:8px; letter-spacing:1.3px; color:#7f8d8c; border:1px solid #dce7e3; border-radius:20px; padding:6px 8px; }
.preview-label { text-transform:uppercase; letter-spacing:1.6px; font-size:10px; color:var(--muted); margin-bottom:8px; }
.preview-title { font-size:24px; line-height:1.25; letter-spacing:-.8px; font-weight:700; }
.preview-score-row { margin-top:24px; display:flex; align-items:end; justify-content:space-between; }
.preview-score { font-size:49px; line-height:1; letter-spacing:-2.5px; color:var(--teal-dark); font-weight:750; }
.preview-score span { font-size:21px; color:#a7b1b1; letter-spacing:-1px; }
.preview-score-note { text-align:right; font-size:11px; color:var(--muted); line-height:1.5; }
.preview-bar { display:flex; gap:3px; height:13px; overflow:hidden; border-radius:20px; margin:15px 0 28px; }
.preview-bar span { flex:1; }
.preview-bar .green { background:var(--green); }
.preview-bar .amber { background:var(--amber); }
.preview-list { display:grid; gap:0; }
.preview-list>div { display:flex; align-items:center; font-size:11px; border-bottom:1px solid #eef1f1; padding:11px 0; }
.preview-list b { margin-left:auto; font-size:10px; font-weight:650; color:var(--muted); }
.preview-list i { width:8px;height:8px;border-radius:50%;margin-right:9px; }
.dot-green { background:var(--green); }.dot-amber { background:var(--amber); }
.preview-footer { display:flex; align-items:center; gap:9px; margin-top:22px; font-size:12px; font-weight:700; color:var(--teal); }
.preview-footer span { color:#d2ad6d; }
.value-strip { border-top:1px solid #dce9e5; margin-top:36px; padding-top:26px; display:grid; grid-template-columns:repeat(3,1fr); gap:27px; }
.value-cell { display:flex; gap:16px; align-items:start; }
.value-num { color:#d0a567; font-family:Georgia,serif; font-size:22px; line-height:1; }
.value-cell div { display:flex; flex-direction:column; gap:7px; }
.value-cell strong { font-size:13px; }
.value-cell div span { font-size:12px; color:var(--muted); line-height:1.5; }
.content-screen { max-width:740px; margin:60px auto 76px; padding:0 24px; }
.screen-card { padding:38px 42px 38px; background:white; border:1px solid #e0eae6; box-shadow:var(--shadow); border-radius:15px; }
.step-eyebrow { text-transform:uppercase; letter-spacing:1.8px; font-size:11px; font-weight:800; color:var(--teal); margin-bottom:12px; }
.step-heading { font-size:clamp(25px,3.2vw,37px); line-height:1.23; margin-bottom:13px; }
.step-lede { color:var(--muted); font-size:15px; line-height:1.7; }
.field-label { display:block; color:var(--ink); font-weight:750; font-size:14px; margin-bottom:10px; }
.text-input { display:block; width:100%; padding:15px 16px; color:var(--ink); border-radius:9px; border:1.5px solid #cbdad5; background:#fff; font-size:15px; line-height:1.4; }
.text-input:focus { outline:3px solid rgba(58,120,120,.18); border-color:var(--teal); }
textarea.text-input { min-height:110px; resize:vertical; }
.form-field { margin-top:26px; }
.field-hint { margin-top:9px; font-size:12px; line-height:1.55; color:var(--muted); }
.soft-note { margin-top:28px; padding:16px 18px; border:1px solid #deebe6; border-left:3px solid #9bbfba; background:#f6faf8; display:flex; align-items:start; gap:12px; color:#4d696b; font-size:12px; line-height:1.6; }
.soft-note svg { flex:0 0 auto; color:var(--teal); margin-top:2px; }
.screen-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:31px; margin-top:29px; border-top:1px solid var(--line); }
.progress-header { display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:700; margin-bottom:12px; }
.progress-subtext { font-size:12px; color:var(--muted); font-weight:600; }
.progress-track { height:7px; background:#e8eeec; border-radius:30px; overflow:hidden; margin-bottom:35px; }
.progress-fill { height:100%; background:var(--teal); transition:width .22s; border-radius:30px; }
.question-title { font-size:clamp(24px,3.1vw,34px); line-height:1.32; margin-bottom:26px; }
.answer-group { display:grid; gap:12px; margin-top:22px; }
.answer-card { display:flex; align-items:flex-start; gap:14px; padding:19px 20px; border:1.4px solid #d9e3df; border-radius:10px; background:#fff; cursor:pointer; font-size:14px; line-height:1.65; transition:background .15s,border-color .15s,box-shadow .15s; }
.answer-card:hover { background:#f7fbf9; border-color:#9bbeb6; }
.answer-card:has(input:checked) { background:#eaf3f1; border-color:var(--teal); box-shadow:inset 0 0 0 .75px var(--teal); }
.answer-card:has(input:focus-visible) { outline:3px solid #d3a24f; outline-offset:2px; }
.answer-card input { accent-color:var(--teal); width:18px; height:18px; margin:2px 0 0; flex-shrink:0; }
.answer-card .answer-text { flex:1; }
.answer-card .unknown-text { color:#536c70; }
.help-details { margin-top:19px; border-top:1px solid #ecf1ef; padding-top:18px; }
.help-details summary { color:var(--teal-dark); font-size:13px; cursor:pointer; font-weight:700; }
.help-details p { font-size:13px; color:var(--muted); line-height:1.7; margin:12px 0 0; }
.question-footnote { margin-top:20px; font-size:12px; color:var(--muted); }
.results-screen { max-width:920px; padding:46px 24px 80px; margin:0 auto; }
.results-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:25px; }
.results-heading-row h1 { font-size:clamp(28px,4vw,42px); line-height:1.22; margin-bottom:10px; }
.results-subject { color:var(--muted); font-size:14px; }
.edit-answers { background:none; color:var(--teal-dark); border:0; font-weight:700; font-size:13px; padding:10px 0; white-space:nowrap; }
.edit-answers:hover { text-decoration:underline; }
.results-panel { border:1px solid #deebe7; border-radius:15px; background:#fff; padding:31px 35px; box-shadow:0 13px 35px rgba(33,71,69,.05); margin-bottom:22px; }
.results-score-row { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.section-kicker { text-transform:uppercase; color:var(--teal); font-size:11px; font-weight:800; letter-spacing:1.7px; }
.results-score { font-size:54px; letter-spacing:-2.3px; line-height:1.08; font-weight:750; margin-top:11px; }
.results-score.not-scored { font-size:35px; letter-spacing:-1.5px; }
.provisional-tag { color:#527c78; padding:6px 9px; border-radius:30px; background:#e9f2ef; font-size:11px; font-weight:700; margin-left:12px; vertical-align:middle; }
.score-caption { font-size:12px; color:var(--muted); margin-top:6px; }
.score-side { text-align:right; margin-bottom:6px; font-size:13px; font-weight:700; }
.score-side span { display:block; color:var(--muted); font-size:11px; font-weight:500; margin-top:6px; }
.status-bar { display:flex; gap:4px; width:100%; height:15px; border-radius:99px; overflow:hidden; margin-top:23px; }
.status-bar span { flex:1; }
.status-green { background:var(--green); }
.status-amber { background:var(--amber); }
.status-grey { background:var(--grey); }
.legend { display:flex; align-items:center; flex-wrap:wrap; gap:12px 23px; margin-top:18px; }
.legend-item { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; }
.status-dot { display:inline-block; height:9px; width:9px; border-radius:50%; flex-shrink:0; }
.status-dot.green { background:var(--green);}.status-dot.amber { background:var(--amber);}.status-dot.grey { background:var(--grey); }
.assessment-summary { margin-top:27px; border-top:1px solid var(--line); padding-top:24px; }
.assessment-summary h2 { font-size:22px; line-height:1.35; letter-spacing:-.5px; margin-bottom:12px; }
.assessment-summary p { color:var(--muted); line-height:1.75; font-size:14px; margin:0; }
.constraint-panel { border:1px solid #edd8b7; background:#fffdf8; border-radius:13px; padding:22px 25px; margin-bottom:22px; }
.constraint-title { color:#7d5e2d; display:flex; align-items:center; gap:10px; font-size:14px; font-weight:760; margin-bottom:14px; }
.constraint-item { display:flex; gap:12px; align-items:flex-start; margin-top:12px; }
.constraint-item strong { font-size:13px; }
.constraint-item p { font-size:12px; color:#665f53; line-height:1.55; margin:5px 0 0; }
.section-headline { font-size:23px; margin-bottom:7px; }
.section-subline { color:var(--muted); font-size:13px; line-height:1.6; margin-bottom:18px; }
.action-card { border:1px solid #e0e9e6; border-radius:11px; margin:12px 0; background:white; }
.action-card summary { list-style:none; cursor:pointer; display:flex; gap:16px; align-items:center; padding:20px 18px; }
.action-card summary::-webkit-details-marker,.breakdown-toggle::-webkit-details-marker,.dimension-details summary::-webkit-details-marker { display:none; }
.action-number { display:inline-flex; height:37px; width:37px; justify-content:center; align-items:center; background:#eff5f3; color:var(--teal); border-radius:8px; font-size:12px; font-weight:800; flex-shrink:0; }
.action-title { display:block; font-size:15px; font-weight:740; margin-bottom:5px; }
.action-one-line { display:block; font-size:13px; color:var(--muted); line-height:1.55; }
.caret { font-size:18px; margin-left:auto; color:#7c9290; transition:transform .2s; }
.action-card[open] .caret, .breakdown-details[open] > summary .caret, .dimension-details[open] summary .caret { transform:rotate(180deg); }
.action-expanded { margin:0 18px 21px 71px; border-top:1px solid var(--line); padding-top:18px; }
.detail-label { font-size:10px; letter-spacing:1.2px; color:var(--teal); font-weight:800; margin:7px 0; }
.action-expanded p { color:#52686b; font-size:13px; line-height:1.7; margin:0 0 17px; }
.example-details { margin-top:17px; background:#f1f6f4; border-radius:9px; padding:15px 17px; }
.example-details summary { font-size:12px; font-weight:730; color:var(--teal-dark); cursor:pointer; }
.example-details .example-content { padding-top:13px; font-size:12px; line-height:1.65; }
.example-content strong { display:block; font-size:12px; margin-top:8px; }
.example-content p { margin:4px 0 8px; }
.example-note { font-size:11px; color:var(--muted); }
.breakdown-details { border:1px solid #dfe9e5; border-radius:12px; background:white; padding:0 22px; margin:20px 0 24px; }
.breakdown-toggle { display:flex; cursor:pointer; align-items:center; justify-content:space-between; gap:18px; padding:23px 0; list-style:none; }
.breakdown-toggle strong { font-size:16px; }
.breakdown-toggle small { color:var(--muted); display:block; margin-top:6px; font-size:12px; }
.breakdown-list { border-top:1px solid var(--line); padding:10px 0 15px; }
.dimension-details { border-bottom:1px solid #eef2f1; }
.dimension-details:last-child { border:0; }
.dimension-details summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:12px; padding:16px 1px; }
.dimension-labels { flex:1; }
.dimension-labels strong { font-size:13px; display:block; }
.dimension-labels small { margin-top:4px; color:var(--muted); font-size:11px; display:block; }
.dimension-score { font-variant-numeric:tabular-nums; color:var(--muted); font-size:12px; white-space:nowrap; }
.dimension-expanded { padding:2px 20px 20px 24px; font-size:12px; line-height:1.68; color:var(--muted); }
.dimension-expanded p { margin:4px 0 11px; }
.dimension-response { border-left:2px solid #dce7e3; padding:7px 12px; margin:8px 0; background:#f8faf9; }
.dimension-response b { font-size:11px; }
.download-panel { background:#eaf2ef; border-radius:13px; padding:29px 32px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.download-panel h2 { font-size:21px; margin-bottom:7px; }
.download-panel p { color:#587374; line-height:1.6; font-size:13px; margin:0; max-width:470px; }
.download-panel .button { flex-shrink:0; }
.finish-action { display:flex; justify-content:center; margin-top:23px; }
.disclaimer { margin-top:22px; color:#758587; font-size:11px; line-height:1.65; text-align:center; }
.site-footer { margin-top:auto; border-top:1px solid #e0e9e6; padding:22px max(36px,calc((100vw - 1128px)/2)); display:flex; justify-content:space-between; gap:20px; font-size:11px; color:#8a9998; }
.toast { position:fixed; bottom:26px; left:50%; transform:translate(-50%,30px); max-width:90vw; border-radius:10px; background:#193b3d; box-shadow:0 15px 30px #16363633; padding:13px 20px; color:white; font-size:13px; opacity:0; pointer-events:none; z-index:60; transition:transform .2s,opacity .2s; }
.toast.visible { opacity:1; transform:translate(-50%,0); }
.modal-backdrop { position:fixed; inset:0; z-index:40; background:rgba(15,37,39,.62); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; padding:24px; }
.modal { width:min(100%,550px); max-height:calc(100vh - 48px); overflow-y:auto; padding:30px 37px 32px; border-radius:15px; background:white; box-shadow:0 32px 80px #0c282e50; }
.modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.modal-brand { color:var(--teal); font-size:13px; letter-spacing:1.2px; font-weight:800; }
.close-modal { border:0; color:#667b7b; font-size:25px; line-height:1; background:transparent; padding:6px; }
.modal-check { height:50px; width:50px; border-radius:50%; display:flex; justify-content:center; align-items:center; font-size:23px; background:#ebf5f0; color:var(--green); margin:0 auto 18px; }
.modal h2 { font-size:27px; line-height:1.23; text-align:center; margin:0 0 20px; }
.modal p { color:#52696d; line-height:1.7; font-size:13px; }
.modal h3 { font-size:18px; line-height:1.4; margin:18px 0 10px; }
.modal-divider { border-top:1px solid var(--line); margin:19px 0; }
.consultation-note { background:#f1f7f4; padding:16px 18px; margin:20px 0; border-radius:9px; font-size:12px; line-height:1.6; color:#506e6c; }
.consultation-note strong { display:block; margin-bottom:5px; font-size:13px; color:var(--ink); }
.modal-actions { display:flex; flex-direction:column; gap:10px; }
.booking-pending { color:#6b7978; font-size:12px; line-height:1.5; text-align:center; margin:0 0 2px; }
@media(max-width:900px) {
  .welcome-grid { gap:12px; grid-template-columns:1fr .8fr; }
  .welcome-screen { padding-top:55px; }
  h1 { font-size:50px; }
  .hero-visual { transform:scale(.85); margin:-25px -50px; }
  .quick-facts { gap:9px; }
  .value-strip { gap:17px; }
  .download-panel { flex-wrap:wrap; }
}
@media(max-width:700px) {
  .site-header { height:93px; }
  .brand { min-width:78px; gap:2px; }
  .brand-mark { width:39px; height:37px; }
  .brand-name { font-size:15.5px; }
  .header-inner { padding:0 20px; }

  .header-tool-label { display:none; }
  .share-button { font-size:12px; gap:6px; }
  .welcome-screen { padding:46px 23px 38px; }
  .welcome-grid { grid-template-columns:1fr; gap:24px; }
  .welcome-copy { position:relative; z-index:1; }
  h1 { font-size:clamp(41px,9.5vw,57px); }
  .welcome-lede { font-size:16px; line-height:1.7; }
  .hero-visual { transform:none; margin:0; min-height:380px; }
  .hero-visual::before { width:330px; height:330px; }
  .hero-orbit-1 { width:350px; height:350px; }
  .hero-orbit-2 { width:280px; height:280px; }
  .preview-document { max-width:315px; padding:22px; transform:rotate(-2deg); }
  .preview-topline { margin-bottom:14px; }
  .preview-title { font-size:19px; }
  .preview-score { font-size:38px; }
  .preview-list > div { font-size:9px; }
  .preview-list b { font-size:8px; }
  .value-strip { grid-template-columns:1fr; gap:24px; margin-top:30px; }
  .content-screen { margin:33px auto 65px; padding:0 16px; }
  .screen-card { padding:27px 22px; }
  .step-heading { font-size:29px; }
  .question-title { font-size:26px; }
  .answer-card { padding:16px 14px; gap:12px; font-size:13px; }
  .results-screen { padding:31px 16px 70px; }
  .results-panel { padding:24px 20px; }
  .results-heading-row { flex-direction:column; gap:4px; }
  .results-heading-row h1 { font-size:31px; }
  .results-score { font-size:45px; }
  .results-score.not-scored { font-size:29px; }
  .score-side { font-size:11px; }
  .legend { gap:11px 12px; }
  .legend-item { font-size:11px; }
  .download-panel { padding:23px 19px; }
  .download-panel .button { width:100%; }
  .action-card summary { padding:17px 14px; gap:11px; }
  .action-title { font-size:13px; }
  .action-expanded { margin:0 15px 19px 15px; }
  .breakdown-details { padding:0 15px; }
  .dimension-labels strong { font-size:12px; }
  .modal { padding:24px 22px 26px; }
  .modal h2 { font-size:24px; }
  .site-footer { padding:20px; flex-direction:column; gap:7px; }
}
@media(max-width:360px) { .share-button span {display:none;} .results-score-row { align-items:start; } .results-score {font-size:41px;} .score-side {max-width:106px;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

/* Preview-safe, explicit field validation */
.field-error {color:#9f3627; font-size:0.83rem; font-weight:600; margin:0.45rem 0 0;}
[hidden] {display:none !important;}
.text-input[aria-invalid="true"] {border-color:#b84232; box-shadow:0 0 0 2px rgba(184,66,50,.12);}

/* Official stacked icon and word, without the superseded alignment tagline. */
.modal-brand { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:70px; }
.modal-brand-mark { display:block; width:37px; height:35px; object-fit:contain; }
.modal-brand-name { font-size:13.5px; font-weight:730; line-height:1; color:#244b58; letter-spacing:.025em; }

/* The welcome heading receives programmatic focus for screen readers, not user tab focus. */
.welcome-screen h1[tabindex="-1"]:focus { outline:none; }
