/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green: #2D7A43;
  --green-light: #E6F3EB;
  --green-mid: #3D9660;
  --green-dark: #1E5930;
  --text: #111111;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #E2E2DC;
  --border-dark: #C4C4BC;
  --bg: #F5F5F2;
  --white: #ffffff;
  --amber: #7A5208;
  --amber-light: #FAF0DC;
  --purple-light: #EBEBFA;
  --purple: #4240A6;
  --red-light: #FAE8E8;
  --red: #882222;
  --radius: 3px;
  --font-sans: 'Montserrat', sans-serif;
  --font-highlight: 'Playfair Display', serif;
  --footer-safe: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

/* ── DARK THEME (screens 2–8; hero uses hardcoded colors, unaffected) ── */
html.theme-dark {
  --text: #E8E8E4;
  --text-muted: #A0A09A;
  --text-light: #7A7A74;
  --border: #2C2C28;
  --border-dark: #3E3E38;
  --bg: #121410;
  --white: #1A1C18;
  --green-light: #1A2E22;
  --amber-light: #2A2210;
  --purple-light: #1E1E2E;
  --red-light: #2E1616;
}

/* Hardcoded colors that don't follow tokens */
html.theme-dark .tension-banner.amber { color: #E8C98A; }
html.theme-dark .tension-banner.purple { color: #B9B7F0; }
html.theme-dark .dim-circle-track { stroke: rgba(255, 255, 255, 0.1); }
html.theme-dark .btn-next:disabled, html.theme-dark .btn-next.is-blocked { background: #33352F !important; color: rgba(255, 255, 255, 0.55); }
html.theme-dark .field-hint.is-error { color: #E39393; }
html.theme-dark input.is-invalid, html.theme-dark select.is-invalid { border-color: #C45C5C; }
html.theme-dark .field-error { color: #E39393; }
html.theme-dark input[aria-invalid="true"], html.theme-dark select[aria-invalid="true"] { border-color: #C45C5C; }
html.theme-dark .radio-group.has-error { border-color: #C45C5C; box-shadow: 0 0 0 1px rgba(196, 92, 92, 0.15); }
html.theme-dark .gdpr-check.has-error { outline-color: #C45C5C; }
html.theme-dark .form-validation-summary { background: #2E1616; color: #E8B4AC; border-left-color: #C45C5C; }
html.theme-dark .form-validation-jump:hover { color: #E39393; }
html.theme-dark .combobox-list { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
html.theme-dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23A0A09A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

html, body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── APP SHELL ── */
#app {
  height: 100%;
  position: relative;
}

.screen {
  display: none;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.active { display: flex; flex-direction: column; }

/* ── HERO SCREEN ── */
.screen--hero {
  background: #0C1E13 url('../../img/rnvbackg.png') center bottom / cover no-repeat;
  position: relative;
}

.screen--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 30, 19, 0.42);
  pointer-events: none;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 125% 36% at 50% 102%,
    transparent 0 50%,
    #000 68%
  );
  mask-image: radial-gradient(
    ellipse 125% 36% at 50% 102%,
    transparent 0 50%,
    #000 68%
  );
}

/* ── HERO CONTENT ── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(61,150,96,0.08);
  color: rgba(80,180,115,0.85);
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(61,150,96,0.18);
  border-radius: var(--radius);
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-family: var(--font-highlight);
  font-style: normal;
  font-weight: 600;
  font-size: 1.2em;
  letter-spacing: 0;
  color: var(--green-mid);
}
.hero .hero-sub {
  font-size: 1.06rem;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin: 0 auto 0.85rem;
  font-weight: 500;
  line-height: 1.55;
}
.hero p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.48);
  /* max-width: 490px; */
  margin: 0 auto 0.75rem;
  font-weight: 400;
  line-height: 1.78;
}
.social-proof { font-size: 0.68rem; color: rgba(255,255,255,0.28); margin-bottom: 2.25rem; }
.social-proof strong { color: rgba(255,255,255,0.52); font-weight: 500; }
.hero-btn {
  display: inline-block;
  background: var(--green); color: #fff;
  padding: 0.8rem 2.1rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.15s;
  border-radius: var(--radius);
}
.hero-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.hero-separator {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.12) 80%, transparent);
  margin: 2rem auto 0;
}
/* .hero-separator::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-mid);
  box-shadow: 0 0 14px 5px rgba(61,150,96,0.65), 0 0 4px 1px rgba(61,150,96,0.9);
} */

.hero-segment-intro {
  margin: 0 auto;
}
.hero .hero-segment-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  max-width: none;
}
.hero .hero-segment-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin: 0 auto;
  max-width: none;
  text-align: center;
  line-height: 1.5;
}

.hero-choices {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 580px;
  margin: 2.5rem auto 0;
}

.hero-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.35rem 1.25rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-sans);
  color: #fff;
  position: relative;
  isolation: isolate;
}
.hero-card:hover {
  border-color: rgba(61,150,96,0.45);
  background: rgba(61,150,96,0.05);
}

/* Animated electric-green glow on the BORDER only (card fill untouched).
   Two mirrored bright arcs (two conic-gradient layers) both start at the
   bottom-left corner: one travels up the left edge + across the top, the
   other along the bottom + up the right edge. They meet and rest wrapped
   around the top-right corner. Mouse-out reverses both, then fades out.
   inset:-1px pushes the ring out to the card's border-box so it sits
   exactly on the 1px border instead of inside it. */
@property --hc-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 225deg;
}
@property --hc-b {
  syntax: "<angle>";
  inherits: false;
  initial-value: 225deg;
}
.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  inset: -1px; /* align the ring with the card's 1px border */
  border-radius: inherit;
  padding: 1px; /* glow ring thickness */
  --hc-a: 225deg; /* clockwise arc, rests at bottom-left */
  --hc-b: 225deg; /* counter-clockwise arc, rests at bottom-left */
  background:
    conic-gradient(from var(--hc-a),
      #4dffa6 0deg, rgba(20,255,140,0) 22deg,
      transparent 338deg, rgba(20,255,140,0.55) 352deg, #4dffa6 360deg),
    conic-gradient(from var(--hc-b),
      #4dffa6 0deg, rgba(20,255,140,0) 22deg,
      transparent 338deg, rgba(20,255,140,0.55) 352deg, #4dffa6 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  /* leave: sweep both arcs back (1.1s), then fade out once they arrive */
  transition: --hc-a 1.1s ease, --hc-b 1.1s ease, opacity 0.45s ease 0.85s;
}
.hero-card::after {
  filter: blur(5px); /* soft electric halo */
}
.hero-card:hover::before,
.hero-card:focus-visible::before,
.hero-card:hover::after,
.hero-card:focus-visible::after {
  --hc-a: 405deg; /* clockwise to the top-right corner */
  --hc-b: 70deg;  /* counter-clockwise to the top-right corner */
  opacity: 1;
  /* enter: fade in immediately, then sweep up both sides */
  transition: --hc-a 1.1s ease, --hc-b 1.1s ease, opacity 0.25s ease 0s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-card::before,
  .hero-card::after { transition: opacity 0.3s ease; }
}

.hero-card-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(61,150,96,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}
.hero-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
.hero-card-desc {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.36);
  line-height: 1.6;
  max-width: 210px;
}
.hero-card-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(61,150,96,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid);
  font-size: 0.78rem;
  margin-top: 0.15rem;
  line-height: 1;
}

@media (max-width: 600px) {
  .hero-choices { flex-direction: column; gap: 0.75rem; }
  .hero-card-desc { max-width: none; }
}
.hero-partners {
  margin-top: 2.5rem;
  font-size: 0.6rem; color: rgba(255,255,255,0.22);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}
.hero-partners span {
  color: rgba(61,150,96,0.65);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.hero-partners span svg { flex-shrink: 0; width: 18px !important; height: 18px !important; }

/* ── SEGMENT VISIBILITY ── */
body.segment-imm .segment-corporate { display: none !important; }
body.segment-corporate .segment-imm-only { display: none !important; }

/* ── MARKETING SCREENS (WHY / CHECK) ── */
.screen--why,
.screen--check {
  background: var(--bg);
}

.screen-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.screen-top {
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.screen-back {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.screen-back:hover { color: var(--text); }

.screen-intro {
  flex-shrink: 0;
  margin-bottom: 1.75rem;
}

.screen-cta {
  flex-shrink: 0;
  margin-top: 2rem;
  padding-bottom: 1rem;
  text-align: center;
}

/* ── SHARED SECTION TYPOGRAPHY ── */
.section-label {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.75rem;
}
.screen-intro h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 0.65rem;
}
.screen-intro > p,
.screen-intro-lead {
  color: var(--text-muted);
  font-size: 0.88rem; line-height: 1.72;
}
.screen-intro-lead { margin-bottom: 0; }

.form-step-heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.form-purpose-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.62;
  background: var(--bg);
  border-left: 2px solid var(--green-mid);
  padding: 0.7rem 0.85rem;
  margin-bottom: 1.25rem;
}

.form-group-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.form-intro--step {
  margin-bottom: 1.25rem;
  max-width: 540px;
}

.gdpr-box-title {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ── FEATURE CARDS (shared why + check) ── */
.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  align-content: stretch;
  grid-auto-rows: 1fr;
}

.feature-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.feature-card {
  background: var(--white);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.feature-icon {
  color: var(--green);
  margin-bottom: 1rem;
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.feature-num {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  display: block;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--text);
}

.feature-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.csrd-badge {
  display: inline-block;
  background: var(--purple-light); color: var(--purple);
  font-size: 0.56rem; font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 2px; margin-top: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .feature-card { min-height: 180px; padding: 2rem 1.5rem; }
}

/* ── FORM SCREENS ── */
.screen--form {
  background: var(--bg);
  padding: 5.75rem 2rem 3rem; /* top accounts for fixed stepper bar */
}

.screen--result {
  background: var(--bg);
  padding: 2rem;
}

.screen--result .form-inner .screen-top {
  margin-bottom: 1rem;
}

.form-inner { max-width: 680px; width: 100%; margin: 0 auto; }
.form-inner .section-label { margin-bottom: 0.6rem; }
.form-inner h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em; margin-bottom: 0.6rem;
}
.form-intro {
  color: var(--text-muted); font-size: 0.84rem;
  margin-bottom: 1.5rem; line-height: 1.72;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
}

/* ── FIXED STEPPER BAR ── */
#form-stepper-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

#form-stepper-bar .stepper {
  max-width: 680px;
  margin: 0 auto;
}

body.on-form #form-stepper-bar { display: block; }

/* ── STEPPER ── */
.stepper {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--border);
}
body.segment-imm #form-stepper-bar .stepper { grid-template-columns: repeat(3, 1fr); }
.step-tab {
  padding: 0.75rem 0.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.25;
  color: var(--text-light); background: transparent;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s; cursor: default;
  border-right: 1px solid var(--border);
}
.step-tab:last-child { border-right: none; }
.step-tab span { display: block; font-size: 0.54rem; opacity: 0.6; margin-top: 2px; font-weight: 400; }
.step-tab.active { border-bottom-color: var(--green); color: var(--green); }
.step-tab.done { color: var(--green-dark); }

/* ── FORM STEP CONTENT ── */
.form-steps-content { padding: 2rem; }

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

.field-group { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.66rem; font-weight: 600; margin-bottom: 0.4rem;
  color: var(--text); letter-spacing: 0.06em; text-transform: uppercase;
}
label .opt { color: var(--text-light); font-weight: 400; text-transform: none; font-size: 0.64rem; letter-spacing: 0; }

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 0.85rem; font-family: var(--font-sans); font-weight: 400;
  background: var(--white); color: var(--text);
  transition: border-color 0.2s; appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--green); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #B42318; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.25rem;
}

.radio-group {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 0.4rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius); overflow: hidden;
}
.radio-label {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 400;
  cursor: pointer; transition: background 0.15s;
  background: var(--white); line-height: 1.5;
  text-transform: none; letter-spacing: 0;
  color: var(--text);
}
.radio-label:last-child { border-bottom: none; }
.radio-label:hover { background: var(--bg); }
.radio-label input { accent-color: var(--green); margin-top: 3px; flex-shrink: 0; }
.radio-label.selected { background: var(--green-light); }
.radio-group.has-error { border-color: #B42318; box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.08); }

.form-validation-summary {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid #B42318;
  background: #FFF1F0;
  color: #7A271A;
  font-size: 0.76rem;
  line-height: 1.55;
}
.form-validation-summary-title { font-weight: 600; }
.form-validation-summary ul { margin: 0.45rem 0 0; padding-left: 1.15rem; }
.form-validation-summary li { margin: 0.2rem 0; }
.form-validation-jump {
  background: none; border: none; padding: 0;
  font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; text-align: left;
}
.form-validation-jump:hover { color: #B42318; }

/* Inline "this question is missing" line under the control it belongs to. */
.field-error {
  font-size: 0.68rem;
  color: #a32d2d;
  margin-top: 0.4rem;
  line-height: 1.45;
}

/* ── JUDEȚ COMBOBOX ── */
.combobox { position: relative; }
.combobox-list {
  /* No top offset: the static position (right below the input) is where it belongs. */
  position: absolute; left: 0; right: 0; z-index: 40;
  margin: 0.25rem 0 0; padding: 0.25rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  max-height: 232px; overflow-y: auto;
}
.combobox-option {
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem; color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}
.combobox-option:hover, .combobox-option.is-active { background: var(--green-light); }

/* ── CHECKBOX (MULTI-SELECT) GROUP ── */
.checkbox-group {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 0.4rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius); overflow: hidden;
}
.check-label {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 400;
  cursor: pointer; transition: background 0.15s;
  background: var(--white); line-height: 1.5;
  text-transform: none; letter-spacing: 0;
  color: var(--text);
}
.check-label:last-child { border-bottom: none; }
.check-label:hover { background: var(--bg); }
.check-label input { accent-color: var(--green); margin-top: 3px; flex-shrink: 0; }
.check-label.selected { background: var(--green-light); }

.check-other-wrap { margin-top: 0.6rem; }
.check-other-wrap input[type="text"] { width: 100%; }

.question-hint {
  font-size: 0.7rem; color: var(--text-light);
  margin-top: 0.35rem; font-style: normal; line-height: 1.55;
}

.tension-banner {
  display: none;
  padding: 0.9rem 1rem; margin-bottom: 1.25rem;
  font-size: 0.78rem; animation: fadeIn 0.3s ease; line-height: 1.55;
  border-left: 3px solid;
}
.tension-banner strong {
  font-weight: 600; display: block; margin-bottom: 0.25rem;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.tension-banner.amber { background: var(--amber-light); border-color: var(--amber); color: #5C3A08; }
.tension-banner.purple { background: var(--purple-light); border-color: var(--purple); color: #2C2870; }
.tension-banner.green { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }

.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.btn-back {
  background: none; border: 1px solid var(--border-dark); color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  font-size: 0.62rem; font-family: var(--font-sans); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; border-radius: var(--radius);
}
.btn-back:hover { border-color: var(--text-muted); color: var(--text); }
.btn-next {
  background: var(--green); color: #fff; border: none;
  padding: 0.6rem 2rem;
  font-size: 0.62rem; font-family: var(--font-sans); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; border-radius: var(--radius);
}
.btn-next:hover:not(:disabled):not(.is-blocked) { background: var(--green-dark); }
/* .is-blocked mirrors the old :disabled look, but the button stays clickable so a click can
   point at the unanswered questions. Real :disabled is only the in-flight submit state. */
.btn-next:disabled, .btn-next.is-blocked {
  background: #c8c8c2 !important;
  color: rgba(255, 255, 255, 0.92);
  cursor: not-allowed;
  opacity: 0.85;
}
.btn-next--submit:not(:disabled):not(.is-blocked) {
  background: var(--green-dark);
}
.btn-next--submit:not(:disabled):not(.is-blocked):hover {
  background: #174a28;
}
.field-hint {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  line-height: 1.45;
}
.field-hint.is-error { color: #a32d2d; }
/* Typo suggestion on a common domain — advisory, not an error, so it must not read as a rejection. */
.field-hint.is-suggestion { color: #8a5a10; }
.field-hint-fix {
  font: inherit;
  color: var(--green-dark);
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0;
  cursor: pointer;
}
.field-hint-fix:hover { color: var(--green); }
input.is-invalid, select.is-invalid {
  border-color: #c45c5c;
}
input.is-invalid:focus, select.is-invalid:focus {
  border-color: #a32d2d;
}
.step-indicator { font-size: 0.6rem; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }

.gdpr-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.gdpr-box p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.62; margin-bottom: 0.75rem; }
.gdpr-check { display: flex; align-items: flex-start; gap: 0.5rem; }
.gdpr-check input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.gdpr-check label {
  font-size: 0.74rem; color: var(--text); cursor: pointer;
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.gdpr-link { color: var(--green); text-decoration: none; }
.gdpr-link[aria-disabled="true"] { color: var(--text-light); cursor: not-allowed; text-decoration: line-through; }
.gdpr-check.has-error { outline: 1px solid #B42318; outline-offset: 0.35rem; }

/* ── RESULT SCREEN ── */
#result-screen {
  animation: fadeIn 0.4s ease;
  padding: 2rem;
}
.result-header {
  text-align: center; padding-bottom: 2rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.result-check {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: #fff;
}
.result-header h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.4rem; margin-bottom: 0.35rem; }
.result-header p { font-size: 0.8rem; color: var(--text-muted); }

.fitness-score-block {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--bg); border: 1px solid var(--border);
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.score-circle {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--font-sans); font-weight: 700;
  border: 2px solid var(--green-mid);
}
/* Names the number for what it is. Outside the ring rather than inside it: at the size that fits
   in a 76px circle the words are unreadable, which defeats the point of qualifying the score. */
.score-block-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.score-circle .score-num { font-size: 1.7rem; line-height: 1; color: var(--green-dark); }
.score-circle .score-max { font-size: 0.56rem; color: var(--text-light); letter-spacing: 0.04em; }
/* Qualifies the number itself, so it sits directly under the score block rather than with the
   page's other fine print. */
.score-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: -0.75rem 0 1.5rem;
}
.score-info h4 { font-size: 0.84rem; font-weight: 600; margin-bottom: 0.3rem; }
.score-info p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; }
.score-badge { display: none; }
/* The server returns `category` as a short token ("intermediar"). Shown as a badge next to the
   longer `categoryText` sentence. */
.score-badge.is-visible {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Submit is no longer fire-and-forget: the response carries the score, so the visitor waits
   ~200–400ms on step 4 and needs to see that something is happening. */
.submit-status {
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.submit-status[hidden] { display: none; }
.submit-status.is-pending { border-color: #d6b56b; background: #fff8e7; color: #6b4d10; }
.submit-status.is-error { border-color: #e0a09a; background: #fff1f0; color: #7a271a; }
.submit-status button {
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}
.submit-status button[hidden] { display: none; }

.subscores { margin-bottom: 1.5rem; background: var(--bg); border: 1px solid var(--border); padding: 1.5rem; }
.subscores-title {
  font-size: 0.58rem; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.5rem;
  text-align: center;
}
.subscores-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.75rem 1rem;
  justify-items: center;
}
.dim-score {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 148px;
  width: 100%;
}
.dim-score:nth-child(4) { grid-column: 2 / 4; }
.dim-score:nth-child(5) { grid-column: 4 / 6; }
.dim-circle {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}
.dim-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}
.dim-circle-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 1.2;
}
.dim-circle-progress {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.dim-circle-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  pointer-events: none;
}
.dim-circle-pct {
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.dim-circle-max {
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}
.dim-score-title {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: 0.01em;
}
/* The per-dimension level word ("Bun", "Gap identificat") now comes from the server response. */
.dim-score-level {
  margin-top: 0.3rem;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-narrative {
  background: var(--bg);
  border-left: 3px solid var(--green);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  font-size: 0.84rem; line-height: 1.7; color: var(--text);
}

.delivery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}
.delivery-status[hidden] { display: none; }
.delivery-status.is-pending { border-color: #D6B56B; background: #FFF8E7; color: #6B4D10; }
.delivery-status.is-success { border-color: #87B596; background: var(--green-light); color: var(--green-dark); }
.delivery-status.is-error { border-color: #E0A09A; background: #FFF1F0; color: #7A271A; }
.delivery-status button {
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  padding: 0.4rem 0.65rem;
  font: 600 0.58rem var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.result-cta-block {
  background: #0C1E13;
  padding: 2rem; margin-bottom: 1.25rem; text-align: center;
}
.result-cta-block h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff;
}
.result-cta-block p { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.result-cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-primary-result {
  background: var(--green); color: #fff; border: none;
  padding: 0.65rem 1.75rem;
  font-size: 0.62rem; font-family: var(--font-sans);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius); transition: background 0.2s;
  width: 65%;
}
.btn-primary-result:hover { background: var(--green-dark); }
.btn-primary-result.is-loading {
  opacity: 0.85;
  pointer-events: none;
  position: relative;
  padding-left: 2.25rem;
}
.btn-primary-result.is-loading::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ctaSpin 0.7s linear infinite;
  transform: translateY(-50%);
}
.btn-primary-result.is-success {
  background: var(--green-dark);
  cursor: default;
}
@keyframes ctaSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}
.cta-confirm {
  font-size: 0.82rem;
  color: #E6F3EB;
  margin: 0.75rem 0 0;
  font-weight: 500;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-confirm.is-error { color: #FFD7D2; }
.result-cta-block.has-confirm {
  padding-bottom: 1.25rem;
}
.btn-secondary-result {
  background: none;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.65);
  padding: 0.65rem 1.75rem;
  font-size: 0.62rem; font-family: var(--font-sans);
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius); transition: all 0.2s;
  width: 65%;
}
.btn-secondary-result:hover { border-color: rgba(255,255,255,0.45); color: #fff; }
.cta-contact-form {
  width: 65%;
  margin: 1rem auto 0;
  text-align: left;
  animation: fadeIn 0.25s ease;
}
.cta-contact-form[hidden] { display: none; }
.cta-contact-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.68rem;
  font-weight: 500;
}
.cta-contact-row {
  display: flex;
  gap: 0.5rem;
}
.cta-contact-row input {
  min-width: 0;
  flex: 1;
  padding: 0.68rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: 400 0.72rem var(--font-sans);
  outline: none;
}
.cta-contact-row input::placeholder { color: rgba(255,255,255,0.34); }
.cta-contact-row input:focus { border-color: var(--green-mid); }
.cta-contact-row input.is-invalid { border-color: #E39393; }
.cta-contact-submit {
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 0.68rem 1rem;
  cursor: pointer;
  font: 600 0.58rem var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cta-contact-submit:hover { background: var(--green-dark); }
.cta-contact-submit:disabled { opacity: 0.65; cursor: wait; }
.cta-field-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.35rem;
  color: #FFD7D2;
  font-size: 0.64rem;
  line-height: 1.4;
}

.result-disclaimer {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.result-disclaimer strong {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.result-disclaimer p { margin: 0; }

/* ── SITE NOTE (bottom-right) ── */
.site-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 20rem;
  font-size: 0.58rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.5;
  pointer-events: none;
}

body.on-hero .site-note {
  color: rgba(255, 255, 255, 0.3);
}

.site-note-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 0.85rem;
  margin-top: 0.25rem;
  pointer-events: auto;
}
.site-note-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.8;
}
.site-note-links a:hover { opacity: 1; }
.site-note-links a[aria-disabled="true"] { border-bottom-style: dotted; cursor: default; }

.site-note-dev {
  background: none;
  border: none;
  color: inherit;
  font-size: 0.56rem;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 0.3rem;
  text-align: right;
  width: 100%;
  pointer-events: auto;
  opacity: 0.55;
}
.site-note-dev:hover { opacity: 1; }
.site-note-dev[hidden] { display: none; }

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

/* ── DARK MODE TOGGLE ── */
.theme-toggle {
  position: fixed;
  top: calc(0.7rem + env(safe-area-inset-top, 0px));
  right: calc(0.85rem + env(safe-area-inset-right, 0px));
  z-index: 110;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); }
.theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.theme-toggle .theme-icon { display: block; }
.theme-toggle .icon-sun { display: none; }
html.theme-dark .theme-toggle .icon-moon { display: none; }
html.theme-dark .theme-toggle .icon-sun { display: block; }

/* Hidden on the hero screen */
body.on-hero .theme-toggle { display: none; }

/* Keep stepper tabs clear of the toggle on form screens */
body.on-form #form-stepper-bar { padding-right: 3.25rem; }

@media (max-height: 900px) {
  .hero-partners { margin-top: 3.75rem; }
}

/* ═══════════════════════════════════════════
   MOBILE / RESPONSIVE
   Breakpoints: 640px (phones) · 520px (form nav) · 480px (stepper)
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  /* Switch to normal document scrolling so the footer can flow with content */
  :root { --footer-safe: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  html, body { overflow: auto; height: auto; }
  #app { height: auto; }
  .screen { height: auto; min-height: 100dvh; overflow: visible; }

  /* Footer flows at the end of content instead of overlapping it (non-hero pages) */
  .site-note {
    position: static;
    max-width: none; width: 100%;
    margin-top: 0;
    padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 0.56rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg);
    pointer-events: auto;
  }
  .site-note-links { justify-content: center; }
  .site-note-dev { text-align: center; }

  /* Hero: footer flows at the bottom, body goes dark to blend with the wallpaper */
  body.on-hero { background: #060c08; }
  body.on-hero .site-note {
    background: transparent;
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
  }
  body.on-hero .site-note-dev { color: rgba(255, 255, 255, 0.4); }

  /* Hero */
  .hero { padding: 3.5rem 1.25rem var(--footer-safe); justify-content: flex-start; }
  .hero-tag { margin-bottom: 1.5rem; font-size: 0.54rem; }
  .hero h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); margin-bottom: 1rem; }
  .hero .hero-sub { font-size: 0.98rem; }
  .hero p { font-size: 0.9rem; }
  .hero-choices { margin-top: 1.75rem; gap: 0.65rem; }
  .hero-card {
    padding: 1rem 1rem 0.9rem;
    background: rgba(10, 24, 15, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-color: rgba(255, 255, 255, 0.14);
  }
  .hero-card:hover { background: rgba(10, 24, 15, 0.68); }
  .hero-card-icon { width: 34px; height: 34px; }
  .hero-card-icon svg { width: 22px !important; height: 22px !important; }
  .hero-card-title { font-size: 0.9rem; }
  .hero-card-desc { font-size: 0.72rem; }
  .hero-partners { margin-top: 1.75rem; padding-top: 1.5rem; }
  #stars {
    -webkit-mask-image: radial-gradient(ellipse 140% 55% at 50% 105%, transparent 0 38%, #000 72%);
    mask-image: radial-gradient(ellipse 140% 55% at 50% 105%, transparent 0 38%, #000 72%);
  }

  /* Why / marketing screens */
  .screen-content { padding: 3rem 1.25rem var(--footer-safe); justify-content: flex-start; }
  .feature-grid { min-height: 0; flex-shrink: 0; grid-auto-rows: 1fr; align-content: stretch; }
  .feature-grid--4,
  .feature-grid--5 { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; max-height: none; height: 100%; padding: 1.5rem 1.4rem; }
  .feature-icon { margin-bottom: 1rem; }
  .screen-cta { margin-top: 1.5rem; }

  /* Form screens */
  .screen--form { padding: 5.25rem 1.25rem var(--footer-safe); }
  .form-steps-content { padding: 1.5rem 1.25rem; }

  /* Result screen */
  .screen--result { padding: 1.5rem 1.25rem var(--footer-safe); }
  #result-screen { padding: 1.5rem 1.25rem var(--footer-safe); }
  .fitness-score-block { flex-direction: column; text-align: center; gap: 1rem; }
  .subscores-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .dim-score,
  .dim-score:nth-child(4),
  .dim-score:nth-child(5) {
    grid-column: auto;
    max-width: none;
  }
  .dim-circle { width: 76px; height: 76px; }
  .result-cta-btns { flex-direction: column; }
  .btn-primary-result,
  .btn-secondary-result { width: 100%; }
  .cta-contact-form { width: 100%; }
  .cta-contact-row { flex-direction: column; }
  .cta-contact-submit { width: 100%; }
  .result-cta-block { padding: 1.5rem 1.25rem; }
}

/* Form navigation stacks on small phones */
@media (max-width: 520px) {
  .form-nav { flex-wrap: wrap; gap: 0.65rem; }
  .form-nav .step-indicator { order: -1; width: 100%; text-align: center; }
  .form-nav .btn-back,
  .form-nav .btn-next {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    padding: 0.65rem 0.6rem;
    font-size: 0.56rem;
    text-align: center;
  }
}

/* Stepper stays compact but keeps titles on the smallest screens */
@media (max-width: 480px) {
  .step-tab { padding: 0.5rem 0.2rem; font-size: 0.56rem; letter-spacing: 0.02em; }
  .step-tab span { font-size: 0.5rem; opacity: 0.65; margin-top: 1px; letter-spacing: 0.02em; }

  .theme-toggle {
    width: 36px;
    height: 36px;
    top: calc(0.55rem + env(safe-area-inset-top, 0px));
    right: calc(0.6rem + env(safe-area-inset-right, 0px));
  }
  .theme-toggle .theme-icon { width: 16px; height: 16px; }
  body.on-form #form-stepper-bar { padding-right: 2.75rem; }
}

/* Honeypot (#f-website). Positioned off-screen instead of display:none or visibility:hidden:
   some bots skip inputs whose computed style hides them, but fill anything laid out. Must stay
   out of the visual flow at every breakpoint — if it ever becomes visible, real users will type
   in it and their submissions get dropped as bot traffic. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cloudflare Turnstile host.
   Fixed and centred at the bottom so an interactive challenge is reachable from ANY screen: the
   questionnaire submits from screen 4, both CTA events from the result screen, and a challenge
   anchored inside either one would be invisible from the other.
   Empty and zero-height in the normal case — `appearance: interaction-only` renders nothing until
   Cloudflare wants an interaction, and :empty keeps the box out of the layout until it does. */
.turnstile-holder {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  max-width: calc(100vw - 32px);
}

.turnstile-holder:empty {
  display: none;
}

/* ── Cookie consent banner (assets/js/consent.js) ───────────────────────────
   Bottom-left so it never covers the bottom-right legal note. Both buttons share one style:
   refusing must be exactly as easy and as visible as accepting. */
.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 300;
  max-width: 24rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  font-family: var(--font-sans);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.cookie-banner-text a { color: var(--green-mid); }
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.cookie-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-btn:hover { background: var(--green-dark); }
.cookie-btn:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; }
.cookie-settings-link {
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0;
  color: inherit;
  font: inherit;
  opacity: 0.8;
  cursor: pointer;
}
.cookie-settings-link:hover { opacity: 1; }
.cookie-settings-link[hidden] { display: none; }

@media (max-width: 640px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}
