:root {
  --alabaster: #F9F8F6;
  --slate: #2D3748;
  --foundation: #2C4C7E;
  --terracotta: #D4795B;
  --terracotta-hover: #BD6448;
  --blush: #F0E5DE;
  --border: #EDF0F3;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; line-height: 1.6; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--sans); background: var(--alabaster); color: var(--slate);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
main { flex-grow: 1; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }

:focus-visible { outline: 3px solid var(--foundation); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .5rem 1.5rem; border: 0; cursor: pointer;
  background: var(--terracotta); color: #fff; font: 500 1rem var(--sans);
  border-radius: 6px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--terracotta-hover); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg {
  min-height: 54px; padding: 1rem 2.5rem; font-size: 1.111rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.35);
}
.btn-lg:hover { transform: translateY(-4px); }

/* Header */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 50;
  background: rgba(249,248,246,.92); box-shadow: 0 1px 2px rgba(0,0,0,.06);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding-top: .75rem; padding-bottom: .75rem; }
.logo img { height: 4rem; width: auto; }
.main-nav { display: none; gap: 2rem; align-items: center; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--terracotta); }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav .btn:hover { color: #fff; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #444 url("../images/senartis-hero.webp") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.35), rgba(0,0,0,.65));
}
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 56rem;
  padding: 0 1.5rem; margin: 0; display: grid; gap: 2rem;
}
.hero-shadow { text-shadow: 2px 4px 10px rgba(0,0,0,.7), 0 0 20px rgba(0,0,0,.5); }
.hero h1 {
  font: 700 clamp(2.5rem, min(8vw, 8vh), 4.667rem)/1.12 var(--serif); color: #fff;
}
.hero h1 em { color: #F4B49C; font-weight: 400; }
.hero p {
  color: #fff; font-weight: 500; max-width: 48rem; margin: 0 auto;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
.hero .btn-lg { margin-top: 1rem; justify-self: center; }

/* Sections */
.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2, .env-text h2, .waitlist h2 {
  font: 700 clamp(2.2rem, 5vw, 2.667rem)/1.2 var(--serif); color: var(--foundation); margin-bottom: 1.5rem;
}
.section-head p { font-size: 1.25rem; max-width: 48rem; margin: 0 auto; }

.pillars { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; padding: 2.5rem; border-radius: 16px; text-align: center;
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card h3 { font: 700 1.333rem var(--serif); color: var(--foundation); margin-bottom: 1rem; }
.icon-circle {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--alabaster);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.icon-circle svg { width: 2rem; height: 2rem; color: var(--terracotta); }

/* Environments */
.environments { background: #fff; border-top: 1px solid var(--border); }
.env-grid { display: grid; gap: 4rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .env-grid { grid-template-columns: 1fr 1fr; } }
.env-text { display: grid; gap: 2rem; order: 2; }
.env-text h2 { margin-bottom: 0; }
.env-text > p { font-size: 1.111rem; }
.env-image { order: 1; }
@media (min-width: 1024px) { .env-text { order: 1; } .env-image { order: 2; } }
.env-image img {
  width: 100%; height: auto; object-fit: cover; border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(44,76,126,.15), 0 8px 10px -6px rgba(44,76,126,.15);
}
.badge {
  justify-self: start; padding: .4rem 1rem; background: var(--blush); color: var(--terracotta);
  font-weight: 600; border-radius: 999px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.checklist { display: grid; gap: 1rem; font-size: 1.111rem; font-weight: 500; }
.checklist li { display: flex; align-items: center; }
.checklist svg { width: 1.5rem; height: 1.5rem; color: var(--terracotta); margin-right: .75rem; flex-shrink: 0; }

/* Waitlist */
.waitlist { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--border); text-align: center; }
.waitlist::before {
  content: ""; position: absolute; inset: -24px; z-index: -1;
  background:
    linear-gradient(rgba(249,248,246,.62), rgba(249,248,246,.62)),
    url("../images/join-waitlist-senartis.webp") center / cover no-repeat;
  filter: blur(6px);
}
.waitlist .container { max-width: 44rem; }
.waitlist > .container > p { font-size: 1.15rem; margin-bottom: 2.5rem; }
.waitlist-form {
  display: grid; gap: 1.25rem; text-align: left; background: #fff; padding: 2.5rem;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.waitlist-form label { display: grid; gap: .4rem; font-weight: 600; }
.waitlist-form input {
  min-height: 52px; padding: .6rem 1rem; font: inherit; color: var(--slate);
  border: 1.5px solid #CBD2D9; border-radius: 8px; background: #fff;
}
.waitlist-form input:focus { border-color: var(--foundation); outline: 3px solid rgba(44,76,126,.25); }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.ok { color: #276749; }
.form-status.err { color: #B83232; }

/* Footer */
.site-footer { background: var(--alabaster); border-top: 1px solid #E5E7EB; padding: 5rem 0 2rem; }
.footer-grid { display: grid; gap: 3rem; margin-bottom: 4rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 5fr 3fr; } }
.footer-about p { font-size: 1rem; opacity: .9; max-width: 24rem; margin-top: 1.5rem; }
.site-footer h4 { font: 700 1.111rem var(--serif); color: var(--foundation); margin-bottom: 1.5rem; }
.footer-links { display: grid; gap: 1rem; font-weight: 500; }
.footer-links a:hover, .contact a:hover, .legal a:hover { color: var(--terracotta); }
.contact { display: grid; gap: 1rem; opacity: .95; }
.contact li { display: flex; align-items: flex-start; }
.contact svg { width: 1.5rem; height: 1.5rem; color: var(--terracotta); margin-right: .75rem; flex-shrink: 0; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid #D1D5DB; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; gap: 1rem; font-size: .89rem; font-weight: 500;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.legal { display: flex; gap: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Legal pages */
.legal-page { max-width: 52rem; padding-top: 9rem; padding-bottom: 5rem; }
.legal-page h1 { font: 700 clamp(2.2rem, 5vw, 2.667rem)/1.2 var(--serif); color: var(--foundation); margin-bottom: .5rem; }
.legal-page .updated { opacity: .75; font-size: .89rem; margin-bottom: 2.5rem; }
.legal-page h2 { font: 700 1.444rem var(--serif); color: var(--foundation); margin: 2.5rem 0 .75rem; }
.legal-page p { margin-bottom: 1rem; }
.legal-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; display: grid; gap: .5rem; }
.legal-page a { color: var(--foundation); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--terracotta); }
.site-footer .footer-bottom:only-child { border-top: 0; padding-top: 0; }

.hp { position: absolute; left: -10000px; }

/* Placeholders (remove .ph marks once real copy is in) */
.ph { background: #FFF3B0; color: #5c4a00; padding: 0 .25em; border-radius: 3px; }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-weight: 500; font-size: .95rem; text-align: center; }
.trust-list li::before { content: "\2713"; color: var(--terracotta); font-weight: 700; margin-right: .5rem; }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* How it works */
.steps { display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.steps h3 { font: 700 1.222rem var(--serif); color: var(--foundation); margin: 1rem 0 .6rem; }
.step-num { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 600; }

/* At a glance */
.facts { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts > div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .4rem; }
.facts dd { margin: 0; font-weight: 500; font-size: 1.1rem; }
.fine-print { text-align: center; font-size: .89rem; opacity: .8; margin-top: 1.5rem; }
.fine-print a { text-decoration: underline; text-underline-offset: 3px; }

/* Story */
.story { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.story-inner { max-width: 48rem; display: grid; gap: 1.5rem; justify-items: center; }
.story h2 { font: 700 clamp(2rem, 4.5vw, 2.444rem)/1.25 var(--serif); color: var(--foundation); }
.story p { font-size: 1.15rem; }
.signoff { font-family: var(--serif); font-style: italic; }

/* FAQ */
.faq-list { max-width: 48rem; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 1.5rem; }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.1rem; color: var(--foundation); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--terracotta); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.25rem; }

/* Amenities */
.amenity-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .amenity-grid { grid-template-columns: repeat(3, 1fr); } }
.card.amenity { text-align: left; padding: 2rem; }
.card.amenity h3 { margin-bottom: 1rem; }
.amenity ul { display: grid; gap: .75rem; font-size: .95rem; }
.amenity li { position: relative; padding-left: 1.5rem; }
.amenity li::before { content: "\2713"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }
.inline-link { color: var(--foundation); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--terracotta); }

/* ===== Beautification pass ===== */

/* Fix: no default list numerals on steps */
.steps { list-style: none; padding: 0; }

/* Accent rule under section headings */
.section-head h2::after, .waitlist h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 1rem auto 0;
  background: var(--terracotta); border-radius: 2px;
}
.section-head h2 { margin-bottom: 1.25rem; }

/* Gentle hover lift on cards */
.card, .steps li { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .steps li:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -8px rgba(44,76,126,.18); }

/* Environments image: consistent crop, softer frame */
.env-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.env-image { position: relative; }
.env-image::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border-radius: 16px; background: var(--blush);
}
@media (max-width: 1023px) { .env-image::before { display: none; } }
.environments .container { position: relative; }

/* Founder story: quote mark */
.story-inner { position: relative; }
.story h2::before {
  content: "\201C"; display: block; font: 700 5rem/0.6 var(--serif);
  color: var(--terracotta); opacity: .55; margin-bottom: .5rem;
}
.signoff { position: relative; padding-top: 1.25rem; }
.signoff::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 2px; background: var(--terracotta); transform: translateX(-50%); }

/* FAQ polish */
.faq details { transition: box-shadow .2s, border-color .2s; }
.faq details:hover { border-color: #D9DEE5; box-shadow: 0 4px 14px rgba(44,76,126,.08); }
.faq details[open] { border-color: var(--terracotta); }
.faq summary:hover { color: var(--terracotta); }

.story .badge { justify-self: center; }

/* Smoother primary button */
.btn { box-shadow: 0 2px 6px rgba(189,100,72,.25); }
.btn:hover { box-shadow: 0 6px 16px rgba(189,100,72,.35); }

/* Scroll reveal (class added by JS; no-JS shows everything) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .steps li:hover { transform: none; }
}

.form-status:empty { display: none; }


/* ===== Quiz ===== */
.back-link { font-weight: 500; }
.back-link:hover { color: var(--terracotta); }
.quiz-body { background: var(--alabaster); }
.quiz-main { padding: 7.5rem 1.25rem 4rem; display: flex; flex-direction: column; align-items: center; }
.quiz-card { width: 100%; max-width: 44rem; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 32px -12px rgba(44,76,126,.18); overflow: hidden; }
.quiz-card > #quiz-stage { padding: 2rem 1.5rem 2.25rem; }
@media (min-width: 640px) { .quiz-card > #quiz-stage { padding: 3rem 3.25rem 3rem; } }
.quiz-progress { height: 6px; background: var(--border); }
.quiz-progress-bar { height: 100%; width: 0; background: var(--terracotta); transition: width .35s ease; }
.quiz-note { max-width: 44rem; text-align: center; font-size: .89rem; opacity: .8; margin-top: 1.5rem; }
.quiz-note a, .quiz-sub a { text-decoration: underline; text-underline-offset: 3px; }

.quiz-intro { text-align: center; display: grid; gap: 1.25rem; justify-items: center; }
.quiz-intro h1, .quiz-results h2, .quiz-q { font: 700 clamp(1.7rem, 4.5vw, 2.222rem)/1.25 var(--serif); color: var(--foundation); }
.quiz-intro h1 { font-size: clamp(2rem, 5.5vw, 2.667rem); }
.quiz-sub { font-size: .89rem; opacity: .75; }
.quiz-step { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .6rem; }
.quiz-hint { opacity: .8; margin: .5rem 0 1.5rem; }
.quiz-q:focus, .quiz-intro h1:focus, .quiz-results h2:focus { outline: none; }

.quiz-options { display: grid; gap: .75rem; }
.quiz-opt { display: block; cursor: pointer; }
.quiz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-opt span {
  display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: .8rem 1.1rem;
  border: 1.5px solid #D5DBE3; border-radius: 12px; font-weight: 500; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.quiz-opt span::before {
  content: ""; flex: 0 0 1.35rem; height: 1.35rem; border: 2px solid #AAB4C0; border-radius: 50%; background: #fff;
  transition: all .15s;
}
.quiz-opt input[type="checkbox"] + span::before { border-radius: 6px; }
.quiz-opt:hover span { border-color: var(--terracotta); background: #FFFBF9; }
.quiz-opt input:checked + span { border-color: var(--terracotta); background: #FDF3EE; box-shadow: 0 0 0 1px var(--terracotta) inset; }
.quiz-opt input:checked + span::before { border-color: var(--terracotta); background: var(--terracotta); box-shadow: 0 0 0 3px #fff inset; }
.quiz-opt input:focus-visible + span { outline: 3px solid var(--foundation); outline-offset: 2px; }
.quiz-opt.is-off span { opacity: .45; cursor: not-allowed; }

.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.quiz-actions .btn { margin-left: auto; }
.quiz-back { background: none; border: 0; padding: .5rem 0; font: 500 1rem var(--sans); color: var(--slate); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quiz-back:hover { color: var(--terracotta); }
#comment { width: 100%; padding: 1rem; font: inherit; color: var(--slate); border: 1.5px solid #CBD2D9; border-radius: 12px; resize: vertical; }
#comment:focus { border-color: var(--foundation); outline: 3px solid rgba(44,76,126,.25); }

.quiz-results { display: grid; gap: 1.5rem; }
.quiz-results .badge { justify-self: start; }
.result-list { display: grid; gap: 1rem; }
.result-card { background: var(--alabaster); border-left: 4px solid var(--terracotta); border-radius: 0 12px 12px 0; padding: 1.25rem 1.5rem; }
.result-tag { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .35rem; }
.result-cta { background: #F7EFEA; border-radius: 16px; padding: 1.75rem; display: grid; gap: 1rem; }
.result-cta h3 { font: 700 1.444rem var(--serif); color: var(--foundation); }
.quiz-form { background: transparent; border: 0; box-shadow: none; padding: 0; }
.quiz-results .quiz-back { justify-self: center; }

/* Home page quiz band */
.quiz-band { background: var(--foundation); color: #fff; }
.quiz-band-inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.quiz-band h2 { font: 700 clamp(1.7rem, 4vw, 2.222rem)/1.25 var(--serif); }
.quiz-band p { max-width: 40rem; opacity: .95; font-size: 1.1rem; }
.quiz-band .btn { background: #fff; color: var(--foundation); font-weight: 600; }
.quiz-band .btn:hover { background: var(--blush); color: var(--foundation); }

/* ===== Admin insights (noindex) ===== */
.admin-body { background: var(--alabaster); }
.admin { max-width: 62rem; padding-top: 2.5rem; padding-bottom: 4rem; display: grid; gap: 1.5rem; }
.admin-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.admin-head .logo img { height: 3.5rem; }
.admin-head h1 { font: 700 1.8rem var(--serif); color: var(--foundation); }
.admin-sub { opacity: .75; font-size: .95rem; }
.admin-signout { margin-left: auto; background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; color: var(--slate); }
.admin-login { display: grid; gap: 1rem; max-width: 26rem; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; }
.admin-login label { display: grid; gap: .4rem; font-weight: 600; }
.admin-login input { min-height: 48px; padding: .5rem 1rem; font: inherit; border: 1.5px solid #CBD2D9; border-radius: 8px; }
#dash { display: grid; gap: 1.25rem; }
.dstat { background: var(--foundation); color: #fff; border-radius: 16px; padding: 1.25rem 1.5rem; font-size: 1.05rem; }
.dstat span { font: 700 2.4rem var(--serif); margin-right: .5rem; }
.dgrid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .dgrid { grid-template-columns: 1fr 1fr; } }
.dcard { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.dcard h2 { font: 700 1.2rem var(--serif); color: var(--foundation); margin-bottom: .5rem; }
.dnote { font-size: .89rem; opacity: .75; margin-bottom: 1rem; }
.dempty { opacity: .6; }
.dbars { display: grid; gap: .65rem; }
.dbars li { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; gap: .75rem; align-items: center; font-size: .95rem; }
.dlabel b { display: inline-block; width: 1.4rem; color: var(--terracotta); }
.dtrack { height: 12px; background: #EEF1F4; border-radius: 6px; overflow: hidden; }
.dfill { display: block; height: 100%; background: var(--terracotta); border-radius: 6px; }
.dval { font-weight: 600; white-space: nowrap; }
.dval em { font-style: normal; font-weight: 400; opacity: .65; margin-left: .25rem; }
.dcomments { display: grid; gap: .9rem; }
.dcomments li { border-left: 3px solid var(--terracotta); padding-left: .9rem; }
.dcomments small { opacity: .6; }

.admin-login[hidden], #dash[hidden], .admin-signout[hidden] { display: none; }
.dgrid .dbars li { grid-template-columns: 1fr auto; row-gap: .3rem; }
.dgrid .dtrack { grid-column: 1 / -1; order: 3; }

/* ===== Hero quiz panel ===== */
.hero-content { gap: 1.5rem; }
.hero-quiz {
  justify-self: center; width: 100%; max-width: 40rem; margin-top: 1rem;
  display: grid; gap: 1rem; justify-items: center; text-align: center;
  padding: 1.5rem 1.5rem 1.4rem; border-radius: 18px; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.38);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
}
.hero-quiz-title { font: 600 1.15rem/1.4 var(--sans); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-quiz-title span { display: block; font-weight: 500; opacity: .95; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hero-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 999px; font-weight: 500; font-size: .95rem;
  background: rgba(0,0,0,.18); transition: background .2s, color .2s, transform .2s;
}
.hero-chips a:hover, .hero-chips a:focus-visible { background: #fff; color: var(--foundation); transform: translateY(-2px); }
.hero-quiz-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.4rem;
  background: #fff; color: var(--foundation); border-radius: 8px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .2s, background .2s;
}
.hero-quiz-link:hover { background: var(--blush); transform: translateY(-2px); }
.hero :focus-visible { outline-color: #fff; }

/* Hero spacing: clear the fixed header, let tall content grow the hero */
.hero { padding: 7rem 0 3rem; }
.hero-content { gap: 1.1rem; }
.hero-quiz { gap: .8rem; padding: 1.15rem 1.25rem 1.2rem; margin-top: .75rem; }
.hero-quiz-title { font-size: 1.08rem; }

/* ===== Quiz band redesign ===== */
.quiz-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(48rem 24rem at 96% 0%, rgba(212,121,91,.22), transparent 65%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, #1B3560 0%, #2C4C7E 55%, #3B62A0 100%);
}
/* layered wave lines, echoing the logo */
.quiz-band::before {
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23F4B49C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M-20 210 C 200 120, 360 290, 600 190 S 1000 90, 1240 170'/%3E%3Cpath d='M-20 245 C 220 160, 380 320, 620 225 S 1020 125, 1240 205'/%3E%3Cpath d='M-20 280 C 240 200, 400 350, 640 260 S 1040 160, 1240 240'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100% 70% no-repeat;
}
.quiz-band-inner {
  position: relative; display: grid; gap: 2.5rem; align-items: center; justify-items: stretch; text-align: left;
  padding-top: 4.5rem; padding-bottom: 4.5rem;
}
@media (min-width: 900px) { .quiz-band-inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.qb-text { display: grid; gap: 1.1rem; justify-items: start; }
.qb-eyebrow {
  padding: .35rem .9rem; border-radius: 999px; background: var(--terracotta); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.quiz-band h2 { font: 700 clamp(2.1rem, 5vw, 3.1rem)/1.15 var(--serif); }
.quiz-band h2 em { color: #F4B49C; font-weight: 400; }
.quiz-band .qb-text > p { max-width: 34rem; font-size: 1.15rem; opacity: .95; }
.quiz-band .btn.qb-btn {
  background: var(--terracotta); color: #fff; margin-top: .5rem; gap: .6rem;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.45), 0 0 0 4px rgba(212,121,91,.25);
}
.quiz-band .btn.qb-btn:hover { background: var(--terracotta-hover); color: #fff; }
.qb-sub { font-size: .9rem !important; opacity: .8 !important; }

/* decorative mini question card */
.qb-preview {
  background: #fff; color: var(--slate); border-radius: 20px; padding: 1.5rem; display: grid; gap: .7rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); transform: rotate(2deg); max-width: 26rem; justify-self: center; width: 100%;
}
@media (min-width: 900px) { .qb-preview { justify-self: end; } }
.qb-q-step { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.qb-q { font: 700 1.35rem/1.25 var(--serif); color: var(--foundation); margin-bottom: .3rem; }
.qb-opt { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1.5px solid #D5DBE3; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.qb-opt i { flex: 0 0 1.1rem; height: 1.1rem; border: 2px solid #AAB4C0; border-radius: 5px; }
.qb-opt.is-on { border-color: var(--terracotta); background: #FDF3EE; }
.qb-opt.is-on i { background: var(--terracotta); border-color: var(--terracotta); box-shadow: 0 0 0 2.5px #fff inset; }

/* ===== Hero v3: smaller paragraph + bold quiz card ===== */
.hero p.hero-shadow { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.55; max-width: 42rem; }
.hero-content { gap: 1.25rem; max-width: 52rem; }

.hero-quiz {
  position: relative; margin-top: 1.25rem; width: 100%; max-width: 44rem; justify-self: center;
  padding: 1.75rem 1.75rem 1.4rem; border-radius: 22px; color: var(--slate);
  background: #fff; border: 0; text-align: center; gap: .55rem; justify-items: center;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 0 0 5px rgba(255,255,255,.28), 0 32px 70px -18px rgba(0,0,0,.65);
}
.hq-pill {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: .4rem 1.1rem; border-radius: 999px; background: var(--terracotta); color: #fff;
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 16px -4px rgba(189,100,72,.7);
}
.hero-quiz-title { font: 700 clamp(1.4rem, 3vw, 1.85rem)/1.2 var(--serif); color: var(--foundation); text-shadow: none; margin-top: .5rem; }
.hq-sub { font-size: 1.05rem; font-weight: 500; opacity: .85; margin-bottom: .6rem; }
.hero-chips { gap: .6rem; margin-bottom: .6rem; }
.hero-chips a {
  background: #F5F6F8; color: var(--slate); border: 1.5px solid #D5DBE3; font-weight: 600; font-size: .95rem;
}
.hero-chips a:hover, .hero-chips a:focus-visible { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: translateY(-2px); }
.hero-quiz-link {
  width: 100%; justify-content: center; min-height: 56px; font-size: 1.1rem;
  background: var(--terracotta); color: #fff; border-radius: 10px;
  box-shadow: 0 10px 22px -6px rgba(189,100,72,.65);
  animation: hq-pulse 2.6s ease-in-out infinite;
}
.hero-quiz-link:hover { background: var(--terracotta-hover); color: #fff; animation: none; }
.hq-fine { font-size: .85rem; opacity: .7; }
.hero-quiz :focus-visible { outline-color: var(--foundation); }
@keyframes hq-pulse {
  0%, 100% { box-shadow: 0 10px 22px -6px rgba(189,100,72,.65), 0 0 0 0 rgba(212,121,91,.45); }
  50%      { box-shadow: 0 10px 22px -6px rgba(189,100,72,.65), 0 0 0 10px rgba(212,121,91,0); }
}
@media (prefers-reduced-motion: reduce) { .hero-quiz-link { animation: none; } }

/* Specificity fix: the generic `.hero p` (white) rule must not touch text inside the white card */
.hero .hero-quiz .hero-quiz-title {
  font: 700 clamp(1.4rem, 3vw, 1.85rem)/1.2 var(--serif); color: var(--foundation);
  text-shadow: none; margin: .5rem 0 0; max-width: none;
}
.hero .hero-quiz .hq-sub { font-size: 1.05rem; font-weight: 500; color: var(--slate); text-shadow: none; opacity: .9; margin: 0 0 .6rem; max-width: none; }
.hero .hero-quiz .hq-fine { font-size: .85rem; font-weight: 500; color: var(--slate); text-shadow: none; opacity: .7; margin: 0; max-width: none; }
@media (max-width: 480px) {
  .hero-quiz { padding: 1.6rem 1.1rem 1.2rem; }
  .hero-quiz-link { font-size: 1rem; gap: .4rem; padding-left: .75rem; padding-right: .75rem; }
}
