/* ═══════════════════════════════════════════════════════════════════
   retaileros.in · shared styles for the multi-page site
   (pricing, compare/*, solutions/*). The homepage keeps its own inline CSS.

   Deliberately does NOT import colors_and_type.css: that file is the dark
   *app* palette and colours bare h1/p/a, which made light pages unreadable.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #F4F7FB;
  --bg-elev: #FFFFFF;
  --ink: #0B1220;
  --ink-soft: #475569;
  --ink-muted: #5B6B82;          /* 5.4:1 on white — the old #94A3B8 failed AA */
  --line: #E5EAF2;
  --line-strong: #D5DDEA;
  --blue: #1E47B8;
  --blue-deep: #173A9B;
  --blue-soft: #E8EEFB;
  --orange: #C2521F;             /* darkened from #E8622A so text passes AA */
  --orange-soft: #FBE7DA;
  --green: #15803D;
  --green-soft: #DCFCE7;
  --wa: #25D366;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); font-weight: 500;
                 line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { color: var(--ink-soft); margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 780px; }

/* ── header ──────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 251, 0.96);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.brand img.mark { width: 34px; height: 34px; }
.brand img.word { height: 21px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.head-cta { display: flex; align-items: center; gap: 12px; }
.signin { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.signin.authed { color: var(--blue); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

/* mobile menu is a SIBLING of .site-head, never a child: a filtered or
   transformed ancestor would become its containing block and trap it */
.mnav {
  position: fixed; inset: 0; z-index: 90; background: #fff;
  display: flex; flex-direction: column; padding: 76px var(--gutter) 32px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.mnav.open { opacity: 1; visibility: visible; }
.mnav a { display: flex; align-items: center; min-height: 52px; font-size: 19px; font-weight: 500;
          color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav .mnav-group { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
                    color: var(--ink-muted); margin: 22px 0 4px; }
.mnav .btn { margin-top: 22px; }
.mnav-close { position: absolute; top: 12px; right: var(--gutter); }

@media (max-width: 900px) {
  .nav, .head-cta .signin, .head-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { background: var(--wa); color: #06331b; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ── breadcrumb + hero ───────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--ink-muted); padding-top: 22px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { margin: 0 6px; }

.hero-s { padding: clamp(28px, 5vw, 56px) 0 clamp(34px, 5vw, 56px); }
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
           text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.hero-s h1 { font-size: clamp(30px, 5.2vw, 50px); max-width: 20ch; }
.hero-s h1 em { font-style: normal; color: var(--blue); }
.lede { font-size: clamp(16px, 1.9vw, 19px); line-height: 1.6; max-width: 62ch; margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-note { font-size: 13.5px; color: var(--ink-muted); margin-top: 12px; }

/* answer-first block: the sentence an answer engine lifts verbatim */
.answer {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 10px; padding: 18px 20px; margin-top: 22px; max-width: 72ch;
  color: var(--ink); font-size: 16px; line-height: 1.6;
}

/* ── sections ────────────────────────────────────────────── */
.sec { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sec.alt { background: #fff; }
.sec-head { max-width: 680px; margin-bottom: clamp(22px, 3vw, 34px); }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.sec-head p { margin-top: 10px; font-size: 16px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sec.alt .card { background: var(--bg); }
.card h3 { font-size: 17px; margin-bottom: 7px; }
.card p { font-size: 14.5px; line-height: 1.55; }
.card .tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
             text-transform: uppercase; color: var(--orange); background: var(--orange-soft);
             padding: 3px 8px; border-radius: 5px; }
a.card { text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--blue); }
a.card .go { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* two columns of honesty: where they're strong, where we differ */
.verdict { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.verdict > div { border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); background: #fff; }
.verdict h3 { font-size: 16px; margin-bottom: 10px; }
.verdict ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.verdict li { margin-bottom: 7px; }
.verdict .them { border-top: 3px solid var(--line-strong); }
.verdict .us { border-top: 3px solid var(--blue); }

/* ── comparison table — fits a 360px phone as a real table ── */
.ctable-wrap { width: 100%; }
.ctable {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px;
}
.ctable caption { caption-side: bottom; text-align: left; font-size: 12.5px; color: var(--ink-muted); padding-top: 10px; }
.ctable th, .ctable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable tbody tr:last-child > * { border-bottom: 0; }
.ctable thead th { background: var(--bg); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
                   text-transform: uppercase; color: var(--ink-soft); text-align: center; line-height: 1.25; }
.ctable thead th:first-child { text-align: left; width: 46%; }
.ctable thead th.us { background: var(--blue-soft); color: var(--blue); }
.ctable tbody th { text-align: left; font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.ctable tbody th small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 12.5px; margin-top: 2px; }
.ctable td { text-align: center; color: var(--ink); font-size: 14px; line-height: 1.3; }
.ctable td.us { background: rgba(30, 71, 184, .045); font-weight: 600; }
.y { color: var(--green); font-weight: 700; font-size: 17px; }
.n { color: var(--ink-muted); font-size: 16px; }
.p { color: var(--orange); font-weight: 600; font-size: 12.5px; }

@media (max-width: 640px) {
  .ctable { font-size: 12.5px; }
  .ctable th, .ctable td { padding: 9px 5px; }
  .ctable tbody th { padding-left: 10px; font-size: 12.5px; }
  .ctable tbody th small { font-size: 11px; }
  .ctable thead th { font-size: 9.5px; letter-spacing: .03em; padding: 9px 4px; }
  .ctable thead th:first-child { padding-left: 10px; width: 42%; }
  .ctable td { font-size: 11.5px; }
  .y { font-size: 15px; } .n { font-size: 14px; } .p { font-size: 10.5px; }
}
@media (max-width: 400px) { .ctable tbody th small { display: none; } }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative;
               font-weight: 600; color: var(--ink); font-size: 15.5px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
                      font-size: 22px; font-weight: 400; color: var(--ink-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 18px; font-size: 15px; }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band { background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(26px, 4vw, 44px); }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { color: #C7D0DE; margin-top: 10px; max-width: 58ch; }
.cta-band .hero-cta { margin-top: 20px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #3A4658; }

.disclaimer { font-size: 12.5px; color: var(--ink-muted); margin-top: 14px; max-width: 80ch; }

/* ── pricing page ────────────────────────────────────────── */
.cycle { display: inline-flex; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding: 4px; gap: 4px; }
.cycle button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent;
                font: 600 14px/1 var(--font-body); color: var(--ink-soft); cursor: pointer; }
.cycle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.cycle .save { font-size: 11px; font-weight: 700; color: var(--green); margin-left: 5px; }
.cycle button[aria-pressed="true"] .save { color: #BBF7D0; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px;
        display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--blue); color: #fff;
               font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
               padding: 5px 10px; border-radius: 6px; }
.plan h3 { font-size: 20px; }
.plan .for { font-size: 14px; margin-top: 4px; min-height: 42px; }
.plan .amt { font-family: var(--font-display); font-size: 38px; color: var(--ink); margin-top: 14px; line-height: 1;
             font-variant-numeric: tabular-nums; }
.plan .amt small { font-family: var(--font-body); font-size: 14px; color: var(--ink-muted); font-weight: 500; }
.plan .extra { font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 8px; }
.plan .bill { font-size: 13px; color: var(--ink-muted); margin-top: 6px; min-height: 38px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.plan li { font-size: 14.5px; color: var(--ink-soft); padding: 6px 0 6px 24px; position: relative;
           border-top: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan .btn { width: 100%; }

.calc { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line);
        border-radius: 18px; padding: clamp(20px, 3vw, 30px); }
.field { margin-bottom: 18px; }
.field label, .field .lbl { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
              background: #fff; font: 600 14px/1 var(--font-body); color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--bg); font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper input { width: 64px; height: 46px; border: 0; text-align: center; font: 700 17px var(--font-body);
                 color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-note { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.result { background: var(--bg); border-radius: 14px; padding: 20px; }
.result .big { font-family: var(--font-display); font-size: clamp(34px, 5vw, 44px); color: var(--ink);
               line-height: 1; font-variant-numeric: tabular-nums; }
.result .big small { font-family: var(--font-body); font-size: 15px; color: var(--ink-muted); }
.result dl { margin: 16px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14.5px; }
.result dt { color: var(--ink-soft); }
.result dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.result .hint { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.result .hint strong { color: var(--orange); }

.addons { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.addon { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff;
         border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.addon b { display: block; color: var(--ink); font-size: 14.5px; }
.addon span { font-size: 12.5px; color: var(--ink-muted); }
.addon .pr { font-family: var(--font-display); font-size: 18px; color: var(--ink); white-space: nowrap; }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .plan .for, .plan .bill { min-height: 0; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .verdict { grid-template-columns: 1fr; } }

/* ── footer ──────────────────────────────────────────────── */
.site-foot { background: #fff; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); padding: 40px 0 110px; }
.foot-cols { display: grid; gap: 24px; grid-template-columns: 1.3fr repeat(3, 1fr); }
.foot-cols h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em;
                text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.foot-cols a { display: flex; align-items: center; min-height: 36px; color: var(--ink-soft);
               text-decoration: none; font-size: 14.5px; }
.foot-cols a:hover { color: var(--blue); }
.foot-cols p { font-size: 14px; margin-top: 10px; max-width: 34ch; }
.foot-base { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* ── proactive chat ──────────────────────────────────────── */
.rchat { position: fixed; right: 16px; bottom: 16px; z-index: 80; font-family: var(--font-body); }
.rchat-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--blue); color: #fff;
  box-shadow: 0 8px 24px rgba(11, 18, 32, .22); cursor: pointer; display: grid; place-items: center;
  margin-left: auto;
}
.rchat-btn svg { width: 26px; height: 26px; }
.rchat-card {
  position: absolute; right: 0; bottom: 70px; width: min(340px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(11, 18, 32, .20); padding: 16px;
  opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.rchat.open .rchat-card { opacity: 1; transform: none; visibility: visible; }
.rchat-who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rchat-who img { width: 34px; height: 34px; }
.rchat-who b { display: block; font-size: 14px; color: var(--ink); }
.rchat-who span { font-size: 12px; color: var(--green); }
.rchat-msg { background: var(--bg); border-radius: 4px 14px 14px 14px; padding: 11px 13px; font-size: 14.5px;
             color: var(--ink); line-height: 1.5; }
.rchat-opts { display: grid; gap: 7px; margin-top: 12px; }
.rchat-opts a, .rchat-opts button {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); text-decoration: none;
  font: 600 14px/1.2 var(--font-body); cursor: pointer; text-align: left;
}
.rchat-opts a:hover, .rchat-opts button:hover { border-color: var(--blue); color: var(--blue); }
.rchat-opts .wa { background: var(--wa); border-color: var(--wa); color: #06331b; }
.rchat-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent;
           font-size: 20px; color: var(--ink-muted); cursor: pointer; border-radius: 8px; }
.rchat-x:hover { background: var(--bg); }
.rchat-dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
             background: var(--orange); border: 2px solid #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
