/* ==========================================================================
   nc03-gp-wg upsells — Rosabella-style structure, Gum Protect+ palette.
   Shared by upsell.html (single OTO) and upsell-2.html (tiered downsell).
   ========================================================================== */

:root {
  --up-navy: #1d2b5a;
  --up-maroon: #a3203a;
  --up-mint: #e6f6f2;
  --up-ink: #1f2330;
  --up-muted: #646b7a;
  --up-line: #e2e5ea;
  --up-green: #1e8a4a;
  --up-sun: #ffd84d;
  --up-sun-soft: #fff6d6;
  --up-display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --up-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body { margin: 0; background: #fff; color: var(--up-ink); font-family: var(--up-body); }
.up *, .up *::before, .up *::after { box-sizing: border-box; }
.up img { max-width: 100%; height: auto; }
.up-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 16px; }

/* --- Bars and header -------------------------------------------------------- */
.up-bar { background: var(--up-maroon); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 9px 16px; letter-spacing: .02em; }
.up-head { border-bottom: 1px solid var(--up-line); }
.up-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.up .up-head__logo { height: 28px; width: auto; display: block; }
.up-crumbs { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: #9aa0ab; }
.up-crumbs li + li::before { content: "›"; margin-right: 8px; color: #c2c6cd; }
.up-crumbs .is-done { color: var(--up-ink); }
.up-crumbs .is-current { color: var(--up-navy); font-weight: 700; }

/* --- OTO intro -------------------------------------------------------------- */
.up-intro { text-align: center; max-width: 760px; padding-block: 28px 8px; }
.up-intro__title { font-family: var(--up-display); font-weight: 800; color: var(--up-navy); font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
.up-intro p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.up-intro__kicker { color: var(--up-green); font-weight: 700; text-transform: uppercase; font-size: 14px !important; letter-spacing: .03em; }

/* --- OTO card --------------------------------------------------------------- */
.up-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-block: 20px 32px; border: 1px solid var(--up-line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(29, 43, 90, .08); }
.up-card__offer { padding: 24px; display: grid; gap: 12px; align-content: start; }
.up-card__media { background: var(--up-mint); display: grid; place-items: center; padding: 24px; }
.up-card__flag { margin: 0; font-size: 13px; font-weight: 700; color: var(--up-maroon); }
.up-card__title { font-family: var(--up-display); font-weight: 800; font-size: 32px; color: var(--up-navy); margin: 0; }
.up-card__product { margin: 0; color: var(--up-muted); font-size: 14px; }
.up-card__ship { margin: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--up-green); }
@media (max-width: 760px) {
  .up-card { grid-template-columns: 1fr; }
  .up-card__media { order: -1; padding: 16px; }
  .up-card__media img { max-width: 260px; }
}

.up-checks, .up-tier__inc, .up-ds__claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.up-checks li, .up-tier__inc li, .up-ds__claims li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.45; }
.up-checks li::before, .up-tier__inc li::before, .up-ds__claims li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--up-green); font-weight: 800; }

.up-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: #f7f8fa; border-radius: 10px; font-variant-numeric: tabular-nums; }
.up-prices > div { display: grid; gap: 2px; }
.up-prices__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--up-muted); }
.up-prices__was { font-size: 20px; color: #8a909b; }
.up-prices__now { font-family: var(--up-display); font-size: 26px; color: var(--up-maroon); }
.up-prices__off { font-size: 13px; font-weight: 700; color: var(--up-green); }

/* --- Buttons --------------------------------------------------------------- */
.up-btn { display: block; width: 100%; text-align: center; background: var(--up-green); color: #fff; font-family: var(--up-display); font-weight: 700; font-size: 19px; text-decoration: none; padding: 16px 18px; border: 0; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 0 #156336; }
.up-btn:hover { filter: brightness(1.06); }
.up-btn:focus-visible { outline: 3px solid var(--up-navy); outline-offset: 3px; }
.up-btn--sm { font-size: 15px; padding: 12px 14px; }
.up-decline { display: block; text-align: center; color: var(--up-muted); font-size: 14px; text-decoration: underline; margin: 6px auto 0; }
.up-accept-proxy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Downsell: progress, banner, note ---------------------------------------- */
.up-progress { padding-block: 14px 10px; border-bottom: 1px solid var(--up-line); }
.up-progress__steps { display: flex; justify-content: space-between; list-style: none; margin: 0 0 8px; padding: 0; font-size: 12.5px; color: #9aa0ab; }
.up-progress__steps .is-done { color: var(--up-green); font-weight: 600; }
.up-progress__steps .is-current { color: var(--up-navy); font-weight: 700; }
.up-progress__track { height: 8px; border-radius: 999px; background: #eceef2; overflow: hidden; }
.up-progress__track span { display: block; height: 100%; background: var(--up-green); border-radius: inherit; }
.up-banner { background: var(--up-sun); color: var(--up-navy); text-align: center; font-family: var(--up-display); font-weight: 700; font-size: 17px; padding: 10px 16px; }

.up-note { max-width: 760px; padding-block: 24px 8px; }
.up-note__bubble { position: relative; background: var(--up-sun-soft); border: 2px solid #f1dc93; border-radius: 16px; padding: 18px 22px; }
.up-note__bubble::after { content: ""; position: absolute; left: 40px; bottom: -12px; width: 20px; height: 20px; background: var(--up-sun-soft); border-right: 2px solid #f1dc93; border-bottom: 2px solid #f1dc93; transform: rotate(45deg); }
.up-note__bubble h1 { margin: 0; font-family: var(--up-display); font-weight: 800; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.2; color: var(--up-navy); text-wrap: balance; }
.up-note__bubble h1 span { color: var(--up-maroon); }
.up-note__body { margin-top: 22px; display: grid; gap: 8px; }
.up-note__body img { width: 120px; height: auto; }
.up-note__body p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.up-warning { margin: 14px auto 0; max-width: 760px; background: #fdf1f3; border: 1px solid #f3c9d1; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.up-warning b { color: var(--up-maroon); }

/* --- Downsell: tiers --------------------------------------------------------- */
.up-ds { padding-block: 24px 32px; position: relative; }
.up-ds__title { font-family: var(--up-display); font-weight: 800; color: var(--up-navy); font-size: 22px; text-align: center; margin: 0 0 10px; }
.up-ds__claims { max-width: 460px; margin: 0 auto 22px; }
.up-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.up-tier { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 16px 16px; border: 2px solid var(--up-line); border-radius: 14px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.up-tier:hover { border-color: #c9d1dc; }
.up-tier.next-selected { border-color: var(--up-green); box-shadow: 0 0 0 3px rgba(30, 138, 74, .14); }
.up-tier__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--up-maroon); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.up-tier__label { font-family: var(--up-display); font-weight: 800; font-size: 20px; color: var(--up-navy); }
.up-tier__supply { font-size: 14px; font-weight: 700; color: var(--up-navy); margin-top: -6px; }
.up-tier__img { width: 120px; margin: 0 auto; }
.up-tier__inc { text-align: left; }
.up-tier__price { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.up-tier__price s { color: #8a909b; font-size: 14px; }
.up-tier__price b { font-family: var(--up-display); font-size: 26px; color: var(--up-navy); }
.up-tier__price small { font-size: 13px; font-weight: 600; color: var(--up-muted); }
.up-tier__total { font-size: 14px; font-weight: 700; }
.up-tier__once { font-size: 12px; color: var(--up-muted); margin-top: -6px; }
@media (max-width: 820px) {
  .up-tiers { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 22px; }
}

.up-foot { text-align: center; font-size: 13px; color: var(--up-muted); padding: 20px 16px 28px; border-top: 1px solid var(--up-line); }
.up-foot a { color: var(--up-navy); }

/* --- Proof layer ------------------------------------------------------------- */
.up-stars { color: #f0a417; letter-spacing: 1px; }
.up-stars span { color: var(--up-green); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.up-rating { margin: 0; font-size: 13.5px; color: var(--up-muted); }
.up-rating b { color: var(--up-navy); }
.up-rating--center { text-align: center; margin-bottom: 10px; }
.up-proof { display: grid; gap: 14px; margin-block: 8px 28px; }
.up-ds .up-proof { margin-top: 24px; }
.up-quote { margin: 0; padding: 14px 16px; border: 1px solid var(--up-line); border-radius: 12px; background: #f9fbfc; }
.up .up-quote blockquote { margin: 6px 0; padding: 0; border: 0; font-style: italic; font-size: 15px; line-height: 1.5; }
.up-quote figcaption { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--up-navy); }
.up .up-quote figcaption img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.up-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.up-badges li { padding: 12px; border-radius: 10px; background: var(--up-mint); font-size: 12.5px; color: var(--up-muted); line-height: 1.4; }
.up-badges b { display: block; color: var(--up-navy); font-size: 13.5px; }
@media (max-width: 700px) { .up-badges { grid-template-columns: 1fr; } }
.up .up-note__img { display: block; width: min(420px, 100%); margin: 18px auto 0; border-radius: 12px; }
/* Phones: lead with the pre-selected Most Popular tier, then Best Value, then 1 bottle */
@media (max-width: 820px) {
  .up-tiers .up-tier:nth-child(3) { order: -2; }
  .up-tiers .up-tier:nth-child(2) { order: -1; }
}
/* Mobile: keep the price and button closer to the top */
@media (max-width: 760px) {
  .up .up-card__media img { max-width: 200px; }
  .up-intro { padding-top: 20px; }
}

/* 3-step routine strip on the upsells (Brush → Rinse → Whiten) */
.up-routine { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.up-routine li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 2px solid var(--up-line); border-radius: 12px; background: #fff; text-align: center; font-size: 13px; line-height: 1.3; color: #5b6170; }
.up-routine img { width: 56px; height: 56px; object-fit: contain; }
.up-routine b { display: block; font-family: var(--up-display); font-size: 14px; color: var(--up-navy); }
.up-routine em { display: block; margin-top: 2px; font-style: normal; font-weight: 700; font-size: 12px; color: #9aa0ab; }
.up-routine .is-done { border-color: #cfe8d8; background: #f4fbf6; }
.up-routine .is-done em { color: var(--up-green); }
.up-routine .is-current { border-color: var(--up-maroon); box-shadow: 0 0 0 3px rgba(163, 32, 58, .12); }
.up-routine .is-current em { color: var(--up-maroon); }
@media (min-width: 821px) { .up-tiers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; } }
