:root {
  --navy: #101c31;
  --navy-soft: #1b2942;
  --red: #e91c17;
  --red-dark: #c81410;
  --cream: #f8f2f1;
  --white: #ffffff;
  --ink: #17223a;
  --muted: #697287;
  --line: #dfe3ea;
  --pale-red: #fff0f0;
  --shadow: 0 24px 70px rgba(17, 29, 56, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(228, 62, 70, 0.08), transparent 27rem),
    linear-gradient(180deg, #faf9f6 0%, var(--cream) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
footer,
.app-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 250px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-promise,
.brand-promise {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-weight: 600;
}

.header-promise {
  color: var(--red);
  font-size: 0.86rem;
  transform: rotate(-1deg);
}

.app-shell {
  min-height: calc(100vh - 190px);
}

.screen {
  animation: reveal 320ms ease both;
}

.screen[hidden] {
  display: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-screen {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: clamp(50px, 8vw, 96px) clamp(28px, 8vw, 100px);
  border-radius: 32px;
  background: var(--navy);
  box-shadow: var(--shadow);
  color: var(--white);
}

.intro-screen::before,
.intro-screen::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.intro-screen::before {
  top: -190px;
  right: -180px;
  width: 500px;
  height: 500px;
  border: 68px solid rgba(255, 255, 255, 0.04);
}

.intro-screen::after {
  right: 78px;
  bottom: -136px;
  width: 310px;
  height: 310px;
  background: var(--red);
  opacity: 0.92;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

h1,
h2,
p {
  margin-top: 0;
}

.intro-screen h1,
.results-hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 7vw, 5.7rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro-screen h1 em {
  color: var(--red);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-weight: 500;
}

.brand-promise {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin: -10px 0 26px;
  color: #ff6d68;
  font-size: clamp(1rem, 2vw, 1.3rem);
  transform: rotate(-1.2deg);
}

.brand-promise::after {
  display: block;
  width: 58%;
  height: 3px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: var(--red);
  content: "";
  transform: rotate(-2deg);
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin-bottom: 34px;
  color: #cbd2df;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.intro-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.answer-button:focus-visible,
.restart-button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffb5b8;
  outline-offset: 3px;
}

.button-primary {
  background: var(--red);
  box-shadow: 0 12px 30px rgba(228, 62, 70, 0.3);
  color: var(--white);
}

.button-primary:hover {
  background: #f04850;
}

.time-note {
  color: #aeb8ca;
  font-size: 0.92rem;
}

.trust-row {
  position: absolute;
  z-index: 1;
  bottom: 45px;
  left: clamp(28px, 8vw, 100px);
  display: flex;
  gap: 28px;
  color: #d7dce6;
  font-size: 0.9rem;
}

.tick {
  display: inline-grid;
  width: 21px;
  height: 21px;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ff787e;
  font-weight: 900;
}

.privacy-note {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
}

.quiz-screen {
  max-width: 830px;
  margin-inline: auto;
  padding: 28px 0 70px;
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz-topline span:last-child {
  color: var(--red);
}

.progress-track {
  overflow: hidden;
  height: 7px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #dfe3e9;
}

.progress-track span {
  display: block;
  width: 16.67%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 260ms ease;
}

.question-card {
  min-height: 540px;
  padding: clamp(30px, 7vw, 64px);
  border: 1px solid rgba(17, 29, 56, 0.06);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(17, 29, 56, 0.09);
}

.question-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 15px;
  background: var(--pale-red);
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 900;
}

.question-kicker,
.card-label {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-card h2 {
  max-width: 660px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.question-help {
  margin-bottom: 27px;
  color: var(--muted);
}

.answer-options {
  display: grid;
  gap: 10px;
}

.answer-button {
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfc;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border 150ms ease, background 150ms ease, transform 150ms ease;
}

.answer-button:hover {
  border-color: rgba(228, 62, 70, 0.55);
  background: var(--pale-red);
  transform: translateX(3px);
}

.answer-button.selected {
  border-color: var(--red);
  background: var(--pale-red);
}

.answer-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(17, 29, 56, 0.08);
}

.answer-text {
  font-weight: 700;
}

.answer-arrow {
  color: var(--red);
  font-weight: 900;
}

.quiz-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.button-quiet {
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  color: var(--navy);
}

.results-screen {
  padding: 26px 0 80px;
}

.results-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 36px;
  align-items: end;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 26px;
  background: var(--navy);
  color: var(--white);
}

.results-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.results-summary {
  max-width: 680px;
  margin-bottom: 0;
  color: #cbd2df;
  font-size: 1.05rem;
}

.readiness-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.readiness-card span,
.readiness-card small {
  display: block;
  color: #b7c0d0;
}

.readiness-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.readiness-card strong {
  display: block;
  margin: 7px 0 1px;
  color: var(--white);
  font-size: 3.2rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 0 20px;
}

.results-toolbar p {
  margin: 0;
  font-size: 1.05rem;
}

.results-toolbar > div {
  display: flex;
  gap: 8px;
}

.button-secondary {
  min-height: 43px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 0.82rem;
}

.priority-list {
  display: grid;
  gap: 14px;
}

.priority-card {
  display: grid;
  grid-template-columns: 72px 1fr minmax(230px, 0.62fr);
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(17, 29, 56, 0.08);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 29, 56, 0.05);
}

.priority-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 15px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 900;
}

.priority-main h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.priority-reason {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.action-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
}

.action-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--red);
  content: "✓";
  font-weight: 900;
}

.help-panel {
  padding: 20px;
  border-radius: 15px;
  background: var(--cream);
}

.help-panel strong {
  display: block;
  margin-bottom: 7px;
  color: var(--red-dark);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.help-panel p {
  margin: 0;
  color: #535d72;
  font-size: 0.88rem;
}

.momentum-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  margin-top: 14px;
}

.momentum-card,
.brightside-card {
  padding: clamp(28px, 5vw, 46px);
  border-radius: 20px;
}

.momentum-card {
  border: 1px solid rgba(17, 29, 56, 0.08);
  background: var(--white);
}

.momentum-card h2,
.brightside-card h2 {
  margin-bottom: 11px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.momentum-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.brightside-card {
  background: var(--red);
  color: var(--white);
}

.cta-logo-wrap {
  display: inline-flex;
  width: 230px;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(112, 11, 8, 0.18);
}

.cta-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.brightside-card .card-label {
  color: #ffdadd;
}

.brightside-card p:not(.card-label) {
  max-width: 600px;
  color: #fff2f3;
}

.button-light {
  width: 100%;
  margin: 4px 0 14px;
  background: var(--white);
  color: var(--red-dark);
}

.enquiry-form {
  margin-top: 24px;
}

.enquiry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.enquiry-fields label:last-child {
  grid-column: 1 / -1;
}

.enquiry-fields label {
  display: grid;
  gap: 6px;
}

.enquiry-fields label > span {
  color: #fff2f3;
  font-size: 0.78rem;
  font-weight: 800;
}

.enquiry-fields input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
}

.enquiry-fields input:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.brightside-card small {
  display: block;
  color: #ffdadd;
}

.restart-button {
  display: block;
  margin: 28px auto 0;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--navy);
  font-weight: 800;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  padding: 13px 18px;
  transform: translateY(140%);
  border-radius: 10px;
  background: var(--navy);
  box-shadow: var(--shadow);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transition: 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 760px) {
  .site-header,
  footer,
  .app-shell {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand img {
    width: 200px;
  }

  .header-promise {
    display: none;
  }

  .intro-screen {
    min-height: 650px;
    padding: 48px 25px 150px;
    border-radius: 24px;
  }

  .intro-screen::after {
    right: -80px;
    bottom: -150px;
  }

  .trust-row {
    right: 25px;
    bottom: 52px;
    left: 25px;
    display: grid;
    gap: 9px;
  }

  .privacy-note {
    right: 16px;
    bottom: 12px;
  }

  .question-card {
    min-height: 560px;
    padding: 28px 20px;
  }

  .quiz-navigation > span {
    display: none;
  }

  .results-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .readiness-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .readiness-card strong {
    grid-row: span 2;
    font-size: 2.8rem;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .priority-card {
    grid-template-columns: 50px 1fr;
    gap: 16px;
  }

  .priority-number {
    width: 48px;
    height: 48px;
  }

  .help-panel {
    grid-column: 1 / -1;
  }

  .momentum-grid {
    grid-template-columns: 1fr;
  }

  .enquiry-fields {
    grid-template-columns: 1fr;
  }

  .enquiry-fields label:last-child {
    grid-column: auto;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 174px;
  }

  .intro-screen h1 {
    font-size: 2.75rem;
  }

  .button-primary {
    width: 100%;
  }

  .answer-button {
    grid-template-columns: 32px 1fr 16px;
    min-height: 68px;
    padding: 10px 12px;
  }

  .answer-text {
    font-size: 0.91rem;
  }

  .results-toolbar > div,
  .results-toolbar .button {
    width: 100%;
  }

  .results-toolbar > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .priority-card {
    grid-template-columns: 1fr;
  }

  .help-panel {
    grid-column: auto;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .site-header,
  footer,
  .results-toolbar,
  .restart-button,
  .brightside-card .button,
  .header-right {
    display: none !important;
  }

  .app-shell {
    width: 100%;
  }

  .results-screen {
    padding: 0;
  }

  .results-hero,
  .priority-card,
  .momentum-card,
  .brightside-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
