/* Relief On The Go — Founding Retailer Funnel
   Navigator Clarity brand system
   Brand tokens defined here as CSS variables; pages use Tailwind via CDN
   plus these utility overrides. */

:root {
  --rotg-navy: #1B3A5C;
  --rotg-teal: #3B8FA0;
  --rotg-teal-dark: #2F7585;
  --rotg-white: #FFFFFF;
  --rotg-sand: #F5F0EA;
  --rotg-sand-mid: #EDE6DC;
  --rotg-slate: #6B7B8D;
  --rotg-mist: #E8F5F7;
  --rotg-light: #F0F4F7;
  --rotg-dark: #1A2533;
  --rotg-mid-gray: #D0DAE5;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--rotg-dark);
  background: var(--rotg-white);
  font-weight: 500;
}

.font-georgia-italic { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }

/* Topographic SVG pattern — applied as background to hero blocks */
.topographic-bg {
  position: relative;
  overflow: hidden;
}
.topographic-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><g fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.5'><circle cx='300' cy='300' r='40'/><circle cx='300' cy='300' r='80'/><circle cx='300' cy='300' r='130'/><circle cx='300' cy='300' r='185'/><circle cx='300' cy='300' r='245'/><circle cx='300' cy='300' r='310'/><path d='M 80 80 Q 260 140 380 100 T 560 60'/><path d='M 60 200 Q 240 260 360 220 T 540 180'/><path d='M 80 360 Q 260 420 380 380 T 560 340'/><path d='M 100 500 Q 280 560 400 520 T 580 480'/></g></svg>");
  background-size: 600px 600px;
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
}

/* Coordinate-bar divider */
.coord-rule {
  display: block;
  height: 1px;
  background: var(--rotg-teal);
  width: 100%;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--rotg-teal);
  color: var(--rotg-white);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1.1rem 2.5rem;
  border-radius: 0.75rem;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  border: 1px solid var(--rotg-teal);
  font-size: 1.125rem;
  line-height: 1;
}
.btn-primary:hover { background: var(--rotg-teal-dark); border-color: var(--rotg-teal-dark); }

/* Stacked variant: primary line + small subtext beneath */
.btn-primary.btn-stacked {
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  line-height: 1;
}
.btn-primary.btn-stacked .btn-main {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.btn-primary.btn-stacked .btn-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--rotg-navy);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rotg-mid-gray);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--rotg-navy); color: var(--rotg-dark); }

/* Form controls */
.field-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--rotg-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.field-input,
.field-select {
  width: 100%;
  border: 1px solid var(--rotg-mid-gray);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  background: var(--rotg-white);
  color: var(--rotg-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--rotg-teal);
  box-shadow: 0 0 0 3px rgba(59, 143, 160, 0.15);
}
.field-input.field-invalid,
.field-select.field-invalid {
  border-color: #C03030;
  box-shadow: 0 0 0 3px rgba(192, 48, 48, 0.12);
}
.field-input.field-invalid:focus,
.field-select.field-invalid:focus {
  border-color: #C03030;
  box-shadow: 0 0 0 3px rgba(192, 48, 48, 0.2);
}

/* Tier cards (multi-select w/ qty stepper) — image on top, text full-width, stepper at bottom */
.tier-card {
  cursor: pointer;
  border: 1px solid var(--rotg-mid-gray);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  background: var(--rotg-white);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.tier-card:hover { border-color: var(--rotg-teal); }
.tier-card.is-selected {
  border-color: var(--rotg-teal);
  background: var(--rotg-mist);
  box-shadow: 0 0 0 1px var(--rotg-teal) inset;
}

/* Image zoom trigger — sits at the top of each tier card */
.tier-zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
}
.tier-zoom-trigger img {
  display: block;
  width: 100%;
  height: 9rem;
  object-fit: contain;
}
.tier-zoom-icon {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--rotg-teal);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(27, 58, 92, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: none;
}
.tier-zoom-icon svg { width: 0.95rem; height: 0.95rem; }
.tier-zoom-trigger:hover .tier-zoom-icon,
.tier-zoom-trigger:focus-visible .tier-zoom-icon {
  background: var(--rotg-teal-dark);
  transform: scale(1.08);
}
.tier-zoom-trigger:focus-visible {
  outline: 2px solid var(--rotg-teal);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Tier card footer — stepper at bottom of card */
.tier-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rotg-mid-gray);
}
.tier-card.is-selected .tier-card-footer { border-top-color: var(--rotg-teal); }

/* Two-step form — Step 1 (displays) → Step 2 (details) */
.form-step { display: none; }
.form-step.is-active { display: block; }

.form-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.form-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--rotg-mid-gray);
  color: var(--rotg-slate);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.form-step-dot.is-active {
  background: var(--rotg-teal);
  color: #fff;
}
.form-step-dot.is-complete {
  background: var(--rotg-navy);
  color: #fff;
}
.form-step-line {
  width: 2.5rem;
  height: 2px;
  background: var(--rotg-mid-gray);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.form-step-line.is-complete {
  background: var(--rotg-navy);
}

.form-step-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rotg-slate);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
  font-family: inherit;
}
.form-step-back:hover { color: var(--rotg-navy); }
.form-step-back svg { transition: transform 0.15s ease; }
.form-step-back:hover svg { transform: translateX(-2px); }

/* Zoom modal — opens when a tier-zoom-trigger is clicked */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.zoom-modal.is-open { display: flex; }
.zoom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 92, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.zoom-modal-content {
  position: relative;
  max-width: min(92vw, 720px);
  max-height: 90vh;
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.zoom-modal-image {
  max-width: 100%;
  max-height: calc(90vh - 7rem);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.zoom-modal-caption {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--rotg-navy);
  font-size: 0.95rem;
}
.zoom-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: var(--rotg-light);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 600;
  color: var(--rotg-navy);
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.zoom-modal-close:hover { background: var(--rotg-mid-gray); }
.zoom-modal-close:focus-visible {
  outline: 2px solid var(--rotg-teal);
  outline-offset: 2px;
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rotg-mid-gray);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--rotg-white);
  flex-shrink: 0;
}
.tier-card.is-selected .qty-stepper { border-color: var(--rotg-teal); }
.qty-btn {
  width: 2.4rem;
  background: var(--rotg-white);
  border: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rotg-navy);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1;
}
.qty-btn:hover:not(:disabled) { background: var(--rotg-light); }
.qty-btn:disabled { color: var(--rotg-mid-gray); cursor: not-allowed; }
.qty-input {
  width: 2.6rem;
  border: 0;
  border-left: 1px solid var(--rotg-mid-gray);
  border-right: 1px solid var(--rotg-mid-gray);
  text-align: center;
  font-weight: 700;
  color: var(--rotg-navy);
  font-size: 1rem;
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
  padding: 0;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(59, 143, 160, 0.25); }
.tier-card.is-selected .qty-input { border-left-color: var(--rotg-teal); border-right-color: var(--rotg-teal); }

/* Subtotal box */
.qty-subtotal {
  background: var(--rotg-white);
  border: 1px dashed var(--rotg-mid-gray);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rotg-slate);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.4;
}
.qty-subtotal.empty .qty-subtotal-line { font-style: italic; }
.qty-subtotal.is-active {
  border-style: solid;
  border-color: var(--rotg-teal);
  background: var(--rotg-mist);
  color: var(--rotg-dark);
}
.qty-subtotal-line { font-weight: 500; }
.qty-subtotal-total { font-weight: 700; color: var(--rotg-navy); white-space: nowrap; }
.qty-subtotal-total .qty-subtotal-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rotg-slate); margin-left: 0.4rem; }

/* VIP checkbox card — navy block to read as a "premium upgrade", not a selected tier */
.vip-card {
  border: 1.5px solid var(--rotg-navy);
  background: var(--rotg-navy);
  color: var(--rotg-white);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  position: relative;
}
.vip-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--rotg-teal);
  border-top-left-radius: 0.6rem;
  border-bottom-left-radius: 0.6rem;
}
.vip-card label { display: flex; gap: 0.85rem; cursor: pointer; align-items: flex-start; }
.vip-card input[type="checkbox"] {
  accent-color: var(--rotg-teal);
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
/* Brighter teal for the highlighted phrases inside the VIP block —
   sits on a navy background so it needs more lift than the regular brand teal. */
.vip-card .text-teal {
  color: #22D3EE;
}

/* Brand logo strip */
.brand-logo { filter: grayscale(100%); opacity: 0.4; transition: filter 0.2s, opacity 0.2s; height: 38px; width: auto; }
.brand-logo:hover { filter: grayscale(0%); opacity: 1; }

/* Slot counter progress bar */
.slot-bar { height: 4px; background: var(--rotg-mid-gray); border-radius: 999px; overflow: hidden; }
.slot-bar > span { display: block; height: 100%; background: var(--rotg-teal); border-radius: 999px; }

/* Countdown */
.countdown { display: inline-flex; gap: 0.75rem; align-items: stretch; }
.countdown .unit {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  min-width: 76px;
  text-align: center;
}
.countdown .unit .num { font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: 0.01em; }
.countdown .unit .lbl { font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.4rem; }

.countdown.light .unit { background: var(--rotg-sand); border-color: var(--rotg-mid-gray); }
.countdown.light .unit .num { color: var(--rotg-navy); }
.countdown.light .unit .lbl { color: var(--rotg-slate); }

/* Sticky bottom CTA bar */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--rotg-navy);
  color: var(--rotg-white);
  padding: 0.85rem 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 50;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
}
.sticky-cta.visible { display: flex; }
.sticky-cta .msg { font-size: 0.95rem; font-weight: 600; }
@media (max-width: 720px) {
  .sticky-cta { flex-direction: column; gap: 0.65rem; padding: 0.75rem; }
  .sticky-cta .msg { font-size: 0.82rem; text-align: center; }
}

/* Bonus marker — Hormozi-style filled circle with checkmark inside */
.bonus-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--rotg-teal);
  border-radius: 50%;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(59, 143, 160, 0.12);
}
.bonus-check svg { width: 0.85rem; height: 0.85rem; color: #fff; }

/* Highlighted key phrase — calm marker-pen highlight in the brand palette */
.rotg-highlight {
  background: var(--rotg-mist);
  color: var(--rotg-navy);
  font-weight: 700;
  padding: 0.06em 0.35em;
  border-radius: 0.25rem;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Bonus row — alternating image/text grid */
.bonus-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .bonus-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .bonus-row.flip > :first-child { order: 2; }
}

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--rotg-mid-gray); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--rotg-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--rotg-teal);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 0 1.25rem 0; color: var(--rotg-slate); line-height: 1.65; font-weight: 500; }

/* Video frame */
.video-frame {
  position: relative;
  border: 1px solid var(--rotg-teal);
  background: var(--rotg-navy);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -25px rgba(27, 58, 92, 0.55);
}
.video-frame video { display: block; width: 100%; height: auto; }
.video-unmute-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27, 58, 92, 0.35);
  cursor: pointer; color: #fff;
  font-weight: 600; letter-spacing: 0.05em; font-size: 0.85rem;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.video-unmute-overlay svg { margin-right: 0.6rem; }
.video-frame.unmuted .video-unmute-overlay { opacity: 0; pointer-events: none; }

/* Section dividers and labels */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rotg-slate);
}

/* Headline scale */
.h-hero { font-size: clamp(2.25rem, 5.6vw, 4.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.h-hero-tight { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.015em; }
.h-section { font-size: clamp(1.75rem, 3.3vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.005em; }
.h-sub { font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.55; font-weight: 500; }

/* Reveal-on-scroll subtle (function: reduce visual surprise on long pages) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Footer */
.footer-link { color: rgba(255,255,255,0.7); transition: color 0.15s; font-weight: 500; }
.footer-link:hover { color: #fff; }

/* Print/no-scrollbar utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
