:root {
  --bg: #07161b;
  --bg-soft: #0d2229;
  --teal: #0a6b73;
  --teal-deep: #084f56;
  --teal-soft: #dceff0;
  --silver: #d8dde0;
  --silver-deep: #6c7479;
  --ink: #142229;
  --text: #203138;
  --muted: #5f6d73;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.95);
  --line: rgba(9, 68, 75, 0.14);
  --shadow: 0 22px 50px rgba(1, 18, 24, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top left, rgba(17, 132, 144, 0.18), transparent 25%), linear-gradient(180deg, #07161b 0%, #0d1f26 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
img { max-width: 100%; display: block; }

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}
.page-glow-left { background: #0a7b84; top: -8rem; left: -10rem; }
.page-glow-right { background: #c7d0d5; top: 10rem; right: -12rem; }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}
.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}
.brand-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}
.brand-tag {
  margin: 4px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 0.95rem;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-link {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: .2s ease;
}
.header-link:hover { background: rgba(255,255,255,.08); }
.header-link-solid {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-color: transparent;
}

.app-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(251,252,252,0.96) 100%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen { display: none; padding: 42px; }
.screen.active { display: block; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}
.hero-copy { padding-right: 10px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}
h1, h2 {
  font-family: "Playfair Display", serif;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.08;
}
h1 { font-size: clamp(2.25rem, 4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2vw, 2.35rem); }
h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
}
.lead {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 42rem;
}
.lead.small, .section-copy {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}
.framework-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}
.framework-row span {
  background: var(--teal-soft);
  color: var(--teal-deep);
  border: 1px solid rgba(10,107,115,.14);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
}
.feature-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.8);
}
.feature-item strong { color: var(--ink); font-size: .98rem; }
.feature-item span { color: var(--muted); font-size: .92rem; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.microcopy { margin: 0; color: var(--muted); font-size: .95rem; }

.hero-visual {
  display: flex;
  justify-content: center;
}
.portrait-frame {
  position: relative;
  width: min(100%, 440px);
  background: linear-gradient(180deg, #f6f8f8 0%, #edf1f2 100%);
  border-radius: 28px;
  border: 1px solid rgba(7, 57, 64, 0.08);
  overflow: hidden;
  padding: 18px;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(10,107,115,.08), transparent 40%, rgba(216,221,224,.3));
  pointer-events: none;
}
.hero-portrait {
  width: 100%;
  height: min(560px, 70vh);
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
}

.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: .2s ease;
}
.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 0 10px 22px rgba(8,79,86,.2);
}
.primary-btn:hover { transform: translateY(-1px); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.secondary-btn {
  color: var(--teal-deep);
  background: #fff;
  border: 1px solid rgba(8,79,86,.18);
}
.secondary-btn:hover { background: #f6f9f9; }
.link-btn { text-decoration: none; }
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

.step-top { margin-bottom: 18px; }
.progress-wrap {
  width: 100%;
  height: 8px;
  background: #e9eeee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  border-radius: 999px;
  transition: width .25s ease;
}
.step-label, .question-meta, .question-help { color: var(--muted); }
.step-label { margin: 0; font-size: .94rem; }
.question-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: .88rem;
}
.question-help { margin: 0 0 26px; line-height: 1.65; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.form-grid input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(16, 72, 79, 0.14);
  background: #fff;
  padding: 0 16px;
  color: var(--text);
}
.form-grid input:focus {
  outline: 2px solid rgba(10,107,115,.18);
  border-color: rgba(10,107,115,.28);
}
.full { grid-column: 1 / -1; }
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500 !important;
  color: var(--muted) !important;
}
.checkbox-label input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.checkbox-label a { color: var(--teal-deep); text-decoration: underline; }

.answer-options {
  display: grid;
  gap: 14px;
}
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: var(--text);
}
.option-card:hover { border-color: rgba(10,107,115,.34); background: #fff; }
.option-card.selected {
  border-color: rgba(10,107,115,.48);
  box-shadow: 0 0 0 4px rgba(10,107,115,.08);
}
.option-dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid rgba(10,107,115,.32);
  position: relative;
}
.option-card.selected .option-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal);
}
.option-card strong { display: block; margin-bottom: 4px; color: var(--ink); }
.option-card span { color: var(--muted); line-height: 1.5; }

.report-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,250,0.98));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
}
.report-header, .results-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.report-header {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.report-brand { display: flex; align-items: center; gap: 14px; }
.report-logo { width: 56px; height: 56px; object-fit: contain; }
.report-brand-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.28rem;
  color: var(--ink);
}
.report-brand-sub, .report-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.report-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.score-ring {
  --score: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--teal) calc(var(--score) * 1%), #dfe6e8 0);
  position: relative;
  flex-shrink: 0;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 50%;
}
.score-ring span, .score-ring small { position: relative; z-index: 1; }
.score-ring span {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--ink);
  line-height: 1;
}
.score-ring small { color: var(--muted); font-size: .95rem; }
.score-ring.large { width: 156px; height: 156px; }
.score-ring.large span { font-size: 3rem; }

.rating-banner {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,107,115,.12), rgba(216,221,224,.55));
  border: 1px solid rgba(10,107,115,.12);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.category-grid article, .result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.meter {
  width: 100%;
  height: 10px;
  background: #e9eeee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  border-radius: 999px;
}
.category-grid strong {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink);
}
.category-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.result-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.result-card ol {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--text);
  line-height: 1.6;
}
.cta-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0b2730 0%, #0a4d55 100%);
  color: var(--white);
}
.cta-panel .eyebrow, .cta-panel h2, .cta-panel p { color: var(--white); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-panel .secondary-btn {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.32);
}
.results-actions { justify-content: flex-end; }
.report-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.report-footer p { margin: 4px 0; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .94rem;
}
.site-footer {
  margin-top: 18px;
  text-align: center;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-header,
  .hero-grid,
  .report-header,
  .results-header,
  .cta-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .form-grid,
  .results-grid,
  .category-grid { grid-template-columns: 1fr; }
  .header-links { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .report-meta { text-align: left; }
  .screen { padding: 28px 22px; }
}

@media (max-width: 680px) {
  .app-shell { width: min(100% - 18px, 100%); padding-top: 16px; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-name { font-size: 1.18rem; }
  .brand-tag { font-size: .84rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }
  .screen { padding: 22px 18px; }
  .portrait-frame { padding: 10px; }
  .hero-portrait { height: auto; max-height: 430px; }
  .report-shell { padding: 18px; }
  .score-ring.large { width: 130px; height: 130px; }
  .score-ring.large span { font-size: 2.45rem; }
  .footer-links { flex-direction: column; gap: 6px; }
}

@media print {
  @page { size: A4; margin: 0.55in; }
  body {
    background: #fff;
  }
  .page-glow,
  .site-header,
  .site-footer,
  .results-actions,
  .no-print {
    display: none !important;
  }
  .app-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .app-card {
    box-shadow: none;
    border: 0;
    background: #fff;
  }
  .screen { display: none !important; padding: 0; }
  #results-screen.active { display: block !important; }
  .report-shell {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #fff;
  }
  .category-grid,
  .results-grid {
    page-break-inside: avoid;
  }
  .result-card, .category-grid article {
    break-inside: avoid;
  }
  .rating-banner {
    background: #f1f7f7;
    box-shadow: none;
  }
}


/* Mockup-matched premium landing screen */
#start-screen { padding: 0; background: #071c24; }
#start-screen .hero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  min-height: 690px;
  gap: 0;
  align-items: stretch;
}
#start-screen .hero-copy {
  padding: 58px 54px 52px;
  background:
    radial-gradient(circle at 15% 0%, rgba(14,121,130,.22), transparent 34%),
    linear-gradient(155deg, #061a22 0%, #082831 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-brand { display:flex; align-items:center; gap:12px; margin-bottom:34px; color:#dce7e9; font-weight:600; letter-spacing:.04em; }
.hero-brand-logo { width:72px; height:72px; object-fit:contain; filter:brightness(0) invert(1); opacity:.96; }
#start-screen .eyebrow { color:#7fd0d3; }
#start-screen h1 { color:#fff; font-size:clamp(2.7rem,5vw,4.8rem); max-width:640px; }
#start-screen .lead { color:rgba(255,255,255,.84); max-width:600px; }
#start-screen .framework-row { margin:30px 0 26px; gap:8px; }
#start-screen .framework-row span {
  background:transparent;
  color:#d9f0f1;
  border:1px solid rgba(127,208,211,.28);
  padding:9px 12px;
  font-size:.84rem;
}
#start-screen .feature-list { grid-template-columns:repeat(3,1fr); gap:10px; }
#start-screen .feature-item {
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.11);
  padding:15px;
}
#start-screen .feature-item strong { color:#fff; }
#start-screen .feature-item span { color:rgba(255,255,255,.67); }
#start-screen .microcopy { color:rgba(255,255,255,.66); }
#start-screen .primary-btn { background:linear-gradient(135deg,#0a7c84,#086069); box-shadow:0 12px 28px rgba(0,0,0,.25); }
#start-screen .hero-visual { background:#e8edef; align-items:stretch; }
#start-screen .portrait-frame { width:100%; max-width:none; border-radius:0; padding:0; border:0; background:#e8edef; }
#start-screen .portrait-frame::after {
  content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(6,26,34,.18),transparent 24%); pointer-events:none;
}
#start-screen .hero-portrait { width:100%; height:100%; min-height:690px; max-height:none; border-radius:0; object-fit:cover; object-position:center 12%; }

/* Cleaner app header and report hierarchy */
.site-header { padding:0 6px; }
.brand-logo { width:64px; height:64px; }
.app-card { border-radius:24px; }
#results-screen { background:#edf1f2; }
#results-screen .report-shell { max-width:1040px; margin:0 auto; box-shadow:0 18px 45px rgba(8,42,49,.12); }
#results-screen .report-header { background:#fff; }
#results-screen .results-header { padding:12px 0 6px; }
#results-screen .category-grid article { box-shadow:0 8px 22px rgba(9,59,67,.05); }
#results-screen .result-card { box-shadow:0 8px 22px rgba(9,59,67,.05); }
#results-screen .report-footer { background:linear-gradient(135deg,#07555d,#063e45); color:#fff; margin:24px -28px -28px; padding:22px 28px; border-radius:0 0 24px 24px; }
#results-screen .report-footer p { color:#fff; }

@media (max-width: 980px) {
  #start-screen .hero-grid { grid-template-columns:1fr; }
  #start-screen .hero-visual { order:-1; max-height:470px; }
  #start-screen .hero-portrait { min-height:470px; height:470px; object-position:center 15%; }
  #start-screen .feature-list { grid-template-columns:1fr; }
}
@media (max-width:680px){
  #start-screen .hero-copy { padding:36px 24px 34px; }
  .hero-brand-logo { width:58px; height:58px; }
  #start-screen .hero-visual { max-height:390px; }
  #start-screen .hero-portrait { min-height:390px; height:390px; }
  #results-screen .report-footer { margin:20px -18px -18px; padding:20px 18px; }
}
