:root {
  --navy-0: #070E20;
  --navy-1: #0C1733;
  --navy-2: #13214A;
  --teal: #19BFA6;
  --teal-bright: #5FE7D0;
  --teal-deep: #0E7A6B;
  --gold: #F0C77D;
  --gold-deep: #C9974A;
  --text: #E9EFF9;
  --text-2: #A3B4D0;
  --text-3: #6F86AA;
  --line: rgba(125, 165, 215, 0.16);
  --line-2: rgba(125, 165, 215, 0.30);

  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-voice: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;

  --fs-display: clamp(2.35rem, 5.2vw, 3.9rem);
  --fs-h2: clamp(1.45rem, 2.7vw, 2.05rem);
  --fs-h3: 1.1rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-label: 0.75rem;

  --col: 68rem;
  --read: 40rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--navy-1);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(168deg, var(--navy-1) 0%, var(--navy-0) 58%, #0A1430 100%);
}

.bg::before {
  content: "";
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(55% 42% at 16% 4%, rgba(25, 191, 166, 0.30), transparent 62%),
    radial-gradient(48% 40% at 88% 18%, rgba(48, 76, 172, 0.52), transparent 60%),
    radial-gradient(42% 40% at 78% 88%, rgba(240, 199, 125, 0.20), transparent 62%),
    radial-gradient(46% 44% at 8% 82%, rgba(96, 64, 178, 0.26), transparent 64%);
  animation: aurora 70s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aurora {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1) rotate(0.001deg); }
  50%  { transform: translate3d(1.5%, 1.5%, 0) scale(1.06) rotate(0.001deg); }
  to   { transform: translate3d(-1%, 2%, 0) scale(1.02) rotate(0.001deg); }
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.055;
  mix-blend-mode: overlay;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---------- nav ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 18, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 4.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand .name { color: var(--text); }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .brand .name {
    background: linear-gradient(92deg, var(--teal-bright) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.brand .mark {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(25, 191, 166, 0.18);
  flex: none;
  transform: translateY(-1px);
}

.brand .sub {
  color: var(--text-3);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.navlinks a {
  position: relative;
  text-decoration: none;
  color: var(--text-2);
  font-size: var(--fs-sm);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.3rem;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.navlinks a:hover { color: var(--text); background: rgba(125, 165, 215, 0.08); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a[aria-current="page"]::after { display: none; }

.navlinks a[aria-current="page"] {
  color: var(--teal-bright);
  border-color: rgba(25, 191, 166, 0.42);
  background: rgba(25, 191, 166, 0.10);
}

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- views ---------- */

.view { display: none; }
.view.is-active { display: block; animation: rise 0.42s ease both; }

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

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
  opacity: 0.55;
}

h1 {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--teal-bright);
}

.lede {
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--text-2);
  margin: 0 0 1.1rem;
  max-width: 34rem;
}

.lede strong { color: var(--text); font-weight: 500; }

.hero-note {
  color: var(--text-3);
  font-size: var(--fs-sm);
  margin: 0 0 2rem;
  max-width: 32rem;
}

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  background: rgba(19, 33, 74, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chips li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(240, 199, 125, 0.7);
  flex: none;
}

/* ---------- scroll reveal ---------- */

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--rv-delay, 0s);
}

.rv.rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem;
  border-radius: 7px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--teal);
  color: #04121C;
  box-shadow:
    0 8px 26px -12px rgba(25, 191, 166, 0.85),
    0 0 24px -6px rgba(25, 191, 166, 0.45);
}

.btn-primary:hover {
  background: var(--teal-bright);
  transform: translateY(-1px);
  box-shadow:
    0 10px 30px -12px rgba(95, 231, 208, 0.9),
    0 0 34px -4px rgba(25, 191, 166, 0.55);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* ---------- portrait ---------- */

.portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 24rem;
  justify-self: end;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(25, 191, 166, 0.16), rgba(19, 33, 74, 0.55));
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
}

/* shared photo treatment: gradient ring, glow, vignette */
.portrait, .story-figure, .team-figure {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(25, 191, 166, 0.22),
    0 24px 60px -28px rgba(25, 191, 166, 0.38),
    0 18px 44px -24px rgba(7, 14, 32, 0.9);
}

.portrait::after, .story-figure::after, .team-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(165deg, rgba(25, 191, 166, 0.14), transparent 34%, transparent 62%, rgba(240, 199, 125, 0.10)),
    radial-gradient(130% 130% at 50% 18%, transparent 58%, rgba(7, 14, 32, 0.38));
  box-shadow: inset 0 0 0 1px rgba(233, 239, 249, 0.07);
}

/* ---------- story ---------- */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 14, 32, 0.42);
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.story { max-width: var(--read); }

.story-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: rgba(19, 33, 74, 0.4);
}

.story-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.split-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }

.split .section-head { margin-bottom: 1.25rem; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 1.1rem;
  align-items: start;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(19, 33, 74, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(233, 239, 249, 0.05);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.2s ease;
}

.faq:hover { border-color: rgba(25, 191, 166, 0.35); }

.faq h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.faq p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }

.video-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.team-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 30%;
}

.story h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.story p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 1.25rem;
}

.story p strong { color: var(--text); font-weight: 400; }

.pull {
  margin: 2rem 0 0;
  padding: 1.4rem 0 0.35rem 1.5rem;
  border-left: 2px solid var(--gold);
}

.pull p {
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.pull .attrib {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ---------- cards ---------- */

/* padding-block, not the shorthand: `padding: <v> 0` also zeroed the side
   padding .wrap sets, which ran every page's text into the screen edge on
   mobile (.wrap.section is the markup on all four content pages) */
.section { padding-block: clamp(2.75rem, 6vw, 4.25rem); }

.section-head { max-width: var(--read); margin: 0 0 2rem; }

/* h1 is included so each page can carry a real top-level heading for search
   without the hero's display size leaking into a section head */
.section-head h1,
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.section-head p { color: var(--text-2); margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}

/* deal page: the long buy box card beside a stacked column of the short ones,
   so every card keeps the same width and the two columns end up level */
.dealgrid { grid-template-columns: 1fr 1fr; align-items: start; }
.dealgrid .stack { display: grid; gap: 1.25rem; align-content: start; }
@media (max-width: 62rem) { .dealgrid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(25, 191, 166, 0.07), rgba(19, 33, 74, 0.34));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(233, 239, 249, 0.05);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.card { text-decoration: none; }
a.card:hover {
  border-color: rgba(25, 191, 166, 0.5);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(233, 239, 249, 0.05),
    0 14px 34px -16px rgba(25, 191, 166, 0.4);
}

.card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.card p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }

.card .go {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-bright);
  margin-top: auto;
  padding-top: 0.35rem;
}

/* ---------- spec list ---------- */

.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.spec li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.9rem;
  font-size: var(--fs-sm);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.spec li:last-child { border-bottom: 0; padding-bottom: 0; }

.spec dt, .spec .k {
  color: var(--gold);
  font-size: var(--fs-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding-top: 0.22rem;
}

.spec .v { color: var(--text-2); }

/* ---------- reasons ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(19, 33, 74, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(233, 239, 249, 0.05);
  padding: 1.1rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: border-color 0.2s ease;
}

.reasons li:hover { border-color: rgba(25, 191, 166, 0.35); }

.reasons .tick {
  color: var(--teal-bright);
  font-weight: 700;
  line-height: 1.5;
}

.reasons b { color: var(--text); font-weight: 600; display: block; margin-bottom: 0.2rem; font-size: var(--fs-body); }

/* ---------- video ---------- */

.video-card {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  background: linear-gradient(140deg, rgba(25, 191, 166, 0.12), rgba(19, 33, 74, 0.4));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.video-card:hover { border-color: var(--teal); transform: translateY(-2px); }

.play {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-content: center;
  color: #04121C;
  font-size: 1.05rem;
  padding-left: 0.2rem;
}

.video-card .vt { font-weight: 600; margin: 0 0 0.25rem; }
.video-card .vs { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }

/* clears the sticky topbar when a "watch the video" link scrolls here.
   The bar wraps to two rows on phones, so app.js measures it. */
.video-split { scroll-margin-top: calc(var(--topbar-h, 5rem) + 1rem); }

.video-status {
  margin: 0.85rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.video-status.is-done { color: var(--teal); }
.video-status.is-nudged { animation: status-nudge 1.2s ease; }

@keyframes status-nudge {
  0%, 100% { color: var(--text-2); }
  25%, 60% { color: var(--gold); }
}

/* Apply buttons until the role video has been watched. Still a real link
   (it takes you to the video), so it stays clickable, just visibly not the
   application yet. */
.btn.is-locked,
.btn.is-locked:hover {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line-2);
  border-style: dashed;
  box-shadow: none;
  transform: none;
}
.btn.is-locked:hover { color: var(--text); border-color: var(--teal); }

/* ---------- callout ---------- */

.callout {
  border: 1px solid rgba(240, 199, 125, 0.35);
  border-radius: 12px;
  background: rgba(240, 199, 125, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(240, 199, 125, 0.08),
    0 14px 40px -22px rgba(240, 199, 125, 0.35);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.callout h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; }
.callout p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); max-width: 38rem; }
.callout p a { color: var(--teal-bright); text-decoration: underline; text-underline-offset: 2px; }

.stack { display: grid; gap: 1.25rem; }

.steps { counter-reset: step; display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }

.steps li {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.9rem;
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-content: center;
  font-size: var(--fs-label);
  color: var(--teal-bright);
  font-variant-numeric: tabular-nums;
}

.steps b { color: var(--text); font-weight: 600; }

.checklist { margin: 0; padding-left: 1.15rem; color: var(--text-2); font-size: var(--fs-sm); display: grid; gap: 0.5rem; }
.checklist b { color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.75rem; flex-wrap: wrap; }

.social { display: flex; gap: 1.35rem; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--teal-bright); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .portrait { justify-self: center; }
  .story-layout { grid-template-columns: 1fr; }
  .split, .split-lead { grid-template-columns: 1fr; }
  .story-figure { max-width: 26rem; }
  .spec li { grid-template-columns: 1fr; gap: 0.25rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .topbar .wrap { min-height: 0; padding-top: 0.65rem; padding-bottom: 0.65rem; gap: 0.4rem 1rem; }
  .brand .sub { display: none; }
  .navlinks { gap: 0.1rem; }
  .navlinks a { padding: 0.45rem 0.7rem; }
}

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

/* ---------- quiz ---------- */

/* clears the sticky topbar when the result scrolls itself into view */
.quiz { max-width: var(--read); scroll-margin-top: 6rem; }

/* Belt and braces with the filter in app.js: quiz content is never left to a
   fade to become readable. Cheap insurance on the one page whose whole job is
   getting read. */
#quiz .rv { opacity: 1; transform: none; }

.quiz-panel { display: none; }
.quiz-panel.is-active { display: block; animation: rise 0.38s ease both; }
.quiz-panel:focus { outline: none; }

.quiz-note {
  color: var(--text-2);
  font-size: var(--fs-sm);
  margin: 0 0 1.75rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold-deep);
}

.quiz-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(125, 165, 215, 0.16);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.quiz-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  transition: width 0.35s ease;
}

.quiz-count {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.quiz-intro-body { display: grid; gap: 1rem; margin: 0 0 1.75rem; color: var(--text-2); }
.quiz-intro-body p { margin: 0; }

/* the "one last practical question" framing, set apart from the question
   itself so it reads as context rather than part of what is being asked */
.quiz-lead {
  color: var(--gold);
  font-size: var(--fs-sm);
  margin: 0 0 0.85rem;
}

.quiz-q { border: 0; padding: 0; margin: 0 0 1.5rem; }

.quiz-q legend {
  padding: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.quiz-options { display: grid; gap: 0.7rem; }

.quiz-option {
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(25, 191, 166, 0.05), rgba(19, 33, 74, 0.3));
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.quiz-option:hover {
  border-color: rgba(25, 191, 166, 0.55);
  transform: translateY(-1px);
}

.quiz-option:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.quiz-option.is-picked { border-color: var(--teal); }

.quiz-nav { display: flex; gap: 0.75rem; }

.quiz-flags {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.quiz-flags li {
  color: var(--text-2);
  font-size: var(--fs-sm);
  border-left: 2px solid var(--teal-deep);
  padding-left: 0.9rem;
}

.quiz-flags b { color: var(--text); font-weight: 600; }

/* the single thing to weigh on a "possible fit" result -- teal rather than a
   warning colour, because it is advice, not a red flag against the person */
.quiz-weigh {
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(25, 191, 166, 0.06), rgba(19, 33, 74, 0.3));
  padding: 1.35rem 1.5rem;
  margin: 0 0 1.5rem;
}

.quiz-weigh h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  text-wrap: pretty;
}

.quiz-weigh p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }

.quiz-alt { margin-top: 2.25rem; }

.quiz-restart { margin-top: 2rem; }

.btn-link {
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text-3);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover { color: var(--teal-bright); }

@media (max-width: 860px) {
  .quiz-option { padding: 0.9rem 1rem; }
}
