:root {
  --navy: #105486;
  --blue: #149BEA;
  --light-blue: #65CCFE;
  --pale-blue: #EDF7FE;
  --light-grey: #F6F6F6;
  --medium-grey: #626262;

  --tier-low: #C96A63;
  --tier-low-bg: #FBEEEC;
  --tier-medium: #C98A2E;
  --tier-medium-bg: #FBF3E6;
  --tier-high: #2E7D32;
  --tier-high-bg: #E9F6EC;

  --error: #9c4a43;
  --error-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #222;
  background: rgb(233, 233, 233);
  margin: 0;
}

html, body {
  overflow-x: hidden;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

h1 {
  margin-top: 0;
}

.hero {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-top: -2.5rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  text-align: center;
  box-sizing: border-box;
}

/* HOW TO ADJUST (two independent dials):
   1. TINT COLOUR = the "45, 75, 95" numbers (red, green, blue, 0-255).
      Brand navy is 16, 84, 134 — very saturated. These numbers are pulled
      toward grey to mute it. More saturated/bluer -> lower the red (45),
      raise the blue (95). Greyer -> make the three numbers closer together.
   2. DARKNESS = the "0.28" and "0.46" at the end of each colour (0-1).
      Higher = darker image, safer text. Lower = brighter image.
      First number is the top of the gradient, second is the bottom. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45, 75, 95, 0.28), rgba(45, 75, 95, 0.46));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-family: 'Questrial', sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 6vw, 3rem);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  line-height: 1.3;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.landing-container.show-form .modal-backdrop {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2rem 1.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  margin-top: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #666;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #f0f0f0;
}

.modal-instruction {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 1.25rem;
}

.privacy-footnote {
  margin-top: 1.25rem;
  color: var(--medium-grey);
  font-size: 0.8rem;
  line-height: 1.4;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: none;
}

.lead-form label {
  color: var(--medium-grey);
  font-size: 13px;
  font-weight: 500;
  margin-top: 0.75rem;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form select,
.free-text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.lead-form input[type="text"]:focus,
.lead-form input[type="email"]:focus,
.lead-form select:focus,
.free-text-input:focus {
  border-color: var(--blue);
  outline: 2px solid var(--pale-blue);
  outline-offset: 1px;
}

.free-text-input {
  max-width: 100%;
  min-height: 6rem;
  resize: vertical;
}

a:focus-visible,
button:focus-visible,
.lead-form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lead-form label.opt-in-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--medium-grey);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 1rem;
}

.opt-in-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
}

button {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  align-self: flex-start;
}

button:hover {
  background: #333;
}

.error {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tier-low-bg);
  color: var(--error);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.error::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--error-icon) no-repeat center / contain;
  mask: var(--error-icon) no-repeat center / contain;
}

.question-page {
  max-width: 760px;
}

.results-page {
  max-width: 760px;
}

#question-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
  #question-container.htmx-swapping { opacity: 0; transition: opacity 80ms ease-out; }
  #question-container.htmx-added    { opacity: 0; }
  #question-container               { opacity: 1; transition: opacity 120ms ease-in; }
}

.progress-band {
  background: var(--light-grey);
  padding: 0.85rem 1.5rem;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
  font-size: 12px;
  color: var(--medium-grey);
}

.progress-percent {
  font-weight: 700;
}

.progress-track {
  height: 6px;
  background: var(--pale-blue);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--navy), var(--blue));
  border-radius: 3px;
}

#question-container .content {
  padding: 1.5rem 1.5rem 2.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -0.5rem 0 0.75rem;
  padding: 0.5rem 0;
  color: var(--medium-grey);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.back-link:hover,
.back-link:active {
  color: var(--blue);
  text-decoration: underline;
}

.section-name {
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.question-text {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 1.25rem;
  line-height: 1.35;
}

.question-text:focus {
  outline: none;
}

.question-instruction {
  margin: -0.5rem 0 1.25rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--medium-grey);
  font-style: italic;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #222;
}

.answer-option:hover {
  background: #f6f6f6;
}

.answer-option:has(input:checked) {
  border-color: var(--light-blue);
  background: var(--pale-blue);
  color: var(--navy);
  font-weight: 500;
}

.answer-option:has(:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.answer-option input:focus-visible {
  outline: none;
}

.answer-option input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
}

.numeric-input {
  width: 170px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  text-align: left;
  color: #222;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.numeric-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--pale-blue);
}

.numeric-hint {
  margin: 0;
  font-size: 12px;
  color: var(--medium-grey);
}

.button-options {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.option-button {
  margin-top: 0;
  padding: 0.7rem 1.4rem;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.option-button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 500;
}

.scale-radio {
  margin-bottom: 1.5rem;
}

.scale-options {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.scale-option {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  font-size: 14px;
  color: #222;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid #ddd;
}

.scale-option:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.scale-option:last-child {
  border-right: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-option input:focus-visible {
  outline: none;
}

.scale-option:hover {
  background: var(--pale-blue);
}

.scale-option:has(input:checked) {
  background: var(--blue);
  color: #fff;
  font-weight: 500;
}

.scale-option:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  z-index: 2;
}

.scale-anchor-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 0.5rem;
}

.scale-anchor {
  font-size: 12px;
  color: var(--medium-grey);
  white-space: nowrap;
}

.scale-anchor-min {
  grid-column: 1;
  text-align: left;
}

.scale-anchor-max {
  grid-column: 3;
  text-align: right;
}

.scale-anchor-mid {
  grid-column: 2;
  text-align: center;
  font-size: 12px;
  color: var(--medium-grey);
  opacity: 0.75;
  white-space: nowrap;
}

/* scale_slider: JS-only additions layered on top of the scale_radio baseline. */

.scale-options-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scale-slider-widget {
  margin-top: 0.75rem;
}

.scale-slider-track {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.scale-slider-track::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--blue) 0%, var(--blue) var(--fill), #ddd var(--fill), #ddd 100%);
}

.scale-slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.scale-slider-track::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #ddd;
}

.scale-slider-track::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
}

.scale-slider-track::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.scale-slider-track:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--pale-blue), 0 0 0 5px var(--blue);
}

.scale-slider-track:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--pale-blue), 0 0 0 5px var(--blue);
}

/* The radios are the real (tab-stoppable) control and stay visually hidden;
   when one of them has focus, mirror the same ring onto the visible handle
   so sighted keyboard users can see where focus is. */
.scale-slider:focus-within .scale-slider-track::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--pale-blue), 0 0 0 5px var(--blue);
}

.scale-slider:focus-within .scale-slider-track::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--pale-blue), 0 0 0 5px var(--blue);
}

/* Unset ("ghost") state: parked handle, no fill, no active tick, hint shown. */

.scale-slider-unset .scale-slider-track::-webkit-slider-runnable-track {
  background: #ddd;
}

.scale-slider-unset .scale-slider-track::-webkit-slider-thumb {
  background: #fff;
  border: 2px solid #ccc;
  box-shadow: none;
}

.scale-slider-unset .scale-slider-track::-moz-range-progress {
  background: transparent;
}

.scale-slider-unset .scale-slider-track::-moz-range-thumb {
  background: #fff;
  border: 2px solid #ccc;
  box-shadow: none;
}

.scale-slider-ticks {
  position: relative;
  height: 16px;
  margin-top: 6px;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 12px;
  color: var(--medium-grey);
}

.scale-slider-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.scale-slider-tick-active {
  color: var(--navy);
  font-weight: 700;
}

.scale-slider-hint {
  display: none;
  margin: 0.4rem 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--medium-grey);
}

.scale-slider-unset .scale-slider-hint {
  display: block;
}

.next-button {
  padding: 0.7rem 1.5rem;
  font-size: 14px;
  font-weight: 500;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.next-button:hover {
  background: var(--navy);
}

.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
}

.button:hover {
  background: var(--navy);
}

.top-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.75rem;
  margin: 0 -1.5rem 1.25rem;
}

.top-card h1,
.top-card h2 {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}

.top-card h1 strong {
  font-weight: 700;
}

.top-intro p {
  margin: 0;
  line-height: 1.6;
  color: #444;
  font-size: 15px;
}

.score-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.75rem;
  margin: 0 -1.5rem 1.25rem;
  text-align: center;
}

.score-eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.score-value {
  font-family: 'Questrial', sans-serif;
  font-size: 52px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tier-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.tier-badge.low { color: var(--tier-low); background: var(--tier-low-bg); }
.tier-badge.medium { color: var(--tier-medium); background: var(--tier-medium-bg); }
.tier-badge.high { color: var(--tier-high); background: var(--tier-high-bg); }

.tier-bar-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.tier-bar {
  position: relative;
  height: 9px;
  border-radius: 4.5px;
  overflow: hidden;
  display: flex;
  margin: 0 auto;
  max-width: 380px;
}

.tier-bar span { flex: 1; }
.tier-bar .seg-low { background: var(--tier-low); }
.tier-bar .seg-medium { background: var(--tier-medium); }
.tier-bar .seg-high { background: var(--tier-high); }

.tier-marker {
  position: absolute;
  top: -5.5px;
  width: 2px;
  height: 20px;
  background: #222;
  transform: translateX(-1px);
}

.tier-bar-labels {
  display: flex;
  justify-content: space-between;
  max-width: 380px;
  margin: 0.35rem auto 0;
  font-size: 10.5px;
  color: var(--medium-grey);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.section-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.1rem 1.1rem 1rem;
}

.section-card::after {
  content: "";
  display: table;
  clear: both;
}

.section-score {
  float: right;
  margin-left: 0.85rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.section-score .section-pct {
  display: block;
  font-family: 'Questrial', sans-serif;
  font-size: 21px;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.section-score .tier-label {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.section-score.low .section-pct { color: var(--tier-low); }
.section-score.low .tier-label { color: var(--tier-low); background: var(--tier-low-bg); }
.section-score.medium .section-pct { color: var(--tier-medium); }
.section-score.medium .tier-label { color: var(--tier-medium); background: var(--tier-medium-bg); }
.section-score.high .section-pct { color: var(--tier-high); }
.section-score.high .tier-label { color: var(--tier-high); background: var(--tier-high-bg); }

.section-card h3 {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.section-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--medium-grey);
}

.marketing-band {
  background: var(--pale-blue);
  margin: 2.5rem -1.5rem;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
}

.marketing-band > .band-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.band-heading h2 {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
}

.band-heading p {
  color: var(--medium-grey);
  font-size: 14px;
  margin: 0.4rem 0 0;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.course-card:last-child {
  margin-bottom: 0;
}

.course-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-body {
  padding: 1.5rem;
}

.course-card h3 {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-weight: 400;
  font-size: 23px;
  margin: 0 0 0.3rem;
}

.course-subtitle {
  color: var(--blue);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 0 0.85rem;
}

.course-body > p {
  line-height: 1.5;
  font-size: 14px;
  color: #444;
  margin: 0 0 0.85rem;
}

.testimonials {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.testimonials li {
  font-style: italic;
  color: #444;
  font-size: 13px;
  padding-left: 0.85rem;
  border-left: 3px solid var(--light-blue);
}

.simple-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.simple-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.simple-card .button {
  align-self: center;
  margin-top: auto;
}

.simple-card h2 {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-weight: 400;
  font-size: 17px;
  margin: 0 0 0.3rem;
}

.simple-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.simple-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--medium-grey);
  margin: 0 0 1.1rem;
}

.share-section {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.share-section h2 {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 1rem;
}

.course-cta {
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 1rem;
}

.share-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.share-icon:hover {
  background: var(--blue);
}

.container.landing-page {
  padding-bottom: 0;
}

.landing-card {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  text-align: center;
}

.landing-card .top-intro {
  text-align: left;
  margin-bottom: 1.5rem;
}

.landing-card .button {
  margin-top: 0;
}

.button-large {
  padding: 0.95rem 2.25rem;
  font-size: 17px;
}

.noscript-banner {
  background: var(--pale-blue);
  color: var(--navy);
  border: 1px solid var(--light-blue);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

body:has(.landing-container.show-form) {
  overflow: hidden;
}

/* ===== Admin ===== */
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.75rem;
}

.admin-card h1 {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}

.admin-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-head h1 { margin: 0; }

.admin-subtext {
  color: var(--medium-grey);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.admin-subtext strong { color: #222; font-weight: 600; }

.admin-text-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.admin-text-link:hover { text-decoration: underline; background: none; }
.admin-resend { display: inline-block; margin-top: 1.25rem; }

.export-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.export-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.export-list .quiz-name { flex: 1; font-size: 15px; color: #222; }
.export-list .quiz-slug { color: var(--medium-grey); font-size: 13px; }
.export-list .button { flex-shrink: 0; white-space: nowrap; }

/* ===== Error pages ===== */
.error-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 3rem 2rem;
  text-align: center;
}

.error-code {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.error-card h1 {
  font-family: 'Questrial', sans-serif;
  color: var(--navy);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.error-card p {
  color: var(--medium-grey);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: 400px;
}
.error-card p a { color: var(--blue); text-decoration: none; }
.error-card p a:hover { text-decoration: underline; }

.error-card .button { margin-top: 0; }

@media (max-width: 480px) {
  body:has(.question-page) {
    background: #fff;
  }

  .container.question-page {
    padding: 0;
  }

  .container.admin-page {
    padding: 1.5rem 1rem;
  }

  .container.error-page {
    padding: 1.5rem 1rem;
  }

  .admin-card {
    padding: 1.75rem 1.25rem;
  }

  .export-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .error-card {
    padding: 2.5rem 1.5rem;
  }

  #question-container {
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .progress-band {
    padding: 0.85rem 1rem;
  }

  #question-container .content {
    padding: 1.75rem 1rem 2.5rem;
  }

  #question-container .content form {
    padding-bottom: 5rem;
  }

  #question-container .content .next-button {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 5;
  }

  .container.results-page {
    padding: 1rem 0;
  }

  .top-card,
  .score-card,
  .simple-row,
  .share-section {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .container.results-page .site-footer {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .marketing-band {
    margin: 2rem 0;
    border-radius: 0;
    padding: 2rem 1rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    margin: 0.5rem 1rem 0;
  }

  .simple-row {
    grid-template-columns: 1fr;
  }

  .score-value {
    font-size: 44px;
  }

  .section-score {
    margin-left: 0.6rem;
  }

  .hero {
    min-height: 34vh;    /* fallback for older browsers */
    min-height: 34svh;   /* sizes to the visible area incl. the browser URL bar */
  }

  .hero-title {
    line-height: 1.25;
  }

  .landing-card {
    margin-left: 0;
    margin-right: 0;
    margin-top: -36px;
    padding: 1.75rem 1.35rem;
  }

  .landing-card h2 {
    font-size: 20px;
  }

  .landing-card .top-intro p {
    font-size: 14px;
  }

  .button-large {
    padding: 0.85rem 1.75rem;
    font-size: 15px;
  }

  .modal-backdrop {
    padding: 1.25rem 1rem;
    align-items: flex-start;
  }

  .modal-card {
    max-height: calc(100vh - 2.5rem);
    padding: 1.75rem 1.35rem;
  }

  .modal-instruction {
    font-size: 17px;
    padding-right: 1.5rem;
  }
}


.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #ddd;
}

.site-footer-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer-copyright {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .site-footer-logo img {
    height: 32px;
  }
}

.dev-banner {
  background: #fff3cd;
  border: 2px dashed #d97706;
  color: #7a4a00;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

