@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --navy: #12306B;
  --navy2: #0c2350;
  --cream: #FEF7ED;
  --cream2: #FBEBD3;
  --blue: #1A66C7;
  --blue2: #1557ab;
  --yellow: #F6B92B;
  --yellow2: #e9a812;
  --ink: #1d2433;
  --muted: #5b6478;
  --green: #1f9d6b;
  --line: #ecdcc3;
  --white: #fff;
  --shadow: 0 10px 30px rgba(18, 48, 107, 0.10);
  --shadow2: 0 18px 50px rgba(18, 48, 107, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(246, 185, 43, 0.22), transparent 55%),
    radial-gradient(900px 420px at -10% 0%, rgba(26, 102, 199, 0.10), transparent 50%),
    var(--cream);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.hdr {
  background: rgba(254, 247, 237, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.05;
}

.logo .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}

.logo small {
  display: block;
  font-weight: 700;
  color: var(--blue);
  font-size: 12px;
  margin-top: 2px;
}

.hdr-meta {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  text-align: right;
  max-width: 16em;
  line-height: 1.25;
}

/* Main */
main {
  flex: 1;
  padding: 28px 0 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  padding: 16px 26px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--blue2), 0 12px 24px rgba(26, 102, 199, 0.25);
  transition: transform 0.08s, box-shadow 0.08s;
  font-family: inherit;
  text-align: center;
  line-height: 1.25;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--blue2); }
.btn.block { display: flex; width: 100%; }
.btn.yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 6px 0 var(--yellow2), 0 12px 24px rgba(246, 185, 43, 0.3);
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: #e4efff;
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(30px, 6.4vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }

.hl {
  background: linear-gradient(transparent 62%, rgba(246, 185, 43, 0.55) 62%);
  padding: 0 3px;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  margin-top: 14px;
  max-width: 36em;
}

.brand-tagline {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow);
}

.aside-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 10px;
}

.muted { color: var(--muted); }

/* Intro layout */
.intro-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.intro-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.time-note {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}

.aside-card {
  background: #fff;
  border: 1px solid #f1e6d4;
  border-radius: 24px;
  box-shadow: var(--shadow2);
  padding: 26px 24px;
}

.quote {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin: 8px 0 12px;
}

.quote:before { content: "“"; color: var(--yellow); }
.quote:after { content: "”"; color: var(--yellow); }

.aside-card p { color: var(--muted); font-size: 15px; }

.aside-list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.aside-list li {
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

/* Quiz card */
.qshell { max-width: 680px; margin: 0 auto; }

.qcard {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow2);
  padding: 26px 22px 24px;
  border: 1px solid #f1e6d4;
}

.qprog {
  height: 8px;
  background: #f1e6d4;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.qprog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), #3f8cf0);
  transition: width 0.35s ease;
}

.qmeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 16px;
}

.qtext {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.qsub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  margin: 8px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: 0.15s;
  line-height: 1.35;
}

.opt:hover { border-color: var(--blue); background: #f2f7ff; }
.opt.sel { border-color: var(--blue); background: #e4efff; }

.opt .k {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--blue);
  font-size: 13px;
  margin-top: 1px;
}

.qback {
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 700;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  padding: 6px 0;
}

/* Email / results shared */
.center { text-align: center; }

.field { margin: 12px 0; text-align: left; }
.field label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 102, 199, 0.12);
}

.err {
  color: #c0392b;
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 8px;
  display: none;
}

.privacy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.45;
}

/* Results */
.band {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.band.high { background: #e1f5ea; color: #146b48; }
.band.mid { background: #fff1d6; color: #8a5a00; }
.band.low { background: #fde8ef; color: #9b1c48; }

.score-line {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  margin: 6px 0 14px;
}

.tips {
  list-style: none;
  margin: 16px 0 8px;
  text-align: left;
  display: grid;
  gap: 10px;
}

.tips li {
  background: var(--cream);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
}

.tips li b {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
  font-size: 15px;
}

.cta {
  margin-top: 22px;
  background: var(--navy);
  color: #e7ecf7;
  border-radius: 20px;
  padding: 22px 20px 20px;
  text-align: left;
}

.cta h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.cta .price {
  color: var(--yellow);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
}
.cta p { font-size: 15px; color: #c9d4ea; margin-bottom: 16px; }
.cta .coming {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #9fb0d2;
}

/* Footer */
footer {
  background: var(--navy2);
  color: #9fb0d2;
  font-size: 13px;
  padding: 16px 20px 20px;
  text-align: center;
}

footer .brand {
  color: #cfdaf0;
  font-weight: 800;
  margin-bottom: 4px;
}

footer .test-marker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7e90b3;
}

.hidden { display: none !important; }

@media (min-width: 840px) {
  .intro-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    padding: 18px 0 10px;
  }
  main { padding: 40px 0 56px; }
  .qcard { padding: 34px 32px 28px; }
  .hdr-meta { font-size: 14px; }
}

@media (max-width: 839px) {
  .hdr-meta { display: none; }
  .aside-card { margin-top: 4px; }
  main { padding: 18px 0 24px; }
  .intro-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
  }
  .intro-actions .btn { width: 100%; }
  #screen-results .qcard { padding: 18px 16px 16px; }
  #screen-results h2 { font-size: 24px; margin-bottom: 6px; }
  #screen-results #r-desc { font-size: 15px; }
  #screen-results .score-line { margin: 2px 0 10px; }
  #screen-results .tips { gap: 8px; margin: 12px 0 0; }
  #screen-results .tips li { padding: 9px 12px; font-size: 14px; }
  #screen-results .cta { margin-top: 14px; padding: 16px 16px 14px; }
  #screen-results .cta h3 { font-size: 20px; }
  #screen-results .cta p { margin-bottom: 12px; font-size: 14px; }
  #screen-results .cta .coming { margin-top: 8px; }
}
