/* =====================================================================
   Bringo — public site
   One stylesheet, no framework, no build step, no external requests.
   Brand: maroon #7A1230 → #A11D43, from branding/bringo/.
   ===================================================================== */

:root {
  --brand:        #7A1230;
  --brand-bright: #A11D43;
  --brand-soft:   #FBEEF2;
  --brand-line:   #F0D6DE;
  --grad:         linear-gradient(135deg, #7A1230 0%, #A11D43 100%);

  /* The seller and partner apps have their own marks; used only where
     those apps are being discussed. */
  --seller:  #4338CA;
  --partner: #047857;

  /* Neutrals carry a faint warm cast so they sit with the maroon rather
     than fighting it. */
  --ink:     #16121A;
  --ink-2:   #3D3742;
  --muted:   #6B6472;
  --line:    #E9E4EC;
  --surface: #FFFFFF;
  --surface-2: #FAF8FB;
  --dark:    #191320;
  --dark-2:  #241B2D;

  --ok:   #0F7B3F;
  --warn: #8A5A00;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow:    0 1px 2px rgba(22,18,26,.05), 0 8px 24px -12px rgba(22,18,26,.18);
  --shadow-lg: 0 2px 6px rgba(22,18,26,.06), 0 28px 60px -28px rgba(122,18,48,.28);

  --wrap: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

a { color: var(--brand-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Type ------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.9rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem); }
h4 { font-size: 1rem; }
p  { margin: 0; }

.lede { font-size: clamp(1.02rem, .96rem + .35vw, 1.24rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand-bright);
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Layout ------------------------------------------------ */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

section { padding: clamp(56px, 7vw, 104px) 0; }
section.tight { padding: clamp(40px, 5vw, 68px) 0; }
section.alt   { background: var(--surface-2); }
section.dark  { background: var(--dark); color: #F3EFF6; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .lede, section.dark p { color: #C9C0D2; }
section.dark .eyebrow { color: #F0A8BE; }

.head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); display: grid; gap: 14px; }
.head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ----------------------------------------------- */

.btn {
  --bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 0; border-radius: 999px;
  background: var(--bg); color: #fff;
  font: inherit; font-weight: 650; font-size: .97rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(122,18,48,.24), 0 10px 24px -12px rgba(122,18,48,.55);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(122,18,48,.26), 0 16px 30px -14px rgba(122,18,48,.6); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 17px; font-size: .9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }

.btn-ghost {
  --bg: transparent;
  color: var(--ink); border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brand-bright); color: var(--brand-bright); box-shadow: none; }

.btn-light { --bg: #fff; color: var(--brand); box-shadow: 0 10px 30px -14px rgba(0,0,0,.5); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nav --------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--wrap); margin-inline: auto; padding: 7px 22px;
  display: flex; align-items: center; gap: 22px;
}
.nav-brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav-brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > a, .droptop {
  padding: 7px 11px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: .9rem; font-weight: 550;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-links > a:hover, .droptop:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-links > a.on, .droptop.on { color: var(--brand-bright); }
.nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 7px; }
.nav-ghost { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; }
/* The nav's own buttons sit tighter than buttons in the page body. */
.nav-links .btn { padding: 7px 15px; font-size: .88rem; }

.drop { position: relative; }
.dropmenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 288px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.drop:hover .dropmenu, .drop:focus-within .dropmenu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropmenu a {
  display: grid; grid-template-columns: 10px 1fr; gap: 4px 11px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; font-size: .94rem;
}
.dropmenu a:hover { background: var(--brand-soft); text-decoration: none; }
.dropmenu small { grid-column: 2; color: var(--muted); font-weight: 400; font-size: .8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }

.burger { display: none; }
.navtoggle { display: none; }

@media (max-width: 940px) {
  .burger {
    display: block; margin-left: auto; width: 38px; height: 38px;
    border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; position: relative;
  }
  .burger span, .burger span::before, .burger span::after {
    position: absolute; left: 10px; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; content: '';
  }
  .burger span { top: 18px; }
  .burger span::before { top: -5px; }
  .burger span::after  { top: 5px; }

  /* Anchored to the header's real height so the sheet never overlaps it. */
  .nav-links {
    position: fixed; inset: 47px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px 20px;
    gap: 2px; box-shadow: var(--shadow-lg); display: none;
    max-height: calc(100vh - 47px); overflow-y: auto;
  }
  .nav-links > a, .droptop { padding: 10px 12px; font-size: .95rem; text-align: left; }
  .navtoggle:checked ~ .nav-links { display: flex; }
  .nav-sep { display: none; }
  .dropmenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .nav-links .btn, .nav-ghost { margin-top: 8px; text-align: center; justify-content: center; }
}

/* ---------- Hero -------------------------------------------------- */

.hero { position: relative; padding: clamp(48px, 6.5vw, 92px) 0 clamp(44px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 78%;
  background: radial-gradient(60% 60% at 22% 18%, rgba(161,29,67,.10), transparent 70%),
              radial-gradient(50% 50% at 82% 8%, rgba(122,18,48,.09), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 4.5vw, 60px); align-items: center; }
@media (max-width: 940px) { .hero-in { grid-template-columns: 1fr; } }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero h1 span { display: inline; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); }
.tick { color: var(--ok); font-weight: 700; }

/* ---------- Stat band --------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2px;
         background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: #fff; padding: 20px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 750; letter-spacing: -.03em;
          font-variant-numeric: tabular-nums; background: var(--grad);
          -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 3px; font-size: .8rem; color: var(--muted); }
section.dark .stat { background: var(--dark-2); }
section.dark .stats { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
section.dark .stat span { color: #A99FB4; }

/* ---------- Cards ------------------------------------------------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: grid; gap: 11px; align-content: start;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card.hover:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 1.08rem; }
.card p  { color: var(--ink-2); font-size: .95rem; }
section.dark .card { background: var(--dark-2); border-color: rgba(255,255,255,.1); }
section.dark .card p { color: #B8AEC3; }

.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); flex: 0 0 auto;
}
.ico svg { width: 22px; height: 22px; }
section.dark .ico { background: rgba(255,255,255,.09); color: #F0A8BE; }

.meta-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: .74rem; font-weight: 700;
  letter-spacing: .02em;
}

/* Feature lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.ticks li::before {
  content: ''; width: 17px; height: 17px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A11D43' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
section.dark .ticks li { color: #C9C0D2; }
section.dark .ticks li::before { background-color: rgba(240,168,190,.16); }

/* ---------- Module cards ------------------------------------------ */

.mod { position: relative; overflow: hidden; }
.mod::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--mc, var(--brand)); }
.mod .mod-top { display: flex; align-items: center; gap: 11px; }
.mod .mod-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mc); flex: 0 0 auto; }
.mod .like { font-size: .8rem; color: var(--muted); }

/* ---------- Steps ------------------------------------------------- */

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { counter-increment: s; position: relative; padding-top: 52px; }
.step::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1rem;
}

/* ---------- Device frames + screenshots --------------------------- */

.shot { margin: 0; position: relative; }
.shot.browser {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg);
}
.shot.browser::before {
  content: ''; display: block; height: 34px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle, #E4576A 5px, transparent 5.5px),
                    radial-gradient(circle, #EBB84B 5px, transparent 5.5px),
                    radial-gradient(circle, #4FBF7B 5px, transparent 5.5px);
  background-position: 16px 14px, 36px 14px, 56px 14px;
  background-repeat: no-repeat;
}
.shot.phone {
  border: 9px solid #16121A; border-radius: 34px; overflow: hidden;
  background: #16121A; box-shadow: var(--shadow-lg); max-width: 300px;
}
.shot.plain { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }

.shot img { width: 100%; display: block; }

.shot-ph {
  aspect-ratio: var(--ar, 1.6);
  display: grid; place-content: center; gap: 7px; text-align: center; padding: 22px;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 11px, #fff 11px 22px);
  color: var(--muted);
}
.shot.missing { border-style: dashed; border-color: var(--brand-line); }
.shot.missing.phone { border-width: 3px; border-color: var(--brand-line); background: #fff; }
.shot-ph span  { font-weight: 650; color: var(--ink-2); font-size: .95rem; }
.shot-ph code  { font-size: .74rem; color: var(--brand-bright); word-break: break-all; }
.shot-ph small { font-size: .72rem; opacity: .7; }

/* ---------- Tabs -------------------------------------------------- */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  padding: 9px 17px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-2); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.tab:hover { border-color: var(--brand-line); }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.tabpanel[hidden] { display: none; }

/* ---------- Diagram (order routing) -------------------------------- */

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.flow-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  display: grid; gap: 6px; position: relative;
}
.flow-node b { font-size: .93rem; }
.flow-node span { font-size: .82rem; color: var(--muted); }
.flow-node .n {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: .76rem; font-weight: 700;
}
section.dark .flow-node { background: var(--dark-2); border-color: rgba(255,255,255,.1); }
section.dark .flow-node span { color: #A99FB4; }
section.dark .flow-node .n { background: rgba(240,168,190,.16); color: #F0A8BE; }

/* ---------- Logo wall --------------------------------------------- */

.logos { display: flex; flex-wrap: wrap; gap: 9px; }
.logo-chip {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .87rem; font-weight: 600; color: var(--ink-2);
}
section.dark .logo-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #D6CEDE; }

/* ---------- CTA band ---------------------------------------------- */

.cta {
  background: var(--grad); color: #fff; border-radius: var(--r-lg);
  padding: clamp(34px, 5vw, 60px); text-align: center; display: grid; gap: 18px; justify-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ''; position: absolute; inset: auto -10% -60% -10%; height: 70%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,255,255,.16), transparent 70%);
}
.cta h2 { color: #fff; position: relative; }
.cta p  { color: rgba(255,255,255,.9); max-width: 620px; position: relative; }
.cta .btns { position: relative; }

/* ---------- Footer ------------------------------------------------ */

.foot { background: var(--dark); color: #B8AEC3; padding: clamp(44px, 5vw, 68px) 0 0; }
.foot-in {
  max-width: var(--wrap); margin-inline: auto; padding: 0 22px clamp(30px, 4vw, 46px);
  display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 30px;
}
@media (max-width: 940px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand p { margin-top: 14px; font-size: .9rem; line-height: 1.6; max-width: 340px; color: #9C93A8; }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col h4 { color: #fff; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 3px; }
.foot-col a { color: #B8AEC3; font-size: .92rem; }
.foot-col a:hover { color: #fff; text-decoration: none; }
.foot-bar {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 18px 22px; max-width: var(--wrap); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: .82rem; color: #837A8F;
}

/* ---------- Tables, FAQ, misc ------------------------------------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.t th, table.t td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.t th { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }

details.faq { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 0; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { padding: 17px 20px; cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--brand-bright); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: '−'; }
details.faq .a { padding: 0 20px 18px; color: var(--ink-2); font-size: .95rem; }

.note {
  border-left: 3px solid var(--brand-bright); background: var(--brand-soft);
  padding: 15px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .93rem; color: var(--ink-2);
}
