/* RecepGo design system (RECEPGO-PROMPT-059). Self-hosted. No new CDN. */
:root {
  --rg-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --rg-font-mono: ui-monospace, "Cascadia Code", monospace;
  --rg-text-xs: 0.75rem;
  --rg-text-sm: 0.875rem;
  --rg-text-md: 1rem;
  --rg-text-lg: 1.25rem;
  --rg-text-xl: 1.5rem;
  --rg-text-2xl: 2rem;
  --rg-leading: 1.45;
  --rg-space-1: 0.25rem;
  --rg-space-2: 0.5rem;
  --rg-space-3: 0.75rem;
  --rg-space-4: 1rem;
  --rg-space-5: 1.5rem;
  --rg-space-6: 2rem;
  --rg-space-8: 3rem;
  --rg-radius-sm: 0.375rem;
  --rg-radius-md: 0.75rem;
  --rg-radius-lg: 1rem;
  --rg-radius-pill: 999px;
  --rg-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
  --rg-shadow-2: 0 8px 24px rgba(15, 23, 42, 0.08);
  --rg-border: #e2e8f0;
  --rg-ink: #0f172a;
  --rg-muted: #475569; /* 089: AA contrast on light bg */
  --rg-bg: #f4f7f8;
  --rg-surface: #ffffff;
  --rg-surface-2: #f8fafc;
  --rg-primary: #0f766e;
  --rg-primary-ink: #ffffff;
  --rg-primary-soft: #ecfdf5;
  --rg-danger: #b91c1c;
  --rg-danger-soft: #fef2f2;
  --rg-warning: #b45309;
  --rg-warning-soft: #fffbeb;
  --rg-info: #1d4ed8;
  --rg-info-soft: #eff6ff;
  --rg-ok: #15803d;
  --rg-ok-soft: #f0fdf4;
  --rg-container: 72rem;
  --rg-shell: 1440px;
  --rg-bp-sm: 640px;
  --rg-bp-md: 834px;
  --rg-bp-lg: 1024px;
  --rg-focus: 0 0 0 3px rgba(15, 118, 110, 0.35);
  --rg-motion: 160ms;
  --vd-primary: var(--rg-primary);
  --vd-ink: var(--rg-ink);
  --vd-muted: var(--rg-muted);
  --vd-bg: var(--rg-bg);
  --vd-card: var(--rg-surface);
  --vd-border: var(--rg-border);
}

body { font-family: var(--rg-font); line-height: var(--rg-leading); background: var(--rg-bg); }

/* RECEPGO-PROMPT-089 — keyboard focus + skip link (technical a11y, no WCAG claim) */
.rg-skip-link {
  position: absolute;
  left: var(--rg-space-3);
  top: var(--rg-space-3);
  z-index: 2000;
  padding: var(--rg-space-2) var(--rg-space-3);
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--rg-radius-sm);
  text-decoration: none;
  font-weight: 600;
  /* clipped until keyboard focus — keeps AA contrast when measured */
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.rg-skip-link:focus, .rg-skip-link:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid #0d9488;
  outline-offset: 2px;
  box-shadow: none;
  color: #ffffff;
  background: #0f172a;
}
.rg-sr-only, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
:focus-visible {
  outline: 3px solid var(--rg-primary);
  outline-offset: 2px;
  box-shadow: var(--rg-focus);
}
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible,
.form-control:focus, .form-select:focus, a:focus-visible, summary:focus-visible,
.nav-link:focus-visible, .dropdown-item:focus-visible {
  outline: 3px solid var(--rg-primary);
  outline-offset: 2px;
  box-shadow: var(--rg-focus);
  border-color: var(--rg-primary);
}
/* Prefer reduced motion for non-essential transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.rg-page-header { display: flex; flex-wrap: wrap; gap: var(--rg-space-3); align-items: flex-end; justify-content: space-between; margin-bottom: var(--rg-space-5); }
.rg-page-header h1, .rg-page-title { font-size: var(--rg-text-xl); letter-spacing: -0.02em; margin: 0; }
.rg-page-kicker { font-size: var(--rg-text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rg-muted); margin-bottom: var(--rg-space-1); }
.rg-actions { display: flex; flex-wrap: wrap; gap: var(--rg-space-2); }

.rg-btn, .vd-btn-primary { border-radius: var(--rg-radius-sm); font-weight: 600; }
.rg-btn-primary, .vd-btn-primary, .btn-primary {
  background: var(--rg-primary); border-color: var(--rg-primary); color: var(--rg-primary-ink);
}
.rg-btn-primary:hover, .vd-btn-primary:hover, .btn-primary:hover { background: #115e59; border-color: #115e59; }
.rg-btn-secondary { background: var(--rg-surface); color: var(--rg-ink); border: 1px solid var(--rg-border); }
.rg-btn-danger { background: var(--rg-danger); color: #fff; border: 1px solid var(--rg-danger); }

.rg-card, .vd-card { background: var(--rg-surface); border: 1px solid var(--rg-border); border-radius: var(--rg-radius-md); box-shadow: var(--rg-shadow-1); }
.rg-metric { padding: var(--rg-space-4); }
.rg-metric strong { display: block; font-size: var(--rg-text-2xl); letter-spacing: -0.03em; }
.rg-metric span { color: var(--rg-muted); font-size: var(--rg-text-sm); }

.rg-table-wrap, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { --bs-table-bg: transparent; }
.table thead th { font-size: var(--rg-text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--rg-muted); font-weight: 600; }

.rg-field { margin-bottom: var(--rg-space-4); }
.rg-help { color: var(--rg-muted); font-size: var(--rg-text-sm); margin-top: var(--rg-space-1); }
.rg-error, .invalid-feedback { color: var(--rg-danger); font-size: var(--rg-text-sm); }

.rg-badge, .badge { border-radius: var(--rg-radius-pill); font-weight: 600; }
.rg-badge-ok { background: var(--rg-ok-soft); color: var(--rg-ok); }
.rg-badge-warn { background: var(--rg-warning-soft); color: var(--rg-warning); }
.rg-badge-danger { background: var(--rg-danger-soft); color: var(--rg-danger); }
.rg-badge-info { background: var(--rg-info-soft); color: var(--rg-info); }
.rg-badge-neutral { background: var(--rg-surface-2); color: var(--rg-muted); }

.rg-alert { border-radius: var(--rg-radius-md); padding: var(--rg-space-3) var(--rg-space-4); border: 1px solid var(--rg-border); }
.rg-alert-info { background: var(--rg-info-soft); }
.rg-alert-warn { background: var(--rg-warning-soft); }
.rg-alert-danger { background: var(--rg-danger-soft); }
.rg-empty { text-align: center; padding: var(--rg-space-8) var(--rg-space-4); color: var(--rg-muted); }
.rg-empty strong { display: block; color: var(--rg-ink); margin-bottom: var(--rg-space-2); }
.rg-skeleton { height: 0.9rem; border-radius: var(--rg-radius-pill); background: linear-gradient(90deg, #e2e8f0, #f8fafc, #e2e8f0); background-size: 200% 100%; animation: rg-shimmer 1.2s linear infinite; }
@keyframes rg-shimmer { to { background-position: -200% 0; } }
.rg-tabs { display: flex; gap: var(--rg-space-2); border-bottom: 1px solid var(--rg-border); }
.rg-tabs a { padding: var(--rg-space-2) var(--rg-space-3); color: var(--rg-muted); text-decoration: none; }
.rg-tabs a[aria-current="page"] { color: var(--rg-primary); border-bottom: 2px solid var(--rg-primary); }

.vd-navbar { background: var(--rg-surface); border-bottom: 1px solid var(--rg-border); box-shadow: var(--rg-shadow-1); }
.vd-brand { font-weight: 700; letter-spacing: -0.03em; }
.vd-sidebar {
  background: var(--rg-surface);
  border-right: 1px solid var(--rg-border);
  min-height: calc(100vh - 56px);
}
.vd-sidebar a { border-radius: var(--rg-radius-sm); }
.vd-sidebar a.active { background: var(--rg-primary-soft); color: var(--rg-primary); font-weight: 600; }

@media (max-width: 833.98px) {
  .vd-sidebar {
    min-height: 0;
    display: flex;
    gap: var(--rg-space-1);
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border-right: 0;
    border-bottom: 1px solid var(--rg-border);
    padding: var(--rg-space-2) !important;
  }
  .vd-sidebar a { white-space: nowrap; padding: var(--rg-space-2) var(--rg-space-3); flex: 0 0 auto; }
  .vd-sidebar hr, .vd-sidebar .small.text-uppercase { display: none; }
  .vd-sidebar form { display: none; }
  .row > .col-md-3, .row > .col-lg-2 { width: 100%; max-width: 100%; }
  /* Keep document from expanding past viewport when sidebar scrolls internally */
  html, body { overflow-x: clip; }
  .vd-app, .container-fluid, .row { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rg-skeleton { animation: none; }
}

/* Landing 060 */
.rg-hero { padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, var(--rg-primary-soft), var(--rg-bg) 70%); }
.rg-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.75rem; }
.rg-kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--rg-text-xs); color: var(--rg-primary); font-weight: 700; margin-bottom: 0.5rem; }
.rg-lead { font-size: 1.125rem; color: var(--rg-ink); max-width: 38rem; }
.rg-phone { background: var(--rg-surface); border: 1px solid var(--rg-border); border-radius: 1.5rem; padding: 1rem; box-shadow: var(--rg-shadow-2); max-width: 320px; margin-inline: auto; }
.rg-phone-top { font-size: var(--rg-text-xs); color: var(--rg-muted); margin-bottom: 0.75rem; }
.rg-phone-q { font-weight: 650; margin-bottom: 0.75rem; }
.rg-phone-field { border: 1px solid var(--rg-border); border-radius: var(--rg-radius-sm); padding: 0.65rem 0.75rem; color: var(--rg-muted); margin-bottom: 0.5rem; background: var(--rg-surface-2); }
.rg-phone-btn { background: var(--rg-primary); color: white; text-align: center; border-radius: var(--rg-radius-sm); padding: 0.7rem; font-weight: 650; }
.rg-phone-note { font-size: var(--rg-text-xs); color: var(--rg-muted); margin: 0.75rem 0 0; }
.rg-steps { display: grid; gap: 0.75rem; padding-left: 1.2rem; max-width: 42rem; }
.rg-steps li { margin-bottom: 0.25rem; }
.rg-band { background: var(--rg-surface); border-block: 1px solid var(--rg-border); padding: 3rem 0; }
.rg-plain { max-width: 40rem; }
.rg-price { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.rg-price-unit { font-size: var(--rg-text-sm); font-weight: 500; color: var(--rg-muted); }
.rg-faq { border-bottom: 1px solid var(--rg-border); padding: 0.8rem 0; max-width: 42rem; }
.rg-faq summary { cursor: pointer; font-weight: 650; }
.rg-faq p { margin: 0.5rem 0 0; color: var(--rg-muted); }
.rg-cta { background: var(--rg-ink); color: white; border-radius: var(--rg-radius-lg); padding: 2rem 1.25rem; text-align: center; }
.rg-cta p { color: #e2e8f0; }
h2 { letter-spacing: -0.02em; margin-bottom: 0.75rem; }

.rg-nav-more summary { cursor: pointer; padding: 0.35rem 0.75rem; font-weight: 650; list-style: none; }
.rg-nav-more summary::-webkit-details-marker { display: none; }
.vd-sidebar a, .rg-nav-more a { display: block; }
@media (max-width: 833.98px) {
  .vd-sidebar .btn, .table .btn { min-height: 2.5rem; }
}

/* Visitor mobile journey (RECEPGO-PROMPT-063) */
body.vd-visitor {
  background: var(--rg-bg);
  color: var(--rg-ink);
  min-height: 100vh;
}
.vd-visitor-wrap { max-width: 28rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.vd-lang-menu {
  position: fixed;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 30;
  margin: 0;
  font-size: 0.78rem;
}
.vd-lang-menu summary {
  list-style: none;
  cursor: pointer;
  background: #fff;
  color: #0f172a;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  padding: 0.18rem 0.55rem 0.18rem 0.65rem;
  font-weight: 650;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.vd-lang-menu summary::-webkit-details-marker { display: none; }
.vd-lang-menu summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
  vertical-align: 0.1rem;
}
.vd-lang-menu[open] summary::after { border-top: 0; border-bottom: 5px solid #64748b; }
.vd-lang-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  min-width: 8.75rem;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 0.65rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
}
.vd-lang-menu-list a {
  color: #0f172a;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
  font-weight: 600;
}
.vd-lang-menu-list a.is-active {
  background: #eef2f6;
  color: #0f172a;
  font-weight: 700;
}
.vd-selfreg { text-align: center; padding-top: 1.5rem; }
.vd-selfreg .vd-client-brand { margin-bottom: 0.85rem; }
.vd-selfreg .vd-client-brand-inner { align-items: center; }
.vd-selfreg .vd-client-logo {
  object-position: center;
  margin: 0 auto;
  max-width: min(220px, 68vw);
  max-height: 84px;
}
.vd-selfreg .vd-visitor-kicker {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rg-ink, #0f172a);
  margin: 0.15rem 0 0;
}
.vd-selfreg-intro { margin-bottom: 1rem; }
.vd-selfreg-intro h1 { margin-bottom: 0.3rem; }
.vd-selfreg form.vd-card { text-align: left; }
.vd-selfreg .vd-selfreg-submit { margin-top: 1.25rem; }
.vd-visitor-kicker { font-size: var(--rg-text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rg-primary); font-weight: 700; margin-bottom: 0.35rem; }
.vd-visitor h1 { font-size: 1.65rem; letter-spacing: -0.03em; line-height: 1.15; }
.vd-visitor .form-control, .vd-visitor .form-select, .vd-visitor .btn-lg, .vd-visitor .vd-visitor-primary {
  min-height: 3rem;
  font-size: 1.05rem;
}
.vd-visitor .form-check-input { width: 1.35rem; height: 1.35rem; }
.vd-visitor .form-check-label { padding-top: 0.15rem; }
.vd-visitor .vf-sig-canvas, .vd-visitor canvas { min-height: 140px; background: #fff; }
.vd-visitor :focus-visible { outline: 3px solid var(--rg-primary); outline-offset: 2px; }
.vd-step-pill { display: inline-block; background: var(--rg-primary-soft); color: var(--rg-primary); border-radius: var(--rg-radius-pill); padding: 0.2rem 0.7rem; font-size: var(--rg-text-xs); font-weight: 700; }
@media (min-width: 900px) {
  .vd-visitor-wrap { padding-top: 2.5rem; }
}

/* Landing visual 060D — frames only, product screenshots are real */
.rg-stage { position: relative; padding-bottom: 2.5rem; }
.rg-browser {
  background: #0f172a; border-radius: 16px; padding: 0.7rem 0.7rem 0.85rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}
.rg-browser-bar { display: flex; gap: 0.35rem; margin: 0.15rem 0.35rem 0.55rem; }
.rg-browser-bar span { width: 0.5rem; height: 0.5rem; border-radius: 99px; background: #334155; }
.rg-browser img, .rg-shot img { width: 100%; height: auto; display: block; border-radius: 8px; }
.rg-iphone {
  width: min(210px, 46vw); background: #0f172a; border-radius: 28px; padding: 0.55rem;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.28);
}
.rg-iphone-notch { width: 38%; height: 0.85rem; background: #0f172a; border-radius: 0 0 10px 10px; margin: -0.15rem auto 0.25rem; }
.rg-iphone img { width: 100%; height: auto; object-fit: contain; border-radius: 20px; display: block; background: #f8fafc; }
.rg-stage .rg-iphone { position: absolute; right: 0; bottom: 0; }
.rg-caption { font-size: var(--rg-text-xs); color: var(--rg-muted); margin-top: 0.45rem; }
.rg-steps-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.rg-steps-phones { margin-bottom: 1.25rem; }
.rg-step-card {
  background: var(--rg-surface);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rg-step-body {
  padding: 1rem 1rem 0.45rem;
  margin: 0;
  flex: 0 0 auto;
  /* Same caption band so media slots start/end aligned despite copy length */
  min-height: 13rem;
}
.rg-step-no {
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--rg-primary);
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
}
.rg-step-body .h6 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.rg-step-media {
  /* Fixed media height — captions above must not stretch/shift bottoms */
  height: 26rem;
  flex: 0 0 26rem;
  aspect-ratio: auto;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem 0.85rem;
  min-height: 0;
  box-sizing: border-box;
}
.rg-step-media-photo {
  padding: 0.55rem 0.7rem 0.85rem;
}
.rg-step-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  background: #e2e8f0;
}
.rg-step-media-phone {
  padding: 0.35rem 0.45rem 0.55rem;
}
.rg-step-phone-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f1f5f9;
}
/* Full-width desktop finale under the three phones */
.rg-steps-finale {
  background: var(--rg-surface);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.85rem;
}
.rg-steps-finale-copy .rg-step-no {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.rg-steps-finale-frame.rg-browser {
  width: 100%;
  margin: 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.rg-steps-finale-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #f8fafc;
}
@media (max-width: 991.98px) {
  .rg-steps-visual { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .rg-steps-visual { grid-template-columns: 1fr; }
}

.rg-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; margin-bottom: 3.5rem; }
.rg-split-flip { grid-template-columns: 0.9fr 1.1fr; }
.rg-split-flip .rg-split-copy { order: 2; }
.rg-split-media {
  width: 100%;
  height: 18.5rem;
  background: #f1f5f9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  box-sizing: border-box;
  overflow: hidden;
}
.rg-split-media .rg-browser {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}
.rg-split-media .rg-browser-bar { flex: 0 0 auto; }
.rg-split-media .rg-browser img,
.rg-split-media .rg-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 8px;
}
.rg-split-media-phone {
  padding: 0.35rem 0.45rem;
}
.rg-feature-phone-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f1f5f9;
}
.rg-mini-phone { width: min(240px, 70%); margin-inline: auto; }
@media (max-width: 991.98px) {
  .rg-stage .rg-iphone { position: static; margin: 1rem auto 0; }
  .rg-steps-visual { grid-template-columns: 1fr 1fr; }
  .rg-split, .rg-split-flip { grid-template-columns: 1fr; }
  .rg-split-flip .rg-split-copy { order: 0; }
  .rg-split-media { height: 16.5rem; }
}
@media (max-width: 575.98px) {
  .rg-steps-visual { grid-template-columns: 1fr; }
  .rg-hero { padding-top: 2rem; }
}


/* RECEPGO-PROMPT-089 — link/button contrast on light surfaces */
.rg-link, .vd-muted a, p.vd-muted a, .small a.rg-link {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rg-link:hover, .vd-muted a:hover { color: #115e59; }
.btn-outline-secondary {
  color: #1e293b;
  border-color: #64748b;
  background: #fff;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus-visible {
  color: #fff;
  background: #1e293b;
  border-color: #1e293b;
}
.nav-tabs .nav-link { color: #1e293b; }
.nav-tabs .nav-link.active { color: #0f766e; font-weight: 600; }
.table thead th { color: #334155; }


/* 089 footer / secondary text contrast */
.rg-footer-link {
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rg-footer-link:hover, .rg-footer-link:focus-visible {
  color: #0f172a;
}
.vd-muted, .text-muted, .form-text, .rg-caption {
  color: #475569 !important;
}
.btn-outline-secondary.btn-sm {
  color: #1e293b;
  border-color: #64748b;
}
.badge.bg-secondary, .badge.text-bg-secondary {
  background-color: #475569 !important;
  color: #fff !important;
}
.table .btn-link, a.btn-link {
  color: #0f766e;
  text-decoration: underline;
}


/* 089 extra contrast harden */
.text-warning, .text-warning * { color: #92400e !important; }
.text-danger { color: #b91c1c !important; }
.text-success { color: #166534 !important; }
.badge.text-bg-warning {
  background-color: #d97706 !important;
  color: #1c1917 !important;
}
.badge.text-bg-success {
  background-color: #15803d !important;
  color: #fff !important;
}
.badge.text-bg-danger {
  background-color: #b91c1c !important;
  color: #fff !important;
}
.navbar:not(.navbar-dark) .nav-link,
.navbar-light .nav-link,
.vd-navbar .nav-link {
  color: #1e293b !important;
}
.navbar:not(.navbar-dark) .nav-link:hover,
.navbar:not(.navbar-dark) .nav-link:focus-visible,
.vd-navbar .nav-link.active,
.vd-navbar .nav-link[aria-current="page"] {
  color: #0f766e !important;
}
.navbar-dark .nav-link,
.navbar-dark .navbar-brand,
.navbar-dark .navbar-text {
  color: #fff !important;
  opacity: 1 !important;
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus-visible {
  color: #ecfdf5 !important;
}
.nav-pills .nav-link { color: #1e293b; }
.nav-pills .nav-link.active {
  background-color: #0f766e !important;
  color: #fff !important;
}
.btn:disabled, .btn.disabled,
fieldset:disabled .btn {
  opacity: 1 !important;
  color: #334155 !important;
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}
.btn-link:disabled, .btn-link.disabled {
  background-color: transparent !important;
  color: #64748b !important;
  border-color: transparent !important;
}
::placeholder { color: #64748b !important; opacity: 1; }
.form-control::placeholder, .form-select::placeholder { color: #64748b !important; opacity: 1; }
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.rg-skip-link):not(.navbar-brand):not(.vd-lang-link) {
  color: #0f766e;
}
.vd-sidebar a { color: #1e293b; }
.rg-badge-neutral { color: #334155 !important; }
.small .vd-muted, small.vd-muted { color: #475569 !important; }


/* 089 skip-link + disabled anchor harden */
.rg-skip-link {
  color: #ffffff !important;
  background: #0f172a !important;
  border: 2px solid #0f766e;
}
.rg-skip-link:focus, .rg-skip-link:focus-visible {
  color: #ffffff !important;
  background: #0f172a !important;
}
a.btn.disabled, a.btn[aria-disabled="true"],
.btn.disabled, .btn[aria-disabled="true"] {
  opacity: 1 !important;
  pointer-events: none;
  color: #334155 !important;
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  box-shadow: none !important;
}
a.btn-outline-secondary, button.btn-outline-secondary {
  color: #1e293b !important;
  border-color: #64748b !important;
  background-color: #ffffff !important;
}
a.btn-outline-secondary:hover, button.btn-outline-secondary:hover,
a.btn-outline-secondary:focus-visible, button.btn-outline-secondary:focus-visible {
  color: #ffffff !important;
  background-color: #1e293b !important;
  border-color: #1e293b !important;
}


/* 089 outline-secondary AA */
a.btn.btn-outline-secondary,
button.btn.btn-outline-secondary,
.btn.btn-outline-secondary {
  color: #0f172a !important;
  border-color: #475569 !important;
  background-color: #ffffff !important;
}
a.btn.btn-outline-secondary:hover,
button.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:hover,
a.btn.btn-outline-secondary:focus-visible,
button.btn.btn-outline-secondary:focus-visible {
  color: #ffffff !important;
  background-color: #0f172a !important;
  border-color: #0f172a !important;
}
a.btn.btn-outline-secondary.disabled,
a.btn.btn-outline-secondary:disabled,
.btn.btn-outline-secondary:disabled {
  color: #64748b !important;
  border-color: #94a3b8 !important;
  background-color: #f8fafc !important;
  opacity: 1;
}


/* RECEPGO-PROMPT-115 — prevent intrinsic screenshot overflow */
img { max-width: 100%; }
.rg-hero img, .rg-stage img, .rg-split img, .rg-steps-visual img, .rg-browser img, .rg-shot img, .rg-iphone img, .rg-step-card img, .rg-mini-phone img {
  max-width: 100%;
  height: auto;
}
/* Cómo funciona: photo + phones fill equal fixed media slots */
.rg-step-media .rg-step-photo {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}
.rg-step-media .rg-step-phone-shot {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
body.rg-marketing, .rg-marketing, .rg-public {
  overflow-x: clip;
}


/* RECEPGO-PROMPT-135 — public legal a11y (contrast + keyboard scroll) */
.legal-doc { color: #0f172a; line-height: 1.55; }
.legal-doc h1, .legal-doc h2, .legal-doc h3 { color: #0f172a; }
.legal-doc p, .legal-doc li { color: #1e293b; }
.legal-doc blockquote { color: #334155; border-left: 3px solid #94a3b8; padding-left: 0.75rem; }
.legal-doc pre.legal-table {
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  overflow: auto;
  max-height: 24rem;
  font-size: 0.875rem;
  white-space: pre-wrap;
}
.legal-meta, .legal-meta code { color: #334155 !important; }
.legal-meta a.rg-link { color: #0f766e; }


/* CLOSE-02 visitor client brand + RecepGo attribution */
.vd-client-brand { margin-bottom: 0.75rem; }
.vd-client-brand-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.vd-client-logo {
  display: block;
  max-width: min(220px, 72vw);
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 900px) {
  .vd-client-logo { max-width: 280px; max-height: 72px; }
}
.vd-visitor-wrap.text-center .vd-client-brand-inner { align-items: center; }
.vd-visitor-wrap.text-center .vd-client-logo { object-position: center; margin-left: auto; margin-right: auto; }

.vd-rg-attribution {
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.35;
}
.vd-rg-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.vd-rg-link:hover .vd-rg-wordmark { text-decoration: underline; }
.vd-rg-wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rg-ink, #0f172a);
}
.vd-rg-attribution--free {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(4, 100, 235, 0.06);
}
.vd-rg-attribution--free .vd-rg-free-label {
  font-size: 0.82rem;
  color: var(--rg-muted, #64748b);
}
.vd-rg-attribution--free .vd-rg-wordmark { font-size: 0.95rem; color: var(--rg-primary, #0464eb); }
.vd-rg-attribution--paid .vd-rg-powered {
  font-size: 0.72rem;
  color: var(--rg-muted, #94a3b8);
}
.vd-rg-attribution--paid .vd-rg-wordmark {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rg-muted, #64748b);
}
@media (max-width: 390px) {
  .vd-client-logo { max-width: min(180px, 70vw); max-height: 48px; }
  .vd-rg-attribution--free { padding: 0.5rem 0.55rem; }
}

/* ---- RecepGo logo (brand assets in /brand/, see scripts/brand/build_brand_assets.py) ---- */
.rg-logo { display: block; height: auto; max-width: 100%; }
.rg-brand-link { display: inline-flex; align-items: center; flex-shrink: 0; padding-top: .25rem; padding-bottom: .25rem; line-height: 1; }
.rg-logo--nav { width: 108px; height: 32px; flex-shrink: 0; object-fit: contain; }
.rg-logo--auth { width: 135px; height: 40px; margin: 0 auto; object-fit: contain; }
.rg-control-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.75); border-left: 1px solid rgba(255,255,255,.3); padding-left: .5rem;
}
.rg-footer-logo img { display: block; width: 81px; height: 24px; }
.rg-error-logo img { display: block; width: 108px; height: 32px; }
@media (max-width: 390px) {
  .rg-logo--nav { width: 95px; height: 28px; }
}
/* Visitor attribution: image replaces the old text wordmark; stays small vs. client logo. */
.vd-rg-link { align-items: center; }
img.vd-rg-logo { display: inline-block; vertical-align: middle; height: auto; }
.vd-rg-attribution--free img.vd-rg-logo { width: 68px; height: 20px; }
.vd-rg-attribution--paid img.vd-rg-logo { width: 47px; height: 14px; opacity: .72; filter: grayscale(35%); }
.vd-rg-link:hover img.vd-rg-logo { opacity: 1; filter: none; }
.vd-rg-link:hover .vd-rg-wordmark { text-decoration: none; }
.vd-rg-link:hover .vd-rg-free-label, .vd-rg-link:hover .vd-rg-powered { text-decoration: underline; }
.vd-support-avatar-brand img { display: block; width: 20px; height: 20px; }
