/* AminosPure RTA3 research funnel — original styles (not shared with other brands) */
:root {
  --navy: #0a2540;
  --blue-900: #0b3d6e;
  --blue-700: #0d5cad;
  --blue-600: #1a6fc4;
  --blue-500: #2b84d8;
  --blue-100: #e8f2fb;
  --blue-50: #f4f8fc;
  --white: #ffffff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-800: #92400e;
  --green-50: #ecfdf5;
  --green-700: #047857;
  --red-50: #fef2f2;
  --red-700: #b91c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-700);
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 320px);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: var(--blue-700);
  text-underline-offset: 2px;
}

a:hover { color: var(--blue-900); }

h1, h2, h3 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(1.65rem, 3.5vw, 2.15rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 0.85rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* —— Compliance strip —— */
.ruo-strip {
  background: var(--navy);
  color: #dbeafe;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.55rem 1rem;
  line-height: 1.4;
}
.ruo-strip strong { color: #fff; }

/* —— Header —— */
.funnel-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.brand span.sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 500;
}
.secure-badge svg { flex-shrink: 0; }

/* —— Layout —— */
.funnel-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.15rem 3rem;
}

.hero-offer {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-offer .lede {
  max-width: 36rem;
  margin: 0 auto 0.5rem;
  color: var(--slate-600);
  font-size: 1.02rem;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  margin: 1rem 0 0.25rem;
}
.price-free {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -0.03em;
}
.price-was {
  font-size: 1.1rem;
  color: var(--slate-500);
  text-decoration: line-through;
}
.price-ship {
  font-size: 0.95rem;
  color: var(--slate-600);
  font-weight: 600;
}

/* —— Grid —— */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.75rem;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.4rem;
}

.panel-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.step-indicator {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--slate-200);
}
.step-dot.active { background: var(--blue-700); }
.step-dot.done { background: var(--green-700); }

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Product card (summary) —— */
.product-summary {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.vial-visual {
  width: 72px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--blue-700), var(--navy));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.25;
  padding: 0.35rem;
}
.vial-visual .code { font-size: 0.95rem; letter-spacing: 0.02em; }
.product-summary h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.product-summary .meta {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 0;
}
.product-summary ul {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.85rem;
  color: var(--slate-600);
}
.product-summary li { margin-bottom: 0.2rem; }

/* —— Forms —— */
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}
.field label .req { color: var(--red-700); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(43, 132, 216, 0.18);
}
.field-hint {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.3rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 520px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}

/* —— Checkboxes / bumps —— */
/* Simple flat bump — no decorative frames / rings */
.bump {
  display: block;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  cursor: pointer;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.bump:hover {
  border-color: var(--slate-300);
  background: var(--slate-50, #f8fafc);
}
.bump:focus,
.bump:focus-within,
.bump.selected {
  outline: none;
  box-shadow: none;
}
.bump.selected {
  border-color: var(--slate-300);
  background: var(--slate-50, #f8fafc);
}
.bump-inner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.bump input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  padding: 0;
  accent-color: var(--blue-700);
  flex-shrink: 0;
  outline: none;
  box-shadow: none;
}
.bump input[type="checkbox"]:focus,
.bump input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: none;
}
.bump .bump-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}
.bump .bump-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.4;
}
.bump .bump-price {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: auto;
  padding-left: 0.5rem;
}
.bump-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

/* —— Totals —— */
.totals {
  border-top: 1px solid var(--slate-100);
  margin-top: 1rem;
  padding-top: 0.85rem;
}
.ty-totals-wrap .totals {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-top: 0;
  padding: 0.85rem 1rem;
  background: var(--blue-50);
}
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--slate-600);
}
.total-row > span:last-child {
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
}
.total-row.grand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--slate-200);
}
.total-row.grand > span:last-child {
  font-weight: 800;
  color: var(--navy);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  text-decoration: none;
  text-align: center;
}
.btn:active { transform: scale(0.99); }
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 92, 173, 0.28);
}
.btn-primary:hover:not(:disabled) { background: var(--blue-900); color: #fff; }
.btn-success {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
}
.btn-success:hover:not(:disabled) { background: #065f46; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.65rem;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--slate-100);
  color: var(--slate-900);
}
.btn-sm {
  width: auto;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

/* —— Payment —— */
.section-label {
  font-size: 0.95rem;
  margin: 1.15rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label:first-child { margin-top: 0; }
.optional-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--slate-100);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.membership-opt {
  margin: 1rem 0 0.25rem;
  padding: 0.75rem 0.85rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
}

.payment-shell {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  background: var(--slate-50, #f8fafc);
  margin-bottom: 0.75rem;
}
.stripe-line-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-700);
  margin: 0 0 0.35rem;
}
.stripe-line {
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stripe-line.StripeElement--focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(43, 132, 216, 0.18);
}
.stripe-line.StripeElement--invalid {
  border-color: var(--red-700);
}

/* —— Notices —— */
.notice {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.notice-warn {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-800);
}
.notice-error {
  background: var(--red-50);
  border: 1px solid #fecaca;
  color: var(--red-700);
  display: none;
}
.notice-error.show { display: block; }
.notice-ok {
  background: var(--green-50);
  border: 1px solid #a7f3d0;
  color: var(--green-700);
}

.attestation {
  font-size: 0.8rem;
  color: var(--slate-600);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.85rem 0;
  line-height: 1.45;
}
.attestation input {
  margin-top: 0.2rem;
  accent-color: var(--blue-700);
  flex-shrink: 0;
}

.fine-print {
  font-size: 0.72rem;
  color: var(--slate-500);
  line-height: 1.45;
  margin-top: 0.85rem;
}

/* —— Trust row —— */
.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}
@media (min-width: 520px) {
  .trust-row { grid-template-columns: 1fr 1fr 1fr; }
}
.trust-item {
  font-size: 0.78rem;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

/* —— Upsell / offer pages —— */
.offer-page {
  max-width: 640px;
  margin: 0 auto;
}
.offer-page .panel { padding: 1.5rem 1.4rem 1.6rem; }
.offer-badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.offer-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.5rem 0;
}
.offer-price .compare {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: line-through;
  margin-left: 0.4rem;
}
.offer-list {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.offer-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 0.92rem;
}
.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-700);
  font-weight: 800;
}

/* —— Thank you —— */
.ty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  border: 2px solid #a7f3d0;
}
.ty-center { text-align: center; }

/* —— Membership portal form —— */
.portal-box {
  max-width: 420px;
  margin: 1.5rem auto 0;
}

/* —— Footer —— */
.funnel-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.15rem 2.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-align: center;
  border-top: 1px solid var(--slate-200);
  line-height: 1.5;
}
.funnel-footer a { color: var(--slate-600); }

.hidden { display: none !important; }

.loading-dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80%, 100% { content: "..."; }
}
