/* EnableBit QR — EnableBit. Same tokens and components as www.enablebit.com (css/site.css), plus
   the app mockup and the legal pages. Shared by every brand's pages (site/<brand>/). */

:root {
  --orange: #f05f40;
  --orange-dk: #d94e31;
  --orange-lt: #ff7a5c;
  --green: #16a34a;
  --dark: #0f172a;
  --dark-2: #1a2744;
  --text: #1e293b;
  --gray: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #fff;
  --r: 14px;
  --shadow: 0 2px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.13);
  --ease: cubic-bezier(.4,0,.2,1);
  --t: .25s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; gap: 1rem;
  transition: box-shadow var(--t), padding var(--t);
}
.nav::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: transparent;
  transition: background var(--t);
}
.nav.scrolled::before {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--border);
  padding-top: .7rem; padding-bottom: .7rem;
}

.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.2rem;
  color: var(--white); flex-shrink: 0;
  transition: color var(--t);
}
.nav.scrolled .nav-logo { color: var(--orange); }
.nav-logo img { width: 30px; height: 30px; }
.nav-logo-qr { color: var(--orange); margin-left: -.2rem; }

.nav-links {
  display: flex; align-items: center; gap: .1rem;
  list-style: none; margin-left: auto;
}
.nav-links li a {
  display: block;
  padding: .4rem .75rem;
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: rgba(255,255,255,.78);
  border-radius: 6px;
  transition: var(--t);
}
.nav.scrolled .nav-links li a { color: var(--text); }
.nav-links li a:hover,
.nav-links li a[aria-current="page"] { color: var(--orange); background: rgba(240,95,64,.1); }
.nav.scrolled .nav-links li a:hover,
.nav.scrolled .nav-links li a[aria-current="page"] { color: var(--orange); background: rgba(240,95,64,.07); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: .35rem; width: 32px; height: 32px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--t);
}
.nav.scrolled .nav-toggle span { background: var(--dark); }

@media (max-width: 860px) {
  .nav { padding-left: 1rem; padding-right: 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: fixed; inset: 0;
    background: var(--dark); gap: .25rem; z-index: 999;
  }
  .nav-links.open li { width: 100%; text-align: center; }
  .nav-links.open li a {
    font-size: 1.05rem !important;
    color: rgba(255,255,255,.78) !important;
    padding: .9rem 2rem !important;
    display: block; width: 100%;
    border-radius: 0 !important;
  }
  .nav-links.open li a:hover {
    color: var(--orange) !important;
    background: rgba(240,95,64,.08) !important;
  }
  .nav-links.open ~ .nav-toggle { position: relative; z-index: 1000; }
  .nav-links.open ~ .nav-toggle span { background: var(--white); }
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 82vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem 2rem 4rem; text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(240,95,64,.22) 0%, transparent 55%),
    linear-gradient(160deg, #0b1120 0%, #12100a 100%);
  position: relative; overflow: hidden;
}
.hero-topo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
  opacity: .11;
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem 1rem; border-radius: 999px;
  background: rgba(240,95,64,.12);
  border: 1px solid rgba(240,95,64,.25);
  color: var(--orange-lt);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 1.25rem;
  letter-spacing: -.025em;
}
.hero h1 em { color: var(--orange); font-style: normal; }

.hero-sub {
  font-size: clamp(.975rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.52);
  max-width: 580px; margin: 0 auto 2.5rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

.hero-chips {
  display: flex; flex-wrap: wrap; gap: .45rem;
  justify-content: center; margin-top: 3.5rem;
}
.hero-chip {
  padding: .28rem .85rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.5);
  font-size: .75rem; font-weight: 500;
}

/* Compact hero of the legal pages */
.page-hero {
  padding: 8rem 2rem 3.5rem;
  background:
    radial-gradient(ellipse 90% 80% at 50% -10%, rgba(240,95,64,.2) 0%, transparent 60%),
    linear-gradient(160deg, #0b1120 0%, #12100a 100%);
}
.page-hero .container { max-width: 780px; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -.025em; color: var(--white);
  margin-bottom: .75rem;
}
.page-hero p { color: rgba(255,255,255,.52); font-size: .95rem; }
.page-hero .section-kicker { color: var(--orange-lt); }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .8rem 1.8rem; border-radius: 999px;
  font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--t); white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dk); border-color: var(--orange-dk);
  box-shadow: 0 6px 24px rgba(240,95,64,.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
}

/* ─── LAYOUT ──────────────────────────────────────────── */
section { padding: 4rem 2rem; }
.container { max-width: 1080px; margin: 0 auto; }

@media (max-width: 600px) {
  section, .hero, .page-hero { padding-left: 1rem; padding-right: 1rem; }
}

.section-kicker {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--orange); margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -.025em; margin-bottom: .9rem;
}
.section-lead {
  font-size: 1rem; color: var(--gray);
  max-width: 560px; line-height: 1.65;
}
.section-hd { margin-bottom: 3.5rem; }
.section-hd.center { text-align: center; }
.section-hd.center .section-lead { margin: 0 auto; }

/* ─── FEATURE CARDS ───────────────────────────────────── */
.s-features { background: var(--bg-light); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}
.p-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.85rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: var(--t);
}
.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--orange);
}
.p-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(240,95,64,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.p-icon svg {
  width: 22px; height: 22px;
  stroke: var(--orange); fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.p-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: .45rem; letter-spacing: -.01em;
}
.p-card p { font-size: .875rem; color: var(--gray); line-height: 1.6; }
.p-card a { color: var(--orange); font-weight: 600; }
.p-card a:hover { text-decoration: underline; }

/* ─── PROCESS + APP MOCKUP ────────────────────────────── */
.s-process { background: var(--white); }

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 4rem; align-items: center;
}
@media (max-width: 860px) {
  .process-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}

.steps { list-style: none; display: grid; gap: 1.75rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.proc-num {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(240,95,64,.35);
}
.step h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; margin: .2rem 0 .25rem; }
.step p { font-size: .875rem; color: var(--gray); line-height: 1.6; }

/* Illustrative phone with the app's Carga screen (light theme of the app) */
.phone {
  width: 280px; max-width: 100%; margin: 0 auto;
  border-radius: 36px; padding: 12px;
  background: var(--dark);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone-screen {
  border-radius: 26px; overflow: hidden;
  background: var(--bg-light);
  min-height: 520px; position: relative;
  padding: 2.4rem .85rem 5rem;
  font-size: .72rem; line-height: 1.4;
}
.phone-screen::before {
  content: ''; position: absolute; top: 10px; left: 50%;
  width: 70px; height: 6px; border-radius: 999px;
  transform: translateX(-50%); background: #cbd5e1;
}
.app-bar {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1rem; margin-bottom: .6rem;
}
.app-bar svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; }
.app-bar .app-bar-end { margin-left: auto; display: flex; gap: .55rem; }
.app-bar .app-bar-end svg { stroke: var(--gray); }
.app-card {
  background: var(--white); border-radius: 10px;
  padding: .6rem .7rem; margin-bottom: .5rem;
  border: 1px solid var(--border);
}
.app-card .app-label {
  display: block; font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--gray);
}
.app-card strong { display: block; font-size: .78rem; }
.app-card span { color: var(--gray); }
.app-session { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.app-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .5rem; }
.app-field {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--border); padding: .45rem .6rem;
}
.app-field .app-label { font-size: .6rem; font-weight: 700; color: var(--gray); }
.app-field strong { display: block; text-align: right; font-size: .95rem; }
.app-card.done { border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.06); }
.app-card.done .app-label { color: var(--green); }
.app-fabs {
  position: absolute; left: .85rem; right: .85rem; bottom: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.app-btn {
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: .8rem;
  padding: .7rem 1.2rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(240,95,64,.35);
}
.app-scan {
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(240,95,64,.35);
}
.app-scan svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; }
.phone-caption { text-align: center; font-size: .78rem; color: var(--gray); margin-top: .9rem; }

/* ─── FIELD (dark) ────────────────────────────────────── */
.s-field {
  background: linear-gradient(150deg, #0b1120 0%, #160d07 100%);
}
.s-field .section-title { color: var(--white); }
.s-field .section-lead { color: rgba(255,255,255,.45); }

.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-bottom: 2.75rem;
}
.env-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 1.85rem;
  transition: var(--t);
}
.env-card:hover {
  background: rgba(240,95,64,.07);
  border-color: rgba(240,95,64,.22);
  transform: translateY(-2px);
}
.env-num {
  font-size: 2.8rem; font-weight: 900;
  line-height: 1; letter-spacing: -.04em;
  color: rgba(240,95,64,.18); margin-bottom: .7rem;
}
.env-card h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem;
}
.env-card p {
  font-size: .875rem; color: rgba(255,255,255,.42);
  line-height: 1.6;
}
.env-card a { color: var(--orange-lt); font-weight: 600; }
.env-card a:hover { text-decoration: underline; }

.env-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.env-bullet { display: flex; align-items: flex-start; gap: .7rem; }
.env-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: .42rem;
}
.env-bullet span { font-size: .875rem; color: rgba(255,255,255,.42); }

/* ─── CONTACT ─────────────────────────────────────────── */
.s-contact { background: var(--bg-light); }

.contact-box {
  max-width: 560px; margin: 0 auto;
  background: var(--white); border-radius: calc(var(--r) * 1.5);
  padding: 3rem 2.5rem; text-align: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) { .contact-box { padding: 2.25rem 1.25rem; } }
.contact-box h2 {
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -.025em; margin-bottom: .75rem;
}
.contact-box p { color: var(--gray); margin-bottom: 2rem; }
.contact-box h2 + .contact-email { margin-top: 1.25rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .95rem;
  color: var(--orange); border: 2px solid var(--orange);
  padding: .75rem 1.75rem; border-radius: 999px;
  transition: var(--t);
  max-width: 100%; overflow-wrap: anywhere;
}
.contact-email:hover { background: var(--orange); color: var(--white); }
.contact-email svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── LEGAL PAGES ─────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em;
  margin: 2.75rem 0 .9rem; scroll-margin-top: 5.5rem;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { font-size: .95rem; color: #334155; }
.legal p + p { margin-top: .8rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: .7rem 0; display: grid; gap: .45rem; }
.legal li::marker { color: var(--orange); }
.legal a { color: var(--orange); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .85em; background: var(--bg-light);
  border: 1px solid var(--border); border-radius: 5px;
  padding: .05rem .35rem; overflow-wrap: anywhere;
}

.legal-table { overflow-x: auto; margin: 1rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 480px; }
.legal th, .legal td {
  text-align: left; vertical-align: top;
  padding: .7rem .8rem; border-bottom: 1px solid var(--border);
}
.legal th {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray); background: var(--bg-light);
}
.legal td { color: #334155; }

.legal-summary {
  background: var(--bg-light); border-radius: var(--r);
  padding: 1.5rem 1.6rem; margin-bottom: 2.75rem;
  border-top: 3px solid var(--orange);
}
.legal-summary h2 { margin: 0 0 .6rem; font-size: 1.05rem; }

.legal-toc {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.25rem 1.5rem; margin-bottom: 2.75rem;
}
.legal-toc p {
  font-size: .72rem !important; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange) !important; margin-bottom: .4rem;
}
.legal-toc ol { margin: 0; gap: .2rem; }
.legal-toc a { color: var(--text); font-weight: 500; }

.legal-notice {
  border-left: 4px solid var(--orange);
  background: rgba(240,95,64,.06);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.legal-notice p { color: var(--text); }

.legal-meta { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.legal-meta p { font-size: .85rem; color: var(--gray); }

/* ─── TEST CARDS (Google Play review) ─────────────────── */
.legal.test-cards { max-width: 1080px; }
.test-cards h2 span, .test-cards h3 span {
  display: inline-block; margin-left: .1rem;
  font-size: .8em; font-weight: 500; color: var(--gray);
}
.test-cards h3 { font-size: 1.05rem; margin: 2.25rem 0 1rem; }

/* Verification paths: one numbered step per card to scan or action to take */
.legal .path-steps {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem;
}
.path-step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .75rem;
  break-inside: avoid;
}
.path-step-action { background: var(--bg-light); box-shadow: none; }
.path-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(240,95,64,.3);
}
.legal .path-step p { font-size: .875rem; }
.path-step img { width: 100%; max-width: 160px; height: auto; margin: auto auto 0; }
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.test-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem;
  box-shadow: var(--shadow); text-align: center;
  break-inside: avoid;
}
.test-card img { width: 100%; max-width: 220px; height: auto; margin: 0 auto 1rem; }
.test-card figcaption { display: grid; gap: .2rem; }
.test-card strong { font-size: 1rem; }
.test-card span { font-size: .82rem; color: var(--gray); }
.test-card code { justify-self: center; margin-top: .3rem; }

@media print {
  .nav, footer, .page-hero { display: none; }
  section { padding: 0; }
  .test-card { box-shadow: none; }
  .legal-summary { break-inside: avoid; }
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 2rem; text-align: center;
}
footer p { font-size: .8rem; color: rgba(255,255,255,.28); }
footer p + p { margin-top: .4rem; }
footer a { color: rgba(255,255,255,.45); transition: color var(--t); }
footer a:hover { color: var(--orange); }
