/* ClaimYears — premium mobile-first (Calm / Oura / Apple Health) */

:root {
  --bg-page: #fbfcfe;
  --bg-elevated: #ffffff;
  --bg-card: #f4f6fa;
  --bg-card-hover: #eef2f8;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --brand-primary: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-deep: #1e40af;
  --brand-soft: #eff6ff;
  --brand-glow: rgba(37, 99, 235, 0.18);
  --alert: #dc2626;
  --alert-soft: #fef2f2;
  --success: #059669;
  --success-soft: #ecfdf5;
  --gold: #f59e0b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-cta: 0 8px 28px rgba(37, 99, 235, 0.35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --content-pad: 22px;
  --header-h: 56px;
  --cta-bar-pad: max(14px, env(safe-area-inset-bottom, 0px));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
  letter-spacing: inherit;
}

a {
  color: var(--brand-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

::selection {
  background: rgba(37, 99, 235, 0.16);
}

button,
[role='option'],
summary,
label {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2.5px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.btn:focus-visible,
.option-card:focus-visible {
  outline-offset: 3px;
}

/* ——— Shell ——— */

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(37, 99, 235, 0.06), transparent 55%),
    var(--bg-page);
}

.progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  display: none;
  pointer-events: none;
}

.progress-wrap.is-visible {
  display: block;
}

.progress-wrap.is-on-blue .progress-track {
  background: rgba(255, 255, 255, 0.2);
}

.progress-wrap.is-on-blue .progress-fill {
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.progress-track {
  height: 4px;
  width: 100%;
  background: rgba(15, 23, 42, 0.06);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #2563eb 60%, #1d4ed8);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
  transition: width 0.3s var(--ease-out);
}

.screen-header {
  position: fixed;
  top: calc(4px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 var(--content-pad);
  background: rgba(251, 252, 254, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.screen-header.is-visible {
  display: flex;
}

.screen-header .back-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.screen-header .back-btn:active {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-50%) scale(0.94);
}

.screen-header .back-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.screen-header .wordmark {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.screen-root {
  flex: 1;
  width: 100%;
  padding-inline: var(--content-pad);
  margin-inline: auto;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}

.screen-root.has-header {
  padding-top: calc(8px + env(safe-area-inset-top, 0px) + var(--header-h));
}

.screen-root.no-cta-pad {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.screen-root.is-blue {
  background: linear-gradient(165deg, #3b82f6 0%, #2563eb 42%, #1e40af 100%);
  color: #fff;
  min-height: 100dvh;
  width: 100%;
  max-width: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-inline: var(--content-pad);
  padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.screen-root.is-blue::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.screen-root.is-blue::after {
  content: '';
  position: absolute;
  inset: auto -30% -35%;
  height: 60%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.22), transparent 65%);
  pointer-events: none;
}

.screen-root.is-blue .screen-panel {
  position: relative;
  z-index: 1;
}

.screen-root.is-soft {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(37, 99, 235, 0.1), transparent 70%),
    var(--brand-soft);
  min-height: 100dvh;
  width: 100%;
  max-width: none !important;
  padding-inline: var(--content-pad);
}

.screen-root.is-landing {
  --content-pad: 24px;
  background: #ffffff;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--content-pad)
    calc(40px + env(safe-area-inset-bottom, 0px));
}

.screen-panel {
  width: 100%;
  animation: slideInRight 0.3s var(--ease-out);
}

.screen-panel.from-left {
  animation-name: slideInLeft;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-panel,
  .screen-panel.from-left,
  .check-burst,
  .options .option-card,
  .option-card.is-selected .check,
  .faq .faq-a {
    animation: none !important;
  }
  .spinner {
    animation-duration: 1.6s;
  }
  .progress-fill {
    transition: none;
  }
}

/* ——— Type ——— */

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0 0 14px;
}

.is-blue .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
.h1 {
  font-size: clamp(26px, 6.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.is-blue h1 {
  color: #fff;
  font-size: clamp(30px, 7vw, 40px);
  letter-spacing: -0.04em;
}

h2,
.h2 {
  font-size: clamp(20px, 4.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 12px;
}

.helper,
.fine {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.is-blue .helper,
.is-blue .body-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.5;
  max-width: 22em;
  margin-inline: auto;
}

.body-text {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.quote-h1 {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 600;
  text-align: center;
  margin: 28px 0 36px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out),
    transform 0.18s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
  text-decoration: none;
  text-align: center;
  position: relative;
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, var(--brand-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2563eb 0%, var(--brand-hover) 100%);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:active {
  background: var(--bg-card);
  transform: scale(0.98);
}

.btn-on-blue {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.18);
}

.btn-on-blue:active {
  background: #f8fafc;
  transform: scale(0.98);
}

.btn-text {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  padding: 10px 12px;
  letter-spacing: -0.01em;
}

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 12px var(--content-pad) var(--cta-bar-pad);
  background: linear-gradient(
    180deg,
    rgba(251, 252, 254, 0) 0%,
    rgba(251, 252, 254, 0.88) 28%,
    rgba(251, 252, 254, 0.97) 100%
  );
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  display: none;
  border-top: 1px solid transparent;
}

.cta-bar.is-visible {
  display: block;
}

.cta-bar.is-on-blue {
  background: linear-gradient(180deg, transparent, rgba(30, 64, 175, 0.55) 35%, rgba(30, 64, 175, 0.92));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cta-bar .btn {
  max-width: 100%;
}

.cta-bar .cta-note {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 10px;
  letter-spacing: -0.01em;
}

/* ——— Option cards ——— */

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 20px;
}

.options .option-card {
  animation: optionIn 0.4s var(--ease-out) backwards;
}

.options .option-card:nth-child(2) { animation-delay: 0.045s; }
.options .option-card:nth-child(3) { animation-delay: 0.09s; }
.options .option-card:nth-child(4) { animation-delay: 0.135s; }
.options .option-card:nth-child(5) { animation-delay: 0.18s; }
.options .option-card:nth-child(6) { animation-delay: 0.225s; }

@keyframes optionIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    transform 0.18s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

@media (hover: hover) {
  .option-card:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-sm);
    background: #fff;
  }
}

.option-card:active {
  transform: scale(0.985);
}

.option-card.is-selected {
  border: 1.5px solid var(--brand-primary);
  background: linear-gradient(180deg, #f8fbff 0%, var(--brand-soft) 100%);
  box-shadow: 0 0 0 3px var(--brand-glow), var(--shadow-sm);
  padding: 15.5px 17.5px;
}

.option-card .check {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.option-card.is-selected .check {
  border-color: transparent;
  background: linear-gradient(180deg, #3b82f6, var(--brand-primary));
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  animation: checkPop 0.28s var(--ease-spring);
}

@keyframes checkPop {
  from {
    transform: scale(0.55);
  }
  to {
    transform: scale(1);
  }
}

/* Agree / Disagree */

.agree-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* Checklist */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.check-list .tick {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(160deg, #d1fae5, var(--success-soft));
  border: 1px solid rgba(5, 150, 105, 0.16);
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

/* ========== LANDING (Screen 01) ========== */

.landing-v2 {
  max-width: 480px;
  margin-inline: auto;
}

.landing-logo {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 24px;
}

/* Trust strip */

.trust-seals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 28px;
}

.seal {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.seal--award svg {
  width: 88px;
  height: 88px;
  display: block;
}

.seal--users {
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.laurel {
  display: flex;
  flex-shrink: 0;
}

.laurel svg {
  width: 20px;
  height: 54px;
}

.laurel--left {
  transform: scaleX(-1);
}

.seal-users-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.su-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #111827;
  text-align: center;
}

.su-stars {
  color: #1f2937;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  line-height: 1;
}

.seal--medical {
  gap: 5px;
}

.med-emblem {
  display: flex;
}

.med-emblem svg {
  width: 46px;
  height: 46px;
}

.sm-title {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  color: #374151;
  text-align: center;
}

.sm-sub {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #9ca3af;
  line-height: 1.2;
  margin-top: -2px;
  text-align: center;
}

/* Headline / hero image / body / CTA */

.landing-headline {
  font-size: clamp(26px, 7vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: #1a1a2e;
  text-align: center;
  margin: 0 0 24px;
}

.landing-body {
  font-size: 17px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 28px;
}

.landing-cta {
  display: flex;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  min-height: 56px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: #2563eb;
  color: #fff;
  box-shadow: var(--shadow-cta);
}

@media (hover: hover) {
  .landing-cta:hover {
    background: #1d4ed8;
  }
}

.landing-cta:active {
  background: #1d4ed8;
  transform: scale(0.98);
}

.landing-v2 .privacy-line {
  font-size: 14px;
  color: #6b7280;
  margin-top: 16px;
}

/* Landing review card overrides */

.landing-v2 .review-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.landing-v2 .review-card .stars {
  color: #f59e0b;
}

.landing-v2 .review-card .quote {
  font-style: italic;
  font-size: 16px;
}

.landing-v2 .review-card .name {
  font-weight: 700;
  font-size: 14px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.badge-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.privacy-line {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 28px 0 8px;
}

.trust-row span {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 28px 0 16px;
  color: #6b7280;
  text-align: center;
}

.review-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin: 0 calc(-1 * var(--content-pad));
  padding-inline: var(--content-pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.review-scroll::-webkit-scrollbar {
  display: none;
}

.review-scroll {
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--content-pad);
}

.review-card {
  flex: 0 0 min(300px, 84vw);
  scroll-snap-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
  transition: box-shadow 0.2s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.review-card .name {
  margin-top: auto;
}

.review-card .stars {
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1;
}

.review-card .quote {
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.review-card .name {
  font-weight: 600;
  font-size: 13px;
  margin: 0;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* Icons / education */

.icon-blob {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.is-soft .icon-blob {
  background: #fff;
}

.icon-blob svg {
  width: 32px;
  height: 32px;
}

/* Camera */

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 50dvh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0f172a;
  margin: 12px 0 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.camera-frame video,
.camera-frame img,
.camera-frame .camera-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  padding: 28px;
  text-align: center;
  font-size: 15px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  line-height: 1.5;
}

.face-guide {
  position: absolute;
  inset: 14% 20%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 100vmax rgba(15, 23, 42, 0.32),
    inset 0 0 40px rgba(37, 99, 235, 0.08);
}

.camera-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Analyzing */

.analyzing {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 8px;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 3.5px solid rgba(37, 99, 235, 0.1);
  border-top-color: var(--brand-primary);
  border-right-color: rgba(37, 99, 235, 0.45);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.12);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dynamic-status {
  min-height: 1.5em;
  color: var(--text-secondary);
  font-size: 15px;
  transition: opacity 0.25s var(--ease-out);
  letter-spacing: -0.01em;
}

/* Reveal */

.bio-number {
  font-size: clamp(96px, 26vw, 128px);
  font-weight: 800;
  color: var(--alert);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 4px 0 18px;
  padding: 10px 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 8px 40px rgba(220, 38, 38, 0.15);
  background: radial-gradient(50% 62% at 50% 50%, rgba(220, 38, 38, 0.07), transparent 72%);
}

.reveal-label {
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.reveal-compare {
  text-align: center;
  margin: 0 0 22px;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.success-callout {
  color: var(--success);
  font-weight: 600;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
  background: var(--success-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid rgba(5, 150, 105, 0.12);
}

/* Factors */

.factor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #fffbfb 0%, var(--bg-elevated) 40%);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-xs);
}

.factor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--alert-soft);
}

/* Offer page */

.offer-page {
  padding-bottom: 48px;
}

.offer-page .btn {
  margin: 8px 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 24px 0;
  box-shadow: var(--shadow-xs);
}

.badge-row .badge-item {
  flex: 1 1 28%;
  min-width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.35;
  padding: 10px 6px;
  background: linear-gradient(180deg, #ffffff, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.price-card {
  background: linear-gradient(165deg, #ffffff 0%, #f0f7ff 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(37, 99, 235, 0.05);
  padding: 28px 22px;
  text-align: center;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  pointer-events: none;
}

.price-card > * {
  position: relative;
}

.price-card .strike {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin: 12px 0 0;
  letter-spacing: -0.02em;
}

.price-card .price {
  font-size: clamp(44px, 13vw, 52px);
  font-weight: 800;
  margin: 2px 0 10px;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

.guarantee-box {
  border: 1.5px dashed rgba(5, 150, 105, 0.45);
  background: linear-gradient(180deg, #f2fdf8, var(--success-soft));
  border-radius: var(--radius);
  padding: 15px 16px;
  margin-top: 18px;
  text-align: left;
}

.guarantee-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
  letter-spacing: -0.015em;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.faq summary {
  min-height: 52px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  opacity: 0.85;
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 12h14'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

.faq details[open] summary {
  color: var(--brand-deep);
}

.faq .faq-a {
  animation: faqIn 0.25s var(--ease-out);
}

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

.faq .faq-a {
  padding: 0 16px 16px;
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.55;
}

.offer-footer {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.offer-footer .brand {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 16px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.offer-footer a {
  color: var(--text-tertiary);
  margin: 0 6px;
  text-decoration: none;
}

.reviews-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 28px;
}

.reviews-stack .review-card {
  flex: none;
  width: 100%;
}

/* Forms */

.field {
  margin: 16px 0 20px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-size: 17px;
  letter-spacing: -0.015em;
  box-shadow: var(--shadow-xs);
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.field input::placeholder {
  color: var(--text-tertiary);
}

.field input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.order-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.order-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.order-summary .total {
  font-weight: 800;
  font-size: 17px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.02em;
}

#payment-element,
.stripe-mount {
  min-height: 48px;
  margin-bottom: 16px;
}

.error-msg {
  color: var(--alert);
  font-size: 14px;
  margin: 0 0 12px;
  display: none;
  letter-spacing: -0.01em;
}

.error-msg.is-visible {
  display: block;
  background: var(--alert-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.12);
}

.mock-pay-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Success */

.success-screen {
  min-height: 75dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 8px;
}

.check-burst {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(160deg, #10b981, var(--success));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 26px;
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35);
  animation: bounceIn 0.55s var(--ease-spring);
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.trust-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  font-size: 14px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-xs);
}

.trust-box p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.trust-box p:last-child {
  margin-bottom: 0;
}

.centered {
  text-align: center;
}

/* Plan page */

.plan-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px var(--content-pad) 48px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(37, 99, 235, 0.05), transparent 60%),
    var(--bg-page);
  min-height: 100dvh;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.plan-header .wordmark {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.day-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}

.day-card h3 {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}

.day-card .light {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.week-block {
  margin: 36px 0;
}

.week-block h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.plan-error {
  text-align: center;
  padding: 48px 24px;
}

/* Soft blue interstitial content width */
.screen-root.is-soft .screen-panel {
  max-width: 480px;
  margin-inline: auto;
}

/* Breakpoints */

@media (min-width: 640px) {
  body {
    font-size: 18px;
  }

  .screen-root:not(.is-landing):not(.is-blue):not(.is-soft) {
    max-width: 540px;
  }

  .screen-root.is-blue .screen-panel {
    max-width: 480px;
    margin-inline: auto;
  }

  .cta-bar .btn {
    max-width: 400px;
    margin-inline: auto;
    display: flex;
  }

  .agree-stack {
    flex-direction: row;
  }

  .agree-stack .btn {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .screen-root:not(.is-landing):not(.is-blue):not(.is-soft) {
    max-width: 480px;
  }

  .screen-root.is-blue .screen-panel {
    max-width: 440px;
  }

  .plan-page {
    max-width: 480px;
  }

  /* App chrome frame on large screens */
  body {
    background: #e8ecf2;
  }

  #app {
    max-width: 430px;
    margin: 24px auto;
    min-height: calc(100dvh - 48px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.06);
  }

  .progress-wrap,
  .screen-header,
  .cta-bar {
    max-width: 430px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
  }

  .screen-header {
    border-radius: 0;
  }

  .cta-bar {
    border-radius: 0 0 28px 28px;
  }
}

@media print {
  .plan-actions,
  .no-print {
    display: none !important;
  }
}
