:root {
  color-scheme: dark;

  /* Type */
  --isn-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Brand color */
  --isn-bg-950: #061e27;
  --isn-bg-900: #082b37;
  --isn-bg-850: #0b3949;
  --isn-bg-800: #0c3d4e;
  --isn-teal-soft: #4a90a0;
  --isn-mist: #ddeff5;
  --isn-amber: #f5a623;
  --isn-orange: #ff7a00;
  --isn-white: #ffffff;

  /* Text */
  --isn-text: rgba(255,255,255,0.96);
  --isn-text-muted: rgba(255,255,255,0.78);
  --isn-text-soft: rgba(221,239,245,0.72);
  --isn-text-faint: rgba(255,255,255,0.58);
  --isn-text-danger: #ffd2d2;

  /* Light-context text for widgets embedded on bright pages */
  --isn-light-text: #073342;
  --isn-light-muted: rgba(7,51,66,0.72);

  /* Surfaces */
  --isn-page-bg: linear-gradient(180deg, #0c3d4e 0%, #0b3949 38%, #082b37 68%, #061e27 100%);
  --isn-glass-bg: linear-gradient(145deg, rgba(12,61,78,0.45), rgba(12,61,78,0.25));
  --isn-glass-bg-strong: linear-gradient(145deg, rgba(12,61,78,0.88), rgba(8,43,55,0.84));
  --isn-glass-bg-soft: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  --isn-control-bg: rgba(255,255,255,0.10);
  --isn-control-bg-hover: rgba(255,255,255,0.16);
  --isn-field-bg: rgba(0,0,0,0.22);
  --isn-tile-bg: rgba(0,0,0,0.18);

  /* Borders */
  --isn-border: rgba(255,255,255,0.12);
  --isn-border-soft: rgba(255,255,255,0.08);
  --isn-border-strong: rgba(255,255,255,0.18);
  --isn-border-accent: rgba(245,166,35,0.34);

  /* Radii */
  --isn-radius-control: 12px;
  --isn-radius-tile: 14px;
  --isn-radius-media: 18px;
  --isn-radius-panel: 22px;
  --isn-radius-feature: 26px;
  --isn-radius-pill: 999px;

  /* Shadows */
  --isn-shadow-control-glow: 0 0 18px rgba(245,166,35,0.28);
  --isn-shadow-card: 0 18px 60px rgba(0,0,0,0.35);
  --isn-shadow-card-heavy: 0 20px 80px rgba(0,0,0,0.55);
  --isn-shadow-modal: 0 30px 100px rgba(0,0,0,0.70);
  --isn-shadow-media: 0 10px 30px rgba(0,0,0,0.22);
  --isn-shadow-media-hover: 0 16px 40px rgba(0,0,0,0.32);
  --isn-shadow-amber: 0 0 22px rgba(245,166,35,0.34);

  /* Motion */
  --isn-duration-fast: 180ms;
  --isn-duration-medium: 220ms;
  --isn-duration-slow: 620ms;
  --isn-ease-standard: ease;
  --isn-ease-enter: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Focus */
  --isn-focus-ring: 2px solid rgba(245,166,35,0.72);
  --isn-focus-offset: 4px;
}

html { margin: 0; padding: 0; }

.isn-app {
  margin: 0;
  min-height: 100vh;
  background: var(--isn-page-bg);
  background-repeat: no-repeat;
  color: var(--isn-text);
  font-family: var(--isn-font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

.isn-app *,
.isn-app *::before,
.isn-app *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { display: block; flex: none; }

.isn-content {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 40px;
}

.isn-panel {
  position: relative;
  border-radius: var(--isn-radius-feature);
  padding: 36px 40px 28px;
  background: var(--isn-glass-bg-soft);
  border: 1px solid var(--isn-border);
  box-shadow: var(--isn-shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.quiz-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.quiz-header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--isn-border);
}
.isn-eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--isn-text-soft);
}
.brand-name { color: var(--isn-amber); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 8px; }
h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; }
.edition-label {
  padding: 5px 9px;
  border: 1px solid var(--isn-border-strong);
  border-radius: var(--isn-radius-pill);
  color: var(--isn-text-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}
.quiz-intro { margin: 0; color: var(--isn-text-muted); font-size: 14px; }
.quiz-progress { padding: 24px 0 28px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.time-note { color: var(--isn-text-soft); font-size: 12px; }
.progress-track { height: 4px; overflow: hidden; background: var(--isn-control-bg); border-radius: var(--isn-radius-pill); }
.progress-track > span {
  display: block;
  height: 100%;
  width: 9.09%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--isn-amber), var(--isn-orange));
  transition: width var(--isn-duration-medium) var(--isn-ease-standard);
}
.step-panel { min-height: 390px; }
h2 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 800; overflow-wrap: break-word; }
h2:focus { outline: none; }
.step-helper { margin: 10px 0 22px; color: var(--isn-text-muted); font-size: 14px; }
.answer-options { display: grid; gap: 10px; margin: 0; padding: 0; min-width: 0; border: 0; }
.answer-option { display: block; position: relative; cursor: pointer; }
.answer-option input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.answer-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 13px 16px;
  background: var(--isn-tile-bg);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius-tile);
  transition: background var(--isn-duration-fast) var(--isn-ease-standard), border-color var(--isn-duration-fast) var(--isn-ease-standard);
}
.answer-option:hover .answer-content { background: var(--isn-control-bg); border-color: var(--isn-border-strong); }
.answer-letter {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--isn-text-soft);
  border: 1px solid var(--isn-border-strong);
  border-radius: var(--isn-radius-pill);
}
.answer-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; overflow-wrap: break-word; }
.answer-indicator { width: 20px; flex: 0 0 20px; color: var(--isn-amber); font-size: 18px; font-weight: 800; visibility: hidden; }
.answer-option input:checked + .answer-content { border-color: var(--isn-amber); background: var(--isn-control-bg-hover); }
.answer-option input:checked + .answer-content .answer-letter { color: var(--isn-bg-950); border-color: var(--isn-amber); background: var(--isn-amber); }
.answer-option input:checked + .answer-content .answer-indicator { visibility: visible; }
.answer-option input:focus-visible + .answer-content { outline: var(--isn-focus-ring); outline-offset: var(--isn-focus-offset); }
.error-message { margin: 10px 0 0; min-height: 22px; color: var(--isn-text-danger); font-size: 13px; line-height: 1.5; }

.quiz-navigation { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding-top: 22px; border-top: 1px solid var(--isn-border); }
.navigation-note { flex: 1; text-align: center; color: var(--isn-text-soft); font-size: 12px; }
.isn-btn-primary,
.isn-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  min-width: 110px;
  min-height: 46px;
  border-radius: var(--isn-radius-pill);
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.3;
  transition: transform var(--isn-duration-fast) var(--isn-ease-standard), background var(--isn-duration-fast) var(--isn-ease-standard), filter var(--isn-duration-fast) var(--isn-ease-standard), box-shadow var(--isn-duration-fast) var(--isn-ease-standard);
}
.isn-btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--isn-amber), var(--isn-orange));
  /* Deep teal keeps normal-size button text readable over both amber stops. */
  color: var(--isn-bg-950);
  box-shadow: var(--isn-shadow-control-glow);
}
.isn-btn-primary:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); box-shadow: var(--isn-shadow-amber); }
.isn-btn-secondary { background: var(--isn-control-bg); border: 1px solid var(--isn-border-strong); color: var(--isn-white); font-weight: 700; }
.isn-btn-secondary:hover:not(:disabled) { transform: translateY(-2px); background: var(--isn-control-bg-hover); }
.isn-btn-primary svg, .isn-btn-secondary svg { width: 18px; height: 18px; }
.isn-btn-primary:focus-visible,
.isn-btn-secondary:focus-visible { outline: var(--isn-focus-ring); outline-offset: var(--isn-focus-offset); }
button:disabled { cursor: not-allowed; opacity: 0.5; box-shadow: none; }

.contact-intro { max-width: 570px; margin-bottom: 14px; }
.required-note { margin: 0 0 20px; font-size: 12px; color: var(--isn-text-soft); }
.contact-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
.contact-wide { grid-column: 1 / -1; }
.isn-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.isn-field > label { color: var(--isn-mist); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.isn-input { min-height: 48px; width: 100%; background: var(--isn-field-bg); border: 1px solid var(--isn-border-strong); color: var(--isn-white); padding: 11px 13px; border-radius: var(--isn-radius-control); outline: none; font-size: 16px; }
.isn-input:hover { border-color: var(--isn-border-accent); }
.isn-input:focus { border-color: var(--isn-amber); outline: var(--isn-focus-ring); outline-offset: 3px; }
.isn-input[aria-invalid="true"] { border-color: var(--isn-text-danger); }
.isn-input:read-only { opacity: 0.78; }
.field-error, .field-hint { margin: 0; font-size: 12px; line-height: 1.5; }
.field-error { color: var(--isn-text-danger); }
.field-error:empty { display: none; }
.field-hint { color: var(--isn-text-soft); }
.contact-note { margin: 20px 0 0; color: var(--isn-text-muted); font-size: 12px; }
.sms-choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: var(--isn-text-muted); font-size: 12px; line-height: 1.6; cursor: pointer; }
.sms-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--isn-amber); }
.sms-choice input:focus-visible, .sms-policies a:focus-visible { outline: var(--isn-focus-ring); outline-offset: 3px; }
.sms-choice input:disabled { cursor: not-allowed; }
.sms-policies { margin: 4px 0 0 28px; color: var(--isn-text-soft); font-size: 12px; }
.sms-policies a { color: inherit; }
.measurement-choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: var(--isn-text-muted); font-size: 12px; line-height: 1.6; cursor: pointer; }
.measurement-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--isn-amber); }
.measurement-choice input:focus-visible { outline: var(--isn-focus-ring); outline-offset: 3px; }
.measurement-privacy { display: inline-block; margin: 4px 0 0 28px; color: var(--isn-text-soft); font-size: 12px; }
.website-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.preview-notice { margin: 20px 0 0; padding: 12px 14px; color: var(--isn-text-muted); background: var(--isn-tile-bg); border: 1px solid var(--isn-border-accent); border-radius: var(--isn-radius-control); font-size: 12px; }
.preview-notice strong { color: var(--isn-amber); }

.success-panel { min-height: 390px; padding: 48px 16px 24px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; color: var(--isn-amber); border: 1px solid var(--isn-border-accent); background: var(--isn-control-bg); border-radius: var(--isn-radius-pill); }
.success-icon svg { width: 32px; height: 32px; }
.success-panel h2 { margin-top: 12px; font-size: 30px; }
.success-panel > p:not(.isn-eyebrow) { max-width: 430px; margin: 16px auto 0; color: var(--isn-text-muted); }
.success-panel > p.success-detail { font-size: 13px; color: var(--isn-text-soft); }
.completion-offer { max-width: 540px; margin: 32px auto 0; padding-top: 28px; border-top: 1px solid var(--isn-border); }
.completion-offer h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 800; overflow-wrap: break-word; }
.completion-offer p { margin: 14px 0 0; color: var(--isn-text-muted); overflow-wrap: break-word; }
.completion-offer .completion-offer-bridge { font-size: 14px; }
.completion-offer-cta { max-width: 100%; margin-top: 22px; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: break-word; }
.completion-offer .completion-offer-terms { margin-top: 12px; font-size: 13px; color: var(--isn-text-muted); }
.loading-state, .load-error { min-height: 390px; padding: 32px 0; }
.loading-state p, .load-error p { color: var(--isn-text-muted); }
.loading-line { height: 16px; margin-top: 18px; border-radius: var(--isn-radius-pill); background: var(--isn-control-bg); }
.loading-line.short { width: 65%; }
.load-error .isn-btn-secondary { margin-top: 18px; }
.noscript-message { color: var(--isn-text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .isn-content { padding: 28px 18px; }
  .isn-panel { padding: 28px; border-radius: var(--isn-radius-panel); }
}

@media (max-width: 600px) {
  .title-row { gap: 12px; }
  .edition-label { font-size: 11px; }
  .navigation-note { display: none; }
  .quiz-navigation { justify-content: space-between; }
  .step-panel { min-height: 0; }
  h2 { font-size: 22px; }
  .answer-content { padding: 13px 12px; gap: 10px; }
  .answer-indicator { width: 16px; flex-basis: 16px; }
}

@media (max-width: 480px) {
  .isn-content { padding: 22px 12px; }
  .isn-panel { padding: 24px 20px; }
  h1 { font-size: 26px; }
  .quiz-header { padding-bottom: 22px; }
  .quiz-intro { font-size: 13px; }
  .quiz-progress { padding: 22px 0 24px; }
  .time-note { font-size: 11px; }
  .progress-meta .isn-eyebrow { font-size: 11px; }
  .step-helper { font-size: 13px; }
  .answer-text { font-size: 14px; }
  .answer-letter { width: 26px; height: 26px; flex-basis: 26px; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .success-panel { padding: 38px 0 16px; }
  .success-panel h2 { font-size: 26px; }
  .completion-offer { margin-top: 28px; padding-top: 24px; }
  .completion-offer h3 { font-size: 20px; }
  .completion-offer-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .isn-app *, .isn-app *::before, .isn-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
