/*
 * MediSummary UI v3 — onboarding / paywall (views/v3/onboarding/paywall.ejs + showcases.ejs).
 * Loads after ui3.css and ui3-landing.css and reuses their tokens. Everything is scoped to
 * html.ui3.u-lp. Element ids and v2-* class names are kept because the paywall JS drives them.
 * Raw color values belong in the token block below only. Light theme only.
 */

/* ---------- Tokens ---------- */
html.ui3.u-lp {
  --u-ob-star: #f59e0b;
  --u-ob-scrim: rgba(10, 10, 15, 0.42);
  --u-ob-photo-veil: linear-gradient(to top, rgba(10, 10, 15, 0.78) 0%, rgba(10, 10, 15, 0) 100%);
  --u-ob-on-photo: #ffffff;
  --u-ob-sticky-shadow: 0 -8px 24px -12px rgba(10, 10, 15, 0.12);
  --u-ob-dot-1: #ff5f57;
  --u-ob-dot-2: #febc2e;
  --u-ob-dot-3: #28c840;
  --u-ob-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b6b76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --u-ob-cta: var(--u-lp-cta, var(--u-ink));
  --u-ob-cta-hover: var(--u-lp-cta-hover, var(--u-ink-2));
  --u-ob-on-cta: var(--u-lp-on-cta, var(--u-on-ink));
  --u-ob-pad: 22px;
  --u-ob-measure: 640px;
}

/* ---------- Tailwind-style state utilities the paywall JS toggles ----------
   The v3 landing page does not load Tailwind. These are scoped to the onboarding
   (the pay sheet is portaled to <body>, so it is listed separately) and outrank
   every component display rule below. */
html.ui3.u-lp #v2PaywallModal.hidden,
html.ui3.u-lp #v2PaywallModal .hidden,
html.ui3.u-lp .v2-pay-sheet .hidden { display: none; }
html.ui3.u-lp #v2PaywallModal.opacity-0,
html.ui3.u-lp #v2PaywallModal .opacity-0 { opacity: 0; }
html.ui3.u-lp #v2PaywallModal.pointer-events-none,
html.ui3.u-lp #v2PaywallModal .pointer-events-none { pointer-events: none; }
html.ui3.u-lp #v2PaywallModal .scale-95 { transform: scale(0.95); }
html.ui3.u-lp #v2PaywallModal .animate-spin,
html.ui3.u-lp .v2-pay-sheet .animate-spin { animation: v3ObSpin 0.9s linear infinite; }
@keyframes v3ObSpin { to { transform: rotate(360deg); } }

/* ---------- Shell (full-screen on every viewport) ---------- */
html.ui3.u-lp #v2PaywallModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  /* Opaque shell must always cover the LAYOUT viewport so the iOS keyboard
     shrinking the visual viewport cannot reveal the landing page behind. */
  background: var(--u-surface);
  color: var(--u-ink);
  font-family: var(--u-font);
  -webkit-font-smoothing: antialiased;
  transition: opacity 300ms var(--u-ease);
}
html.ui3.u-lp #v2PaywallModal *,
html.ui3.u-lp .v2-pay-sheet * { box-sizing: border-box; }

/* Hide landing fixed chrome while the paywall is open. */
html.ui3.u-lp body.v2-paywall-open #sticky-mobile-cta,
html.ui3.u-lp body.v2-paywall-open #founder-pip,
html.ui3.u-lp body.v2-paywall-open #founderChatRoot {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

html.ui3.u-lp #v2PaywallOverlay { display: none; }

html.ui3.u-lp #v2PaywallContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--u-surface);
  width: 100%;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  height: calc(var(--v2-viewport-height, 1vh) * 100);
  min-height: calc(var(--v2-viewport-height, 1vh) * 100);
  max-height: calc(var(--v2-viewport-height, 1vh) * 100);
  margin: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background-clip: padding-box;
}

/* ---------- Dismiss (paywall-dismiss-button shipped hidden) + progress ---------- */
html.ui3.u-lp .v2-dismiss-btn {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-pill);
  background: var(--u-surface);
  color: var(--u-ink-3);
  cursor: pointer;
}
html.ui3.u-lp .v2-dismiss-btn[hidden] { display: none; }

html.ui3.u-lp .v2-progress-bar-track {
  flex-shrink: 0;
  width: 100%;
  height: 3px;
  background: var(--u-surface-2);
}
html.ui3.u-lp .v2-progress-bar-fill {
  height: 3px;
  background: var(--u-accent);
  border-start-end-radius: var(--u-r-pill);
  border-end-end-radius: var(--u-r-pill);
  transition: width 350ms var(--u-ease);
}

/* ---------- Steps ---------- */
html.ui3.u-lp .v2-step {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html.ui3.u-lp .v2-step.v2-active { display: flex; }

html.ui3.u-lp .v2-step-body {
  flex: 1;
  padding-block: 28px 0;
  padding-inline: var(--u-ob-pad);
}

html.ui3.u-lp .v3-ob-spacer { height: 24px; flex-shrink: 0; }
html.ui3.u-lp .v3-ob-spacer--lg { height: 40px; }

/* ---------- Type ---------- */
html.ui3.u-lp .v2-headline {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--u-ink);
  text-wrap: balance;
}
html.ui3.u-lp .v2-headline::first-letter { text-transform: uppercase; }

html.ui3.u-lp .v2-subline {
  margin: 0 0 24px;
  font-size: var(--u-t-md);
  line-height: 1.55;
  color: var(--u-ink-3);
  text-wrap: pretty;
}
html.ui3.u-lp .v2-step[data-v2step="s0"] .v2-subline { margin-block-end: 22px; }
html.ui3.u-lp .v2-step[data-v2step="s0"] .v2-headline { margin-block-end: 12px; }

html.ui3.u-lp .v3-ob-link {
  color: var(--u-accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Sticky CTA ---------- */
html.ui3.u-lp .v2-sticky-cta {
  position: sticky;
  inset-block-end: 0;
  z-index: 6;
  flex-shrink: 0;
  padding-block: 14px max(18px, calc(env(safe-area-inset-bottom) + 10px));
  padding-inline: var(--u-ob-pad);
  background: var(--u-surface);
  border-block-start: 1px solid var(--u-line);
  box-shadow: var(--u-ob-sticky-shadow);
  transition: opacity 300ms var(--u-ease), transform 300ms var(--u-ease);
}

html.ui3.u-lp .v2-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding-block: 0;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: var(--u-r-lg);
  background: var(--u-ob-cta);
  color: var(--u-ob-on-cta);
  font: 600 var(--u-t-lg)/1.2 var(--u-font);
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--u-sh-md);
  transition: background var(--u-dur-1) var(--u-ease), transform var(--u-dur-1) var(--u-ease), box-shadow var(--u-dur-2) var(--u-ease);
}
@media (hover: hover) {
  html.ui3.u-lp .v2-cta-btn:hover:not(:disabled) { background: var(--u-ob-cta-hover); }
}
html.ui3.u-lp .v2-cta-btn:active:not(:disabled) { transform: translateY(1px); }
html.ui3.u-lp .v2-cta-btn:focus-visible { outline: none; box-shadow: var(--u-ring); }
html.ui3.u-lp .v2-cta-btn:disabled {
  background: var(--u-surface-3);
  color: var(--u-ink-4);
  box-shadow: none;
  cursor: not-allowed;
}
html.ui3.u-lp .v2-cta-btn .u-i,
html.ui3.u-lp .v2-cta-btn svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ---------- Ticker ---------- */
html.ui3.u-lp .v2-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 10px;
  overflow: hidden;
}
html.ui3.u-lp .v2-ticker-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--u-accent);
}
html.ui3.u-lp .v2-ticker-text {
  overflow: hidden;
  font-size: var(--u-t-xs);
  color: var(--u-ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- S0: intro ---------- */
html.ui3.u-lp .v2-photo-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-block: 8px 28px;
}
html.ui3.u-lp .v2-photo-tile {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--u-r-xl);
  border: 1px solid var(--u-line);
  background: var(--u-surface-2);
}
html.ui3.u-lp .v2-photo-tile.v2-photo-center { width: 110px; height: 140px; }
html.ui3.u-lp .v2-photo-tile.v2-photo-side { width: 90px; height: 115px; }
html.ui3.u-lp .v2-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.ui3.u-lp .v2-photo-tile-label {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding-block: 18px 6px;
  padding-inline: 8px;
  background: var(--u-ob-photo-veil);
  text-align: center;
}
html.ui3.u-lp .v2-photo-tile-name {
  display: block;
  font-size: var(--u-t-2xs);
  font-weight: 600;
  color: var(--u-ob-on-photo);
}
html.ui3.u-lp .v2-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-block-start: 2px;
}
html.ui3.u-lp .v2-stars svg { width: 8px; height: 8px; fill: var(--u-ob-star); }

html.ui3.u-lp .v2-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 24px;
}
html.ui3.u-lp .v2-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-block: 5px;
  padding-inline: 10px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-pill);
  background: var(--u-surface);
  font-size: var(--u-t-sm);
  font-weight: 600;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-proof-item span { font-weight: 400; color: var(--u-ink-3); }
html.ui3.u-lp #v2S0ProofTrial {
  border-color: var(--u-accent-line);
  background: var(--u-accent-soft);
  color: var(--u-accent-ink);
}

/* ---------- S1: specialty ---------- */
html.ui3.u-lp .v3-ob-select {
  width: 100%;
  min-height: 52px;
  padding-block: 0;
  padding-inline: 16px 40px;
  border: 1px solid var(--u-line-strong);
  border-radius: var(--u-r-lg);
  background-color: var(--u-surface);
  background-image: var(--u-ob-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  font: 400 16px/1.3 var(--u-font);
  color: var(--u-ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--u-dur-1) var(--u-ease), box-shadow var(--u-dur-1) var(--u-ease);
}
html.ui3.u-lp[dir="rtl"] .v3-ob-select { background-position: left 14px center; }
html.ui3.u-lp .v3-ob-select:focus { border-color: var(--u-accent); box-shadow: var(--u-ring); }
html.ui3.u-lp .v3-ob-select-continue { margin-block-start: 16px; }

/* ---------- S2: purpose tiles (multi-select) ---------- */
html.ui3.u-lp .v2-workflow-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html.ui3.u-lp .v2-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-block: 14px;
  padding-inline: 16px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-surface);
  font: inherit;
  color: var(--u-ink);
  text-align: start;
  cursor: pointer;
  transition: border-color var(--u-dur-1) var(--u-ease), background var(--u-dur-1) var(--u-ease), box-shadow var(--u-dur-1) var(--u-ease);
}
@media (hover: hover) {
  html.ui3.u-lp .v2-tile:hover { border-color: var(--u-line-strong); background: var(--u-bg); }
}
html.ui3.u-lp .v2-tile:active { transform: scale(0.99); }
html.ui3.u-lp .v2-tile:focus-visible { outline: none; border-color: var(--u-accent); box-shadow: var(--u-ring); }
html.ui3.u-lp .v3-ob-purpose-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
html.ui3.u-lp .v2-tile-label {
  font-size: var(--u-t-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-tile-desc {
  font-size: var(--u-t-sm);
  font-weight: 400;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-tile-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--u-line-strong);
  border-radius: var(--u-r-sm);
  background: var(--u-surface);
  color: transparent;
  transition: background var(--u-dur-1) var(--u-ease), border-color var(--u-dur-1) var(--u-ease);
}
html.ui3.u-lp .v2-tile-check .u-i { stroke-width: 2.5; }
html.ui3.u-lp .v2-tile.v2-picked {
  border-color: var(--u-accent);
  background: var(--u-accent-soft);
}
html.ui3.u-lp .v2-tile.v2-picked .v2-tile-check {
  border-color: var(--u-accent);
  background: var(--u-accent);
  color: var(--u-on-accent);
}

/* ---------- S3: analyzing ---------- */
html.ui3.u-lp .v2-scan-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block-start: 8px;
}
html.ui3.u-lp .v2-scan-counter {
  font-size: 56px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--u-ink);
  font-variant-numeric: tabular-nums;
}
html.ui3.u-lp .v2-scan-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
html.ui3.u-lp .v2-scan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--u-t-md);
  font-weight: 500;
  color: var(--u-ink-3);
  transition: color var(--u-dur-2) var(--u-ease);
}
html.ui3.u-lp .v2-scan-item.v2-done { color: var(--u-ink); }
html.ui3.u-lp .v2-scan-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--u-line-strong);
  border-radius: 50%;
  color: var(--u-on-accent);
  transition: border-color var(--u-dur-2) var(--u-ease), background var(--u-dur-2) var(--u-ease);
}
html.ui3.u-lp .v2-scan-check svg { display: none; width: 12px; height: 12px; stroke-width: 3; }
html.ui3.u-lp .v2-scan-check.v2-done { border-color: var(--u-accent); background: var(--u-accent); }
html.ui3.u-lp .v2-scan-check.v2-done svg { display: block; }

html.ui3.u-lp .v2-stat-strip {
  width: 100%;
  padding-block: 14px;
  padding-inline: 16px;
  border: 1px solid var(--u-accent-line);
  border-radius: var(--u-r-lg);
  background: var(--u-accent-soft);
  font-size: var(--u-t-base);
  font-weight: 500;
  line-height: 1.5;
  color: var(--u-accent-ink);
}

@keyframes v2-count-tick {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
html.ui3.u-lp .v2-count-tick { animation: v2-count-tick 0.35s ease; }

/* ---------- S5: email ---------- */
html.ui3.u-lp .v2-privacy-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block-end: 28px;
  padding-block: 14px;
  padding-inline: 14px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-bg);
}
html.ui3.u-lp .v2-privacy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--u-r-md);
  background: var(--u-accent-soft);
  color: var(--u-accent);
}
html.ui3.u-lp .v2-privacy-icon .u-i { width: 18px; height: 18px; }
html.ui3.u-lp .v2-privacy-text { font-size: var(--u-t-base); line-height: 1.5; color: var(--u-ink-3); }
html.ui3.u-lp .v2-privacy-text strong { display: block; margin-block-end: 2px; font-weight: 600; color: var(--u-ink); }

html.ui3.u-lp .v2-email-label {
  display: block;
  margin-block-end: 8px;
  font-size: var(--u-t-sm);
  font-weight: 600;
  color: var(--u-ink-2);
}
html.ui3.u-lp .v2-email-input {
  width: 100%;
  min-height: 52px;
  padding-block: 0;
  padding-inline: 16px;
  border: 1px solid var(--u-line-strong);
  border-radius: var(--u-r-lg);
  background: var(--u-surface);
  font: 400 16px/1.3 var(--u-font);
  color: var(--u-ink);
  outline: none;
  transition: border-color var(--u-dur-1) var(--u-ease), box-shadow var(--u-dur-1) var(--u-ease);
}
html.ui3.u-lp .v2-email-input::placeholder { color: var(--u-ink-4); }
html.ui3.u-lp .v2-email-input:focus { border-color: var(--u-accent); box-shadow: var(--u-ring); }
html.ui3.u-lp .v2-email-input.v2-error { border-color: var(--u-danger); }
html.ui3.u-lp .v2-email-input.v2-error:focus { box-shadow: 0 0 0 3px var(--u-danger-soft); }
html.ui3.u-lp .v2-email-error {
  display: none;
  margin-block-start: 6px;
  font-size: var(--u-t-xs);
  color: var(--u-danger);
}
html.ui3.u-lp .v2-email-effort {
  margin-block: 10px 0;
  font-size: var(--u-t-sm);
  line-height: 1.45;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-email-effort[hidden] { display: none; }

html.ui3.u-lp #v2-already-subscribed {
  display: none;
  margin-block-start: 12px;
  padding-block: 12px;
  padding-inline: 14px;
  border: 1px solid var(--u-warn);
  border-radius: var(--u-r-lg);
  background: var(--u-warn-soft);
  font-size: var(--u-t-sm);
  line-height: 1.5;
  color: var(--u-ink-2);
}

html.ui3.u-lp .v2-email-inline-actions { display: none; margin-block-start: 18px; }

html.ui3.u-lp .v2-pay-disclaimer {
  margin-block-start: 10px;
  padding-inline: 4px;
  font-size: var(--u-t-2xs);
  line-height: 1.5;
  color: var(--u-ink-4);
  text-align: center;
}
html.ui3.u-lp .v2-pay-disclaimer a { color: var(--u-ink-3); text-decoration: underline; }

@media (max-width: 767px) {
  html.ui3.u-lp .v2-step[data-v2step="s5"] .v2-email-inline-actions { display: block; }
  html.ui3.u-lp .v2-step[data-v2step="s5"] .v2-email-sticky-cta { display: none; }
  html.ui3.u-lp .v2-step[data-v2step="s5"] .v2-step-body { padding-block-end: 24px; }
  /* iOS keyboard open on the email step: drop the disclaimer to save space. */
  html.ui3.u-lp .v2-step[data-v2step="s5"].v2-keyboard-open .v2-pay-disclaimer { display: none; }
}

/* ---------- S7: payment ---------- */
html.ui3.u-lp .v2-pay-step-body { padding-block-end: 220px; }

html.ui3.u-lp .v2-pay-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-block-end: 18px;
}
html.ui3.u-lp .v2-pay-trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
html.ui3.u-lp .v2-pay-trust-stat strong {
  font-size: var(--u-t-base);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-pay-trust-stat span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-pay-trust-divider {
  flex-shrink: 0;
  width: 1px;
  height: 28px;
  background: var(--u-line);
}

html.ui3.u-lp .v2-pay-ready-headline {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--u-ink);
  text-align: center;
}
html.ui3.u-lp .v2-pay-ready-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: var(--u-t-base);
  font-weight: 500;
  line-height: 1.4;
  color: var(--u-ink-3);
  text-align: center;
}
html.ui3.u-lp .v2-pay-ready-sub .u-i { flex-shrink: 0; color: var(--u-accent); }

/* paywall-reimburse-card shipped "compact" */
html.ui3.u-lp .v2-pay-reimburse {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 12px;
  padding-block: 12px;
  padding-inline: 14px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-xl);
  background: var(--u-surface);
}
html.ui3.u-lp .v2-pay-reimburse-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--u-r-md);
  background: var(--u-surface-2);
  color: var(--u-ink-2);
}
html.ui3.u-lp .v2-pay-reimburse-icon .u-i { width: 18px; height: 18px; }
html.ui3.u-lp .v2-pay-reimburse-title {
  margin: 0 0 3px;
  font-size: var(--u-t-base);
  font-weight: 600;
  line-height: 1.3;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-pay-reimburse-lead {
  margin: 0;
  font-size: var(--u-t-sm);
  line-height: 1.5;
  color: var(--u-ink-3);
}

/* Inline checkout (desktop) + skeleton */
html.ui3.u-lp .v2-pay-inline-checkout { margin: 0 0 24px; }
html.ui3.u-lp #v2-payment-skeleton { transition: opacity 200ms var(--u-ease); }
html.ui3.u-lp #v2-payment-skeleton .v2-shimmer {
  border-radius: var(--u-r-lg);
  background: var(--u-surface-2);
  animation: v2-pulse 1.5s ease-in-out infinite;
}
html.ui3.u-lp .v3-ob-shimmer-field { height: 48px; margin-block-end: 10px; }
html.ui3.u-lp .v3-ob-shimmer-row { display: flex; gap: 10px; margin-block-end: 4px; }
html.ui3.u-lp .v3-ob-shimmer-row .v3-ob-shimmer-field { flex: 1; }
html.ui3.u-lp .v3-ob-shimmer-cta { height: 52px; }
@keyframes v2-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

html.ui3.u-lp .v2-payment-element-host { margin-block-end: 8px; min-height: 100px; }

/* Brazil Pix: CPF field */
html.ui3.u-lp .v2-pix-cpf { margin: 0 0 12px; }
html.ui3.u-lp .v2-pix-cpf label {
  display: block;
  margin-block-end: 6px;
  font-size: var(--u-t-xs);
  font-weight: 600;
  color: var(--u-ink-2);
}
html.ui3.u-lp .v2-pix-cpf input {
  width: 100%;
  min-height: 48px;
  padding-block: 0;
  padding-inline: 14px;
  border: 1px solid var(--u-line-strong);
  border-radius: var(--u-r-lg);
  background: var(--u-surface);
  font: 400 var(--u-t-md)/1.3 var(--u-font);
  letter-spacing: 0.04em;
  color: var(--u-ink);
  outline: none;
}
html.ui3.u-lp .v2-pix-cpf input:focus { border-color: var(--u-accent); box-shadow: var(--u-ring); }
html.ui3.u-lp .v2-pix-cpf p {
  margin: 6px 0 0;
  font-size: var(--u-t-xs);
  line-height: 1.4;
  color: var(--u-ink-3);
}

/* FAQ (paywall-faq-copy shipped "reframed") */
html.ui3.u-lp .v2-pay-faq { margin-block-end: 18px; }
html.ui3.u-lp .v2-pay-faq-header { margin-block-end: 12px; }
html.ui3.u-lp .v2-pay-faq-title {
  margin: 0 0 4px;
  font-size: var(--u-t-md);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-pay-faq-subtitle {
  margin: 0;
  font-size: var(--u-t-sm);
  line-height: 1.4;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-pay-faq-list { display: flex; flex-direction: column; gap: 8px; }
html.ui3.u-lp .v2-pay-faq-item {
  overflow: hidden;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-surface);
  transition: border-color var(--u-dur-1) var(--u-ease);
}
html.ui3.u-lp .v2-pay-faq-item.v2-open { border-color: var(--u-line-strong); }
html.ui3.u-lp .v2-pay-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding-block: 13px;
  padding-inline: 14px;
  border: 0;
  background: none;
  font: 600 var(--u-t-base)/1.35 var(--u-font);
  color: var(--u-ink);
  text-align: start;
  cursor: pointer;
}
html.ui3.u-lp .v2-pay-faq-q:focus-visible { outline: none; box-shadow: inset var(--u-ring); }
html.ui3.u-lp .v2-pay-faq-q-text { flex: 1; min-width: 0; }
html.ui3.u-lp .v2-pay-faq-chevron {
  flex-shrink: 0;
  color: var(--u-ink-4);
  transition: transform var(--u-dur-2) var(--u-ease);
}
html.ui3.u-lp .v2-pay-faq-item.v2-open .v2-pay-faq-chevron { transform: rotate(180deg); color: var(--u-ink-2); }
html.ui3.u-lp .v2-pay-faq-a {
  display: none;
  padding-block: 0 14px;
  padding-inline: 14px;
  font-size: var(--u-t-sm);
  line-height: 1.55;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-pay-faq-item.v2-open .v2-pay-faq-a { display: block; }

/* Affiliate promo code row (only rendered when the affiliate program is on) */
html.ui3.u-lp .v3-ob-promo { margin-block: 4px 8px; }
html.ui3.u-lp .v3-ob-promo-applied {
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  padding-inline: 12px;
  border: 1px solid var(--u-accent-line);
  border-radius: var(--u-r-md);
  background: var(--u-accent-soft);
  color: var(--u-accent);
}
html.ui3.u-lp .v3-ob-promo-applied-text { font-size: var(--u-t-sm); font-weight: 600; color: var(--u-accent-ink); }
html.ui3.u-lp .v3-ob-promo-remove,
html.ui3.u-lp .v3-ob-promo-toggle {
  padding-block: 4px;
  padding-inline: 0;
  border: 0;
  background: none;
  font: 500 var(--u-t-xs)/1.3 var(--u-font);
  color: var(--u-ink-3);
  text-decoration: underline;
  cursor: pointer;
}
html.ui3.u-lp .v3-ob-promo-remove { margin-inline-start: auto; font-size: var(--u-t-2xs); }
html.ui3.u-lp .v3-ob-promo-entry { text-align: center; }
html.ui3.u-lp .v3-ob-promo-input-wrap { margin-block-start: 8px; }
html.ui3.u-lp .v3-ob-promo-form { display: flex; gap: 8px; }
html.ui3.u-lp .v3-ob-promo-input {
  flex: 1;
  min-height: 40px;
  padding-block: 0;
  padding-inline: 12px;
  border: 1px solid var(--u-line-strong);
  border-radius: var(--u-r-md);
  font: 500 var(--u-t-sm)/1.3 var(--u-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--u-ink);
  outline: none;
}
html.ui3.u-lp .v3-ob-promo-input:focus { border-color: var(--u-accent); box-shadow: var(--u-ring); }
html.ui3.u-lp .v3-ob-promo-apply {
  padding-block: 0;
  padding-inline: 16px;
  border: 0;
  border-radius: var(--u-r-md);
  background: var(--u-ob-cta);
  color: var(--u-ob-on-cta);
  font: 600 var(--u-t-sm)/1 var(--u-font);
  white-space: nowrap;
  cursor: pointer;
}
html.ui3.u-lp .v3-ob-promo-error {
  margin-block-start: 6px;
  font-size: var(--u-t-xs);
  color: var(--u-danger);
  text-align: start;
}

/* Payment error banner (inserted by v2ShowPayError) */
html.ui3.u-lp .v3-ob-pay-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-end: 12px;
  padding-block: 12px;
  padding-inline: 14px;
  border: 1px solid var(--u-danger);
  border-radius: var(--u-r-lg);
  background: var(--u-danger-soft);
  font-size: var(--u-t-sm);
  line-height: 1.5;
  color: var(--u-danger);
}
html.ui3.u-lp .v3-ob-pay-error-text { flex: 1; min-width: 0; }
html.ui3.u-lp .v3-ob-pay-error-close {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* Sticky pay bar */
html.ui3.u-lp #v2PayStickyBar {
  position: sticky;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
  border-block-start: 1px solid var(--u-line);
  background: var(--u-surface);
}
html.ui3.u-lp #v2PayStickyBar .v2-pay-cta-split { box-shadow: none; }

/* Wallet method row (mobile + Apple Pay / Google Pay) */
html.ui3.u-lp .v2-pay-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 8px;
  padding-block: 10px;
  padding-inline: 12px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-bg);
}
html.ui3.u-lp .v2-pay-method-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
html.ui3.u-lp .v2-pay-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-md);
  background: var(--u-surface);
  font-size: var(--u-t-base);
  font-weight: 700;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-pay-method-label {
  overflow: hidden;
  font-size: var(--u-t-base);
  font-weight: 600;
  color: var(--u-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}
html.ui3.u-lp .v2-pay-method-change {
  flex-shrink: 0;
  margin-block: -10px;
  margin-inline: -4px;
  padding-block: 10px;
  padding-inline: 12px 4px;
  border: 0;
  background: none;
  font: 600 var(--u-t-sm)/1.2 var(--u-font);
  color: var(--u-accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Split pay CTA: left = access label (+ "No payment now"), right = today's price */
html.ui3.u-lp .v2-pay-cta-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding-block: 10px;
  padding-inline: 20px;
  border: 0;
  border-radius: var(--u-r-lg);
  background: var(--u-ob-cta);
  color: var(--u-ob-on-cta);
  font-family: var(--u-font);
  cursor: pointer;
  box-shadow: var(--u-sh-md);
  transition: background var(--u-dur-1) var(--u-ease), transform var(--u-dur-1) var(--u-ease);
}
@media (hover: hover) {
  html.ui3.u-lp .v2-pay-cta-split:hover:not(:disabled) { background: var(--u-ob-cta-hover); }
}
html.ui3.u-lp .v2-pay-cta-split:active:not(:disabled) { transform: translateY(1px); }
html.ui3.u-lp .v2-pay-cta-split:focus-visible { outline: none; box-shadow: var(--u-ring); }
html.ui3.u-lp .v2-pay-cta-split:disabled { opacity: 0.6; cursor: not-allowed; }
html.ui3.u-lp .v2-pay-cta-start-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: start;
}
html.ui3.u-lp .v2-pay-cta-start {
  font-size: var(--u-t-sm);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: start;
}
html.ui3.u-lp .v2-pay-cta-sub {
  font-size: var(--u-t-2xs);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.72;
}
html.ui3.u-lp .v2-pay-cta-end {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

html.ui3.u-lp .v2-pay-renewal-line {
  margin: 10px 0 0;
  padding-inline: 6px;
  font-size: var(--u-t-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--u-ink-2);
  text-align: center;
}
html.ui3.u-lp .v2-pay-legal-line {
  margin: 6px 0 0;
  padding-inline: 6px;
  font-size: var(--u-t-2xs);
  line-height: 1.4;
  color: var(--u-ink-3);
  text-align: center;
}
html.ui3.u-lp .v2-pay-legal-line a { color: inherit; text-decoration: underline; }
html.ui3.u-lp .v2-pay-secure-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-block-start: 8px;
  font-size: var(--u-t-2xs);
  font-weight: 600;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-pay-secure-line .u-i { color: var(--u-accent); }

@media (max-width: 767px) {
  html.ui3.u-lp .v2-pay-renewal-line { margin-block-start: 8px; }

  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-trust-row { margin-block-end: 12px; }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-trust-stat strong { font-size: var(--u-t-xs); }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-ready-headline { white-space: nowrap; margin-block-end: 6px; }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-ready-sub { font-size: var(--u-t-sm); margin-block-end: 12px; }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-reimburse { padding-block: 12px; padding-inline: 14px; margin-block-end: 10px; }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-reimburse-icon { width: 34px; height: 34px; }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-reimburse-title { font-size: var(--u-t-sm); }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-reimburse-lead { font-size: var(--u-t-xs); }
  html.ui3.u-lp .v2-step[data-v2step="s7"] #v2PayStickyBar.v2-sticky-cta {
    padding-block: 10px max(12px, calc(env(safe-area-inset-bottom) + 8px));
    padding-inline: 18px;
  }
  html.ui3.u-lp .v2-step[data-v2step="s7"] .v2-pay-step-body { padding-block-end: 168px; }

  /* Payment step: iOS keyboard open (Stripe inputs focused). Hide non-essential
     chrome so the Stripe element + submit button stay visible. */
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open .v2-pay-trust-row,
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open .v2-pay-ready-headline,
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open .v2-pay-ready-sub,
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open .v2-pay-reimburse,
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open .v2-pay-faq,
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open .v2-pay-disclaimer,
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open #v2-promo-row,
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open #v2PayStickyBar { display: none; }
  html.ui3.u-lp .v2-step[data-v2step="s7"].v2-keyboard-open .v2-step-body { padding-block-start: 12px; }

  html.ui3.u-lp .v2-pay-sheet.v2-pay-sheet-open { max-height: 92vh; }
  html.ui3.u-lp .v2-pay-sheet-card-form.v2-pay-sheet-card-visible { padding-block-end: max(16px, env(safe-area-inset-bottom)); }
}

/* ---------- Payment bottom sheet (portaled to <body>) ----------
   Must sit above #v2PaywallModal (z-index 100): after the portal the sheet is a
   sibling of the modal. */
html.ui3.u-lp .v2-pay-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--u-ob-scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--u-ease);
}
html.ui3.u-lp .v2-pay-sheet-backdrop.v2-pay-sheet-open { opacity: 1; pointer-events: auto; }

html.ui3.u-lp .v2-pay-sheet {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 221;
  max-height: 88vh;
  overflow-y: auto;
  padding-block: 18px max(22px, calc(env(safe-area-inset-bottom) + 16px));
  padding-inline: var(--u-ob-pad);
  border-start-start-radius: var(--u-r-xl);
  border-start-end-radius: var(--u-r-xl);
  background: var(--u-surface);
  color: var(--u-ink);
  font-family: var(--u-font);
  box-shadow: var(--u-sh-lg);
  transform: translateY(110%);
  transition: transform 280ms var(--u-ease);
}
html.ui3.u-lp .v2-pay-sheet.v2-pay-sheet-open { transform: translateY(0); pointer-events: auto; }
/* Park off-screen instead of display:none so Stripe can initialize the
   Payment Element before the first tap. */
html.ui3.u-lp .v2-pay-sheet:not(.v2-pay-sheet-open) { transform: translateX(-200vw); pointer-events: none; }

@media (min-width: 768px) {
  html.ui3.u-lp .v2-pay-sheet {
    width: min(var(--u-ob-measure), calc(100vw - 32px));
    margin-inline: auto;
  }
}

html.ui3.u-lp .v2-pay-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 16px;
}
html.ui3.u-lp .v2-pay-sheet-title {
  margin: 0;
  font-size: var(--u-t-lg);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-pay-sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-pill);
  background: var(--u-surface);
  color: var(--u-ink-3);
  cursor: pointer;
}
html.ui3.u-lp .v2-pay-sheet-close:focus-visible { outline: none; box-shadow: var(--u-ring); }
html.ui3.u-lp .v2-pay-sheet-card-form { display: block; margin-block-start: 8px; }
html.ui3.u-lp .v2-pay-sheet-submit-wrap { position: relative; margin-block-start: 14px; }
html.ui3.u-lp .v2-pay-sheet-submit-wrap .v2-pay-cta-split { min-height: 56px; }
html.ui3.u-lp #v2SheetPaySpinner {
  position: absolute;
  inset-inline-end: 20px;
  inset-block-start: 50%;
  margin-block-start: -9px;
  color: var(--u-ob-on-cta);
}
html.ui3.u-lp #v2EmailSpinner { color: currentColor; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  html.ui3.u-lp .v2-step-body {
    width: 100%;
    max-width: var(--u-ob-measure);
    margin-inline: auto;
    padding-block: 40px 0;
    padding-inline: 32px;
  }
  html.ui3.u-lp .v2-sticky-cta {
    width: 100%;
    max-width: var(--u-ob-measure);
    margin-inline: auto;
    padding-inline: 32px;
    border-block-start-color: transparent;
    box-shadow: none;
  }
  html.ui3.u-lp .v2-headline { font-size: 30px; }
  html.ui3.u-lp .v2-pay-ready-headline { font-size: 30px; }
}

/* ======================================================================
   S4X: feature showcase (views/v3/onboarding/showcases.ejs)
   ====================================================================== */

/* Showcase flow (paywall-mobile-showcase shipped "showcase"): purpose checklist + Continue. */
html.ui3.u-lp #v2WorkflowContinueWrap { display: block; }

html.ui3.u-lp .v2-showcase-stage {
  position: relative;
  height: min(420px, 52vh);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-xl);
  background: var(--u-surface);
  box-shadow: var(--u-sh-sm);
}
html.ui3.u-lp .v2-demo {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-block: 14px 12px;
  padding-inline: 12px;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-demo.v2-demo-on { display: flex; }
html.ui3.u-lp .v2-demo.v2-demo-browser { padding: 0; }
html.ui3.u-lp .v2-demo-browser-frame { flex: 1; display: flex; flex-direction: column; min-height: 0; }
html.ui3.u-lp .v2-demo-chrome {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding-block: 7px;
  padding-inline: 10px;
  background: var(--u-surface-2);
  border-block-end: 1px solid var(--u-line);
}
html.ui3.u-lp .v2-demo-dots { display: flex; gap: 4px; }
html.ui3.u-lp .v2-demo-dots span { width: 7px; height: 7px; border-radius: 4px; }
html.ui3.u-lp .v2-demo-dots span:nth-child(1) { background: var(--u-ob-dot-1); }
html.ui3.u-lp .v2-demo-dots span:nth-child(2) { background: var(--u-ob-dot-2); }
html.ui3.u-lp .v2-demo-dots span:nth-child(3) { background: var(--u-ob-dot-3); }
html.ui3.u-lp .v2-demo-url {
  flex: 1;
  padding-block: 3px;
  padding-inline: 8px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-md);
  background: var(--u-surface);
  font-size: 10px;
  font-weight: 500;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-demo-browser-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
}

html.ui3.u-lp .v2-sample-badge {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  padding-block: 3px;
  padding-inline: 8px;
  border: 1px solid var(--u-accent-line);
  border-radius: var(--u-r-pill);
  background: var(--u-accent-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--u-accent-ink);
}

/* Shared demo type */
html.ui3.u-lp .v2-kicker { margin-block-end: 2px; font-size: 10px; font-weight: 600; color: var(--u-accent); }
html.ui3.u-lp .v2-heading {
  display: block;
  margin-block-end: 8px;
  padding-inline-end: 108px;
  font-size: var(--u-t-sm);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-demo > .v2-in-00 { flex-shrink: 0; min-height: 0; padding-inline-end: 108px; }
html.ui3.u-lp .v2-demo > .v2-in-00 .v2-heading { padding-inline-end: 0; }

/* Loop timings: 4.5s = 3.6s play + 0.9s hold (papers/digest/slides/writing/study) */
html.ui3.u-lp .v2-demo-on .v2-in-00 { animation: v2In00 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-12 { animation: v2In12 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-16 { animation: v2In16 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-18 { animation: v2In18 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-28 { animation: v2In28 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-36 { animation: v2In36 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-38 { animation: v2In38 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-40 { animation: v2In40 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-42 { animation: v2In42 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-54 { animation: v2In54 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-56 { animation: v2In56 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-58 { animation: v2In58 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-68 { animation: v2In68 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-72 { animation: v2In72 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-74 { animation: v2In74 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-78 { animation: v2In78 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-82 { animation: v2In82 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-pdf { animation: v2PdfOut 4.5s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-typing { animation: v2TypingWin 5.1s ease infinite; }

/* Notes / chat use the longer 4.2s + 0.9s loop */
html.ui3.u-lp .v2-demo-on .v2-in-slow-00 { animation: v2In00 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-32 { animation: v2In32s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-38 { animation: v2In38s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-42 { animation: v2In42s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-54 { animation: v2In54s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-62 { animation: v2In62s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-68 { animation: v2In68s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-74 { animation: v2In74s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-in-slow-80 { animation: v2In80s 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-chip-clinic { animation: v2ChipA 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-chip-conf { animation: v2ChipB 5.1s ease infinite; }
html.ui3.u-lp .v2-demo-on .v2-chip-meet { animation: v2ChipC 5.1s ease infinite; }

@keyframes v2In00 { 0% { opacity: 0; transform: translateY(8px); } 8%, 100% { opacity: 1; transform: none; } }
@keyframes v2In12 { 0%, 10% { opacity: 0; transform: translateY(8px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes v2In16 { 0%, 13% { opacity: 0; transform: translateY(8px); } 24%, 100% { opacity: 1; transform: none; } }
@keyframes v2In18 { 0%, 14% { opacity: 0; transform: translateY(14px); } 26%, 100% { opacity: 1; transform: none; } }
@keyframes v2In28 { 0%, 22% { opacity: 0; transform: translateY(8px); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes v2In36 { 0%, 29% { opacity: 0; transform: translateY(8px); } 40%, 100% { opacity: 1; transform: none; } }
@keyframes v2In38 { 0%, 30% { opacity: 0; transform: translateY(8px); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes v2In40 { 0%, 32% { opacity: 0; transform: translateY(8px); } 40%, 100% { opacity: 1; transform: none; } }
@keyframes v2In42 { 0%, 34% { opacity: 0; transform: translateY(8px); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes v2In54 { 0%, 43% { opacity: 0; transform: translateY(8px); } 51%, 100% { opacity: 1; transform: none; } }
@keyframes v2In56 { 0%, 45% { opacity: 0; transform: translateY(8px); } 53%, 100% { opacity: 1; transform: none; } }
@keyframes v2In58 { 0%, 46% { opacity: 0; transform: translateY(14px); } 58%, 100% { opacity: 1; transform: none; } }
@keyframes v2In68 { 0%, 54% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes v2In72 { 0%, 58% { opacity: 0; transform: translateY(12px); } 70%, 100% { opacity: 1; transform: none; } }
@keyframes v2In74 { 0%, 59% { opacity: 0; transform: translateY(8px); } 72%, 100% { opacity: 1; transform: none; } }
@keyframes v2In78 { 0%, 62% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes v2In82 { 0%, 66% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes v2PdfOut { 0%, 21% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes v2TypingWin { 0%, 11% { opacity: 0; } 18%, 26% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes v2In32s { 0%, 26% { opacity: 0; transform: translateY(8px); } 35%, 100% { opacity: 1; transform: none; } }
@keyframes v2In38s { 0%, 31% { opacity: 0; transform: translateY(8px); } 43%, 100% { opacity: 1; transform: none; } }
@keyframes v2In42s { 0%, 35% { opacity: 0; } 43%, 100% { opacity: 1; } }
@keyframes v2In54s { 0%, 44% { opacity: 0; transform: translateY(8px); } 54%, 100% { opacity: 1; transform: none; } }
@keyframes v2In62s { 0%, 51% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes v2In68s { 0%, 56% { opacity: 0; transform: translateY(8px); } 66%, 100% { opacity: 1; transform: none; } }
@keyframes v2In74s { 0%, 61% { opacity: 0; } 69%, 100% { opacity: 1; } }
@keyframes v2In80s { 0%, 66% { opacity: 0; } 72%, 100% { opacity: 1; } }
@keyframes v2ChipA { 0%, 34% { opacity: 0; } 38%, 48% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes v2ChipB { 0%, 50% { opacity: 0; } 54%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes v2ChipC { 0%, 65% { opacity: 0; } 70%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes v2Wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@keyframes v2Dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Digest */
html.ui3.u-lp .v2-digest-feature {
  margin-block-end: 6px;
  padding: 8px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
}
html.ui3.u-lp .v2-chip-row { display: flex; align-items: center; gap: 6px; margin-block-end: 4px; }
html.ui3.u-lp .v2-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--u-accent-soft);
  font-size: 10px;
  font-weight: 700;
  color: var(--u-accent);
}
html.ui3.u-lp .v2-journal-chip {
  padding-block: 2px;
  padding-inline: 6px;
  border-radius: var(--u-r-xs);
  background: var(--u-surface-2);
  font-size: 9px;
  font-weight: 600;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-paper-title { margin-block-end: 3px; font-size: var(--u-t-xs); font-weight: 650; line-height: 16px; color: var(--u-ink); }
html.ui3.u-lp .v2-tldr { margin-block-end: 6px; font-size: var(--u-t-2xs); line-height: 14px; color: var(--u-ink-3); }
html.ui3.u-lp .v2-keys { display: flex; gap: 6px; margin-block-end: 6px; }
html.ui3.u-lp .v2-key-tile {
  flex: 1;
  padding-block: 5px;
  padding-inline: 8px;
  border-radius: var(--u-r-md);
  background: var(--u-surface-2);
}
html.ui3.u-lp .v2-key-label { font-size: 9px; font-weight: 600; color: var(--u-ink-4); }
html.ui3.u-lp .v2-key-value { font-size: var(--u-t-base); font-weight: 700; color: var(--u-ink); font-variant-numeric: tabular-nums; }
html.ui3.u-lp .v2-why {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
  color: var(--u-accent-ink);
}
html.ui3.u-lp .v2-why svg { flex-shrink: 0; margin-block-start: 1px; }
html.ui3.u-lp .v2-digest-row { display: flex; align-items: center; gap: 8px; padding-block: 5px; }
html.ui3.u-lp .v2-digest-row-title { font-size: var(--u-t-2xs); font-weight: 600; color: var(--u-ink); }
html.ui3.u-lp .v2-digest-row-journal { font-size: 9px; color: var(--u-ink-4); }
html.ui3.u-lp .v2-audio {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-start: auto;
  padding: 8px;
  border-radius: var(--u-r-lg);
  background: var(--u-surface-2);
  color: var(--u-accent);
}
html.ui3.u-lp .v2-audio-text { flex: 1; font-size: var(--u-t-2xs); font-weight: 600; color: var(--u-ink); }
html.ui3.u-lp .v2-play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--u-accent);
  color: var(--u-on-accent);
}

/* Papers */
html.ui3.u-lp .v2-journal { display: block; margin-block-end: 2px; font-size: 10px; font-weight: 600; color: var(--u-accent); }
html.ui3.u-lp .v2-papers-body { position: relative; flex: 1; display: flex; align-items: center; min-height: 0; }
html.ui3.u-lp .v2-pdf { display: flex; flex-direction: column; gap: 7px; width: 100%; }
html.ui3.u-lp .v2-demo-line { height: 7px; border-radius: 3px; background: var(--u-surface-3); }
html.ui3.u-lp .v2-paper-sections {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
html.ui3.u-lp .v2-paper-block {
  padding-block: 6px;
  padding-inline: 8px;
  border-inline-start: 3px solid var(--u-accent);
  border-radius: var(--u-r-md);
  background: var(--u-surface-2);
}
html.ui3.u-lp .v2-paper-block.is-finding { border-inline-start-color: var(--u-accent-ink); }
html.ui3.u-lp .v2-paper-block.is-caveat { border-inline-start-color: var(--u-ob-star); }
html.ui3.u-lp .v2-section-label {
  margin: 0 0 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--u-ink-4);
}
html.ui3.u-lp .v2-section-body {
  font-size: var(--u-t-xs);
  font-weight: 500;
  line-height: 16px;
  color: var(--u-ink);
  overflow-wrap: anywhere;
}

/* Notes */
html.ui3.u-lp .v2-record {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
  padding: 8px;
  border-radius: var(--u-r-lg);
  background: var(--u-accent-soft);
}
html.ui3.u-lp .v2-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--u-accent);
  color: var(--u-on-accent);
}
html.ui3.u-lp .v2-rec-label { font-size: 9px; font-weight: 600; color: var(--u-accent-ink); }
html.ui3.u-lp .v2-timer { font-size: var(--u-t-md); font-weight: 700; letter-spacing: 0.4px; color: var(--u-ink); font-variant-numeric: tabular-nums; }
html.ui3.u-lp .v2-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 24px; }
html.ui3.u-lp .v2-wave-bar { width: 3px; border-radius: 2px; background: var(--u-accent); transform-origin: center; }
html.ui3.u-lp .v2-demo-on .v2-wave-bar { animation: v2Wave 0.84s ease-in-out infinite; }
html.ui3.u-lp .v2-demo-on .v2-wave-bar:nth-child(even) { animation-duration: 0.7s; }
html.ui3.u-lp .v2-format-chips { display: flex; gap: 6px; margin-block-end: 8px; }
html.ui3.u-lp .v2-format-chip {
  position: relative;
  overflow: hidden;
  padding-block: 4px;
  padding-inline: 8px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-pill);
  background: var(--u-surface-2);
  font-size: 10px;
  font-weight: 600;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-chip-on { position: absolute; inset: 0; z-index: -1; background: var(--u-accent-soft); opacity: 0; }
html.ui3.u-lp .v2-format-chip { isolation: isolate; }
html.ui3.u-lp .v2-note-preview { position: relative; flex: 1; min-height: 96px; }
html.ui3.u-lp .v2-note-face { display: flex; flex-direction: column; gap: 6px; }
html.ui3.u-lp .v2-note-overlay { position: absolute; inset: 0; background: var(--u-surface); }
html.ui3.u-lp .v2-format-kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--u-accent); }
html.ui3.u-lp .v2-soap-row,
html.ui3.u-lp .v2-takeaway-row { display: flex; align-items: center; gap: 8px; }
html.ui3.u-lp .v2-soap-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: var(--u-r-xs);
  background: var(--u-accent-soft);
  font-size: 10px;
  font-weight: 700;
  color: var(--u-accent);
}
html.ui3.u-lp .v2-takeaway-num { width: 14px; font-size: var(--u-t-2xs); font-weight: 700; color: var(--u-accent); }
html.ui3.u-lp .v2-note-line { min-width: 0; font-size: var(--u-t-xs); font-weight: 500; line-height: 16px; color: var(--u-ink); }

/* Chat with citations */
html.ui3.u-lp .v2-chat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-end: 8px;
  font-size: var(--u-t-2xs);
  font-weight: 650;
  color: var(--u-ink);
}
html.ui3.u-lp .v2-chat-head svg { color: var(--u-accent); }
html.ui3.u-lp .v2-chat-dot { width: 3px; height: 3px; border-radius: 2px; background: var(--u-ink-4); }
html.ui3.u-lp .v2-chat-sub { font-size: 10px; font-weight: 500; color: var(--u-ink-3); }
html.ui3.u-lp .v2-user-row { display: flex; justify-content: flex-end; margin-block-end: 8px; }
html.ui3.u-lp .v2-user-bubble {
  max-width: 92%;
  padding-block: 8px;
  padding-inline: 10px;
  border-radius: var(--u-r-lg);
  border-end-end-radius: var(--u-r-xs);
  background: var(--u-ink);
  font-size: var(--u-t-xs);
  font-weight: 500;
  line-height: 16px;
  color: var(--u-on-ink);
}
html.ui3.u-lp .v2-typing { display: flex; gap: 4px; min-height: 16px; margin-block-end: 4px; padding-inline-start: 4px; }
html.ui3.u-lp .v2-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--u-ink-4); }
html.ui3.u-lp .v2-demo-on .v2-dot { animation: v2Dot 0.72s ease-in-out infinite; }
html.ui3.u-lp .v2-demo-on .v2-dot:nth-child(2) { animation-delay: 0.12s; }
html.ui3.u-lp .v2-demo-on .v2-dot:nth-child(3) { animation-delay: 0.24s; }
html.ui3.u-lp .v2-takeaway {
  margin-block-end: 8px;
  padding: 8px;
  border-inline-start: 3px solid var(--u-accent);
  border-radius: var(--u-r-lg);
  background: var(--u-accent-soft);
}
html.ui3.u-lp .v2-takeaway-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-block-end: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--u-accent-ink);
}
html.ui3.u-lp .v2-takeaway-head .u-i { width: 12px; height: 12px; color: var(--u-accent); }
html.ui3.u-lp .v2-takeaway-line,
html.ui3.u-lp .v2-chat-body { display: flex; align-items: flex-start; gap: 4px; }
html.ui3.u-lp .v2-takeaway-text { flex: 1; font-size: var(--u-t-xs); font-weight: 500; line-height: 16px; color: var(--u-ink); }
html.ui3.u-lp .v2-chat-body { margin-block-end: 10px; }
html.ui3.u-lp .v2-chat-body-text { flex: 1; font-size: var(--u-t-xs); font-weight: 500; line-height: 16px; color: var(--u-ink-3); }
html.ui3.u-lp .v2-cite-mark,
html.ui3.u-lp .v2-cite-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-block-start: 1px;
  background: var(--u-info-soft);
  font-size: 9px;
  font-weight: 700;
  color: var(--u-info);
}
html.ui3.u-lp .v2-cite-mark { min-width: 14px; height: 14px; padding-inline: 3px; border-radius: var(--u-r-xs); }
html.ui3.u-lp .v2-cite-badge { width: 16px; height: 16px; border-radius: 8px; }
html.ui3.u-lp .v2-refs { display: flex; flex-direction: column; gap: 6px; margin-block-start: auto; }
html.ui3.u-lp .v2-refs-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--u-ink-3);
}
html.ui3.u-lp .v2-cite { display: flex; align-items: flex-start; gap: 8px; }
html.ui3.u-lp .v2-cite-journal { font-size: 10px; font-weight: 700; color: var(--u-accent); }
html.ui3.u-lp .v2-cite-title { font-size: var(--u-t-2xs); font-weight: 500; line-height: 14px; color: var(--u-ink); }
html.ui3.u-lp .v2-cite-meta { font-size: 10px; font-weight: 500; color: var(--u-ink-4); }

/* Slides */
html.ui3.u-lp .v2-paper-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
  padding-block-end: 8px;
  border-block-end: 1px solid var(--u-line);
  color: var(--u-accent);
}
html.ui3.u-lp .v2-paper-row-title { flex: 1; min-width: 0; font-size: var(--u-t-2xs); font-weight: 600; color: var(--u-ink); }
html.ui3.u-lp .v2-deck { flex: 1; display: flex; gap: 6px; min-height: 0; }
html.ui3.u-lp .v2-slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-surface-2);
}
html.ui3.u-lp .v2-slide.is-focus { border-color: var(--u-accent); background: var(--u-surface); }
html.ui3.u-lp .v2-slide-num { font-size: 10px; font-weight: 700; color: var(--u-accent); }
html.ui3.u-lp .v2-slide-title { font-size: var(--u-t-2xs); font-weight: 650; line-height: 14px; color: var(--u-ink); }
html.ui3.u-lp .v2-slide-body { font-size: 10px; line-height: 13px; color: var(--u-ink-3); }

/* Writing */
html.ui3.u-lp .v2-write-split { flex: 1; display: flex; gap: 8px; min-height: 0; }
html.ui3.u-lp .v2-outline {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  width: 78px;
  padding: 7px;
  border-radius: var(--u-r-md);
  background: var(--u-surface-2);
}
html.ui3.u-lp .v2-outline-kicker { font-size: 8px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--u-accent); }
html.ui3.u-lp .v2-outline-item { font-size: 10px; font-weight: 600; line-height: 13px; color: var(--u-ink-3); }
html.ui3.u-lp .v2-editor { flex: 1; display: flex; flex-direction: column; min-width: 0; }
html.ui3.u-lp .v2-write-line { margin-block-end: 7px; font-family: var(--u-font-read); font-size: var(--u-t-sm); line-height: 17px; color: var(--u-ink); }
html.ui3.u-lp .v2-write-chips { display: flex; gap: 6px; margin-block-start: auto; }
html.ui3.u-lp .v2-write-chip {
  padding-block: 3px;
  padding-inline: 8px;
  border-radius: var(--u-r-pill);
  background: var(--u-info-soft);
  font-size: var(--u-t-2xs);
  font-weight: 700;
  color: var(--u-info);
}

/* Study */
html.ui3.u-lp .v2-quiz-q { margin-block-end: 8px; font-size: var(--u-t-base); font-weight: 650; line-height: 19px; letter-spacing: -0.01em; color: var(--u-ink); }
html.ui3.u-lp .v2-options { display: flex; flex-direction: column; gap: 6px; }
html.ui3.u-lp .v2-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding-block: 7px;
  padding-inline: 8px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-surface);
}
html.ui3.u-lp .v2-option-correct-bg {
  position: absolute;
  inset: 0;
  border: 1px solid var(--u-accent);
  border-radius: var(--u-r-lg);
  background: var(--u-accent-soft);
  opacity: 0;
}
html.ui3.u-lp .v2-option-letter { position: relative; width: 18px; font-size: var(--u-t-2xs); font-weight: 700; color: var(--u-ink-4); }
html.ui3.u-lp .v2-option-text { position: relative; flex: 1; font-size: var(--u-t-xs); font-weight: 600; color: var(--u-ink); }
html.ui3.u-lp .v2-option-check { position: relative; display: flex; color: var(--u-accent); }
html.ui3.u-lp .v2-explain {
  margin-block-start: auto;
  padding: 8px;
  border-radius: var(--u-r-md);
  background: var(--u-accent-soft);
}
html.ui3.u-lp .v2-explain-ok { margin-block-end: 2px; font-size: 10px; font-weight: 700; color: var(--u-accent-ink); }
html.ui3.u-lp .v2-explain-text { font-size: var(--u-t-2xs); font-weight: 500; line-height: 14px; color: var(--u-ink); }

/* Reduced motion: show the end state of every demo. Kept last so it wins on equal specificity. */
@media (prefers-reduced-motion: reduce) {
  html.ui3.u-lp .v2-demo-on [class*="v2-in-"],
  html.ui3.u-lp .v2-demo-on [class*="v2-chip-"],
  html.ui3.u-lp .v2-demo-on .v2-pdf,
  html.ui3.u-lp .v2-demo-on .v2-typing,
  html.ui3.u-lp .v2-demo-on .v2-wave-bar,
  html.ui3.u-lp .v2-demo-on .v2-wave-bar:nth-child(even),
  html.ui3.u-lp .v2-demo-on .v2-dot,
  html.ui3.u-lp .v2-demo-on .v2-dot:nth-child(2),
  html.ui3.u-lp .v2-demo-on .v2-dot:nth-child(3) { animation: none; opacity: 1; transform: none; }
  html.ui3.u-lp .v2-demo-on .v2-pdf,
  html.ui3.u-lp .v2-demo-on .v2-typing,
  html.ui3.u-lp .v2-demo-on .v2-chip-clinic,
  html.ui3.u-lp .v2-demo-on .v2-chip-conf { opacity: 0; }
  html.ui3.u-lp .v2-demo-on .v2-chip-meet { opacity: 1; }
  html.ui3.u-lp #v2PaywallModal,
  html.ui3.u-lp .v2-pay-sheet,
  html.ui3.u-lp .v2-progress-bar-fill { transition: none; }
}

/* ---------- geo-plan-ladder: yearly / quarterly / monthly plan cards ----------
   The "picker" arm shows them on their own step (S6), before payment. */
html.ui3.u-lp .v3-ob-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 4px 12px;
}
html.ui3.u-lp .v3-ob-plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding-block: 10px;
  padding-inline: 14px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-surface);
  font: inherit;
  color: var(--u-ink);
  text-align: start;
  cursor: pointer;
  transition: border-color var(--u-dur-1) var(--u-ease), background var(--u-dur-1) var(--u-ease);
}
html.ui3.u-lp .v3-ob-plan:focus-visible { outline: none; box-shadow: var(--u-ring); }
html.ui3.u-lp .v3-ob-plan--badged { margin-block-start: 10px; }
html.ui3.u-lp .v3-ob-plan[aria-checked="true"] {
  border: 2px solid var(--u-accent);
  padding-block: 9px;
  padding-inline: 13px;
  background: var(--u-accent-soft);
}
html.ui3.u-lp .v3-ob-plan-radio {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--u-line-strong);
  border-radius: 50%;
}
html.ui3.u-lp .v3-ob-plan[aria-checked="true"] .v3-ob-plan-radio { border-color: var(--u-accent); }
html.ui3.u-lp .v3-ob-plan[aria-checked="true"] .v3-ob-plan-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--u-accent);
}
html.ui3.u-lp .v3-ob-plan-copy { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
html.ui3.u-lp .v3-ob-plan-name { font-size: var(--u-t-md); font-weight: 600; letter-spacing: -0.01em; }
html.ui3.u-lp .v3-ob-plan-billed { font-size: var(--u-t-xs); color: var(--u-ink-3); }
html.ui3.u-lp .v3-ob-plan-price { display: flex; align-items: baseline; gap: 1px; flex-shrink: 0; white-space: nowrap; }
html.ui3.u-lp .v3-ob-plan-price strong { font-size: var(--u-t-md); font-weight: 700; font-variant-numeric: tabular-nums; }
html.ui3.u-lp .v3-ob-plan-price span { font-size: var(--u-t-xs); color: var(--u-ink-3); }
html.ui3.u-lp .v3-ob-plan-badge {
  position: absolute;
  inset-block-start: -10px;
  inset-inline-start: 12px;
  padding-block: 2px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--u-accent);
  color: var(--u-on-accent);
  font-size: var(--u-t-2xs);
  font-weight: 700;
  letter-spacing: 0.01em;
}
html.ui3.u-lp .v3-ob-plan-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-block: 4px 12px;
  padding-block: 10px;
  padding-inline: 14px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-surface);
  font: inherit;
  font-size: var(--u-t-sm);
  color: var(--u-ink);
  text-align: start;
  cursor: pointer;
}
html.ui3.u-lp .v3-ob-plan-chip.hidden { display: none; }
html.ui3.u-lp .v3-ob-plan-chip-change { color: var(--u-accent); font-weight: 600; text-decoration: underline; }
html.ui3.u-lp .v2-step[data-v2step="s6"] .v3-ob-plans { gap: 10px; margin-block-start: 18px; }
html.ui3.u-lp .v2-step[data-v2step="s6"] .v3-ob-plan { min-height: 68px; }

html.ui3.u-lp .v3-ob-due {
  margin-block-start: 14px;
  padding-block: 12px;
  padding-inline: 14px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-bg);
}
html.ui3.u-lp .v3-ob-due-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.ui3.u-lp .v3-ob-due-row--later { margin-block-start: 6px; font-size: var(--u-t-xs); color: var(--u-ink-3); }
html.ui3.u-lp .v3-ob-due-label { display: flex; align-items: center; gap: 8px; font-size: var(--u-t-sm); font-weight: 600; }
html.ui3.u-lp .v3-ob-due-pill {
  padding-block: 2px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--u-accent-soft);
  color: var(--u-accent);
  font-size: var(--u-t-2xs);
  font-weight: 700;
}
html.ui3.u-lp .v3-ob-due-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
html.ui3.u-lp .v3-ob-due-row:first-child .v3-ob-due-amount { font-size: var(--u-t-md); font-weight: 700; }
html.ui3.u-lp .v3-ob-cta-sub { margin-block-start: 8px; font-size: var(--u-t-xs); color: var(--u-ink-3); text-align: center; }
/* Short phones (e.g. in-app browsers): keep "Due today €0" above the sticky button. */
@media (max-height: 640px) {
  html.ui3.u-lp .v2-step[data-v2step="s6"] .v3-ob-plans { gap: 6px; margin-block-start: 12px; }
  html.ui3.u-lp .v2-step[data-v2step="s6"] .v3-ob-plan { min-height: 50px; padding-block: 7px; }
  html.ui3.u-lp .v2-step[data-v2step="s6"] .v3-ob-plan[aria-checked="true"] { padding-block: 6px; }
  html.ui3.u-lp .v2-step[data-v2step="s6"] .v3-ob-due { margin-block-start: 10px; padding-block: 9px; padding-inline: 12px; }
  html.ui3.u-lp .v2-step[data-v2step="s6"] .v3-ob-cta-sub { display: none; }
}
/* Picker step repeats the checkout FAQ below the plans; leave room to scroll it past the sticky button. */
html.ui3.u-lp .v2-step[data-v2step="s6"] .v2-pay-faq { margin-block-start: 22px; }
@media (max-width: 767px) {
  html.ui3.u-lp .v2-step[data-v2step="s6"] .v2-step-body { padding-block-end: 140px; }
}

/* ---------- geo-plan-ladder on the landing pricing card ----------
   Phones: the same stacked rows as the plan step. Wider screens: three columns, the
   preselected (quarterly) plan in the middle, per-month price as the headline number. */
html.ui3.u-lp .u-lp-ladder { width: 100%; margin-block: 4px 18px; text-align: start; }
html.ui3.u-lp .u-lp-ladder-renewal {
  margin-block: 10px 0;
  font-size: var(--u-t-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--u-ink-2);
  text-align: center;
}
@media (min-width: 640px) {
  html.ui3.u-lp .u-lp-ladder {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    margin-block-start: 18px;
  }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-block-start: 0;
    min-height: 0;
    padding-block: 26px 18px;
    padding-inline: 12px;
    text-align: center;
  }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan[aria-checked="true"] { padding-block: 25px 17px; padding-inline: 11px; }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan-radio { display: none; }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan-copy { display: contents; }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan-name { order: 1; }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan-price { order: 2; margin-block: 8px 4px; }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan-price strong { font-size: 26px; letter-spacing: -0.02em; }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan-billed { order: 3; }
  html.ui3.u-lp .u-lp-ladder .v3-ob-plan-badge {
    inset-inline: 8px;
    margin-inline: auto;
    width: fit-content;
    max-width: calc(100% - 16px);
    text-align: center;
    line-height: 1.25;
  }
}
html.ui3.u-lp .u-lp-ladder-guarantee {
  margin-block: 10px 0;
  font-size: var(--u-t-xs);
  font-weight: 600;
  color: var(--u-ink-3);
  text-align: center;
}

/* Returning user (canceled / past_due / earlier signup): 6-digit email code before checkout */
html.ui3.u-lp .v3-returning-verify {
  margin-block-start: 14px;
  padding-block: 14px;
  padding-inline: 14px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-r-lg);
  background: var(--u-surface-2, var(--u-bg));
}
html.ui3.u-lp .v3-returning-verify[hidden] { display: none; }
html.ui3.u-lp .v3-returning-title {
  margin: 0 0 4px;
  font-size: var(--u-t-sm);
  font-weight: 600;
  color: var(--u-ink);
}
html.ui3.u-lp .v3-returning-body {
  margin: 0 0 10px;
  font-size: var(--u-t-sm);
  line-height: 1.5;
  color: var(--u-ink-2);
}
html.ui3.u-lp .v3-returning-verify .v2-email-input { letter-spacing: 0.3em; }
html.ui3.u-lp .v3-returning-resend {
  margin: 8px 0 0;
  font-size: var(--u-t-sm);
  color: var(--u-ink-3);
}
html.ui3.u-lp .v3-returning-resend .v3-ob-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
html.ui3.u-lp .v3-returning-resend span { margin-inline-start: 8px; }
