/* ═══════════════════════════════════════════════
   TUGANG MARKETING GAP TOOL — DESIGN SYSTEM
   Navy + Teal | Inter + Montserrat | Mobile-first
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0D3D56;
  --navy-dark: #082D40;
  --navy-soft: #1A526E;
  --teal: #1D9E75;
  --teal-deep: #0F6E56;
  --teal-mist: #E1F5EE;
  --teal-mist-2: #F0FAF6;
  --charcoal: #2C2C2A;
  --charcoal-soft: #5A5A57;
  --offwhite: #F5F5F4;
  --offwhite-2: #FAFAF8;
  --gold: #FAC775;
  --gold-deep: #C68B1F;
  --white: #FFFFFF;
  --line: rgba(13, 61, 86, 0.08);
  --line-2: rgba(13, 61, 86, 0.14);
  --shadow-sm: 0 1px 2px rgba(13, 61, 86, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 61, 86, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 61, 86, 0.12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "DM Sans", system-ui, sans-serif;
}

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

html, body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ─── App container ─── */
.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ─── Header ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 24px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-logo img {
  height: 60px;
  width: auto;
}
.topbar-tag {
  font-size: 11px;
  color: var(--charcoal-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--charcoal-soft);
  background: none;
  border: none;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.topbar-back:hover { background: var(--teal-mist); color: var(--teal-deep); }
.topbar-back.hidden { visibility: hidden; }

/* ─── Type ─── */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ═══ LANDING ═══ */
.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--teal-mist);
  color: var(--teal-deep);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.landing-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18);
}
.landing-h {
  font-size: clamp(32px, 8vw, 44px);
  margin-bottom: 18px;
}
.landing-h .accent {
  color: var(--teal);
  position: relative;
}
.landing-sub {
  font-size: 16px;
  color: var(--charcoal-soft);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 480px;
}
.landing-sub strong { color: var(--charcoal); font-weight: 600; }

.landing-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.landing-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--charcoal);
}
.landing-bullet-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.landing-bullet-text strong { color: var(--navy); font-weight: 600; }
.landing-bullet-text .muted { color: var(--charcoal-soft); display: block; font-size: 13px; margin-top: 2px; }

.cta-primary {
  width: 100%;
  padding: 18px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.cta-primary:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-primary:active { transform: translateY(0); }
.cta-primary .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.cta-primary:hover .arrow { transform: translateX(4px); }

.cta-teal {
  background: var(--teal);
}
.cta-teal:hover { background: var(--teal-deep); }

.cta-ghost {
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: var(--charcoal-soft);
  border: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: color 0.15s;
}
.cta-ghost:hover { color: var(--navy); }

.landing-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--charcoal-soft);
}
.landing-trust .dot {
  width: 4px; height: 4px; background: var(--charcoal-soft); border-radius: 50%; opacity: 0.5;
}

/* ═══ QUIZ ═══ */
.quiz-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.quiz-prog-bar {
  flex: 1;
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-prog-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.quiz-prog-count {
  font-size: 12px;
  color: var(--charcoal-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q-step {
  animation: fadeUp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.q-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
.q-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(22px, 5.5vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.q-hint {
  font-size: 14px;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ─── Option chips (single-select, tappable) ─── */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--charcoal);
  font-weight: 500;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
  position: relative;
}
.opt:hover {
  border-color: var(--teal);
  background: var(--teal-mist-2);
  transform: translateY(-1px);
}
.opt.sel {
  border-color: var(--teal);
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-weight: 600;
}
.opt-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--charcoal-soft);
}
.opt.sel .opt-icon {
  background: var(--teal);
  color: var(--white);
}
.opt-icon svg { width: 16px; height: 16px; }
.opt-label { flex: 1; }
.opt-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal-soft);
  margin-top: 2px;
}
.opt.sel .opt-sub { color: var(--teal-deep); opacity: 0.85; }
.opt-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.opt.sel .opt-check {
  background: var(--teal);
  border-color: var(--teal);
}
.opt.sel .opt-check::after {
  content: "";
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* multi-select uses square check */
.opt.multi .opt-check { border-radius: 5px; }
.opt.multi.sel .opt-check::after {
  width: 5px; height: 9px;
}

/* ─── Inline text input ─── */
.q-input {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: 16px;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.15s;
  margin-bottom: 14px;
}
.q-input:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--teal-mist-2);
}
.q-input::placeholder { color: rgba(44, 44, 42, 0.4); }

.q-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.q-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.q-input-group .q-input { margin-bottom: 0; }

/* ─── Nav row ─── */
.q-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.q-nav-back {
  font-size: 13px;
  color: var(--charcoal-soft);
  background: none;
  border: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--r-sm);
}
.q-nav-back:hover { color: var(--navy); background: var(--line); }
.q-nav-back:disabled { opacity: 0.3; cursor: not-allowed; }

.q-nav-next {
  flex: 1;
  padding: 16px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}
.q-nav-next:hover { background: var(--navy-dark); }
.q-nav-next:disabled { opacity: 0.4; cursor: not-allowed; }
.q-nav-next .arrow { transition: transform 0.2s; display: inline-block; }
.q-nav-next:not(:disabled):hover .arrow { transform: translateX(3px); }

/* ═══ INSIGHT INTERSTITIAL ═══ */
.insight {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.insight::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.35), transparent 70%);
  pointer-events: none;
}
.insight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: rgba(29, 158, 117, 0.22);
  color: var(--teal-mist);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
}
.insight-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(29, 158, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
}
.insight h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  position: relative;
  color: var(--white);
}
.insight h2 .hl { color: var(--teal); }
.insight-body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  margin-bottom: 22px;
}
.insight-stat {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 22px;
  position: relative;
}
.insight-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.insight-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.insight-next {
  width: 100%;
  padding: 15px 22px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: background 0.15s;
}
.insight-next:hover { background: var(--teal-deep); }

/* ═══ DEEP DIVE OFFER ═══ */
.divert {
  background: var(--white);
  border: 1.5px solid var(--teal-mist);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  text-align: left;
}
.divert h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(22px, 5.2vw, 26px);
  line-height: 1.25;
  margin-bottom: 12px;
}
.divert p {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.55;
  margin-bottom: 22px;
}
.divert-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.divert-stat {
  padding: 14px;
  background: var(--offwhite-2);
  border-radius: var(--r-md);
}
.divert-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--charcoal-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.divert-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.divert-stat-val .teal { color: var(--teal); }
.divert-actions { display: flex; flex-direction: column; gap: 8px; }

/* ═══ EMAIL GATE ═══ */
.gate {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.gate-preview {
  position: relative;
  margin-bottom: 24px;
  padding: 18px;
  background: linear-gradient(180deg, var(--teal-mist-2), var(--white));
  border-radius: var(--r-md);
  border: 1px solid var(--teal-mist);
}
.gate-preview-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.gate-score-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.gate-score-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.gate-score-of {
  font-size: 14px;
  color: var(--charcoal-soft);
}
.gate-score-tag {
  margin-left: auto;
  padding: 4px 10px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gate-score-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.gate-score-sub {
  font-size: 13px;
  color: var(--charcoal-soft);
}

.gate-blur-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.gate-blur-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  position: relative;
}
.gate-blur-row.blurred {
  color: transparent;
  text-shadow: 0 0 9px rgba(13, 61, 86, 0.55);
  user-select: none;
}
.gate-blur-row .lock {
  position: absolute;
  right: 12px;
  color: var(--charcoal-soft);
  opacity: 0.6;
}
.gate-blur-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.gate-blur-text {
  font-size: 13px;
  flex: 1;
}

.gate h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.gate-desc {
  font-size: 14px;
  color: var(--charcoal-soft);
  margin-bottom: 22px;
  line-height: 1.55;
}
.gate-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--charcoal-soft);
  justify-content: center;
}
.gate-trust .lock-ic {
  width: 12px;
  height: 12px;
  color: var(--teal);
}

/* ═══ GENERATION SCREEN ═══ */
.gen {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.gen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(29, 158, 117, 0.22), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(250, 199, 117, 0.10), transparent 50%);
  pointer-events: none;
}
.gen-content { position: relative; }
.gen-orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: radial-gradient(circle at 30% 30%, var(--teal-mist), var(--teal) 60%, var(--teal-deep) 100%);
  position: relative;
  animation: orbPulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(29, 158, 117, 0.4);
}
.gen-orb::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(29, 158, 117, 0.3);
  animation: orbRing 2.4s ease-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes orbRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.gen-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.gen-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.gen-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}
.gen-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
}
.gen-step.active {
  background: rgba(29, 158, 117, 0.15);
  border-color: rgba(29, 158, 117, 0.4);
  color: var(--white);
}
.gen-step.done {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.02);
}
.gen-step-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
}
.gen-step.active .gen-step-dot {
  border-color: var(--teal);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gen-step.done .gen-step-dot {
  border-color: var(--teal);
  background: var(--teal);
}
.gen-step.done .gen-step-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: white;
  clip-path: polygon(15% 50%, 40% 75%, 85% 25%, 80% 20%, 40% 65%, 20% 45%);
}

/* ═══ REPORT ═══ */
.report {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Score hero */
.report-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.report-hero::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.25), transparent 65%);
  pointer-events: none;
}
.report-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-mist);
  margin-bottom: 14px;
  position: relative;
}
.report-hero-grid {
  display: flex;
  gap: 22px;
  align-items: center;
  position: relative;
}
.report-ring {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  position: relative;
}
.report-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.report-ring-bg { stroke: rgba(255, 255, 255, 0.12); fill: none; stroke-width: 8; }
.report-ring-fg {
  stroke: var(--teal);
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.report-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.report-ring-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.report-ring-of {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}
.report-hero-text { flex: 1; }
.report-hero-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.report-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.report-hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* The ONE thing */
.report-one {
  background: var(--white);
  border: 1.5px solid var(--teal);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  box-shadow: 0 6px 30px rgba(29, 158, 117, 0.12);
}
.report-one-banner {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 4px 12px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report-one-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 8px;
  margin-top: 6px;
}
.report-one-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.report-one-why {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 16px;
}
.report-one-why strong { color: var(--navy); font-weight: 600; }
.report-one-impact {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--teal-mist);
  border-radius: var(--r-md);
}
.report-one-impact-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-one-impact-icon svg { width: 18px; height: 18px; }
.report-one-impact-text {
  font-size: 13px;
  color: var(--teal-deep);
  line-height: 1.45;
}
.report-one-impact-text strong { color: var(--navy); font-weight: 700; }

/* Generic card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
}
.card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* Gaps */
.gap-list { display: flex; flex-direction: column; gap: 14px; }
.gap-row { display: flex; gap: 14px; align-items: flex-start; }
.gap-rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-content { flex: 1; }
.gap-h {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.35;
}
.gap-p {
  font-size: 13.5px;
  color: var(--charcoal-soft);
  line-height: 1.55;
}

/* Wins */
.win-list { display: flex; flex-direction: column; gap: 10px; }
.win-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--offwhite-2);
  border-radius: var(--r-md);
  border-left: 3px solid var(--teal);
}
.win-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}
.win-icon svg { width: 12px; height: 12px; }
.win-text {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.5;
}
.win-text strong { color: var(--navy); font-weight: 600; }

/* Opportunity sizing */
.opp {
  background: linear-gradient(135deg, #FFFCF6 0%, #FFF6E5 100%);
  border: 1px solid #F5DDA8;
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
}
.opp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.opp-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 34px);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.opp-num .unit { font-size: 0.7em; color: var(--charcoal-soft); font-weight: 600; }
.opp-desc {
  font-size: 13.5px;
  color: var(--charcoal);
  line-height: 1.55;
}
.opp-desc em { color: var(--gold-deep); font-style: normal; font-weight: 600; }

/* CTA card */
.cta-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(29, 158, 117, 0.22), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(250, 199, 117, 0.08), transparent 50%);
  pointer-events: none;
}
.cta-card-content { position: relative; }
.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.cta-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
  line-height: 1.55;
}
.cta-card .by {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

/* Report footer actions */
.report-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.report-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  transition: all 0.15s;
}
.report-action:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-mist-2); }
.report-action svg { width: 16px; height: 16px; }

/* Tag chip in report */
.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.report-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--teal-mist);
  color: var(--teal-deep);
}

/* ═══ Tweaks Panel (vanilla) ═══ */
.tweaks-fab {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  box-shadow: 0 6px 20px rgba(13, 61, 86, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s;
}
.tweaks-fab.visible { display: flex; }
.tweaks-fab:hover { transform: scale(1.08); }

.tweaks-panel {
  position: fixed;
  bottom: 80px;
  right: 18px;
  z-index: 100;
  width: min(320px, calc(100vw - 36px));
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: none;
  max-height: 75vh;
  overflow-y: auto;
}
.tweaks-panel.open { display: block; }
.tweaks-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tweaks-h h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tweaks-h button {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--charcoal-soft);
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.tweaks-h button:hover { background: var(--line); }
.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tweak-seg {
  display: flex;
  gap: 4px;
  background: var(--offwhite);
  border-radius: var(--r-sm);
  padding: 3px;
}
.tweak-seg button {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal-soft);
  transition: all 0.15s;
}
.tweak-seg button.active {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ─── Utilities ─── */
.hidden { display: none !important; }
.muted { color: var(--charcoal-soft); }

/* Print: clean PDF view of report */
@media print {
  body { background: white; }
  .topbar, .tweaks-fab, .tweaks-panel, .cta-card, .report-actions { display: none !important; }
  .app { max-width: 720px; padding: 20px; }
  .report-hero { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .report-one, .opp { break-inside: avoid; box-shadow: none; }
}

/* Slightly larger viewport tweaks */
@media (min-width: 640px) {
  .app { padding: 32px 24px 60px; }
  .landing-h { font-size: 48px; }
  .opt { padding: 18px 20px; font-size: 16px; }
  .q-title { font-size: 30px; }
}
