/* SOLUVA v200 — WARM SKIN LUXURY (dark base, peach/amber accent) */

:root {
  --bg: #07050a;
  --bg2: #0d0a12;
  --bg3: #14101a;
  --text: #f4ece4;
  --muted: #a3927f;
  --dim: #4a4038;
  --c: #ffac6e;
  --c2: #e3cba6;
  --c3: rgba(255,172,110,0.1);
  --pink: #c47db5;
  --accent: #ffac6e;
  --accent-rgb: 255,172,110;
  --glow: rgba(255,172,110,0.55);
  --glow2: rgba(227,203,166,0.4);
  --glass: rgba(6,8,20,0.7);
  --glass2: rgba(10,13,28,0.8);
  --border: rgba(255,176,122,0.1);
  --border2: rgba(217,196,163,0.08);
  --grid: rgba(217,196,163,0.04);
  --font-s: "Syne", system-ui, sans-serif;
  --font-d: "Inter", system-ui, sans-serif;
  --font-m: "DM Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button, .btn, .btn-cta, .btn-sim-pay, .option-card, .lang-card, .country-card, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
[hidden] { display: none !important; }
html { height: 100%; }

body {
  font-family: var(--font-d);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Holographic grid background ─── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* noise grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  mix-blend-mode: overlay;
}

/* ─── Cosmic void background ─── */
.bg-void {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(255,176,122,0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 82% 25%, rgba(217,196,163,0.06), transparent 58%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(196,125,181,0.04), transparent 55%);
  animation: voidDrift 36s ease-in-out infinite;
  will-change: transform;
}
@keyframes voidDrift {
  0%,100% { transform: scale(1) translate(0,0); }
  35%      { transform: scale(1.07) translate(3%,-2%); }
  68%      { transform: scale(1.04) translate(-2%,2.5%); }
}

.fx-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ─── App wrapper ─── */
.app {
  position: relative; z-index: 1;
  max-width: 430px; margin: 0 auto;
  height: 100vh; height: 100dvh; overflow: hidden;
}

/* ─── Screens ─── */
.screen {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh; height: 100dvh;
  padding: 0 1.2rem env(safe-area-inset-bottom, 1rem);
  padding-top: env(safe-area-inset-top, 0);
  backface-visibility: hidden;
}
.screen.active {
  display: flex;
  animation: screenIn 0.22s ease both;
}
#screen-welcome.active {
  animation: none;
  opacity: 1;
}
.screen.leaving {
  display: flex;
  position: absolute; inset: 0;
  padding: 0 1.2rem env(safe-area-inset-bottom, 1rem);
  padding-top: env(safe-area-inset-top, 0);
  animation: screenOut 0.22s ease forwards;
  pointer-events: none; z-index: 10;
  will-change: opacity, transform;
}
/* Welcome screen: during transition-out it stays "active" and handles its own exit animation */
#screen-welcome.transition-out {
  display: flex;
  pointer-events: none;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes screenOut {
  to { opacity: 0; transform: translateY(-16px) scale(1.01); }
}

/* ─── Topnav ─── */
.topnav {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 0 0;
  flex-shrink: 0;
  /* topnav must sit ABOVE the sphere decor — rings/halo overflow upward into
     this row and would otherwise intercept clicks on the lang buttons */
  position: relative; z-index: 20;
  animation: fadeUp 0.5s var(--ease) 0.05s both;
}

.logo-chip {
  width: 32px; height: 32px;
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.logo-mark {
  width: 30px; height: 30px;
  filter: drop-shadow(0 0 10px rgba(255,176,122,0.45));
}

.logo-name {
  font-family: var(--font-s);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--text); flex: 1; min-width: 0;
}

.welcome-topnav {
  gap: 0.5rem;
}

.region-pill {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 0.26rem 0.65rem;
  border: 1px solid rgba(255,176,122,0.25);
  border-radius: 100px;
  color: var(--c);
  background: rgba(255,176,122,0.06);
  font-family: var(--font-m);
}

/* ─── Language switcher (welcome topnav) ─── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(10,13,28,0.8);
  border: 1px solid rgba(255,176,122,0.12);
  border-radius: 100px;
  padding: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang-btn {
  font-family: var(--font-m);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.5rem;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { color: var(--muted); }
.lang-btn.active {
  background: rgba(255,176,122,0.14);
  color: var(--c);
  box-shadow: 0 0 8px rgba(255,176,122,0.15);
}

/* ─── Welcome screen layout ─── */
.screen-welcome {
  justify-content: flex-start;
}

/* ─── Cosmic Bio-Sphere stage ─── */
.welcome-stage {
  flex: 0 1 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 1rem 0 0.4rem;
  /* D1: sphere is decor, not the hero. It's sized small enough (rings included) to sit
     fully inside the stage — no clipping needed, so the page-exit blast isn't cut off. */
  min-height: 0; max-height: 24vh;
  width: 100%;
  position: relative;
  /* purely decorative (aria-hidden) — never swallow taps meant for the topnav above */
  pointer-events: none;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

/* ─── Central sphere scene ─── */
.sphere-scene {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 100px; height: 100px;
}

.sphere-canvas {
  position: relative; z-index: 2;
  border-radius: 50%;
  width: 94px; height: 94px;
  filter:
    drop-shadow(0 0 20px rgba(255,176,122,0.5))
    drop-shadow(0 0 50px rgba(217,196,163,0.25))
    drop-shadow(0 0 90px rgba(255,176,122,0.15));
  transition: transform 0.1s linear;
}

/* Halo glow behind sphere */
.sphere-halo {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,166,100,0.18) 25%, rgba(255,176,122,0.07) 55%, transparent 78%);
  animation: haloPulse 3.5s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}

/* Orbiting rings */
.sphere-ring {
  position: absolute; border-radius: 50%; border: 1px solid transparent;
  pointer-events: none; z-index: 1;
}
.ring-a {
  width: 108px; height: 108px;
  border-color: rgba(255,176,122,0.28);
  animation: ringRotA 20s linear infinite;
  box-shadow: 0 0 12px rgba(255,166,100,0.12);
}
.ring-b {
  width: 118px; height: 118px;
  border-color: rgba(217,196,163,0.08);
  animation: ringRotB 32s linear infinite reverse;
}
.ring-c {
  width: 100px; height: 100px;
  border: 1px dashed rgba(255,176,122,0.07);
  animation: ringRotA 55s linear infinite reverse;
}
@keyframes ringRotA { to { transform: rotate(360deg); } }
@keyframes ringRotB { to { transform: rotate(360deg); } }

/* Laser scanner line */
.scan-laser {
  position: absolute; left: 50%; top: 50%;
  width: 108px; height: 2px;
  margin-left: -54px; margin-top: -1px;
  background: linear-gradient(90deg, transparent 0%, rgba(217,196,163,0.15) 10%, rgba(217,196,163,1) 50%, rgba(217,196,163,0.15) 90%, transparent 100%);
  box-shadow:
    0 0 6px rgba(217,196,163,0.9),
    0 0 16px rgba(217,196,163,0.5),
    0 0 40px rgba(217,196,163,0.2);
  border-radius: 2px;
  z-index: 4; pointer-events: none;
  animation: laserSweep 3s ease-in-out infinite;
}
@keyframes laserSweep {
  0%   { transform: translateY(-66px); opacity: 0; }
  6%   { opacity: 1; }
  50%  { opacity: 0.9; }
  94%  { opacity: 0.7; }
  100% { transform: translateY(66px); opacity: 0; }
}

/* ─── Glass panels ─── */
.glass-panel {
  flex: 0 0 88px; min-width: 0; max-width: 96px;
  background: rgba(4,6,16,0.6);
  backdrop-filter: blur(22px) saturate(1.5) brightness(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.5) brightness(1.05);
  border: 1px solid rgba(255,176,122,0.12);
  border-radius: 18px;
  padding: 0.75rem 0.65rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(255,176,122,0.04),
    0 12px 40px rgba(0,0,0,0.4),
    0 0 0 0.5px rgba(255,176,122,0.06);
  position: relative; overflow: hidden;
}

/* Glass top shine */
.glass-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}
/* Colored accent corner */
.glass-panel::after {
  content: '';
  position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,176,122,0.04) 0%, transparent 55%);
  pointer-events: none;
}

.panel-left  {
  display: none;
}
.panel-right {
  display: none;
  animation: panelInRight 0.9s var(--ease) 0.42s both;
  border-color: rgba(217,196,163,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 12px 40px rgba(0,0,0,0.4),
    0 0 0 0.5px rgba(217,196,163,0.06);
}
.panel-right::after {
  background: linear-gradient(145deg, rgba(217,196,163,0.04) 0%, transparent 55%);
}

@keyframes panelInLeft {
  from { opacity: 0; transform: translateX(-24px) scale(0.94); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes panelInRight {
  from { opacity: 0; transform: translateX(24px) scale(0.94); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.panel-label {
  font-family: var(--font-m);
  font-size: 0.38rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c);
  text-shadow: 0 0 10px rgba(255,176,122,0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.panel-sub {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-m); font-size: 0.4rem;
  letter-spacing: 0.12em; color: var(--dim); margin-top: auto;
}
.panel-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 6px var(--c);
  animation: dotBlink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.panel-dot-cyan { background: var(--c2); box-shadow: 0 0 6px var(--c2); }
@keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── Texture graph (left panel) ─── */
.texture-graph { position: relative; }
.texture-svg { width: 100%; height: 46px; display: block; }
.tex-line {
  stroke-width: 1.8; fill: none;
  filter: drop-shadow(0 0 5px rgba(255,176,122,0.8));
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: texDraw 2s var(--ease) 0.9s forwards;
}
@keyframes texDraw { to { stroke-dashoffset: 0; } }
.tex-fill { opacity: 1; }
.tex-grid-h {
  stroke: rgba(255,176,122,0.07); stroke-width: 0.5; stroke-dasharray: 4,4;
}
.tex-grid-h2 { opacity: 0.5; }
.tex-badge {
  position: absolute; top: 2px; right: 0;
  font-family: var(--font-m); font-size: 0.58rem; font-weight: 700;
  color: var(--c); text-shadow: 0 0 10px var(--c);
}

/* ─── Bio indicators (right panel) ─── */
.bio-indicators { display: flex; flex-direction: column; gap: 0.48rem; }
.bio-row { display: flex; align-items: center; gap: 0.3rem; flex-wrap: nowrap; }
.bio-name {
  font-family: var(--font-m); font-size: 0.4rem;
  letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase;
  flex: 0 0 auto;
}
.bio-val {
  font-family: var(--font-m); font-size: 0.46rem; color: var(--c2);
  display: block; text-align: right; min-width: 1.8rem;
}
.bio-bar-track {
  flex: 1; height: 3px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden;
}
.bio-bar {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--c), #f0a878);
  box-shadow: 0 0 8px rgba(255,176,122,0.6);
  transform-origin: left; transform: scaleX(0);
  animation: bioGrow 1.1s var(--ease) 1.2s forwards;
}
.bio-bar-cyan { background: linear-gradient(90deg, var(--c2), #c2ad8a); box-shadow: 0 0 8px rgba(217,196,163,0.6); }
.bio-bar-mauve { background: linear-gradient(90deg, #d9c4a3, #b89968); box-shadow: 0 0 8px rgba(217,196,163,0.6); }
@keyframes bioGrow { to { transform: scaleX(1); } }

/* ─── Welcome text and CTA ─── */
.welcome-text-block {
  flex-shrink: 0; padding: 0.3rem 0 0.2rem;
  animation: fadeUp 0.6s var(--ease) 0.28s both;
}
.welcome-cta-dock {
  flex-shrink: 0; padding-bottom: 0.4rem;
  animation: fadeUp 0.5s var(--ease) 0.42s both;
}

/* Pulse on hover for start button */
.btn-start-analysis {
  animation: ctaPulse 2.4s ease-in-out 1s infinite;
}
.btn-start-analysis:hover:not(:disabled),
.btn-start-analysis:focus-visible:not(:disabled) {
  animation: ctaPulseHover 1s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 6px 28px rgba(255,176,122,0.3), 0 0 0 1px rgba(255,176,122,0.2); }
  50%      { box-shadow: 0 8px 44px rgba(255,176,122,0.5), 0 0 0 5px rgba(255,176,122,0.07); }
}
@keyframes ctaPulseHover {
  0%,100% { box-shadow: 0 8px 36px rgba(255,176,122,0.5), 0 0 0 2px rgba(255,176,122,0.25); transform: translateY(-2px); }
  50%      { box-shadow: 0 12px 52px rgba(255,176,122,0.7), 0 0 0 8px rgba(255,176,122,0.08); transform: translateY(-3px); }
}

/* ─── Page transition: sphere expands, panels fly out ─── */
.screen-welcome.transition-out .welcome-topnav {
  animation: textFadeOut 0.38s var(--ease) forwards;
}
.screen-welcome.transition-out .sphere-scene {
  animation: sphereBlast 0.78s var(--ease) forwards;
}
.screen-welcome.transition-out .sphere-halo {
  animation: sphereBlast 0.6s var(--ease) 0.05s forwards;
}
.screen-welcome.transition-out .panel-left {
  animation: panelFlyLeft 0.52s var(--ease) forwards;
}
.screen-welcome.transition-out .panel-right {
  animation: panelFlyRight 0.52s var(--ease) forwards;
}
.screen-welcome.transition-out .welcome-text-block,
.screen-welcome.transition-out .welcome-cta-dock {
  animation: textFadeOut 0.36s var(--ease) forwards;
}
@keyframes sphereBlast {
  0%   { transform: scale(1); opacity: 1; filter: brightness(1); }
  40%  { transform: scale(2.2); opacity: 1; filter: brightness(2.5); }
  70%  { transform: scale(5.5); opacity: 0.6; filter: brightness(3); }
  100% { transform: scale(14); opacity: 0; filter: brightness(0); }
}
@keyframes panelFlyLeft {
  to { transform: translateX(-140%) scale(0.8) rotateY(-12deg); opacity: 0; }
}
@keyframes panelFlyRight {
  to { transform: translateX(140%) scale(0.8) rotateY(12deg); opacity: 0; }
}
@keyframes textFadeOut {
  to { opacity: 0; transform: translateY(16px) scale(0.97); }
}

@media (max-height: 660px) {
  /* Short screens (most phones): keep the sphere compact — do NOT re-inflate it,
     it should never eat more than ~a fifth of the screen above the headline. */
  .welcome-stage { max-height: 150px; }
  .sphere-canvas { width: 84px; height: 84px; }
  .sphere-scene  { width: 90px; height: 90px; }
  .ring-a { width: 98px; height: 98px; }
  .ring-b { width: 108px; height: 108px; }
  .ring-c { width: 90px; height: 90px; }
  .scan-laser { width: 84px; margin-left: -42px; }
  .sphere-halo { inset: -8px; }
}
@media (max-height: 520px) {
  .welcome-stage { display: none; }
}

/* ─── Hero text ─── */
.hero-text {
  flex-shrink: 0; padding: 0 0 0.5rem;
  animation: fadeUp 0.6s var(--ease) 0.2s both;
}
.hero-tag {
  font-family: var(--font-m);
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c); margin-bottom: 0.55rem;
}
.hero-h1 {
  font-family: var(--font-s);
  font-size: clamp(1.7rem, 7vw, 2.1rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
}
.hero-h1 .word {
  display: inline-block;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  margin-right: 0.22em;
}
.hero-h1 .word.visible { opacity: 1; transform: translateY(0); }

.hero-sub {
  font-size: 0.85rem; line-height: 1.6; color: var(--muted); margin-top: 0.55rem;
}

.hero-honest {
  flex-shrink: 0; text-align: center;
  font-family: var(--font-m);
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 0.2rem;
  animation: fadeUp 0.5s var(--ease) 0.18s both;
}

/* ─── Trust pills ─── */
.trust-pills {
  display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap;
  flex-shrink: 0; margin: 0.4rem 0 0.2rem;
  animation: fadeUp 0.5s var(--ease) 0.35s both;
}
.pill {
  font-family: var(--font-m);
  font-size: 0.58rem; padding: 0.3rem 0.7rem;
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--muted); background: rgba(255,176,122,0.03);
}

/* ─── CTA dock ─── */
.cta-dock {
  flex-shrink: 0; padding-bottom: 0.5rem;
  animation: fadeUp 0.5s var(--ease) 0.4s both;
}

.btn-cta {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 54px;
  padding: 0 1.4rem;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, #ffbe82 0%, #f0925a 100%);
  color: #2a1408;
  font-family: var(--font-d); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(255,158,90,0.5), 0 0 0 1px rgba(255,196,140,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.btn-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(255,158,90,0.65), 0 0 0 1px rgba(255,196,140,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-cta:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-cta:disabled { opacity: 0.25; box-shadow: none; cursor: not-allowed; }
.btn-cta.btn-locked { opacity: 0.38; filter: grayscale(0.5); cursor: not-allowed; }
.btn-cta.btn-locked .btn-shimmer { animation: none; }
.btn-cta.btn-locked:hover { transform: none; box-shadow: none; }
.btn-cta-sm { min-height: 46px; font-size: 0.84rem; justify-content: center; }

.btn-cta-arrow {
  font-size: 1.2rem;
  transition: transform 0.25s var(--ease);
}
.btn-cta:hover .btn-cta-arrow { transform: translateX(5px); }

.btn-shimmer {
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 2.8s ease-in-out infinite 1.2s;
}
@keyframes shimmer { 0%{left:-100%} 40%{left:120%} 100%{left:120%} }

.btn-cta.loading { color: transparent; pointer-events: none; opacity: 0.7; }
.btn-cta.loading::after {
  content: "";
  position: absolute; width: 22px; height: 22px;
  border: 2px solid rgba(2,3,10,0.3); border-top-color: #02030a;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}

.fine-print {
  text-align: center; font-family: var(--font-m);
  font-size: 0.58rem; color: var(--dim); margin-top: 0.6rem;
}

/* D2: concrete trust anchor under the CTA — real order-of-magnitude, not invented */
.welcome-example {
  text-align: center; font-size: 0.68rem; line-height: 1.4;
  color: var(--muted); margin-top: 0.35rem;
}

/* Feedback widget on results */
.feedback-box {
  margin:1.4rem 0 0.6rem; padding:1rem;
  border:1px solid var(--border); border-radius:14px;
  background:rgba(255,255,255,0.02); text-align:center;
}
.feedback-q { font-size:0.85rem; color:var(--text); margin-bottom:0.7rem; font-weight:600; }
.feedback-btns { display:flex; gap:0.6rem; justify-content:center; }
.feedback-btn {
  flex:1; max-width:130px; padding:0.6rem; cursor:pointer;
  border:1px solid var(--border); border-radius:10px;
  background:rgba(255,176,122,0.03); color:var(--text);
  font-family:var(--font-d); font-size:0.85rem;
  transition:all 0.18s var(--ease); -webkit-tap-highlight-color:transparent;
}
.feedback-btn:active { transform:scale(0.96); border-color:var(--c); }
.feedback-comment-row { display:flex; gap:0.5rem; }
.feedback-input {
  flex:1; min-width:0; padding:0.6rem 0.7rem;
  border:1px solid var(--border); border-radius:10px;
  background:rgba(255,255,255,0.03); color:var(--text);
  font-family:var(--font-d); font-size:0.82rem;
}
.feedback-input:focus { outline:none; border-color:var(--c); }
.feedback-send {
  flex-shrink:0; padding:0.6rem 0.9rem; cursor:pointer;
  border:none; border-radius:10px; background:var(--c); color:#03130a;
  font-family:var(--font-d); font-weight:600; font-size:0.82rem;
}
.feedback-thanks { font-size:0.82rem; color:var(--c); }

/* "What you get" chips on welcome — concrete preview of the deliverable */
.welcome-gets {
  display:flex; flex-wrap:wrap; gap:0.4rem; justify-content:center;
  margin-top:0.7rem;
}
.welcome-get-chip {
  font-family:var(--font-m); font-size:0.6rem; letter-spacing:0.02em;
  padding:0.3rem 0.6rem; border-radius:100px;
  border:1px solid var(--border); color:var(--muted);
  background:rgba(255,176,122,0.03); white-space:nowrap;
}

/* Honest social proof — real count from server, shown only once meaningful */
.social-proof {
  text-align: center; font-family: var(--font-m);
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c); margin-top: 0.5rem;
}
.social-proof::before { content: '◆ '; opacity: 0.6; }
.social-proof--paywall { margin-top: 0.7rem; }

.disclaimer-line {
  text-align: center; font-size: 0.58rem; line-height: 1.4;
  color: var(--dim); margin-top: 0.5rem;
}

/* Deep-dive gate screen */
.deepdive-wrap {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:1.5rem 0.5rem; gap:0.5rem;
  animation: fadeUp 0.5s var(--ease) both;
}
.deepdive-check {
  width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--c); color:var(--c);
  background:rgba(255,176,122,0.08); margin-bottom:0.6rem;
}
.deepdive-title {
  font-family:var(--font-s); font-size:1.5rem; font-weight:700;
  color:var(--text); margin:0;
}
.deepdive-sub {
  font-size:0.92rem; line-height:1.55; color:var(--muted);
  max-width:30ch; margin:0.3rem 0 1.2rem;
}
.deepdive-wrap .cta-dock { width:100%; max-width:340px; }
.btn-ghost {
  width:100%; margin-top:0.6rem; padding:0.85rem;
  background:transparent; border:none; cursor:pointer;
  font-family:var(--font-d); font-size:0.88rem; color:var(--muted);
  -webkit-tap-highlight-color:transparent;
}
.btn-ghost:active { color:var(--text); }

/* Under-18 parental-consent notice on the age question */
.minor-notice {
  margin-top: 0.7rem; padding: 0.6rem 0.8rem;
  font-size: 0.74rem; line-height: 1.45;
  color: var(--muted);
  background: rgba(255,200,0,0.06);
  border: 1px solid rgba(255,200,0,0.18);
  border-radius: 10px;
}

/* ─── Test screen ─── */
.test-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 0 0; flex-shrink: 0;
}

.back-btn {
  width: 44px; height: 40px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,176,122,0.04); color: var(--c);
  font-size: 1rem; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, box-shadow 0.15s;
}
.back-btn:active {
  background: rgba(255,176,122,0.1);
  box-shadow: 0 0 12px rgba(255,176,122,0.2);
}

.progress-dots {
  flex: 1; display: flex; gap: 5px; height: 3px;
}
.step-dot {
  flex: 1; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s var(--ease), transform 0.3s;
}
.step-dot.done { background: rgba(255,176,122,0.35); }
.step-dot.active {
  background: linear-gradient(90deg, var(--c), var(--c2));
  box-shadow: 0 0 8px var(--c);
  transform: scaleY(1.5);
}

.quiz-area {
  flex: 1; display: flex; flex-direction: column;
  padding: 0.9rem 0 0.5rem; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.quiz-label {
  font-family: var(--font-m);
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c); margin-bottom: 0.5rem; display: block;
  text-shadow: 0 0 8px rgba(255,176,122,0.5);
}

.quiz-title {
  font-family: var(--font-s);
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 600; line-height: 1.15; margin-bottom: 1rem;
}

.step-label {
  flex: 1; font-family: var(--font-m);
  font-size: 0.58rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase;
}

.options-list { display: flex; flex-direction: column; gap: 0.55rem; }

.option {
  display: block; width: 100%; text-align: left;
  padding: 1rem 1.1rem; min-height: 52px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,176,122,0.02); color: var(--text);
  font-family: var(--font-d); font-size: 0.87rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  animation: optIn 0.38s var(--ease) both;
  position: relative; overflow: hidden;
}
.option::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 2px; height: 0%;
  background: var(--c);
  transition: height 0.22s var(--ease);
  box-shadow: 2px 0 8px var(--c);
}
.option:nth-child(1){animation-delay:0.03s}
.option:nth-child(2){animation-delay:0.08s}
.option:nth-child(3){animation-delay:0.13s}
.option:nth-child(4){animation-delay:0.18s}
.option:nth-child(5){animation-delay:0.22s}
.option.option-skip { opacity:0.5; font-size:0.83rem; padding:0.6rem 1rem; border-style:dashed; }
.option.option-skip:hover, .option.option-skip.selected { opacity:1; }
@keyframes optIn { from{opacity:0;transform:translateX(-14px)} to{opacity:1;transform:translateX(0)} }
.option:active { transform: scale(0.985); }
.option.selected {
  border-color: rgba(255,176,122,0.5);
  background: rgba(255,176,122,0.07);
  box-shadow: inset 0 0 0 1px rgba(255,176,122,0.12), 0 0 20px rgba(255,176,122,0.06);
}
.option.selected::before { height: 100%; }
.option small { display:block; margin-top:0.2rem; font-size:0.72rem; color:var(--dim); }

/* ─── Scrollable screens ─── */
.screen-scroll { justify-content: flex-start; padding-left: 0; padding-right: 0; }
.scroll-inner {
  flex: 1 1 auto; width: 100%; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 1.2rem calc(2rem + env(safe-area-inset-bottom, 0px));
}
.scroll-inner .results-stack { overflow: visible; flex: none; }

/* ─── Scan screen ─── */
.scan-body { flex:1; display:flex; flex-direction:column; min-height:0; padding-top:0.8rem; overflow-y:auto; }
.scan-lead { font-size:0.84rem; line-height:1.55; color:var(--muted); margin-bottom:0.8rem; }

.scan-stage {
  flex: 0 0 auto; position: relative;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  perspective: 600px; overflow: visible;
  margin-bottom: 1.4rem;
  pointer-events: none;
}
.scan-stage img, .scan-stage .face-scanner { pointer-events: auto; }

/* ─── Face scanner ─── */
.face-scanner {
  position: relative; width: 200px; height: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform-style: preserve-3d;
  animation: faceFloat 5s ease-in-out infinite;
}
@keyframes faceFloat {
  0%,100% { transform: rotateY(0deg) rotateX(2deg); }
  50%      { transform: rotateY(4deg) rotateX(-1deg); }
}

.face-outline-svg { width:200px; height:240px; }

.face-path {
  stroke-dasharray: 600; stroke-dashoffset: 600;
  stroke: rgba(255,176,122,0.6);
  filter: drop-shadow(0 0 4px rgba(255,176,122,0.5));
  animation: facePathDraw 2.4s var(--ease) forwards 0.3s;
}
@keyframes facePathDraw { to { stroke-dashoffset: 0; } }

.face-scan-beam {
  stroke: rgba(217,196,163,0.8);
  stroke-dasharray: 140;
  filter: drop-shadow(0 0 6px rgba(217,196,163,0.8));
  animation: faceScanBeam 2.4s ease-in-out infinite 1.8s;
  opacity: 0;
}
@keyframes faceScanBeam {
  0%   { transform:translateY(0);    opacity:0; }
  10%  { opacity:0.9; }
  90%  { opacity:0.7; }
  100% { transform:translateY(200px); opacity:0; }
}

.scanner-label {
  margin-top: 6px;
  font-family: var(--font-m); font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--c);
  text-shadow: 0 0 8px var(--c);
  opacity: 0; animation: fadeIn 0.6s var(--ease) forwards 2.2s;
}
@keyframes fadeIn { to{opacity:1} }

.photo-preview {
  width: 100%; max-width: 260px; max-height: 260px;
  height: auto; object-fit: cover;
  image-orientation: from-image;
  border-radius: 20px;
  border: 1px solid rgba(255,176,122,0.3);
  box-shadow: 0 14px 50px rgba(0,0,0,0.6), 0 0 40px rgba(255,176,122,0.12);
  animation: photoIn 0.5s var(--spring) both;
  display: block; margin: 0 auto;
}
@keyframes photoIn { from{opacity:0;transform:scale(0.9)} to{opacity:1;transform:scale(1)} }

.photo-ready {
  position: absolute; bottom: -0.4rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-m); font-size: 0.62rem; color: var(--c);
  background: rgba(2,3,10,0.9); padding: 0.28rem 0.8rem; border-radius: 100px;
  border: 1px solid rgba(255,176,122,0.3);
  box-shadow: 0 0 12px rgba(255,176,122,0.15);
}
.photo-check { font-weight: 700; }

.scan-actions { flex-shrink:0; padding-bottom:0.4rem; }
.scan-btn-row, .scan-retake-row { display:flex; gap:0.55rem; margin-bottom:0.65rem; align-items:stretch; }
#btn-remove { flex-shrink:0; min-width:72px; }
.scan-btn-wrap {
  position: relative; flex: 1; overflow: hidden;
  border-radius: 14px;
}
.scan-btn-wrap .scan-btn,
.scan-btn-wrap .ghost-btn { width: 100%; }
.scan-btn-input {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}

.scan-btn {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0.28rem; text-align:center; line-height:1.25;
  padding:0.85rem 0.6rem; min-height:62px;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,176,122,0.03); color: var(--text);
  font-family: var(--font-d); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.scan-btn:active {
  transform: scale(0.97);
  border-color: var(--c); background: rgba(255,176,122,0.08);
  box-shadow: 0 0 16px rgba(255,176,122,0.15);
}
.scan-btn-icon { font-size: 1.25rem; color: var(--c); }

.ghost-btn {
  flex:1; min-height:42px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,0.02); color: var(--muted);
  font-family: var(--font-d); font-size: 0.77rem; cursor: pointer;
}
.ghost-btn:active { transform: scale(0.97); }
.ghost-btn.danger { color: #e07070; border-color: rgba(220,80,80,0.22); }

.scan-tips {
  margin-top: 0.9rem; padding: 0.85rem 1rem;
  background: rgba(217,196,163,0.02); border: 1px solid var(--border2); border-radius: 14px;
}
.scan-tips-title {
  display: block; font-family: var(--font-m);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c2); margin-bottom: 0.5rem;
}
.scan-tips-list { list-style:none; margin:0; padding:0; }
.scan-tips-list li {
  position: relative; font-size:0.74rem; line-height:1.5; color:var(--muted);
  padding-left:1rem; margin-bottom:0.32rem;
}
.scan-tips-list li::before { content:'›'; position:absolute; left:0; top:0; color:var(--c2); }
.photo-quality-msg {
  margin-top:0.65rem; font-size:0.77rem; line-height:1.45;
  padding:0.5rem 0.8rem; border-radius:10px;
  animation: fadeUp 0.3s var(--ease) both;
}
.photo-quality-msg.ok   { color: var(--c); background: rgba(255,176,122,0.06); border:1px solid rgba(255,176,122,0.2); }
.photo-quality-msg.warn { color: #e3c07a; background: rgba(220,190,80,0.06); border:1px solid rgba(220,190,80,0.2); }

/* ─── Consent screen ─── */
#screen-consent { overflow: hidden; }
#screen-consent .cta-dock { flex-shrink:0; }
.consent-body {
  flex:1; display:flex; flex-direction:column; justify-content:flex-start;
  min-height:0; padding:0.8rem 0;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.consent-body .quiz-title { margin-bottom:1rem; flex-shrink:0; }

.disclaimer-card {
  display:flex; gap:0.7rem; align-items:flex-start;
  padding:0.85rem 1rem; border-radius:14px;
  border: 1px solid rgba(255,176,122,0.15);
  background: rgba(255,176,122,0.04); margin-bottom:0.65rem;
}
.disclaimer-card.soft { border-color:var(--border); background:rgba(255,255,255,0.015); }
.disclaimer-badge {
  flex-shrink:0; width:30px; height:30px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; background:rgba(255,176,122,0.1); color:var(--c);
}
.disclaimer-card.soft .disclaimer-badge { background:rgba(255,255,255,0.04); color:var(--muted); }
.disclaimer-card h3 { font-size:0.84rem; font-weight:600; color:var(--text); margin-bottom:0.18rem; }
.disclaimer-card p  { font-size:0.73rem; line-height:1.5; color:var(--muted); }

.consent-check {
  display:flex; gap:0.7rem; align-items:flex-start; cursor:pointer;
  padding:0.95rem 1rem; border:1px solid var(--border); border-radius:14px;
  background:rgba(255,255,255,0.015);
  transition: border-color 0.2s var(--ease);
}
.consent-check:has(#consent-box:checked) { border-color:rgba(255,176,122,0.4); background:rgba(255,176,122,0.05); }
#consent-box { position:absolute; opacity:0; width:1px; height:1px; }
.consent-box-ui {
  flex-shrink:0; width:22px; height:22px; border-radius:7px;
  border:1.5px solid var(--dim); display:flex; align-items:center; justify-content:center;
  transition:all 0.2s var(--ease); margin-top:1px;
}
#consent-box:checked + .consent-box-ui { background:linear-gradient(135deg, var(--c), #e89860); border-color:var(--c); }
#consent-box:checked + .consent-box-ui::after { content:"✓"; color:#02030a; font-size:0.78rem; font-weight:800; }
.consent-copy { font-size:0.79rem; line-height:1.5; color:var(--muted); }
.inline-link { background:none; border:none; padding:0; cursor:pointer; color:var(--c2); font:inherit; text-decoration:underline; text-underline-offset:2px; }

/* ─── Loading screen — Holographic terminal ─── */
.terminal-wrap {
  flex:1 1 auto; display:flex; flex-direction:column;
  margin:1.2rem 0 0.6rem;
  border:1px solid var(--border); border-radius:16px;
  overflow:hidden; min-height:200px;
  background: rgba(2,3,10,0.8);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow: 0 0 40px rgba(255,176,122,0.06), inset 0 1px 0 rgba(255,176,122,0.05);
  animation:fadeUp 0.5s var(--ease) both;
}
.terminal-header {
  display:flex; align-items:center; gap:0.35rem;
  padding:0.6rem 0.85rem;
  border-bottom:1px solid rgba(255,176,122,0.06);
  background:rgba(255,176,122,0.02);
}
.td { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.td-r { background:rgba(220,80,80,0.5); }
.td-y { background:rgba(200,165,80,0.5); }
.td-g { background:rgba(0,200,100,0.5); box-shadow: 0 0 6px rgba(0,200,100,0.4); }
.terminal-title-text {
  font-size:0.6rem; color:var(--dim); font-family:var(--font-m); margin-left:0.3rem;
}
.terminal-body {
  flex:1; padding:0.85rem 1rem; overflow:hidden;
  font-family:var(--font-m); font-size:0.77rem; line-height:1.9; color:var(--muted);
}
.terminal-line {
  display:flex; gap:0.5rem;
  opacity:0; transform:translateY(4px);
  transition:opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.terminal-line.visible { opacity:1; transform:none; }
.term-prompt { color:var(--c); flex-shrink:0; text-shadow:0 0 6px var(--c); }
.terminal-line.done .term-prompt { color:var(--c); }
.terminal-line.done .term-text { color:var(--text); }
.terminal-footer { padding:0.4rem 1rem 0.7rem; display:flex; align-items:center; gap:0.25rem; }
.terminal-cursor {
  display:inline-block; width:7px; height:1.1em;
  background:var(--c); opacity:0.9;
  box-shadow: 0 0 6px var(--c);
  animation:blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:0.9} 50%{opacity:0} }

.load-bar-wrap {
  flex-shrink:0; height:2px;
  background:rgba(255,255,255,0.04); border-radius:4px; overflow:hidden; margin:0 0 2rem;
}
.load-bar-fill {
  position:relative; overflow:hidden;
  height:100%; width:0%;
  background:linear-gradient(90deg, var(--c), var(--c2));
  box-shadow:0 0 12px var(--c);
  animation:loadBar 14s cubic-bezier(0.16,0.8,0.3,1) forwards;
}
.load-bar-fill::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform:translateX(-100%);
  animation:loadScan 1.3s var(--ease) infinite;
}
/* Creep toward 92% over the realistic Claude latency window, never hitting 100% until
   the response actually lands — keeps the bar feeling alive instead of frozen. */
@keyframes loadBar { 0%{width:0} 30%{width:55%} 70%{width:82%} 100%{width:92%} }
@keyframes loadScan { to{transform:translateX(100%)} }

/* ─── Paywall ─── */
.paywall-hero {
  flex-shrink:0; text-align:center;
  padding:1.1rem 0 0.7rem;
  animation:fadeUp 0.45s var(--ease) both;
}
.pw-ready-badge {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-family:var(--font-m); font-size:0.6rem; font-weight:700;
  letter-spacing:0.15em; text-transform:uppercase;
  color:var(--c); background:rgba(255,176,122,0.08);
  border:1px solid rgba(255,176,122,0.25); border-radius:100px;
  padding:0.28rem 0.85rem; margin-bottom:0.75rem;
  text-shadow:0 0 8px rgba(255,176,122,0.4);
  animation:pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow:0 0 0 0 rgba(255,176,122,0); }
  50%      { box-shadow:0 0 12px 2px rgba(255,176,122,0.18); }
}
.h1-sm { font-size:1.55rem; }

/* ─── Live teaser: real read of the user's own answers (no AI), locked lines below ─── */
.pw-teaser {
  position:relative; text-align:left;
  background:linear-gradient(145deg, rgba(255,176,122,0.05), var(--glass));
  border:1px solid rgba(255,176,122,0.22); border-radius:16px;
  padding:0.85rem 1rem 0.6rem; margin-bottom:1rem;
  animation:fadeUp 0.5s var(--ease) 0.04s both;
}
.pw-teaser-label {
  display:block; font-family:var(--font-m); font-size:0.58rem; font-weight:700;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--c);
  margin-bottom:0.4rem;
}
.pw-teaser-read {
  font-size:0.95rem; line-height:1.45; color:var(--text); font-weight:500;
  margin:0 0 0.7rem;
}
.pw-teaser-locked { position:relative; padding-bottom:0.25rem; }
.pw-teaser-line {
  height:9px; border-radius:5px; margin-bottom:0.5rem;
  background:linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  filter:blur(2.5px); opacity:0.8;
}
.pw-teaser-line.short { width:55%; }
.pw-teaser-lock {
  display:block; text-align:center; margin-top:0.55rem;
  font-size:0.72rem; font-weight:600; color:var(--muted);
}
.pw-teaser-lock::before { content:'🔒 '; opacity:0.7; }

.pw-features-card {
  background: linear-gradient(145deg, rgba(255,176,122,0.04), var(--glass));
  border:1px solid var(--border); border-radius:16px; padding:0.95rem 1rem;
  margin-bottom:1rem;
  animation:fadeUp 0.5s var(--ease) 0.08s both;
}
.pw-feature-row { display:flex; gap:0.8rem; align-items:flex-start; padding:0.55rem 0; }
.pw-feature-row + .pw-feature-row { border-top:1px solid rgba(255,255,255,0.04); }
.pw-feat-icon { font-size:1.1rem; flex-shrink:0; width:24px; text-align:center; margin-top:1px; }
.pw-feat-icon-txt { font-family:var(--font-m); font-size:0.62rem; font-weight:700; color:var(--c); letter-spacing:0.05em; width:24px; }
/* D4: numbering 01–04 replaced with a clear "you get this" checkmark */
.pw-feat-check {
  flex-shrink:0; width:18px; height:18px; margin-top:2px;
  border-radius:50%; background:rgba(255,176,122,0.12);
  position:relative;
}
.pw-feat-check::after {
  content:''; position:absolute; left:6px; top:3px;
  width:4px; height:8px; border:solid var(--c);
  border-width:0 2px 2px 0; transform:rotate(45deg);
}
.pw-feature-row b { font-size:0.83rem; color:var(--text); line-height:1.3; }
.pw-feat-sub { font-size:0.72rem; color:var(--muted); line-height:1.4; margin-top:1px; }

/* ─── Blur Preview (paywall teaser) ─── */
.blur-preview-wrap {
  position:relative; border-radius:18px; overflow:hidden;
  margin-bottom:1rem; border:1px solid var(--border);
}
.blur-preview-content {
  padding:1.1rem 1rem 0.9rem;
  background:linear-gradient(145deg, rgba(255,176,122,0.04), var(--glass));
  filter:blur(5px);
  user-select:none; pointer-events:none;
}
.blur-param-row {
  display:flex; align-items:center; gap:0.5rem;
  margin-bottom:0.45rem;
}
.blur-param-label { font-size:0.72rem; color:var(--muted); width:110px; flex-shrink:0; }
.blur-bar { flex:1; height:6px; background:rgba(255,255,255,0.08); border-radius:3px; overflow:hidden; }
.blur-bar-fill { height:100%; background:linear-gradient(90deg,#ffb07a,#d9c4a3); border-radius:3px; }
.blur-param-val { font-size:0.72rem; color:var(--muted); width:22px; text-align:right; }
.blur-routine-title { font-size:0.78rem; font-weight:600; margin:0.55rem 0 0.3rem; color:var(--fg); }
.blur-step { font-size:0.72rem; color:var(--muted); margin-bottom:0.2rem; }
.blur-overlay {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,transparent 0%,rgba(10,12,20,0.7) 50%,rgba(10,12,20,0.92) 100%);
}
.blur-lock-badge {
  background:var(--glass); border:1px solid var(--border);
  border-radius:999px; padding:0.45rem 1.1rem;
  font-size:0.82rem; font-weight:600; color:var(--fg);
  backdrop-filter:blur(8px); letter-spacing:0.01em;
}

.gate-price-block { text-align:center; margin-bottom:0.85rem; padding-top:0.4rem; }
/* Price anchor: dermatologist price struck-through next to your price — makes the
   value obvious at a glance without shouting. */
.gate-price-compare {
  display:flex; align-items:baseline; justify-content:center; gap:0.6rem;
}
.gate-anchor-price {
  font-family:var(--font-s); font-size:1.05rem; font-weight:500;
  color:var(--dim); text-decoration:line-through; text-decoration-color:rgba(255,90,90,0.7);
}
/* D3: price is a fact, not the hero. Calm, no glow, no gradient, no clipping. */
.gate-price {
  font-family:var(--font-s); font-weight:700;
  font-size:1.6rem; line-height:1.2;
  color: var(--text);
  padding:0.1rem 0;
}
.gate-price #paywall-price {
  color: var(--text);
}
.price-unit { font-size:1rem; vertical-align:baseline; color:var(--muted); margin-left:0.1rem; }
.price-per  { font-size:0.84rem; color:var(--dim); }
.gate-note  { font-size:0.72rem; color:var(--dim); margin:0.25rem 0 0.2rem; }
.gate-anchor {
  font-size:0.7rem; color:rgba(255,255,255,0.28); margin:0.1rem 0 0.5rem;
  font-family:var(--font-m); letter-spacing:0.01em;
}
.gate-guarantee {
  font-family:var(--font-m); font-size:0.62rem; color:rgba(255,176,122,0.5);
  margin-top:0.55rem; text-align:center; letter-spacing:0.02em;
}
/* Promo code */
.promo-wrap { margin-top:1rem; text-align:center; }
.promo-toggle-btn {
  background:none; border:none; padding:0.4rem 0;
  font-size:0.72rem; color:rgba(255,255,255,0.35);
  cursor:pointer; text-decoration:underline; text-underline-offset:3px;
  font-family:var(--font-m); letter-spacing:0.01em;
}
.promo-toggle-btn:hover { color:rgba(255,255,255,0.6); }
.promo-input-row { display:flex; gap:0.5rem; margin-top:0.6rem; }
.promo-input {
  flex:1; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15);
  border-radius:10px; padding:0.55rem 0.85rem; color:#fff;
  font-size:0.78rem; font-family:var(--font-m); letter-spacing:0.08em;
  outline:none; text-transform:uppercase;
}
.promo-input:focus { border-color:rgba(255,255,255,0.35); }
.promo-apply-btn {
  background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2);
  border-radius:10px; padding:0.55rem 1rem; color:#fff; cursor:pointer;
  font-size:0.78rem; font-family:var(--font-m); white-space:nowrap;
  transition:background 0.15s;
}
.promo-apply-btn:hover { background:rgba(255,255,255,0.18); }
.promo-apply-btn:disabled { opacity:0.5; cursor:default; }
.promo-msg { font-size:0.72rem; margin-top:0.5rem; text-align:center; font-family:var(--font-m); }
.promo-msg--success { color:rgba(255,176,122,0.8); }
.promo-msg--error   { color:rgba(255,100,100,0.8); }

/* ── Buy Sheet ───────────────────────────────────────────────────────────── */
.buy-sheet { position:fixed; inset:0; z-index:1000; display:flex; align-items:flex-end; pointer-events:none; }
.buy-sheet.active { pointer-events:all; }
.buy-sheet-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.6); opacity:0; transition:opacity 0.25s; }
.buy-sheet.active .buy-sheet-backdrop { opacity:1; }
.buy-sheet-inner {
  position:relative; width:100%; background:#111; border-radius:20px 20px 0 0;
  padding:1.5rem 1.25rem 2rem; transform:translateY(100%); transition:transform 0.3s cubic-bezier(.32,.72,0,1);
  max-height:90vh; overflow-y:auto;
}
.buy-sheet.active .buy-sheet-inner { transform:translateY(0); }
.buy-sheet-close { position:absolute; top:1rem; right:1rem; background:none; border:none; color:rgba(255,255,255,0.5); font-size:1.4rem; cursor:pointer; line-height:1; padding:0.2rem 0.5rem; }
.buy-sheet-label { font-size:0.72rem; color:rgba(255,255,255,0.4); letter-spacing:0.08em; text-transform:uppercase; margin:0 0 0.4rem; }
.buy-sheet-brand { font-size:1rem; color:rgba(255,255,255,0.5); font-weight:500; margin-bottom:0.1rem; }
.buy-sheet-name { font-size:1.3rem; color:#fff; font-weight:700; margin-bottom:1rem; line-height:1.2; }
.buy-sheet-img-wrap { width:100%; aspect-ratio:1/1; max-height:220px; background:rgba(255,255,255,0.04); border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:1rem; overflow:hidden; }
.buy-sheet-img { width:100%; height:100%; object-fit:contain; border-radius:14px; }
.buy-sheet-img-spinner { font-size:1.5rem; }
.buy-sheet-hint { font-size:0.75rem; color:rgba(255,255,255,0.35); text-align:center; margin:0 0 1.25rem; }
.buy-sheet-go { display:block; width:100%; text-align:center; background:var(--accent); color:#000; font-weight:700; font-size:1rem; border-radius:14px; padding:0.9rem; text-decoration:none; }

/* Dev skip button (only shown for dev email) */
.dev-skip-btn {
  display:block; width:100%; margin-top:1.5rem;
  background:none; border:none;
  padding:0.3rem; color:rgba(255,255,255,0.18);
  font-size:0.65rem; font-family:var(--font-m); cursor:pointer;
  letter-spacing:0.01em; text-align:center;
}
.dev-skip-btn:hover { color:rgba(255,255,255,0.45); }

/* Bigger, more confident CTA on paywall */
.pw-cta-btn {
  font-size:1rem !important;
  padding:1rem 1.2rem !important;
  letter-spacing:0.02em !important;
  min-height:56px !important;
  box-shadow:0 0 30px rgba(255,176,122,0.2), 0 0 60px rgba(255,176,122,0.08) !important;
}
.btn-sim-pay {
  display:block; width:100%; margin-top:0.55rem; padding:0.55rem;
  background:transparent; border:1px dashed rgba(255,255,136,0.35);
  border-radius:10px; color:rgba(255,255,136,0.7); font-size:0.72rem;
  cursor:pointer; letter-spacing:0.02em;
}
.btn-sim-pay:hover { background:rgba(255,255,136,0.06); }

.check-list { list-style:none; flex-shrink:0; margin:0.7rem 0; }
.check-list li { padding:0.38rem 0 0.38rem 1.35rem; position:relative; font-size:0.8rem; color:var(--muted); }
.check-list li::before { content:"✓"; position:absolute; left:0; color:var(--c); font-weight:700; }

.err-msg {
  background:rgba(220,80,80,0.08); border:1px solid rgba(220,80,80,0.22);
  color:#e05555; padding:0.65rem; border-radius:12px;
  font-size:0.78rem; margin-top:0.5rem;
  animation:fadeUp 0.3s var(--ease) both;
}

/* ─── Results ─── */
.results-topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding:0.75rem 0 0.5rem;
  border-bottom:1px solid var(--border);
}
.logout-btn {
  background:none; border:none; cursor:pointer;
  font-family:var(--font-m); font-size:0.58rem; font-weight:600;
  letter-spacing:0.06em; color:var(--dim);
  padding:0.3rem 0.6rem; border-radius:6px;
  transition:color 0.2s;
  -webkit-tap-highlight-color:transparent;
}
.logout-btn:hover { color:var(--c2); }

.results-head {
  flex-shrink:0; padding:1.1rem 0 0.75rem;
  border-bottom:1px solid var(--border); margin-bottom:0.2rem;
  animation:fadeUp 0.5s var(--ease) both;
}
.results-stack {
  flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding-bottom:1rem; min-height:0;
}

.r-card {
  background: var(--glass2);
  border:1px solid var(--border); border-radius:16px; padding:1.1rem;
  margin-bottom:0.65rem;
  backdrop-filter:blur(20px) saturate(1.4);
  -webkit-backdrop-filter:blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,176,122,0.05), 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.r-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,176,122,0.08), 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(255,176,122,0.04);
}
.r-card.reveal { animation:cardUp 0.5s var(--ease) both; }
.r-card.reveal:nth-child(2) { animation-delay:0.07s; }
.r-card.reveal:nth-child(3) { animation-delay:0.14s; }
@keyframes cardUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

.r-card-icon { color:var(--c); font-size:0.95rem; display:block; margin-bottom:0.38rem; text-shadow:0 0 8px var(--c); }
.r-card h3 { font-family:var(--font-s); font-size:1.02rem; margin-bottom:0.42rem; color:var(--c2); }
.r-card p  { font-size:0.82rem; color:var(--muted); line-height:1.6; }
.routine-block { margin-top:0.75rem; }
.routine-time {
  font-family:var(--font-m);
  font-size:0.55rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--c); display:block; margin-bottom:0.28rem;
}
.routine-list { display:flex; flex-direction:column; gap:1.2rem; }
.routine-section { display:flex; flex-direction:column; gap:0.35rem; }
.routine-section .routine-time { margin-bottom:0.2rem; }
/* Numbered routine steps */
.routine-section p,.routine-section div { font-size:0.79rem; line-height:1.6; color:var(--muted); }
.routine-products-link {
  display:inline-flex; align-items:center; gap:0.3rem; margin-top:0.9rem;
  font-family:var(--font-m); font-size:0.6rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--c); text-decoration:none; opacity:0.75; transition:opacity 0.15s;
}
.routine-products-link:hover { opacity:1; }
.routine-step {
  display:flex; gap:0.6rem; align-items:flex-start; padding:0.5rem 0;
  border-bottom:1px solid rgba(255,255,255,0.04);
}
.routine-step:last-child { border-bottom:none; }
.routine-step-num {
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  background:rgba(255,176,122,0.08); border:1px solid rgba(255,176,122,0.22);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-m); font-size:0.58rem; font-weight:700; color:var(--c);
  margin-top:0.05rem;
}
.routine-step-body { display:flex; flex-direction:column; gap:0.12rem; flex:1; }
.routine-step-label {
  font-family:var(--font-m); font-size:0.5rem; font-weight:700;
  letter-spacing:0.13em; text-transform:uppercase; color:var(--c2);
}
.routine-step-product {
  font-weight:600; font-size:0.82rem; color:var(--text); line-height:1.3;
}
.routine-step-reason { font-size:0.74rem; color:var(--muted); line-height:1.5; }
.routine-step-plain { font-size:0.79rem; line-height:1.6; color:var(--muted); padding:0.3rem 0; }

.product-item {
  display:flex; gap:0.75rem; padding:1rem 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.product-item:last-child { border-bottom:none; }

/* ── Product card ── */

/* "Start here" banner above must-have products */
.product-must-banner {
  font-family:var(--font-m); font-size:0.58rem; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase;
  color:#02030a; background:var(--c);
  border-radius:8px 8px 0 0; padding:0.28rem 0.75rem;
  margin-bottom:-4px;
  display:inline-block;
}

.product-item {
  display:flex; gap:0.85rem; padding:1.1rem 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
  animation:fadeSlideUp 0.4s both;
}
.product-item--must {
  background:rgba(255,176,122,0.03);
  border-radius:0 0 10px 10px;
  padding:1rem 0.75rem;
  margin:0 -0.75rem;
  border-bottom:1px solid rgba(255,176,122,0.1);
}
.product-item:last-child { border-bottom:none; }
@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Thumb column — photo + step number */
.product-thumb-col {
  display:flex; flex-direction:column; align-items:center; gap:0.35rem; flex-shrink:0;
}
.product-thumb-wrap {
  width:88px; height:88px; border-radius:12px;
  background:#fff; border:1px solid rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; cursor:default; flex-shrink:0;
}
.product-thumb-wrap[data-modal-img] { cursor:zoom-in; }
.product-thumb-wrap[data-modal-img]:active { opacity:0.85; }
.product-logo { width:60px; height:60px; object-fit:contain; display:block; }
.product-logo--photo { width:88px; height:88px; object-fit:contain; padding:5px; }

/* Step number pill under thumbnail */
.product-step-num {
  font-family:var(--font-m); font-size:0.6rem; font-weight:700;
  letter-spacing:0.08em; color:rgba(255,255,255,0.3);
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  border-radius:100px; padding:0.1rem 0.45rem; user-select:none;
}

/* Branded fallback when no product photo — brand initials + step-type icon */
.product-mono-fallback {
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  background:linear-gradient(135deg, #0f1714, #0c1418);
  color:var(--c);
}
.product-mono-fallback .pf-initials {
  font-family:var(--font-m); font-size:1.15rem; font-weight:700; letter-spacing:0.02em;
  line-height:1; color:var(--c);
}
.product-mono-fallback .pf-step-icon {
  width:20px; height:20px; color:rgba(255,176,122,0.55);
}

/* Main content column */
.product-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:0.3rem; }
.product-header-row { display:flex; align-items:center; gap:0.4rem; flex-wrap:wrap; }
.product-brand {
  font-family:var(--font-m); font-size:0.5rem; font-weight:700;
  letter-spacing:0.15em; text-transform:uppercase; color:var(--c);
  text-shadow:0 0 6px rgba(255,176,122,0.35);
}
.product-name {
  font-family:var(--font-s); font-weight:700; font-size:0.98rem;
  color:var(--text); line-height:1.3; letter-spacing:-0.01em; margin-top:0.05rem;
}
.product-simple-desc {
  font-size:0.77rem; line-height:1.58; color:var(--muted); margin-top:0.05rem;
}

/* Step tag (Cleanse / Treat / etc.) */
.product-step-tag {
  display:inline-block; font-family:var(--font-m); font-size:0.48rem;
  font-weight:700; letter-spacing:0.13em; text-transform:uppercase;
  color:var(--c2); background:rgba(217,196,163,0.07);
  border:1px solid rgba(217,196,163,0.18); border-radius:100px;
  padding:0.12rem 0.52rem; white-space:nowrap;
}
.product-priority-badge {
  display:inline-block; font-size:0.58rem; font-weight:700;
  letter-spacing:0.04em; padding:0.1rem 0.45rem; border-radius:20px;
  text-transform:uppercase; white-space:nowrap;
}
.product-priority--must { background:rgba(255,176,122,0.12); color:#ffb07a; border:1px solid rgba(255,176,122,0.28); }
.product-priority--nice { background:rgba(217,196,163,0.12); color:#d9c4a3; border:1px solid rgba(217,196,163,0.26); }

/* Stores section */
.product-stores-row { display:flex; flex-direction:column; gap:0.4rem; margin-top:0.55rem; }

/* Primary buy button */
.product-buy-btn {
  display:flex; align-items:center; gap:0.6rem;
  width:100%; padding:0.72rem 1rem;
  background:linear-gradient(135deg, rgba(255,176,122,0.12), rgba(255,176,122,0.06));
  border:1px solid rgba(255,176,122,0.4); border-radius:10px;
  font-family:var(--font-m); font-size:0.76rem; font-weight:700;
  letter-spacing:0.04em; color:var(--c); text-decoration:none;
  transition:background 0.18s, border-color 0.18s, box-shadow 0.18s;
  min-height:46px; box-sizing:border-box;
}
/* Must-have product gets solid green CTA */
.product-buy-btn--must {
  background:linear-gradient(135deg, rgba(255,176,122,0.22), rgba(255,176,122,0.13));
  border-color:rgba(255,176,122,0.65);
  box-shadow:0 0 16px rgba(255,176,122,0.15);
}
.product-buy-store { flex:1; }
.product-price-tag {
  font-family:var(--font-s); font-size:0.88rem; font-weight:800;
  color:var(--c); letter-spacing:-0.01em; flex-shrink:0;
}
.product-buy-arrow { font-size:0.8rem; opacity:0.55; flex-shrink:0; }
.product-buy-btn:hover {
  background:linear-gradient(135deg, rgba(255,176,122,0.24), rgba(255,176,122,0.14));
  border-color:rgba(255,176,122,0.8); box-shadow:0 0 18px rgba(255,176,122,0.22);
}
.product-buy-btn:active { opacity:0.88; transform:scale(0.99); }

/* Alt store row */
.product-alt-row {
  display:flex; align-items:center; flex-wrap:wrap; gap:0.25rem 0.3rem;
  margin-top:0.15rem; overflow:hidden; max-width:100%;
}
.product-alt-label {
  font-family:var(--font-m); font-size:0.6rem; font-weight:500;
  color:rgba(255,255,255,0.3); letter-spacing:0.03em; white-space:nowrap;
  flex-shrink:0;
}
.product-store-tag {
  display:inline-flex; align-items:center; gap:0.2rem;
  font-size:0.66rem; font-family:var(--font-m); font-weight:600;
  letter-spacing:0.04em; text-decoration:none; white-space:nowrap;
  padding:0.25rem 0.6rem; border-radius:20px;
  color:rgba(255,255,255,0.75); border:1px solid rgba(255,255,255,0.22);
  background:rgba(255,255,255,0.04);
  transition:color 0.15s, border-color 0.15s, background 0.15s;
  min-height:28px;
}
.product-store-tag::after { content:'↗'; font-size:0.6rem; opacity:0.6; }
.product-store-tag:hover {
  color:#fff; border-color:rgba(217,196,163,0.6); background:rgba(217,196,163,0.1);
}
.product-store-tag:active { opacity:0.8; transform:scale(0.98); }

/* Science accordion per product */
.product-science {
  margin-top:0.35rem; border-radius:10px;
  border:1px solid rgba(217,196,163,0.1); background:rgba(217,196,163,0.02);
  overflow:hidden;
}
.product-science[open] { border-color:rgba(217,196,163,0.22); }
.product-science-toggle {
  display:flex; align-items:center; gap:0.4rem;
  padding:0.5rem 0.75rem; cursor:pointer;
  font-family:var(--font-m); font-size:0.6rem; font-weight:600;
  letter-spacing:0.06em; color:var(--dim);
  list-style:none; user-select:none; transition:color 0.2s;
}
.product-science-toggle::-webkit-details-marker { display:none; }
.product-science[open] .product-science-toggle { color:var(--c2); }
.product-science-icon { font-size:0.8rem; flex-shrink:0; }
.product-science-arrow { margin-left:auto; font-size:0.9rem; transition:transform 0.22s; }
.product-science[open] .product-science-arrow { transform:rotate(90deg); }
.product-science-body {
  padding:0.1rem 0.75rem 0.65rem;
  border-top:1px solid rgba(217,196,163,0.06);
}
.product-inci { font-family:var(--font-m); font-size:0.64rem; color:var(--c2); margin-bottom:0.28rem; }
.product-inci-label { color:var(--dim); margin-right:0.3rem; }
.product-why-text { font-size:0.72rem; line-height:1.55; color:var(--muted); }

.coach-card {
  position:relative; overflow:hidden;
  background:linear-gradient(160deg, rgba(255,176,122,0.06), var(--glass));
  border:1px solid rgba(255,176,122,0.2); border-radius:18px; padding:1.2rem;
  margin-bottom:0.65rem;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
}
.coach-card.reveal { animation:cardUp 0.5s var(--ease) 0.22s both; }
.coach-glow-bg {
  position:absolute; top:-30%; right:-20%;
  width:180px; height:180px;
  background:var(--c); opacity:0.06;
  filter:blur(50px); pointer-events:none;
}
.coach-title { font-family:var(--font-s); font-size:1.2rem; margin:0.28rem 0 0.55rem; }
.coach-price { font-family:var(--font-s); font-size:1.9rem; color:var(--c2); margin-bottom:0.55rem; text-shadow:0 0 20px rgba(217,196,163,0.4); }
.coach-anchor { font-size:0.7rem; color:var(--dim); margin:-0.2rem 0 0.55rem; }
.coach-guarantee { font-family:var(--font-m); font-size:0.65rem; color:var(--c); text-align:center; margin-top:0.55rem; padding:0.38rem; line-height:1.4; }
.skip-btn { background:none; border:none; color:var(--dim); font-size:0.74rem; padding:0.65rem; width:100%; cursor:pointer; }

/* ─── Numbered report ─── */
.report-num {
  flex-shrink:0; width:2rem;
  font-family:var(--font-m); font-size:1.2rem;
  color:rgba(255,176,122,0.2); line-height:1; letter-spacing:-0.02em; padding-top:0.1rem;
}
.report-body { flex:1; min-width:0; }
.report-rule { height:1px; background:var(--border); margin:0; }

.results-headline {
  font-family: var(--font-s);
  font-size: clamp(1.1rem, 5vw, 1.35rem); font-weight: 800;
  color: var(--text); margin-bottom: 1rem; line-height: 1.3;
  padding: 1rem 1.1rem 1rem 1.2rem;
  background: rgba(255,176,122,0.06);
  border-left: 3px solid var(--c);
  border-radius: 0 12px 12px 0;
  letter-spacing: -0.01em;
}
.explain-body {
  font-family: var(--font-d);
  font-size: clamp(0.97rem, 4.2vw, 1.08rem);
  /* D5: more breathing room + comfortable measure for readability */
  line-height: 1.85; color: rgba(232,240,255,0.86);
  margin-bottom: 0.5rem;
  max-width: 38ch;
}
.explain-body p { margin-bottom: 0.85rem; }
.explain-body p:last-child { margin-bottom: 0; }
.report-section { display:flex; gap:1rem; padding:1.6rem 0; align-items:flex-start; }
.report-kicker {
  display:block; font-family:var(--font-m);
  font-size:0.5rem; font-weight:600; letter-spacing:0.24em;
  text-transform:uppercase; color:var(--c); margin-bottom:0.85rem;
  text-shadow:0 0 8px rgba(255,176,122,0.4);
}

.science-accordion {
  margin-top:0.7rem; border-radius:12px;
  border:1px solid var(--border2); background:rgba(217,196,163,0.02); overflow:hidden;
}
.science-accordion[open] { border-color:rgba(217,196,163,0.25); }
.science-toggle {
  display:flex; align-items:center; gap:0.5rem;
  padding:0.7rem 1rem; cursor:pointer;
  font-size:0.77rem; font-weight:600; letter-spacing:0.04em; color:var(--muted);
  list-style:none; user-select:none; transition:color 0.2s;
}
.science-toggle::-webkit-details-marker { display:none; }
.science-accordion[open] .science-toggle { color:var(--c2); }
.science-toggle-icon { font-size:0.9rem; flex-shrink:0; }
.science-toggle-arrow { margin-left:auto; font-size:1rem; transition:transform 0.25s; }
.science-accordion[open] .science-toggle-arrow { transform:rotate(90deg); }
.science-body {
  padding:0 1rem 0.85rem; font-family:var(--font-m);
  font-size:0.78rem; line-height:1.65; color:var(--muted);
  white-space:pre-wrap; border-top:1px solid rgba(217,196,163,0.06); padding-top:0.7rem;
}

.safety-card {
  display:flex; gap:0.7rem; align-items:flex-start;
  padding:0.85rem 1rem; border-radius:14px;
  border:1px solid rgba(200,160,80,0.22); background:rgba(200,160,80,0.04);
  margin-bottom:0.75rem;
}
.safety-icon { flex-shrink:0; font-size:1rem; line-height:1; margin-top:0.1rem; opacity:0.7; }
.safety-card h3 { font-size:0.77rem; font-weight:600; color:rgba(220,190,110,0.9); margin-bottom:0.28rem; }
.safety-card p  { font-size:0.7rem; line-height:1.55; color:var(--muted); }

.params-legend { display:flex; gap:0.5rem; margin:0.55rem 0 0.9rem; }
.params-legend-btn {
  position:relative; padding:0.28rem 0.7rem 0.28rem 1.35rem;
  font-size:0.66rem; font-family:var(--font-m); letter-spacing:0.05em;
  color:var(--dim); background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08); border-radius:100px;
  cursor:pointer; transition:all 0.25s ease;
}
.params-legend-btn::before {
  content:''; position:absolute; left:0.55rem; top:50%; transform:translateY(-50%);
  width:0.5rem; height:0.5rem; border-radius:50%;
}
.params-legend-btn.active { color:var(--text); border-color:rgba(255,255,255,0.18); background:rgba(255,255,255,0.07); }
.params-legend-now::before  { background:var(--c); box-shadow:0 0 5px var(--c); }
.params-legend-proj::before { background:rgba(255,255,255,0.25); border:1.5px dashed rgba(255,255,255,0.4); }
.params-legend-now.active::before  { box-shadow:0 0 8px var(--c); }
.params-legend-proj.active::before { background:rgba(217,196,163,0.6); border-color:rgba(217,196,163,0.6); box-shadow:0 0 8px rgba(217,196,163,0.5); }
.param-row { margin-bottom:0.95rem; animation:fadeUp 0.5s var(--ease) both; }
.param-row:last-child { margin-bottom:0; }
.param-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.38rem; }
.param-name { display:flex; align-items:center; gap:0.42rem; font-size:0.83rem; font-weight:500; }
.param-icon { font-size:0.9rem; }
.param-badge { font-family:var(--font-m); font-size:0.56rem; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; padding:0.16rem 0.5rem; border-radius:100px; }
/* Polarity-aware coloring: status-good = healthy (green), status-bad = problem (red), status-moderate = caution (amber) */
.status-good .param-badge      { color:var(--c); background:rgba(255,176,122,0.12); }
.status-moderate .param-badge  { color:#e3c07a; background:rgba(220,190,80,0.1); }
.status-bad .param-badge       { color:#e07070; background:rgba(220,80,80,0.14); }
/* Legacy aliases kept for safety */
.level-low .param-badge      { color:var(--c); background:rgba(255,176,122,0.1); }
.level-moderate .param-badge { color:#e3c07a; background:rgba(220,190,80,0.1); }
.level-high .param-badge     { color:#e07070; background:rgba(220,80,80,0.12); }
.param-track { position:relative; height:6px; border-radius:100px; background:rgba(255,255,255,0.05); overflow:hidden; }
.param-proj {
  position:absolute; left:0; top:0; height:100%; border-radius:100px;
  background:repeating-linear-gradient(45deg, rgba(255,255,255,0.12), rgba(255,255,255,0.12) 3px, rgba(255,255,255,0.05) 3px, rgba(255,255,255,0.05) 6px);
  transition: width 1.5s ease-out;
}
.param-now {
  position:absolute; left:0; top:0; height:100%; border-radius:100px;
  background:linear-gradient(90deg, #ff9d52, #ffc28f);
  transition: width 1.5s ease-out;
  box-shadow:0 0 10px rgba(255,172,110,0.6);
  animation:paramGrow 0.9s var(--ease) both;
}
/* Polarity-aware bar colors */
.status-good .param-now     { background:linear-gradient(90deg, #ff9d52, #ffc28f); box-shadow:0 0 10px rgba(255,172,110,0.55); }
.status-bad .param-now      { background:linear-gradient(90deg, #e07070, #d44040); box-shadow:0 0 8px rgba(220,80,80,0.4); }
.status-moderate .param-now { background:linear-gradient(90deg, #e3c07a, #c9922a); box-shadow:0 0 8px rgba(220,190,80,0.35); }
/* Legacy */
.level-low .param-now    { background:linear-gradient(90deg, var(--c), #f0a878); }
.level-high .param-now   { background:linear-gradient(90deg, #e07070, #d44040); box-shadow:0 0 8px rgba(220,80,80,0.3); }
@keyframes paramGrow { from{transform:scaleX(0);transform-origin:left} to{transform:scaleX(1)} }
.param-vals { display:flex; align-items:center; gap:0.38rem; margin-top:0.3rem; font-family:var(--font-m); font-size:0.65rem; }
.param-now-val { color:var(--c); font-weight:700; transition:color 0.3s; }
.status-bad .param-now-val      { color:#e07070; }
.status-moderate .param-now-val { color:#e3c07a; }
.status-good .param-now-val     { color:var(--c); }
.param-arrow { color:var(--dim); transition:opacity 0.3s; }
.param-proj-val { color:var(--dim); transition:color 0.3s, font-weight 0.3s; }

/* Projected mode: highlight projected value, dim current */
.params-list.show-proj .param-now-val  { color:var(--dim); font-weight:400; }
.params-list.show-proj .param-proj-val { color:#d9c4a3; font-weight:700; }
.params-list.show-proj .param-arrow    { opacity:0.3; }
/* Projected bar pops to front, now bar dims */
.params-list.show-proj .param-now  { opacity:0.2; }
.params-list.show-proj .param-proj { z-index:2; background:linear-gradient(90deg, rgba(217,196,163,0.6), rgba(0,180,220,0.4)); box-shadow:0 0 8px rgba(217,196,163,0.4); }

.metrics {
  display:flex; align-items:center; gap:0; flex-shrink:0;
  background:rgba(255,176,122,0.03); border:1px solid var(--border); border-radius:16px;
  padding:0.7rem 1rem; margin:0.7rem 0;
  animation:fadeUp 0.5s var(--ease) 0.3s both;
}
.metric { flex:1; text-align:center; }
.metric strong { display:block; font-family:var(--font-s); font-size:1.1rem; font-weight:700; color:var(--c2); text-shadow:0 0 12px rgba(217,196,163,0.3); }
.metric span { font-family:var(--font-m); font-size:0.56rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--dim); }
.metric-divider { width:1px; height:1.8rem; background:var(--border); flex-shrink:0; }

/* ─── SOS FAB ─── */
.sos-fab {
  position:fixed;
  bottom:calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right:1.25rem;
  width:52px; height:52px; border-radius:50%; border:none;
  background:linear-gradient(135deg, #e85555, #b83030);
  color:#fff; font-family:var(--font-m); font-size:0.56rem; font-weight:700;
  cursor:pointer; z-index:50; display:none;
  box-shadow:0 6px 28px rgba(220,80,80,0.5);
}
.sos-fab.visible {
  display:flex; align-items:center; justify-content:center;
  animation:sosIn 0.45s var(--spring), sosPulse 2.5s ease-in-out 0.5s infinite;
}
@keyframes sosIn  { from{transform:scale(0)} to{transform:scale(1)} }
@keyframes sosPulse { 0%,100%{box-shadow:0 6px 28px rgba(220,80,80,0.5)} 50%{box-shadow:0 6px 40px rgba(220,80,80,0.75),0 0 0 10px rgba(220,80,80,0.06)} }

/* ─── SOS Modal ─── */
.sos-modal { position:fixed; inset:0; z-index:100; display:none; }
.sos-modal.open { display:block; }
.sos-backdrop {
  position:absolute; inset:0;
  background:rgba(2,3,10,0.7);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  opacity:0; animation:sosFade 0.3s var(--ease) forwards;
}
.sos-modal.closing .sos-backdrop { animation:sosFade 0.25s var(--ease) reverse forwards; }
@keyframes sosFade { from{opacity:0} to{opacity:1} }
.sos-sheet {
  position:absolute; left:0; right:0; bottom:0;
  max-width:430px; margin:0 auto;
  background:linear-gradient(170deg, rgba(20,6,6,0.97), rgba(8,2,2,0.99));
  border:1px solid rgba(232,85,85,0.2); border-bottom:none;
  border-radius:26px 26px 0 0;
  padding:0.9rem 1.3rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  transform:translateY(100%);
  animation:sosSlideUp 0.45s var(--spring) forwards;
}
.sos-modal.closing .sos-sheet { animation:sosSlideDown 0.28s var(--ease) forwards; }
@keyframes sosSlideUp   { to{transform:translateY(0)} }
@keyframes sosSlideDown { to{transform:translateY(100%)} }
.sos-grip { width:36px; height:4px; border-radius:4px; background:rgba(255,255,255,0.15); margin:0 auto 0.9rem; }
.sos-close {
  position:absolute; top:0.9rem; right:1rem;
  width:34px; height:34px; border:1px solid var(--border); border-radius:50%;
  background:rgba(255,255,255,0.03); color:var(--muted); font-size:1.2rem; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.sos-close:active { transform:scale(0.92); }
.sos-emblem { position:relative; width:48px; height:48px; display:flex; align-items:center; justify-content:center; margin-bottom:0.55rem; }
.sos-emblem span { font-family:var(--font-m); font-size:0.6rem; font-weight:700; letter-spacing:0.06em; color:#e85555; z-index:1; }
.sos-emblem-ring { position:absolute; inset:0; border-radius:50%; border:1.5px solid rgba(232,85,85,0.4); box-shadow:0 0 20px rgba(232,85,85,0.25); animation:haloPulse 2.4s ease-in-out infinite; }
.sos-modal-title { font-family:var(--font-s); font-size:1.4rem; line-height:1.15; margin:0.2rem 0 1rem; }
.sos-textarea {
  width:100%; min-height:80px; resize:none;
  padding:0.85rem 1rem; border:1px solid var(--border); border-radius:14px;
  background:rgba(255,255,255,0.025); color:var(--text);
  font-family:var(--font-d); font-size:0.88rem; line-height:1.5; margin-bottom:0.75rem;
  transition:border-color 0.2s var(--ease);
}
.sos-textarea::placeholder { color:var(--dim); }
.sos-textarea:focus { outline:none; border-color:rgba(232,85,85,0.5); box-shadow:0 0 0 3px rgba(232,85,85,0.07); }
.sos-send { background:linear-gradient(135deg, #e85555 0%, #b83030 100%); box-shadow:0 8px 28px rgba(220,80,80,0.4); color:#fff; }
.sos-send:hover:not(:disabled) { box-shadow:0 12px 38px rgba(220,80,80,0.55); }
.sos-result-view { animation:fadeUp 0.4s var(--ease) both; }
.sos-tip-card { position:relative; background:rgba(232,85,85,0.06); border:1px solid rgba(232,85,85,0.2); border-radius:16px; padding:1rem 1rem 1rem 2.3rem; margin-bottom:0.5rem; }
.sos-tip-icon { position:absolute; top:1rem; left:0.95rem; color:#e85555; font-size:0.9rem; }
.sos-tip-card p { font-size:0.88rem; line-height:1.6; color:var(--text); }
@media (max-height:560px) { .sos-emblem{display:none} .sos-modal-title{font-size:1.2rem;margin-bottom:0.6rem} }

.progress-card .report-section { padding-top:0.38rem; }
.progress-card p { font-size:0.81rem; line-height:1.65; color:var(--muted); }

.rescan-notice {
  text-align:center; font-size:0.72rem; color:var(--dim);
  padding:0.9rem 1.4rem 0; line-height:1.55; max-width:340px; margin:0 auto;
}
.restart-wrap { display:flex; justify-content:center; padding:0.7rem 0 0.55rem; }
.restart-btn {
  display:inline-flex; align-items:center; gap:0.4rem;
  background:rgba(255,176,122,0.06); border:1px solid rgba(255,176,122,0.25); border-radius:100px;
  padding:0.6rem 1.4rem;
  font-family:var(--font-m); font-size:0.78rem; font-weight:600;
  color:rgba(255,176,122,0.75); cursor:pointer; letter-spacing:0.04em;
  transition:color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.restart-btn:hover { color:var(--c); border-color:rgba(255,176,122,0.5); background:rgba(255,176,122,0.1); box-shadow:0 0 16px rgba(255,176,122,0.15); }
.restart-icon { font-size:0.95rem; line-height:1; }

/* ─── Results bottom CTA actions ─── */
.results-actions {
  display:flex; gap:0.55rem; padding:1.1rem 0 0.4rem;
  justify-content:center; flex-wrap:wrap;
}
.results-action-btn {
  display:inline-flex; align-items:center; gap:0.4rem;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:100px;
  padding:0.65rem 1.25rem;
  font-family:var(--font-m); font-size:0.82rem; font-weight:600; color:var(--c);
  cursor:pointer; transition:border-color 0.18s, background 0.18s;
  white-space:nowrap;
}
.results-action-btn:hover { background:rgba(255,176,122,0.08); border-color:rgba(255,176,122,0.35); }
.results-action-icon { font-size:1rem; line-height:1; }

/* ─── Share / Export row ─── */
.share-row {
  display:flex; gap:0.6rem; padding:0.75rem 0 0.2rem;
  justify-content:center; flex-wrap:wrap;
}
.share-btn {
  display:inline-flex; align-items:center; gap:0.45rem;
  background:rgba(255,176,122,0.06); border:1px solid rgba(255,176,122,0.18);
  border-radius:100px; padding:0.5rem 1.1rem;
  font-family:var(--font-m); font-size:0.72rem; font-weight:600;
  color:var(--c); cursor:pointer; letter-spacing:0.04em;
  transition:background 0.2s, box-shadow 0.2s;
}
.share-btn:hover { background:rgba(255,176,122,0.12); box-shadow:0 0 14px rgba(255,176,122,0.2); }
.share-btn-icon { font-size:1rem; line-height:1; }
.share-btn.secondary {
  color:var(--c2); border-color:rgba(217,196,163,0.18);
  background:rgba(217,196,163,0.05);
}
.share-btn.secondary:hover { background:rgba(217,196,163,0.12); }

/* ─── Skeleton loading (deep analysis phase) ─── */
.skeleton-screen {
  display:flex; flex-direction:column; gap:0.9rem;
  padding:0.5rem 0 1rem; animation:skFadeIn 0.4s ease both;
}
@keyframes skFadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

.sk-header { display:flex; flex-direction:column; gap:0.5rem; }
.sk-line {
  border-radius:8px; background:linear-gradient(90deg, rgba(255,176,122,0.05) 25%, rgba(217,196,163,0.09) 50%, rgba(255,176,122,0.05) 75%);
  background-size:200% 100%;
  animation:skShimmer 1.7s ease-in-out infinite;
}
@keyframes skShimmer {
  0%   { background-position:200% 0 }
  100% { background-position:-200% 0 }
}
.sk-line-title  { height:18px; width:65%; }
.sk-line-sub    { height:13px; width:85%; }
.sk-line-short  { height:11px; width:45%; }
.sk-card {
  border:1px solid var(--border); border-radius:14px;
  padding:1rem; display:flex; flex-direction:column; gap:0.6rem;
  background:rgba(6,8,20,0.45);
}
.sk-bar-row { display:flex; align-items:center; gap:0.7rem; }
.sk-dot  { width:28px; height:28px; border-radius:50%; flex-shrink:0; }
.sk-bar  { flex:1; border-radius:100px; }
.sk-bar-tall  { height:10px; }
.sk-bar-short { height:8px; width:60%; }
.sk-text-block { display:flex; flex-direction:column; gap:0.45rem; }
.sk-product-row { display:flex; gap:0.7rem; align-items:flex-start; }
.sk-thumb { width:40px; height:40px; border-radius:10px; flex-shrink:0; }
.sk-product-lines { flex:1; display:flex; flex-direction:column; gap:0.4rem; }

/* ─── Markdown-formatted explanation text ─── */
.md-body p          { margin-bottom:0.65rem; }
.md-body p:last-child { margin-bottom:0; }
.md-body strong, .md-body b { color:var(--c2); font-weight:600; }
.md-body em         { color:var(--muted); font-style:italic; }
.md-body ul, .md-body ol { padding-left:1.3rem; margin-bottom:0.65rem; }
.md-body li         { margin-bottom:0.3rem; line-height:1.6; }
.md-body ul li::marker { color:var(--c); }

.demo-banner {
  display:flex; gap:0.5rem; align-items:flex-start;
  padding:0.52rem 0.85rem; border-radius:10px;
  border:1px solid rgba(255,255,255,0.06); background:rgba(255,255,255,0.015);
  margin-bottom:0.9rem; font-family:var(--font-m);
  font-size:0.64rem; line-height:1.5; color:var(--dim);
}
.demo-banner-icon { flex-shrink:0; opacity:0.45; }

.promise-block { margin-top:1.2rem; }
.promise-list {
  list-style:none; margin-top:0.55rem;
  background:var(--glass); border:1px solid var(--border); border-radius:16px;
  padding:0.4rem 1rem;
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.promise-list li {
  position:relative; padding:0.65rem 0 0.65rem 1.4rem;
  font-size:0.8rem; line-height:1.5; color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,0.04);
}
.promise-list li:last-child { border-bottom:none; }
.promise-list li::before { content:"—"; position:absolute; left:0; color:var(--c); }

.anchor-box { text-align:center; margin:0.9rem 0 0.38rem; flex-shrink:0; }
.anchor-line { font-size:0.74rem; color:var(--dim); text-decoration:line-through; text-decoration-color:rgba(255,255,255,0.18); }
.anchor-strong { font-size:0.96rem; color:var(--c2); font-weight:600; margin-top:0.22rem; }

/* ─── Photo Required Modal ─── */
.photo-req-modal { position:fixed; inset:0; z-index:100; display:none; }
.photo-req-modal.open { display:block; }
.photo-req-backdrop {
  position:absolute; inset:0;
  background:rgba(2,3,10,0.75);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  opacity:0; animation:sosFade 0.3s var(--ease) forwards;
}
.photo-req-modal.closing .photo-req-backdrop { animation:sosFade 0.25s var(--ease) reverse forwards; }
.photo-req-sheet {
  position:absolute; left:0; right:0; bottom:0;
  max-width:430px; margin:0 auto;
  background:linear-gradient(170deg, rgba(6,8,20,0.97), rgba(2,3,10,0.99));
  border:1px solid rgba(255,176,122,0.15); border-bottom:none;
  border-radius:26px 26px 0 0;
  padding:1rem 1.4rem calc(1.8rem + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,176,122,0.06);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  transform:translateY(100%);
  animation:sosSlideUp 0.45s var(--spring) forwards;
  text-align:center;
}
.photo-req-modal.closing .photo-req-sheet { animation:sosSlideDown 0.28s var(--ease) forwards; }
.photo-req-icon { font-size:2.4rem; margin:0.2rem 0 0.8rem; display:block; }
.photo-req-title {
  font-family:var(--font-s); font-size:1.35rem; font-weight:700;
  color:var(--text); margin-bottom:0.55rem; line-height:1.2;
}
.photo-req-body {
  font-size:0.84rem; line-height:1.6; color:var(--muted);
  margin-bottom:1.2rem;
}
.photo-req-sheet .btn-cta { justify-content:center; }
.photo-req-sheet .skip-btn { margin-top:0.4rem; }

/* ─── Legal modal ─── */
.legal-modal { position:fixed; inset:0; z-index:110; display:none; }
.legal-modal.open { display:block; }
.legal-backdrop { position:absolute; inset:0; background:rgba(2,3,10,0.7); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); opacity:0; animation:sosFade 0.3s var(--ease) forwards; }
.legal-modal.closing .legal-backdrop { animation:sosFade 0.25s var(--ease) reverse forwards; }
.legal-sheet {
  position:absolute; left:0; right:0; bottom:0; max-width:430px; margin:0 auto;
  max-height:88vh; display:flex; flex-direction:column;
  background:linear-gradient(170deg, rgba(6,8,20,0.97), rgba(2,3,10,0.99));
  border:1px solid var(--border); border-bottom:none;
  border-radius:26px 26px 0 0;
  padding:0.9rem 1.3rem calc(1.3rem + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -20px 60px rgba(0,0,0,0.6);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  transform:translateY(100%);
  animation:sosSlideUp 0.45s var(--spring) forwards;
}
.legal-modal.closing .legal-sheet { animation:sosSlideDown 0.28s var(--ease) forwards; }
.legal-title { font-family:var(--font-s); font-size:1.35rem; margin:0.3rem 0 0.75rem; }
.legal-scroll { overflow-y:auto; -webkit-overflow-scrolling:touch; margin-bottom:0.85rem; }
.legal-item { margin-bottom:0.95rem; }
.legal-item h3 { font-family:var(--font-s); font-size:0.95rem; color:var(--c2); margin-bottom:0.28rem; }
.legal-item p  { font-size:0.78rem; line-height:1.6; color:var(--muted); }

.legal-link {
  display:block; width:100%; background:none; border:none; cursor:pointer;
  color:var(--dim); font-family:var(--font-m); font-size:0.58rem;
  padding:0.52rem 0; text-align:center; letter-spacing:0.04em;
}
.legal-link:active { color:var(--muted); }

/* ─── Onboarding ─── */
.onb-head { margin:1.1rem 0 1.6rem; padding:0 0.1rem; }
.onb-head .quiz-label { display:block; margin-bottom:0.5rem; }
.onb-head .hero-h1 { font-size:clamp(1.5rem, 6vw, 1.9rem); }
.onb-head .hero-sub { font-size:0.82rem; margin-top:0.4rem; }
.onb-group { margin-bottom:1.5rem; }
.onb-group-title {
  display:block; font-family:var(--font-m);
  font-size:0.58rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--c); margin-bottom:0.75rem;
  text-shadow:0 0 8px rgba(255,176,122,0.35);
}
.onb-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0.65rem; }
.onb-grid-langs { grid-template-columns:repeat(2,1fr); }
.onb-grid-country { grid-template-columns:repeat(2,1fr); }
.onb-tile {
  display:flex; align-items:center; gap:0.6rem;
  padding:0.9rem 1rem;
  background:rgba(6,8,20,0.65);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border:1px solid rgba(255,176,122,0.1); border-radius:16px;
  color:var(--text); font-family:var(--font-d); font-size:0.85rem; font-weight:500;
  cursor:pointer; text-align:left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px rgba(0,0,0,0.25);
  transition:border-color 0.2s, background 0.2s, transform 0.15s var(--spring), box-shadow 0.2s;
  position:relative; overflow:hidden;
}
.onb-tile::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:50%;
  background:linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-radius:16px 16px 0 0;
  pointer-events:none;
}
.onb-tile:hover:not(.selected) {
  border-color:rgba(255,176,122,0.22);
  background:rgba(6,8,20,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 20px rgba(0,0,0,0.35);
}
.onb-tile:active { transform:scale(0.97); }
.onb-tile.selected {
  border-color:rgba(255,176,122,0.55);
  background:linear-gradient(150deg, rgba(255,176,122,0.1), rgba(6,8,20,0.75));
  box-shadow:
    0 0 0 1px rgba(255,176,122,0.18) inset,
    0 4px 20px rgba(255,176,122,0.1),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.onb-flag { font-size:1.3rem; line-height:1; flex-shrink:0; }
.onb-tile-label { line-height:1.2; }
.onb-grid-age { grid-template-columns:repeat(5,1fr); }
.onb-grid-gender { grid-template-columns:repeat(4,1fr); }
.onb-grid-age .onb-tile,
.onb-grid-gender .onb-tile {
  flex-direction:column; align-items:center; justify-content:center;
  padding:0.75rem 0.4rem; gap:0.3rem; border-radius:14px;
}
.onb-tile-emoji { font-size:1.4rem; line-height:1; flex-shrink:0; }
.onb-demo-group { margin-top:0.5rem; }

/* ─── Utilities ─── */
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes haloPulse { 0%,100%{opacity:0.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.15)} }
@keyframes spin { to{transform:rotate(360deg)} }

/* ─── Auth pill (topnav) ─── */
/* D6: account button is a 32px avatar circle — initial when signed in, person icon when not */
.auth-pill {
  width:32px; height:32px; padding:0;
  border: 1.5px solid var(--c);
  border-radius: 50%;
  color: var(--c);
  background: rgba(255,176,122,0.06);
  font-family: var(--font-m);
  font-size:0.75rem; font-weight:700; line-height:1;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition: background 0.2s, border-color 0.2s;
}
.auth-pill:active { background: rgba(255,176,122,0.14); }
.auth-pill-avatar { display:flex; align-items:center; justify-content:center; line-height:1; }
.auth-pill.signed-in { color:var(--c); border-color:var(--c); background:rgba(255,176,122,0.1); }

/* ─── Auth Modal ─── */
.auth-modal { position:fixed; inset:0; z-index:120; display:none; }
.auth-modal.open { display:block; }
.auth-backdrop { position:absolute; inset:0; background:rgba(2,3,10,0.75); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); opacity:0; animation:sosFade 0.3s var(--ease) forwards; }
.auth-modal.closing .auth-backdrop { animation:sosFade 0.25s var(--ease) reverse forwards; }
.auth-sheet {
  position:absolute; left:0; right:0; bottom:0;
  max-width:430px; margin:0 auto;
  background:linear-gradient(170deg, rgba(6,8,20,0.97), rgba(2,3,10,0.99));
  border:1px solid rgba(217,196,163,0.18); border-bottom:none;
  border-radius:26px 26px 0 0;
  padding:1rem 1.4rem calc(2rem + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(217,196,163,0.08);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  transform:translateY(100%);
  animation:sosSlideUp 0.45s var(--spring) forwards;
}
.auth-modal.closing .auth-sheet { animation:sosSlideDown 0.28s var(--ease) forwards; }

.auth-logo {
  position:relative; width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:0.75rem;
}
.auth-logo-mark { width:40px; height:40px; filter: drop-shadow(0 0 12px rgba(255,176,122,0.45)); }
.auth-title { font-family:var(--font-s); font-size:1.5rem; line-height:1.15; margin:0.18rem 0 0.3rem; }
.auth-sub { font-size:0.78rem; line-height:1.55; color:var(--muted); margin-bottom:1rem; }

.auth-tab-row { display:flex; gap:0.4rem; margin-bottom:1rem; }
.auth-tab {
  flex:1; padding:0.45rem 0; border-radius:100px;
  border:1px solid var(--border); background:transparent;
  font-family:var(--font-m); font-size:0.7rem; font-weight:600;
  letter-spacing:0.06em; color:var(--dim); cursor:pointer;
  transition:all 0.2s var(--ease);
}
.auth-tab.active { color:var(--c2); border-color:rgba(217,196,163,0.4); background:rgba(217,196,163,0.08); }

.auth-form { display:flex; flex-direction:column; gap:0.7rem; }
.btn-google {
  display:flex; align-items:center; justify-content:center; gap:0.6rem;
  width:100%; padding:0.82rem 1rem;
  background:#fff; border:1px solid rgba(255,255,255,0.15); border-radius:12px;
  font-family:var(--font-m); font-size:0.9rem; font-weight:600; color:#1a1a1a;
  cursor:pointer; transition:box-shadow 0.18s, opacity 0.18s;
}
.btn-google:hover { box-shadow:0 2px 12px rgba(0,0,0,0.18); opacity:0.95; }
.btn-google-icon { flex-shrink:0; }
.auth-divider {
  display:flex; align-items:center; gap:0.6rem;
  color:var(--dim); font-size:0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content:''; flex:1; height:1px; background:var(--border);
}
.auth-input {
  width:100%; padding:0.85rem 1rem;
  border:1px solid var(--border); border-radius:12px;
  background:rgba(255,255,255,0.025); color:var(--text);
  font-family:var(--font-d); font-size:0.9rem;
  transition:border-color 0.2s var(--ease);
}
.auth-input::placeholder { color:var(--dim); }
.auth-input:focus { outline:none; border-color:rgba(217,196,163,0.45); box-shadow:0 0 0 3px rgba(217,196,163,0.07); }
.auth-name-row { display:flex; flex-direction:column; }

.auth-divider { position:relative; text-align:center; margin:0.85rem 0; }
.auth-divider::before { content:''; position:absolute; left:0; right:0; top:50%; height:1px; background:var(--border); }
.auth-divider span { position:relative; background:rgba(2,3,10,0.99); padding:0 0.7rem; font-family:var(--font-m); font-size:0.6rem; color:var(--dim); letter-spacing:0.06em; }

.auth-google-btn {
  display:flex; align-items:center; justify-content:center; gap:0.65rem;
  width:100%; padding:0.82rem 1.2rem; border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.04);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  color:var(--text); font-family:var(--font-d); font-size:0.88rem; font-weight:600;
  cursor:pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 12px rgba(0,0,0,0.2);
  transition:all 0.2s var(--ease);
}
.auth-google-btn:hover {
  background:rgba(255,255,255,0.07);
  border-color:rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 4px 20px rgba(0,0,0,0.3);
  transform:translateY(-1px);
}
.auth-google-btn:active { transform:scale(0.98); }
.auth-google-icon { flex-shrink:0; }

.auth-success { text-align:center; padding:0.6rem 0; animation:fadeUp 0.4s var(--ease) both; }
.auth-success-icon { width:44px; height:44px; border-radius:50%; background:rgba(255,176,122,0.12); border:1px solid rgba(255,176,122,0.3); display:flex; align-items:center; justify-content:center; font-size:1.2rem; color:var(--c); margin:0 auto 0.55rem; }
.auth-success-text { font-size:0.88rem; color:var(--text); margin-bottom:0.75rem; line-height:1.5; }
.auth-stats { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.auth-stat { text-align:center; }
.auth-stat strong { display:block; font-family:var(--font-s); font-size:1.3rem; color:var(--c2); }
.auth-stat span { font-family:var(--font-m); font-size:0.52rem; color:var(--dim); letter-spacing:0.1em; text-transform:uppercase; }

.auth-privacy { font-family:var(--font-m); font-size:0.54rem; color:var(--dim); text-align:center; margin-top:0.9rem; line-height:1.5; }

/* Google button on onboarding screen */
.btn-google-onb { margin-bottom:0.5rem; background:rgba(255,255,255,0.06); color:#fff; border:1px solid rgba(255,255,255,0.15); }
.onb-save-hint { font-family:var(--font-m); font-size:0.7rem; color:var(--dim); text-align:center; margin:0 0 0.6rem; }
.btn-google-onb:hover { background:rgba(255,255,255,0.1); }

/* Sign out button inside auth modal */
.auth-signout-btn {
  display:block; width:100%; margin-top:1rem; padding:0.6rem 1rem;
  background:transparent; border:1px solid rgba(255,255,255,0.1); border-radius:10px;
  color:var(--dim); font-family:var(--font-m); font-size:0.75rem; cursor:pointer;
  transition:color 0.18s, border-color 0.18s;
}
.auth-signout-btn:hover { color:var(--text); border-color:rgba(255,255,255,0.25); }

.auth-confirm { text-align:center; padding:0.6rem 0; animation:fadeUp 0.25s var(--ease) both; }
.auth-confirm-title { font-size:1rem; font-weight:600; color:var(--text); margin-bottom:0.5rem; }
.auth-confirm-sub { font-size:0.8rem; color:var(--dim); line-height:1.55; margin-bottom:1.1rem; }
.auth-confirm-btns { display:flex; gap:0.6rem; }
.auth-confirm-cancel {
  flex:1; padding:0.65rem; border-radius:12px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  color:var(--text); font-family:var(--font-m); font-size:0.85rem; cursor:pointer;
  transition:background 0.18s;
}
.auth-confirm-cancel:hover { background:rgba(255,255,255,0.1); }
.auth-confirm-ok {
  flex:1; padding:0.65rem; border-radius:12px;
  background:rgba(255,60,60,0.15); border:1px solid rgba(255,80,80,0.3);
  color:#ff6b6b; font-family:var(--font-m); font-size:0.85rem; cursor:pointer;
  transition:background 0.18s;
}
.auth-confirm-ok:hover { background:rgba(255,60,60,0.25); }

/* ─── 8-Week Plan Modal ─── */
.plan-modal { position:fixed; inset:0; z-index:120; display:none; }
.plan-modal.open { display:block; }
.plan-backdrop { position:absolute; inset:0; background:rgba(2,3,10,0.75); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); opacity:0; animation:sosFade 0.3s var(--ease) forwards; }
.plan-modal.closing .plan-backdrop { animation:sosFade 0.25s var(--ease) reverse forwards; }
.plan-sheet {
  position:absolute; left:0; right:0; bottom:0;
  max-width:430px; margin:0 auto; max-height:92vh; overflow-y:auto;
  background:linear-gradient(170deg, rgba(6,8,20,0.98), rgba(2,3,10,0.99));
  border:1px solid var(--border); border-bottom:none;
  border-radius:26px 26px 0 0;
  padding:1rem 1.4rem calc(2rem + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,176,122,0.06);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  transform:translateY(100%);
  animation:sosSlideUp 0.45s var(--spring) forwards;
}
.plan-modal.closing .plan-sheet { animation:sosSlideDown 0.28s var(--ease) forwards; }
.plan-title { font-family:var(--font-s); font-size:1.5rem; margin:0.18rem 0 0.3rem; }
.plan-sub { font-size:0.78rem; line-height:1.55; color:var(--muted); margin-bottom:1.1rem; }

.plan-grid {
  width:100%;
  padding:4px 0 12px;
}
.plan-week {
  display:flex;
  flex-direction:column;
  padding:10px 10px 10px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,176,122,0.02);
  cursor:pointer;
  transition:all 0.2s var(--ease);
  min-width:0;
  overflow:hidden;
  min-height:70px;
  position:relative;
}
.plan-week:active { transform:scale(0.97); }
.plan-week.done {
  border-color:rgba(255,176,122,0.4);
  background:rgba(255,176,122,0.07);
  box-shadow:0 0 14px rgba(255,176,122,0.07);
}
.plan-week.current {
  border-color:rgba(217,196,163,0.45);
  background:rgba(217,196,163,0.06);
  box-shadow:0 0 14px rgba(217,196,163,0.08);
}
.plan-week-num {
  font-family:var(--font-m);
  font-size:clamp(0.55rem, 2vw, 0.7rem);
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--dim);
  white-space:nowrap;
}
.plan-week.done .plan-week-num { color:var(--c); }
.plan-week.current .plan-week-num { color:var(--c2); }
.plan-week-label {
  font-size:clamp(0.62rem, 2.2vw, 0.75rem);
  color:var(--muted);
  line-height:1.25;
  white-space:normal;
  overflow:visible;
  min-width:0;
}
.plan-week.done .plan-week-label { color:var(--text); }
.plan-week.current .plan-week-label { color:var(--c2); }
.plan-week-dot {
  width:22px; height:22px; border-radius:50%;
  border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:0.65rem; color:var(--c);
  transition:all 0.2s var(--ease);
  flex-shrink:0;
}
.plan-week.done .plan-week-dot {
  background:rgba(255,176,122,0.15); border-color:var(--c);
  box-shadow:0 0 8px rgba(255,176,122,0.3);
}
.plan-week.current .plan-week-dot {
  background:rgba(217,196,163,0.12); border-color:var(--c2);
  animation:dotBlink 1.5s ease-in-out infinite;
}

.plan-legend { display:flex; gap:1rem; margin-top:0.8rem; }
.plan-legend-item { display:flex; align-items:center; gap:0.4rem; font-family:var(--font-m); font-size:0.58rem; color:var(--dim); }
.plan-legend-btn { background:none; border:none; cursor:pointer; padding:0.2rem 0.4rem; border-radius:6px; transition:background 0.15s; }
.plan-legend-btn:hover { background:rgba(255,255,255,0.06); }
.plan-legend-btn:active { background:rgba(255,255,255,0.1); }
.plan-legend .plan-week-dot { width:14px; height:14px; }

/* ─── Plan v2: progress + weeks grid ─── */
.plan-progress-wrap {
  display:flex; align-items:center; gap:0.75rem;
  margin-bottom:1rem;
}
.plan-progress-bar {
  flex:1; height:4px; border-radius:2px;
  background:rgba(255,176,122,0.08);
  overflow:hidden;
}
.plan-progress-fill {
  height:100%; border-radius:2px;
  background:linear-gradient(90deg, var(--c), var(--c2));
  transition:width 0.4s var(--ease);
}
.plan-progress-label {
  font-family:var(--font-m); font-size:0.62rem;
  color:var(--muted); white-space:nowrap;
}
.plan-weeks-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:0.75rem;
}
.plan-week-top {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:0.3rem;
}
.plan-week-icon {
  font-size:1rem; line-height:1;
}
.plan-week.done .plan-week-icon { opacity:0; }
.plan-week-active-badge {
  font-family:var(--font-m); font-size:0.48rem; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--c2);
  background:rgba(217,196,163,0.1); border:1px solid rgba(217,196,163,0.3);
  border-radius:4px; padding:1px 5px; margin-top:2px; display:inline-block;
}
.plan-week.expanded {
  border-color:rgba(255,176,122,0.5);
  background:rgba(255,176,122,0.06);
}
.plan-week.current.expanded {
  border-color:rgba(217,196,163,0.6);
  background:rgba(217,196,163,0.1);
}

/* Detail panel */
.plan-detail-panel {
  margin-top:0.25rem;
  animation:fadeSlideUp 0.3s var(--ease) both;
}
.plan-detail-hint {
  font-family:var(--font-m); font-size:0.62rem; color:var(--dim);
  text-align:center; padding:0.5rem 0;
}
.plan-detail-card {
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,176,122,0.02);
  padding:1rem 1.1rem;
  display:flex; flex-direction:column; gap:0.85rem;
}
.plan-detail-header {
  display:flex; align-items:center; gap:0.75rem;
}
.plan-detail-icon { font-size:1.8rem; flex-shrink:0; }
/* numbered week badge instead of an emoji icon */
.plan-detail-week-badge {
  flex-shrink:0; width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:1.5px solid var(--c);
  background:rgba(255,176,122,0.08); color:var(--c);
  font-family:var(--font-s); font-weight:700; font-size:0.95rem;
}
.plan-detail-week-num {
  font-family:var(--font-m); font-size:0.58rem; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--muted);
}
.plan-detail-title {
  font-family:var(--font-s); font-size:1.1rem; font-weight:700;
  color:var(--text); margin:0;
}
.plan-detail-label {
  display:block; font-family:var(--font-m); font-size:0.6rem;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--muted);
  margin-bottom:0.4rem;
}
.plan-detail-label--morning { color:rgba(255,200,80,0.85); }
.plan-detail-label--evening { color:rgba(120,160,255,0.85); }
.plan-detail-label--skip { color:rgba(255,100,100,0.85); }
.plan-detail-label--personal { color:rgba(100,220,160,0.9); }
.plan-detail-goal p,
.plan-detail-expect p,
.plan-detail-skip p,
.plan-detail-personal p {
  font-size:0.78rem; line-height:1.55; color:var(--text);
}
.plan-detail-skip p { color:rgba(255,140,140,0.9); }
.plan-detail-personal {
  background:rgba(100,220,160,0.08);
  border:1px solid rgba(100,220,160,0.2);
  border-radius:10px;
  padding:0.75rem 1rem;
}
.plan-detail-personal p { color:rgba(233,196,163,0.92); }

.plan-detail-section { display:flex; flex-direction:column; gap:0.5rem; }
.plan-step-row {
  display:grid; grid-template-columns:24px 60px 1fr; gap:0.5rem;
  align-items:start;
  padding:0.6rem 0.7rem;
  border-radius:10px;
  background:rgba(255,255,255,0.03);
}
.plan-step-num-badge {
  width:22px; height:22px; flex-shrink:0;
  border-radius:50%;
  background:rgba(255,176,122,0.15);
  border:1px solid rgba(255,176,122,0.35);
  color:var(--c);
  font-family:var(--font-m); font-size:0.6rem;
  display:flex; align-items:center; justify-content:center;
  padding-top:0.05rem;
}
.plan-step-time {
  font-family:var(--font-m); font-size:0.58rem; color:var(--c);
  padding-top:0.1rem; white-space:nowrap;
}
.plan-step-action {
  font-size:0.78rem; font-weight:600; color:var(--text);
  display:block; margin-bottom:0.15rem;
}
.plan-step-product {
  display:inline-block;
  font-size:0.65rem; font-weight:600; color:var(--c);
  background:rgba(255,176,122,0.1); border:1px solid rgba(255,176,122,0.25);
  border-radius:5px; padding:0.1rem 0.45rem;
  margin-bottom:0.2rem;
}
.plan-step-skip {
  display:inline-block;
  font-size:0.62rem; color:var(--dim);
  font-style:italic;
  margin-bottom:0.2rem;
}
.plan-step-row--skip {
  opacity:0.45;
}
.plan-step-how {
  font-size:0.72rem; line-height:1.5; color:var(--muted);
  margin:0;
}

.plan-mark-btn {
  width:100%; padding:0.75rem;
  border-radius:12px;
  border:1.5px solid rgba(255,176,122,0.35);
  background:rgba(255,176,122,0.06);
  color:var(--c);
  font-family:var(--font-s); font-size:0.82rem; font-weight:600;
  cursor:pointer; transition:all 0.2s var(--ease);
  margin-top:0.25rem;
}
.plan-mark-btn:hover { background:rgba(255,176,122,0.12); }
.plan-mark-btn:active { transform:scale(0.98); }
.plan-mark-btn--done {
  border-color:rgba(255,100,100,0.3);
  background:rgba(255,100,100,0.05);
  color:rgba(255,140,140,0.85);
}
.plan-detail-hold-hint {
  font-family:var(--font-m); font-size:0.55rem; color:var(--dim);
  text-align:center; margin-top:-0.5rem;
}
.plan-disclaimer {
  font-family:var(--font-m); font-size:0.53rem; color:var(--dim);
  text-align:center; margin-top:0.75rem; opacity:0.6;
}

@media (max-width: 480px) {
  .plan-weeks-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .plan-week {
    min-height:60px;
    padding:8px 7px;
  }
  .plan-week-num {
    font-size: 0.55rem;
  }
  .plan-week-label {
    font-size: 0.6rem;
  }
  .plan-step-row {
    grid-template-columns: 20px 50px 1fr;
  }
}

/* ─── Plan CTA button (results screen) ─── */
.plan-cta-wrap { padding:0.2rem 0 0.75rem; }
.plan-cta-btn {
  display:flex; align-items:center; gap:0.9rem;
  width:100%; padding:0.9rem 1rem; border-radius:16px;
  border:1px solid rgba(217,196,163,0.2); background:rgba(217,196,163,0.04);
  color:var(--text); cursor:pointer;
  transition:all 0.2s var(--ease);
}
.plan-cta-btn:hover { border-color:rgba(217,196,163,0.4); background:rgba(217,196,163,0.08); }
.plan-cta-btn:active { transform:scale(0.98); }
.plan-cta-icon { font-size:1.4rem; flex-shrink:0; }
.plan-cta-text { flex:1; text-align:left; display:flex; flex-direction:column; gap:0.15rem; }
.plan-cta-title { font-family:var(--font-s); font-size:0.9rem; font-weight:600; color:var(--c2); }
.plan-cta-sub { font-family:var(--font-m); font-size:0.58rem; color:var(--dim); letter-spacing:0.06em; }
.plan-cta-arrow { font-size:1.2rem; color:var(--dim); }

/* ─── Desktop layout ─── */
@media (min-width:700px) {
  .app { max-width:480px; }
  .hero-h1 { font-size:2.4rem; }
}
@media (min-width:1024px) {
  .app { max-width:520px; }
}

/* ─── Product image modal ─── */
.img-modal {
  display:none; position:fixed; inset:0; z-index:9999;
  align-items:center; justify-content:center;
}
.img-modal.active { display:flex; }
.img-modal-backdrop {
  position:absolute; inset:0; background:rgba(0,0,0,0.85);
  backdrop-filter:blur(8px);
}
.img-modal-content {
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:0.75rem;
  padding:1rem;
  animation:fadeInScale 0.18s ease;
}
.img-modal-content img {
  max-width:min(340px, 90vw); max-height:70vh;
  object-fit:contain; border-radius:16px;
  background:#fff; padding:12px;
  box-shadow:0 0 60px rgba(255,176,122,0.15);
}
.img-modal-name {
  color:rgba(255,255,255,0.8); font-size:0.8rem;
  font-family:var(--font-m); letter-spacing:0.05em; text-align:center;
}
.img-modal-close {
  position:absolute; top:16px; right:16px; z-index:2;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2);
  color:#fff; font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(4px);
}
@keyframes fadeInScale {
  from { opacity:0; transform:scale(0.88); }
  to   { opacity:1; transform:scale(1); }
}

/* Consent line under paywall CTA */
.paywall-consent-line {
  text-align: center;
  font-size: 0.72rem;
  color: var(--dim);
  margin: 0.4rem 0 0;
  line-height: 1.5;
}
.paywall-consent-line a, .paywall-consent-line button.consent-privacy-link {
  color: rgba(255,176,122,0.6);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Prominent lang switcher on welcome screen */
.lang-switcher-prominent {
  border-color: rgba(255,176,122,0.3);
  background: rgba(10,13,28,0.9);
}
.lang-switcher-prominent .lang-btn {
  font-size: 0.6rem;
  padding: 0.28rem 0.6rem;
  color: rgba(255,255,255,0.55);
}
.lang-switcher-prominent .lang-btn.active {
  background: rgba(255,176,122,0.2);
  color: var(--c);
  box-shadow: 0 0 10px rgba(255,176,122,0.2);
}

