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

:root {
  --wa-teal:       #0F766E;
  --wa-green:      #14B8A6;
  --wa-light:      #14B8A6;
  --wa-bubble-out: #DFF3C7;
  --wa-bubble-in:  #ffffff;
  --wa-bg:         #F6F0E7;
  --wa-header:     #0F766E;
  --wa-panel:      #f0f9ff;
  --wa-border:     #e2e8f0;
  --text:          #1E293B;
  --muted:         #64748B;
  --radius:        16px;
  --shadow:        0 1px 3px rgba(15,118,110,.08), 0 4px 12px rgba(15,118,110,.06);
}

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--wa-bg);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3, .hero h1 {
  font-family: 'Sora', 'Inter', sans-serif;
}

/* ── ChatWrapped subtle dot pattern ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #F6F0E7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%230F766E' opacity='.08'/%3E%3C/svg%3E");
}

/* ── Upload screen ─────────────────────────────────────────────────────────── */
#upload-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  padding-top: 52px;
  position: relative;
  background: var(--wa-bg);
}

/* ── Full-width hero section ─────────────────────────────────────────────── */
.hero-section {
  width: 100%;
  background: linear-gradient(135deg, #064e46 0%, #0F766E 35%, #14B8A6 70%, #5eead4 100%);
  padding-bottom: 3rem;
}

/* Live ticker */
.live-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  padding: .45rem 1rem;
  width: 100%;
}

/* Two-column hero grid */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Left column ─────────────────────────────────────────────────────────── */
.hero-left { color: #fff; }

.hero-viral-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}

.hero-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.1rem;
  letter-spacing: -.02em;
}

.hero-headline em {
  font-style: italic;
  color: #a7f3d0;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 460px;
}

.hero-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 2rem;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
}

.hc-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ── Hero trial banner ──────────────────────────────────────────────────────── */
.hero-trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: .85rem 1rem .85rem 1rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.hero-trial-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-trial-badge {
  background: linear-gradient(135deg,#f59e0b,#d97706);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  padding: .25rem .6rem;
  border-radius: 20px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.hero-trial-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.hero-trial-text strong {
  color: #fff;
  font-size: .9rem;
}
.hero-trial-text span {
  color: rgba(255,255,255,.7);
  font-size: .75rem;
}
.hero-trial-btn {
  background: #fff;
  color: var(--wa-teal);
  border: none;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.hero-trial-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-stars { color: #FCD34D; font-size: 1.1rem; letter-spacing: .05em; }
.hero-proof-text { font-size: .85rem; color: rgba(255,255,255,.85); }
.hero-proof-text strong { color: #fff; }

.hero-avatars {
  display: flex;
  margin-left: .25rem;
}

.ha {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.4);
  margin-left: -8px;
}
.ha:first-child { margin-left: 0; }

/* ── Right column: WA widget ─────────────────────────────────────────────── */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.wa-widget {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.export-hint {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  padding: .65rem 1rem;
  border-radius: 10px;
  line-height: 1.5;
}
.export-hint strong { color: #fff; }

/* ── WhatsApp Direct CTA ───────────────────────────────────────────────────── */
.wa-direct-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
}
.wa-direct-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: .75rem;
  color: rgba(255,255,255,.55);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wa-direct-divider::before,
.wa-direct-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.2);
}
.wa-direct-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: .75rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: transform .15s, box-shadow .15s;
  width: 100%;
  justify-content: center;
}
.wa-direct-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
}
.wa-direct-num {
  font-size: .78rem;
  font-weight: 400;
  opacity: .85;
  margin-left: .1rem;
}
.wa-direct-hint {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}

/* Legacy .hero — no longer used for main layout, keep for fallback */
.hero {
  max-width: 580px;
  width: 100%;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: linear-gradient(160deg, #0F766E 0%, #14B8A6 60%, #a7f3d0 100%);
  border-radius: 0 0 32px 32px;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* Logo bubble */
.logo {
  width: 80px; height: 80px;
  border-radius: 24px;
  background: rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(15,118,110,.3);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

h1 em {
  font-style: italic;
  color: #DFF3C7;
}

.subtitle {
  color: rgba(255,255,255,.85);
  margin-bottom: 1.75rem;
  line-height: 1.6;
  font-size: .95rem;
}

/* Drop zone */
.drop-zone {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  cursor: pointer;
  position: relative;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(15,118,110,.2);
  border: 2px dashed rgba(15,118,110,.3);
  transition: background .15s, border-color .15s;
}
.drop-zone::before {
  content: none;
}
.drop-zone:hover, .drop-zone.dragover {
  background: #f0fdf9;
  border-color: var(--wa-green);
}

.drop-icon { font-size: 2.25rem; margin-bottom: .6rem; }
.drop-zone p { color: var(--text); margin-bottom: .25rem; font-size: .95rem; }
.drop-zone .hint { font-size: .82rem; color: var(--muted); }
.drop-zone code {
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .78rem;
}

/* How-to card */
.how-to {
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(15,118,110,.15);
  position: relative;
  margin-left: 0;
}
.how-to::before {
  content: none;
}
.how-to h3 {
  font-size: .8rem;
  color: var(--wa-teal);
  font-weight: 700;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.how-to ol { padding-left: 1.1rem; }
.how-to li {
  font-size: .875rem;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.5;
}

.loading-bar {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  color: var(--muted);
}
.loading-bar-inner {
  width: 200px; height: 4px;
  background: var(--wa-border);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.loading-bar-inner::after {
  content: '';
  position: absolute;
  left: -60%; width: 60%; height: 100%;
  background: var(--wa-light);
  border-radius: 99px;
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide { to { left: 110%; } }

/* ── Results screen ────────────────────────────────────────────────────────── */
header {
  background: var(--wa-header);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-sm {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Tab nav ─────────────────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.65);
  padding: .6rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  letter-spacing: .01em;
}
.tab-btn:hover { color: rgba(255,255,255,.9); }
.tab-btn.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* ── Tab panels ──────────────────────────────────────────────────────────────── */
.tab-panel {
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Overview top row ────────────────────────────────────────────────────────── */
.overview-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: .75rem;
  margin-bottom: 0;
}
.health-card-compact { }
.wide-flex canvas { max-height: 180px; height: 180px; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

/* Cards */
.card {
  background: var(--wa-bubble-in);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

/* Stat cards */
.stat-cards {
  display: flex;
  gap: .75rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem .75rem;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--wa-border);
}
.stat-icon { font-size: 1.6rem; margin-bottom: .35rem; }
.stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--wa-teal);
  line-height: 1;
}
.stat-label { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

.date-badge {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  padding: .4rem;
  margin-bottom: .25rem;
  background: rgba(255,255,255,.6);
  border-radius: 8px;
  display: inline-block;
  width: 100%;
}

/* Charts */
.charts-row { display: flex; flex-direction: column; gap: .75rem; }
.charts-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.chart-card h2, .full-width h2 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--wa-teal);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.chart-card h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wa-border);
  margin-left: .5rem;
}
.chart-card.wide canvas { max-height: 200px; height: 200px; }
.chart-card canvas { max-height: 250px; height: 250px; }

/* Sender sentiment bars */
.sender-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
  font-size: .85rem;
}
.sender-bar-name {
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sender-bar-track {
  flex: 1; height: 8px;
  background: var(--wa-border);
  border-radius: 99px;
  overflow: hidden;
}
.sender-bar-fill { height: 100%; border-radius: 99px; transition: width .5s; }
.sender-bar-score { width: 44px; text-align: right; color: var(--muted); font-size: .78rem; }

/* AI Section */
.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ai-output {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  background: var(--wa-panel);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--wa-light);
}
.ai-output strong { color: var(--wa-teal); }
.ai-loading {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  color: var(--muted);
  padding: .25rem 0;
}

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--wa-border);
  border-top-color: var(--wa-light);
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn-primary {
  background: #0F766E;
  color: #fff;
  border: none;
  padding: .5rem 1.25rem;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 6px rgba(15,118,110,.4);
}
.btn-primary:hover { background: #14B8A6; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.4);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* Error */
.error-box {
  margin-top: .75rem;
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .85rem;
}

.hidden { display: none !important; }

/* ── Personality Stats ──────────────────────────────────────────────────────── */
.personality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
  min-height: 120px;
}

.personality-card {
  background: var(--wa-panel);
  border-radius: 12px;
  padding: 1rem .85rem;
  text-align: center;
  border: 1px solid var(--wa-border);
  transition: transform .15s, box-shadow .15s;
}
.personality-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.pc-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.pc-title {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .3rem;
}
.pc-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--wa-teal);
  word-break: break-word;
  margin-bottom: .2rem;
}
.pc-value-plain { color: var(--text); font-weight: 600; }
.pc-sub { font-size: .72rem; color: var(--muted); }

/* ── Awards ─────────────────────────────────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

.awards-ai-label {
  grid-column: 1 / -1;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--wa-border);
}

.award-card {
  background: var(--wa-panel);
  border-radius: 14px;
  padding: 1.1rem .85rem;
  text-align: center;
  border: 1px solid var(--wa-border);
  border-top: 3px solid #ffc107;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.award-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255,193,7,.25);
}
.award-card-ai {
  border-top-color: var(--wa-light);
}
.award-card-ai:hover {
  box-shadow: 0 6px 18px rgba(20,184,166,.2);
}

.award-emoji {
  font-size: 2rem;
  margin-bottom: .45rem;
  display: block;
}
.award-title {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.award-winner {
  font-size: .9rem;
  font-weight: 700;
  color: var(--wa-teal);
  word-break: break-word;
  margin-bottom: .3rem;
}
.award-insight {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Chat Dynamics ──────────────────────────────────────────────────────────── */
.dynamics-overview {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text);
  border-left: 3px solid var(--wa-light);
  padding: .6rem 1rem;
  background: var(--wa-panel);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
}

.dynamics-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.pattern-chip {
  background: var(--wa-bubble-out);
  border: 1px solid rgba(15,118,110,.3);
  color: var(--wa-teal);
  border-radius: 99px;
  padding: .3rem .75rem;
  font-size: .78rem;
  font-weight: 500;
}
.pattern-chip-balance {
  background: #f3e5f5;
  border-color: rgba(156,39,176,.3);
  color: #6a1b9a;
}

/* ── Coaching Snippet ───────────────────────────────────────────────────────── */
.coaching-snippet {
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
  margin-top: .4rem;
  display: block;
  max-width: 100%;
  word-break: break-word;
}

/* ── Health Score ───────────────────────────────────────────────────────────── */
.health-card { }

.health-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.health-score-ring {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--wa-border);
  stroke-width: 10;
}

.ring-fill {
  fill: none;
  stroke: var(--wa-light);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1), stroke .3s;
}

.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--wa-teal);
  line-height: 1;
}

.ring-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
  text-align: center;
  max-width: 90px;
}

/* ── Glass score ─────────────────────────────────────────────────────────── */
.health-glass-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.glass-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.glass-svg {
  width: 90px;
  height: 133px;
  filter: drop-shadow(0 4px 12px rgba(15,118,110,.2));
}
.glass-score-label { text-align: center; }
.glass-number {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0F766E;
  line-height: 1;
}
.glass-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .15rem;
  font-weight: 500;
}

.health-breakdown { flex: 1; min-width: 200px; }

.hb-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .65rem;
  font-size: .85rem;
}
.hb-label { width: 100px; color: var(--text); font-weight: 500; }
.hb-track {
  flex: 1; height: 8px;
  background: var(--wa-border);
  border-radius: 99px;
  overflow: hidden;
}
.hb-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.hb-score { width: 40px; text-align: right; color: var(--muted); font-size: .75rem; }

/* ── Flag Detector ──────────────────────────────────────────────────────────── */
.flags-card { }

.flags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flags-col-header {
  font-weight: 700;
  font-size: .85rem;
  padding: .4rem .75rem;
  border-radius: 8px;
  margin-bottom: .6rem;
}
.green-header { background: #e8f5e9; color: #2e7d32; }
.red-header   { background: #fce4ec; color: #c62828; }

.flags-list { display: flex; flex-direction: column; gap: .5rem; }

.flag-item {
  border-radius: 10px;
  padding: .65rem .85rem;
  font-size: .83rem;
  line-height: 1.5;
}
.flag-green { background: #f1f8e9; border-left: 3px solid #66bb6a; }
.flag-red   { background: #fff8f8; border-left: 3px solid #ef5350; }

.flag-title { font-weight: 600; margin-bottom: .15rem; }
.flag-detail { color: var(--muted); font-size: .78rem; }

.no-flags { font-size: .82rem; color: var(--muted); padding: .4rem 0; }

/* ── AI Advisor Section ─────────────────────────────────────────────────────── */
.advisor-section { }

.advisor-subtitle {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  margin-top: -.5rem;
}

.advisor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.advisor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.1rem .75rem;
  background: var(--wa-panel);
  border: 2px solid var(--wa-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
  text-align: center;
}
.advisor-card:hover {
  border-color: var(--wa-light);
  background: #f0fdf9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20,184,166,.2);
}
.advisor-card.active {
  border-color: var(--wa-light);
  background: var(--wa-bubble-out);
  box-shadow: 0 4px 12px rgba(20,184,166,.3);
}

.advisor-emoji { font-size: 2rem; }
.advisor-name  { font-size: .82rem; font-weight: 700; color: var(--wa-teal); }
.advisor-desc  { font-size: .72rem; color: var(--muted); }

/* ── Share / Report Card ────────────────────────────────────────────────────── */
.share-section { }
.share-subtitle { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; margin-top: -.5rem; }
.share-btn { margin-top: 1rem; }

.report-card {
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 40%, #a7f3d0 100%);
  border-radius: 20px;
  padding: 1.75rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(15,118,110,.4);
  font-family: 'Sora', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
}

.rc-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.rc-logo { font-size: 1.8rem; }
.rc-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.rc-period { font-size: .75rem; color: rgba(255,255,255,.7); margin-left: auto; }

.rc-headline {
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.4;
}

.rc-stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.rc-stat { text-align: center; flex: 1; min-width: 60px; }
.rc-stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.rc-stat-lbl { font-size: .65rem; color: rgba(255,255,255,.75); margin-top: .15rem; text-transform: uppercase; letter-spacing: .06em; }

.rc-health {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .6rem 1rem;
}
.rc-health-score {
  font-size: 1.1rem;
  font-weight: 800;
  padding: .3rem .7rem;
  border-radius: 8px;
  color: #fff;
}
.rc-health-label { font-size: .9rem; font-weight: 600; }

.rc-people {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
}
.rc-pill {
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 500;
}

.rc-emojis { font-size: 1.4rem; letter-spacing: .1em; margin-bottom: .75rem; }

.rc-words {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .85rem;
}
.rc-tag {
  background: rgba(255,255,255,.15);
  border-radius: 6px;
  padding: .2rem .5rem;
  font-size: .72rem;
}

.rc-highlights {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .85rem;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .65rem .85rem;
}
.rc-highlight-item {
  font-size: .78rem;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

.rc-footer {
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  margin-bottom: .6rem;
}

.rc-brand {
  font-size: .65rem;
  color: rgba(255,255,255,.5);
  text-align: right;
  margin-top: .5rem;
}

/* ── RC Vibe ─────────────────────────────────────────────────────────────────── */
.rc-vibe {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wa-teal);
  background: var(--wa-bubble-out);
  border-radius: 12px;
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: .01em;
  border: 1px solid rgba(15,118,110,.25);
}

/* ── Advisor Progress Bar ───────────────────────────────────────────────────── */
.advisor-progress {
  padding: 1rem 0 .5rem;
  transition: opacity .6s ease, max-height .6s ease;
}
.advisor-progress.hidden {
  display: none !important;
}

.ap-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: .75rem;
}

.ap-bar-track {
  width: 100%;
  height: 6px;
  background: var(--wa-border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .75rem;
}

.ap-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wa-teal), var(--wa-light));
  border-radius: 99px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

.ap-steps {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ap-step {
  font-size: .75rem;
  color: var(--wa-border);
  transition: color .4s;
  font-weight: 500;
}

.ap-step-active {
  color: var(--wa-teal);
}

/* ── Summary Score Header ───────────────────────────────────────────────────── */
.summary-score-header {
  background: var(--wa-panel);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.sh-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}

.sh-health {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.sh-health-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.sh-health-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  margin-top: .15rem;
}
.sh-health-sub {
  font-size: .65rem;
  color: var(--muted);
  margin-top: .05rem;
}

.sh-sentiment {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.sh-sent-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: var(--text);
}
.sh-sent-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sh-sent-row strong { margin-left: auto; padding-left: .5rem; }

.sh-breakdown {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.sh-score-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
}
.sh-score-label { width: 90px; color: var(--text); font-weight: 500; }
.sh-score-bar-track {
  flex: 1; height: 6px;
  background: var(--wa-border);
  border-radius: 99px;
  overflow: hidden;
}
.sh-score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.sh-score-val { width: 24px; text-align: right; color: var(--muted); font-size: .75rem; }

.sh-divider {
  height: 1px;
  background: var(--wa-border);
  margin-top: .85rem;
}

.stream-text {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text);
  padding-top: .75rem;
}

/* ── Theme picker ─────────────────────────────────────────────────────────────── */
.theme-picker { display:flex; align-items:center; gap:.6rem; margin-bottom:1rem; flex-wrap:wrap; }
.theme-label { font-size:.82rem; color:var(--muted); font-weight:500; }
.theme-swatch { width:32px; height:32px; border-radius:50%; border:3px solid transparent; cursor:pointer; transition:transform .15s, border-color .15s; touch-action: manipulation; }
.theme-swatch:hover { transform:scale(1.15); }
.theme-swatch.active { border-color:var(--wa-teal); transform:scale(1.1); }

/* ── Secondary button ─────────────────────────────────────────────────────────── */
.btn-secondary {
  background: var(--wa-panel);
  color: var(--wa-teal);
  border: 1.5px solid var(--wa-border);
  padding: .5rem 1.25rem;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  touch-action: manipulation;
}
.btn-secondary:hover { background: var(--wa-border); }

/* ── Touch tap delay removal ─────────────────────────────────────────────────── */
button, .btn-primary, .btn-outline, .tab-btn, .advisor-card, .drop-zone {
  touch-action: manipulation;
}

/* ── Upload topbar ───────────────────────────────────────────────────────────── */
.upload-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(15,118,110,.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 300;
}
/* ── Logo wordmark (gradient Chat + Wrapped) ─────────────────────────────── */
.topbar-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo-wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.lw-chat { color: #ffffff; }
.lw-wrapped {
  background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
header .logo-wordmark .lw-chat { color: #fff; }
header .logo-wordmark .lw-wrapped {
  background: linear-gradient(135deg, #a7f3d0, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.btn-signin-top {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.btn-signin-top:hover { background: rgba(255,255,255,.22); }

.btn-family-bridge-nav {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.btn-family-bridge-nav:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ── Live ticker ─────────────────────────────────────────────────────────── */
.live-ticker {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(7,94,84,.85);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  padding: .4rem 1rem;
  width: 100%;
  max-width: 480px;
  justify-content: center;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.75); }
}
.wa-online { font-size: .72rem; color: #22C55E; }
.wa-header-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  letter-spacing: .04em;
}

.btn-outline-sm-dark {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.4);
  padding: .3rem .75rem;
  border-radius: 16px;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  touch-action: manipulation;
}
.btn-outline-sm-dark:hover { background: rgba(255,255,255,.15); }

/* Topbar sits above hero content */
#upload-screen .hero { padding-top: 0; }

/* ── Auth UI ─────────────────────────────────────────────────────────────────── */
.btn-outline-sm {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.35);
  padding: .28rem .7rem;
  border-radius: 16px;
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-outline-sm:hover { background: rgba(255,255,255,.15); }

.user-menu { position: relative; }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wa-light);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}
.user-email {
  font-size: .75rem;
  color: var(--muted);
  padding: .65rem 1rem .4rem;
  border-bottom: 1px solid var(--wa-border);
  word-break: break-all;
}
.dropdown-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: .6rem 1rem;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  transition: background .12s;
}
.dropdown-item:hover { background: var(--wa-panel); }

/* ── Save bar ────────────────────────────────────────────────────────────────── */
.save-bar {
  background: var(--wa-teal);
  color: #fff;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  font-size: .85rem;
  position: sticky;
  top: 104px;
  z-index: 90;
}
#save-bar-text { flex: 1; }
.btn-save {
  background: var(--wa-light);
  color: #fff;
  border: none;
  padding: .3rem .9rem;
  border-radius: 16px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  touch-action: manipulation;
}
.btn-save:hover { background: #1da851; }
.btn-save:disabled { opacity: .6; cursor: not-allowed; }
.save-bar-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 1rem;
  padding: .25rem;
  touch-action: manipulation;
}

/* ── Modals ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  text-align: center;
}
.modal-box-wide { max-width: 560px; text-align: left; }
.modal-close {
  position: absolute;
  top: .75rem; right: .75rem;
  background: var(--wa-panel);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.modal-box h3 { font-size: 1.2rem; color: var(--wa-teal); margin-bottom: .5rem; }
.modal-box p  { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.auth-input {
  width: 100%;
  border: 1.5px solid var(--wa-border);
  border-radius: 10px;
  padding: .65rem .9rem;
  font-size: .9rem;
  outline: none;
  transition: border-color .15s;
}
.auth-input:focus { border-color: var(--wa-light); }
.auth-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  background: #f6f0e7;
  border-radius: 10px;
  padding: .25rem;
}
.auth-tab {
  flex: 1;
  padding: .5rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  color: #667781;
  transition: all .2s;
}
.auth-tab.active {
  background: #fff;
  color: var(--wa-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.auth-otp-input {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .5rem;
  text-align: center;
}
.auth-resend-btn {
  background: none;
  border: none;
  color: var(--wa-teal);
  font-size: .8rem;
  cursor: pointer;
  margin-top: .6rem;
  text-decoration: underline;
  width: 100%;
}
.auth-msg {
  margin-top: .75rem;
  font-size: .82rem;
  padding: .5rem .75rem;
  background: var(--wa-panel);
  border-radius: 8px;
}

/* ── Reports list ────────────────────────────────────────────────────────────── */
.modal-box-wide h3 { font-size: 1.1rem; color: var(--wa-teal); margin-bottom: 1rem; }
.reports-list { display: flex; flex-direction: column; gap: .6rem; max-height: 60vh; overflow-y: auto; }
.reports-loading { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; padding: 1rem 0; }
.no-reports { color: var(--muted); font-size: .875rem; padding: 1rem 0; }
.report-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--wa-panel);
  border-radius: 12px;
  border: 1px solid var(--wa-border);
}
.report-item-info { flex: 1; min-width: 0; }
.report-item-title { font-size: .9rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-item-meta  { font-size: .75rem; color: var(--muted); margin-top: .1rem; }
.report-item-date  { font-size: .72rem; color: var(--wa-border); margin-top: .1rem; }
.report-item-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.btn-load-report {
  background: var(--wa-light);
  color: #fff;
  border: none;
  padding: .3rem .75rem;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.btn-delete-report {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
  padding: .3rem .5rem;
  border-radius: 12px;
  font-size: .78rem;
  cursor: pointer;
  touch-action: manipulation;
}

/* ── Pro Badge & Upgrade Button ─────────────────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.pro-badge {
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 99px;
  letter-spacing: .04em;
}
.btn-upgrade {
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  color: #fff;
  border: none;
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-upgrade:hover { opacity: .9; transform: translateY(-1px); }

/* ── Paywall Gate ────────────────────────────────────────────────────────────── */
.paywall-gate { margin-bottom: 1rem; }
.paywall-box {
  background: linear-gradient(135deg, #f0fdf9, #DFF3C7);
  border: 2px solid #14B8A6;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.paywall-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.paywall-box h3 { font-size: 1.3rem; color: var(--wa-teal); margin-bottom: .5rem; }
.paywall-box > p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.paywall-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: left;
  display: inline-block;
}
.paywall-features li { font-size: .875rem; padding: .3rem 0; color: var(--text); }
.btn-upgrade-large {
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(15,118,110,.4);
  display: block;
  width: 100%;
  margin-bottom: .65rem;
  touch-action: manipulation;
}
.btn-upgrade-large:hover { opacity: .9; transform: translateY(-2px); }
.paywall-note { font-size: .72rem; color: var(--muted); margin: 0; }

/* ── Free trial CTA ─────────────────────────────────────────────────────────── */
.trial-cta {
  text-align: center;
  margin-bottom: 1rem;
}
.btn-trial {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: .85rem 1.75rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
  transition: transform .15s, box-shadow .15s;
}
.btn-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.45);
}
.trial-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .4rem;
}
.paywall-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .75rem;
  margin: .75rem 0;
}
.paywall-divider::before,
.paywall-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wa-border);
}

/* ── Two-tier pricing plans ─────────────────────────────────────────────────── */
.paywall-plans {
  display: flex;
  gap: .875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.plan-card {
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  padding: 1.1rem .875rem 1rem;
  text-align: center;
  position: relative;
}
.plan-card-featured {
  border-color: var(--wa-light);
  box-shadow: 0 4px 18px rgba(20,184,166,.18);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wa-light);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .04em; }
.plan-price { font-size: 1.65rem; font-weight: 700; color: var(--wa-teal); line-height: 1; margin-bottom: .25rem; }
.plan-per { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: .73rem; color: var(--muted); margin-bottom: .875rem; line-height: 1.4; }
.btn-upgrade-plan {
  width: 100%;
  padding: .55rem .75rem;
  border: 2px solid var(--wa-teal);
  border-radius: 8px;
  background: transparent;
  color: var(--wa-teal);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn-upgrade-plan:hover { background: var(--wa-teal); color: #fff; }
.btn-upgrade-plan-featured {
  background: linear-gradient(135deg, var(--wa-green), var(--wa-light));
  color: #fff;
  border-color: transparent;
}
.btn-upgrade-plan-featured:hover { opacity: .9; background: linear-gradient(135deg, var(--wa-green), var(--wa-light)); color: #fff; }

/* Pro-locked sections */
.pro-locked {
  position: relative;
  pointer-events: none;
  user-select: none;
}
.pro-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  z-index: 1;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .overview-top { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .charts-row.two-col { grid-template-columns: 1fr; }
  /* 3 stat cards per row on mobile */
  .stat-card { flex: 1 1 calc(33.333% - .5rem); }
  .stat-value { font-size: 1.3rem; }
  .stat-icon { font-size: 1.3rem; }
  .stat-label { font-size: .68rem; }
  h1 { font-size: 1.45rem; }
  .flags-grid { grid-template-columns: 1fr; }
  .health-layout { flex-direction: column; align-items: flex-start; }
  /* Health ring smaller on mobile */
  .health-score-ring { width: 120px; height: 120px; }
  .ring-number { font-size: 1.9rem; }
  /* Health breakdown stacks below ring on mobile */
  .health-breakdown { min-width: 0; width: 100%; }
  /* Advisor cards 2x2 on mobile with taller touch targets */
  .advisor-cards { grid-template-columns: 1fr 1fr; }
  .advisor-card { min-height: 100px; }
  /* Awards 2 per row on mobile */
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  /* Tab nav: icons only on very small screens handled in 400px block */
  .rc-stats-row { gap: .5rem; }
  /* Charts shorter on mobile */
  .chart-card canvas { max-height: 180px; height: 180px; }
  .chart-card.wide canvas { max-height: 180px; height: 180px; }
  .wide-flex canvas { max-height: 180px; height: 180px; }
  /* Header shorter on mobile */
  .header-inner { height: 48px; }
  /* Main padding reduced on mobile */
  main { padding: .75rem .75rem 4rem; }
}

@media (max-width: 400px) {
  /* Icons only on very small screens */
  .tab-btn .tab-label { display: none; }
  .tab-btn { padding: .6rem .65rem; font-size: .82rem; }
}

/* ── Auto-save toast ───────────────────────────────────────────────────────── */
#auto-save-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(15, 118, 110, 0.93);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  white-space: nowrap;
}
#auto-save-toast.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Privacy note ─────────────────────────────────────────────────────────── */
.privacy-note {
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  margin-top: .75rem;
  text-align: center;
}

/* ── Drop zone text (on white background) ────────────────────────────────── */
.drop-zone p { color: var(--text); margin-bottom: .25rem; font-size: .95rem; }
.drop-zone .hint { font-size: .82rem; color: var(--muted); }

/* ── Social proof strip ──────────────────────────────────────────────────── */
.social-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1rem;
  background: rgba(255,255,255,.15);
  border-radius: 40px;
  padding: .45rem 1.1rem;
  flex-wrap: wrap;
}
.sp-stars { color: #FCD34D; font-size: 1rem; letter-spacing: .05em; }
.sp-text { font-size: .8rem; color: rgba(255,255,255,.9); }
.sp-text strong { color: #fff; }

/* ── Landing sections (below hero) ──────────────────────────────────────── */
.landing-section {
  width: 100%;
  max-width: 960px;
  padding: 3rem 1.5rem 1rem;
  margin: 0 auto;
}

.landing-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: .4rem;
}

.landing-sub {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: transform .18s, box-shadow .18s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15,118,110,.14);
}

.fc-icon { font-size: 1.7rem; }
.feature-card strong { font-size: .95rem; color: var(--text); }
.feature-card p { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* How it works */
.landing-how { padding-top: 2.5rem; }

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.step-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .5rem;
}

.step-card strong { font-size: .92rem; color: var(--text); }
.step-card p { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.step-card code { font-size: .78rem; background: #f1f5f9; padding: 1px 4px; border-radius: 4px; }

.step-arrow {
  font-size: 1.4rem;
  color: var(--muted);
  align-self: center;
  margin-top: -1rem;
  padding: 0 .25rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.review-stars { color: #FCD34D; font-size: 1rem; }

.review-text {
  font-size: .85rem;
  color: #374151;
  line-height: 1.6;
  flex: 1;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author strong { display: block; font-size: .85rem; color: var(--text); }
.review-author span { font-size: .75rem; color: var(--muted); }

/* How-to card variant */
.how-to-card {
  max-width: 520px;
  margin: 0 auto;
}

/* ── Export guide ────────────────────────────────────────────────────────── */
.export-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.export-guide-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.eg-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f5f9;
}
.eg-device-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eg-android { background: linear-gradient(135deg, #34A853, #0F9D58); }
.eg-ios     { background: linear-gradient(135deg, #1E293B, #475569); }
.eg-header strong { display: block; font-size: 1rem; color: var(--text); }
.eg-header span   { font-size: .78rem; color: var(--muted); }
.eg-steps { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.eg-steps li { display: flex; align-items: flex-start; gap: .75rem; }
.eg-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.eg-step-text { font-size: .875rem; color: #374151; line-height: 1.5; }
.eg-step-text strong { color: var(--text); }
.eg-step-text code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .8rem;
  color: #0F766E;
}
.eg-tip {
  background: #f0fdf9;
  border: 1px solid #ccfbf1;
  border-radius: 10px;
  padding: .75rem .9rem;
  font-size: .8rem;
  color: #374151;
  line-height: 1.5;
}
.eg-tip strong { color: #0F766E; }
.eg-formats-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
  padding: .5rem;
}
.eg-formats-note code {
  background: #f1f5f9;
  padding: .2rem .55rem;
  border-radius: 6px;
  font-size: .8rem;
  color: #0F766E;
  font-weight: 600;
}
@media (max-width: 650px) {
  .export-guide-grid { grid-template-columns: 1fr; }
}

/* Landing footer */
.landing-footer {
  width: 100%;
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.lf-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0F766E;
}

.lf-tagline { font-size: .85rem; color: var(--muted); }
.lf-trust { font-size: .75rem; color: #94a3b8; }

/* (upload-topbar defined above) */

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  padding: 1.1rem 1.5rem;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  gap: .15rem;
}

.stat-pill strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F766E;
  line-height: 1;
}

.stat-pill span {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* ── Real results cards ───────────────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: .75rem;
}

.result-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #f1f5f9;
  transition: transform .18s, box-shadow .18s;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(15,118,110,.13);
}

/* Card header */
.rc-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.rc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.rc-av-teal   { background: linear-gradient(135deg, #0F766E, #14B8A6); }
.rc-av-purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.rc-av-orange { background: linear-gradient(135deg, #EA580C, #F97316); }

.rc-meta { flex: 1; min-width: 0; }
.rc-meta strong { display: block; font-size: .88rem; color: var(--text); }
.rc-meta span   { font-size: .74rem; color: var(--muted); }

.rc-score-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.rc-score-good { background: linear-gradient(135deg, #0F766E, #22C55E); }
.rc-score-mid  { background: linear-gradient(135deg, #F59E0B, #F97316); }

/* Score bars */
.rc-scores-row {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.rc-score-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
}

.rc-score-label {
  width: 110px;
  flex-shrink: 0;
  color: var(--muted);
}

.rc-bar-track {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.rc-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .6s ease;
}

.rc-score-val {
  width: 32px;
  text-align: right;
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
}

/* Insight block */
.rc-insight {
  display: flex;
  gap: .65rem;
  background: #f8fafc;
  border-radius: 12px;
  padding: .85rem .9rem;
  border-left: 3px solid #14B8A6;
}

.rc-insight-icon { font-size: 1.1rem; flex-shrink: 0; }

.rc-insight p {
  font-size: .8rem;
  color: #374151;
  line-height: 1.55;
  margin: 0;
}

.rc-insight p strong { color: #0F766E; }

/* Tag row */
.rc-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.rc-tag {
  font-size: .7rem;
  font-weight: 500;
  padding: .25rem .6rem;
  border-radius: 20px;
}

.rc-tag-green { background: #dcfce7; color: #15803d; }
.rc-tag-amber { background: #fef9c3; color: #a16207; }
.rc-tag-red   { background: #fee2e2; color: #b91c1c; }

/* Disclaimer */
.results-disclaimer {
  font-size: .73rem;
  color: #94a3b8;
  text-align: center;
  margin-top: .5rem;
}

/* ── WA chat widget (inside hero-right) ──────────────────────────────────── */

.wa-chat-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #0F766E;
  color: white;
  padding: .85rem 1.25rem;
  border-radius: 0 0 0 0;
  width: 100%;
  max-width: 480px;
  margin-top: 0;
}

.wa-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.wa-chat-info strong {
  display: block;
  font-size: .95rem;
  color: white;
  font-weight: 600;
}
.wa-chat-info span {
  font-size: .75rem;
  color: rgba(255,255,255,.75);
}

.wa-chat-body {
  width: 100%;
  max-width: 480px;
  background: #ece5dd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23c0b9b0' opacity='.4'/%3E%3C/svg%3E");
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.wa-bubble {
  max-width: 88%;
  padding: .65rem .9rem .5rem;
  border-radius: 12px;
  font-size: .875rem;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
  color: #111b21;
}

.wa-bubble-in {
  background: #ffffff;
  align-self: flex-start;
  border-top-left-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.wa-bubble-in::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  width: 0; height: 0;
  border-top: 8px solid #fff;
  border-left: 8px solid transparent;
}

.wa-bubble-out {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.wa-bubble-out::after {
  content: '';
  position: absolute;
  top: 0; right: -8px;
  width: 0; height: 0;
  border-top: 8px solid #dcf8c6;
  border-right: 8px solid transparent;
}

.wa-time {
  font-size: .68rem;
  color: #667781;
  float: right;
  margin-left: .75rem;
  margin-top: .15rem;
}

.wa-ticks {
  font-size: .68rem;
  color: #53bdeb;
  margin-left: .25rem;
}

/* File drop zone styled as WA attachment */
.wa-file-drop {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border-radius: 12px 12px 12px 3px;
  padding: .9rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  border: 2px dashed rgba(15,118,110,.3);
  transition: border-color .15s, background .15s;
  align-self: flex-start;
  max-width: 88%;
  width: 100%;
}

.wa-file-drop:hover, .wa-file-drop.dragover {
  border-color: #0F766E;
  background: #f0fdf9;
}

.wa-file-icon { font-size: 1.75rem; flex-shrink: 0; }
.wa-file-info { flex: 1; min-width: 0; }
.wa-file-info strong { display: block; font-size: .88rem; color: #111b21; }
.wa-file-info span   { font-size: .76rem; color: #667781; }

.wa-privacy {
  text-align: left !important;
  color: #667781 !important;
  font-size: .74rem !important;
  margin-top: .25rem;
}

/* ── Glass score teaser (landing) ────────────────────────────────────────── */
.glass-teaser-section { padding-top: 2.5rem; }

.glass-teaser-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.glass-teaser-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.glass-teaser-svg-wrap { padding: .5rem; }
.glass-teaser-svg { width: 80px; height: 118px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.1)); }

.glass-score-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.glass-score-tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 20px;
}

.amber-tag { background: #fef9c3; color: #a16207; }
.teal-tag  { background: #ccfbf1; color: #0F766E; }
.green-tag { background: #dcfce7; color: #15803d; }

.glass-score-desc { font-size: .78rem; color: var(--muted); max-width: 130px; line-height: 1.4; }

/* ── Responsive: landing sections ────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px): stack hero to single column ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem 2rem;
  }
  .hero-left { text-align: center; }
  .hero-headline { font-size: clamp(1.7rem, 5vw, 2.5rem); }
  .hero-sub { margin: 0 auto 1.5rem; }
  .hero-checklist { align-items: center; }
  .hero-proof { justify-content: center; }
  .hero-right { max-width: 480px; margin: 0 auto; width: 100%; }
  .results-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto .75rem; }
}

/* ── Mobile (≤ 600px): compact everything ── */
@media (max-width: 600px) {
  .hero-inner { padding: 1.75rem 1rem 1.5rem; gap: 1.5rem; }
  .hero-headline { font-size: 1.7rem; }
  .hero-sub { font-size: .9rem; }
  .hero-checklist li { font-size: .88rem; }
  .hc-icon { width: 26px; height: 26px; font-size: .82rem; }
  .wa-chat-header { padding: .75rem 1rem; }
  .wa-chat-body { padding: .75rem .75rem 1rem; }
  .wa-bubble { font-size: .84rem; padding: .6rem .8rem .45rem; }
  .wa-file-drop { padding: .75rem .9rem; }
  .live-ticker { font-size: .72rem; padding: .35rem .75rem; }
  .stats-strip { padding: .85rem .75rem; flex-wrap: wrap; gap: .75rem; }
  .stat-pill { padding: 0 .75rem; }
  .stat-pill strong { font-size: 1.15rem; }
  .stat-divider { display: none; }
  .glass-teaser-row { gap: 1.25rem; }
  .glass-teaser-svg { width: 64px; height: 95px; }
  .glass-score-num { font-size: 1.6rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .landing-title { font-size: 1.2rem; }
  .landing-sub { font-size: .83rem; }
  .landing-section { padding: 2rem 1rem .5rem; }
  .logo-wordmark { font-size: 1rem; }
  .topbar-logo svg { width: 22px; height: 22px; }
  .export-hint { font-size: .74rem; }
}

@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto .75rem; }
}

@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .landing-title { font-size: 1.3rem; }
  .stats-strip { gap: .5rem; }
  .stat-pill { padding: 0 1rem; }
  .stat-pill strong { font-size: 1.2rem; }
  .stat-divider { height: 28px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .landing-section { padding: 2rem 1rem .5rem; }
  .stats-strip { flex-wrap: wrap; gap: 1rem; padding: 1rem; }
  .stat-divider { display: none; }
  .stat-pill { padding: 0 .75rem; }
  .rc-score-label { width: 90px; font-size: .7rem; }
}


/* ── Paywall social proof ─────────────────────────────────────────────────── */
.paywall-social-proof {
  font-size: .85rem;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: .5rem;
}
.paywall-social-proof span { color: var(--muted); font-weight: 400; }
.paywall-features li strong { color: var(--wa-teal); }
.paywall-testimonials { margin: .75rem 0 1rem; }
.paywall-testimonial {
  background: #f8fafc;
  border-left: 3px solid var(--wa-green);
  padding: .6rem .875rem;
  border-radius: 0 8px 8px 0;
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
}
.paywall-guarantee {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .875rem;
  text-align: center;
}

/* ── Improve Tab ─────────────────────────────────────────────────────────── */
.improve-intro { padding: 1.25rem !important; }
.improve-score-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.improve-score-num {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: var(--wa-teal);
  line-height: 1;
  min-width: 70px;
}
.improve-score-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.improve-score-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .2rem;
}
.improve-desc {
  color: var(--muted);
  font-size: .9rem;
  margin: .5rem 0 1.25rem;
  line-height: 1.5;
}

/* Score factors accordion */
.score-factors { display: flex; flex-direction: column; gap: .625rem; margin-top: 1rem; }
.score-factor {
  border: 1.5px solid var(--wa-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.score-factor:hover { border-color: var(--wa-green); }
.factor-header {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1rem;
  cursor: pointer;
  background: #fff;
  user-select: none;
}
.factor-icon { font-size: 1.25rem; }
.factor-name { font-weight: 600; font-size: .925rem; flex: 1; }
.factor-points { font-size: .78rem; color: var(--wa-teal); font-weight: 600; background: #f0fdf9; padding: .2rem .5rem; border-radius: 20px; }
.factor-chevron { font-size: .75rem; color: var(--muted); transition: transform .2s; }
.score-factor.open .factor-chevron { transform: rotate(180deg); }
.factor-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--wa-border);
  background: #fafafa;
}
.factor-body p { font-size: .875rem; color: var(--muted); margin: .75rem 0 .875rem; line-height: 1.5; }
.factor-tips { display: flex; flex-direction: column; gap: .5rem; }
.factor-tip {
  font-size: .85rem;
  color: var(--text);
  background: #fff;
  border-radius: 8px;
  padding: .5rem .75rem;
  border: 1px solid #e8f5e9;
  line-height: 1.45;
}

/* Score bands */
.score-bands { display: flex; flex-direction: column; gap: .625rem; margin-top: 1rem; }
.score-band {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 1rem;
  border-radius: 12px;
}
.band-range {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  min-width: 60px;
  line-height: 1;
  padding-top: .1rem;
}
.band-label { font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.band-desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.band-info { flex: 1; }
.band-excellent { background: #f0fdf4; border: 1.5px solid #86efac; }
.band-excellent .band-range, .band-excellent .band-label { color: #16a34a; }
.band-good { background: #f0fdf9; border: 1.5px solid var(--wa-green); }
.band-good .band-range, .band-good .band-label { color: var(--wa-teal); }
.band-fair { background: #fffbeb; border: 1.5px solid #fcd34d; }
.band-fair .band-range, .band-fair .band-label { color: #d97706; }
.band-needs-work { background: #fff1f2; border: 1.5px solid #fca5a5; }
.band-needs-work .band-range, .band-needs-work .band-label { color: #dc2626; }

/* Quick wins */
.quick-wins { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.quick-win {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: #f8fafc;
  border-radius: 12px;
  padding: .875rem 1rem;
  border: 1px solid var(--wa-border);
}
.qw-icon { font-size: 1.5rem; min-width: 32px; text-align: center; }
.qw-text { display: flex; flex-direction: column; gap: .2rem; }
.qw-text strong { font-size: .9rem; color: var(--text); }
.qw-text span { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* Improve re-analyse */
.improve-reanalyse { text-align: center; }
.improve-reanalyse p { font-size: .9rem; color: var(--muted); margin: .5rem 0 1.25rem; line-height: 1.6; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Score band layout fix */
.score-band { display: grid; grid-template-columns: 60px 80px 1fr; align-items: center; gap: .75rem; }
@media (max-width: 500px) {
  .score-band { grid-template-columns: 50px 70px 1fr; }
  .band-range { font-size: .95rem; }
}

/* ── Analysis loading overlay ────────────────────────────────────────────── */
.analysis-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,118,110,.92);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.analysis-overlay.hidden { display: none; }
.analysis-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.analysis-emoji {
  font-size: 3rem;
  margin-bottom: .75rem;
  display: block;
  animation: pulse-emoji 1.5s ease-in-out infinite;
}
@keyframes pulse-emoji {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.analysis-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wa-teal);
  margin-bottom: .25rem;
}
.analysis-sub {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.analysis-progress-track {
  background: #e8f5f3;
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
  margin-bottom: .5rem;
}
.analysis-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14B8A6, #0F766E);
  border-radius: 99px;
  width: 0%;
  transition: width .5s ease;
}
.analysis-pct {
  font-size: .82rem;
  font-weight: 700;
  color: var(--wa-teal);
  margin-bottom: 1.25rem;
}
.analysis-steps {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-align: left;
}
.analysis-step {
  font-size: .82rem;
  color: #c0cdd8;
  padding: .3rem .625rem;
  border-radius: 8px;
  transition: all .3s ease;
}
.analysis-step.active {
  background: #f0fdf9;
  color: var(--wa-teal);
  font-weight: 600;
}
.analysis-step.done {
  color: #64748b;
}
.analysis-step.done::before { content: '✅ '; }

/* ── Referral section ────────────────────────────────────────────────────── */
.referral-section { }
.referral-header { margin-bottom: 1.25rem; }
.referral-header h2 { margin-bottom: .35rem; }
.referral-sub { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.referral-prompt { text-align: center; padding: 1.5rem 0; }
.referral-prompt p { color: var(--muted); margin-bottom: 1rem; font-size: .9rem; }
.referral-link-box {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.referral-link-input {
  flex: 1;
  border: 1.5px solid var(--wa-border);
  border-radius: 10px;
  padding: .625rem .875rem;
  font-size: .85rem;
  color: var(--muted);
  background: #f8fafc;
  outline: none;
  min-width: 0;
}
.btn-copy-referral {
  background: var(--wa-teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .625rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-copy-referral:hover { opacity: .85; }
.referral-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.referral-stat {
  flex: 1;
  background: #f0fdf9;
  border: 1px solid #b2dfdb;
  border-radius: 12px;
  padding: .875rem;
  text-align: center;
}
.referral-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: var(--wa-teal);
  line-height: 1;
  margin-bottom: .25rem;
}
.referral-stat-label {
  font-size: .78rem;
  color: var(--muted);
}
.referral-share-btns {
  display: flex;
  gap: .625rem;
}
.referral-share-btn {
  flex: 1;
  padding: .625rem;
  border: 1.5px solid var(--wa-border);
  border-radius: 10px;
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.referral-share-btn:hover {
  border-color: var(--wa-green);
  background: #f0fdf9;
}

/* ── Mobile improvements ─────────────────────────────────────────────────── */
@media (max-width: 680px) {
  /* Paywall plans stack on mobile */
  .paywall-plans { flex-direction: column; align-items: center; }
  .plan-card { max-width: 100%; width: 100%; }
  /* Improve tab mobile */
  .improve-score-num { font-size: 2.25rem; }
  .factor-header { padding: .75rem; }
  .quick-win { padding: .75rem; }
  /* Referral mobile */
  .referral-link-box { flex-direction: column; }
  .btn-copy-referral { width: 100%; }
  .referral-share-btns { flex-direction: column; }
  /* Analysis overlay */
  .analysis-card { padding: 1.5rem; }
  /* Score bands mobile */
  .score-band { grid-template-columns: 45px 65px 1fr; gap: .5rem; }
  /* Family Bridge promo mobile */
  .fb-promo-inner { flex-direction: column; gap: 2rem; }
  .fb-promo-right { display: none; }
  .fb-promo-title { font-size: 1.5rem; }
}

/* ── Family Bridge promo section ────────────────────────────────────────── */
.fb-promo-section {
  background: linear-gradient(135deg, #1F2A44 0%, #243352 60%, #1a3a4a 100%);
  padding: 5rem 1.5rem;
}
.fb-promo-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.fb-promo-left {
  flex: 1;
}
.fb-promo-badge {
  display: inline-block;
  background: #4FA7A0;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .25rem .7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.fb-promo-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 1rem;
}
.fb-promo-desc {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}
.fb-promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.fb-promo-list li {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.btn-fb-promo {
  display: inline-block;
  background: #4FA7A0;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-fb-promo:hover {
  background: #3d9990;
  transform: translateY(-1px);
}
.fb-promo-right {
  flex: 1;
}
.fb-report-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.fb-report-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  transition: background .2s;
}
.fb-report-card:hover {
  background: rgba(255,255,255,.12);
}
