/* =========================================================
   BessQ Tapcharge — styles.css
   Clean B2B SaaS · Navy #0B2A4A · Green #3CB371 · White
   Shared between index.html, bon.html and privacy.html
   ========================================================= */

/* --------- Design tokens --------- */
:root {
  --navy:        #0B2A4A;
  --navy-700:    #143963;
  --navy-50:     #EEF2F7;
  --green:       #3CB371;
  --green-700:   #2E8F5A;
  --green-50:    #EAF7EF;
  --ink:         #1B2330;
  --muted:       #56657A;
  --line:        #E5EAF1;
  --bg:          #FFFFFF;
  --bg-soft:     #F6F8FB;
  --warn:        #B45309;
  --shadow-sm:   0 1px 2px rgba(11,42,74,.06), 0 1px 3px rgba(11,42,74,.08);
  --shadow-md:   0 4px 16px rgba(11,42,74,.08), 0 2px 6px rgba(11,42,74,.06);
  --shadow-lg:   0 18px 40px rgba(11,42,74,.12), 0 4px 12px rgba(11,42,74,.06);
  --radius-sm:   10px;
  --radius:      14px;
  --radius-lg:   20px;
  --maxw:        1180px;
}

/* --------- Reset & base --------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green-700); }

h1, h2, h3, h4 {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink); }
.muted { color: var(--muted); }

ul, ol { padding-left: 1.2em; margin: 0 0 1em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* --------- Layout helpers --------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.btn-secondary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--green-700); }

/* --------- Header / Nav --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--navy-700); }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 35%, #4aa3ff 0%, #1f6fc7 38%, #0B2A4A 100%) ,
    linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%);
  background-blend-mode: screen;
  position: relative;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 50%, rgba(60,179,113,.85) 50%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--green); }

.nav-cta { display: inline-flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* --------- Hero --------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 380px at 90% -10%, rgba(60,179,113,.10), transparent 60%),
    radial-gradient(900px 320px at -10% 10%, rgba(11,42,74,.08), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.4em;
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-50);
  aspect-ratio: 16/10;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.usp-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
  margin-top: 32px;
}
.usp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  font-size: .92rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.usp strong { display: block; font-family: "Manrope", system-ui, sans-serif; color: var(--navy); margin-bottom: 2px; }

/* --------- Generic cards / grids --------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #d8e0ec; }
.card h3 { margin-top: 0; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--green-50); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 10px;
  font-family: "Manrope", system-ui, sans-serif;
}

/* Product cards (AC / DC) */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.product-card .product-media {
  background: var(--bg-soft);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.product-card .product-media img { max-height: 100%; object-fit: contain; }
.product-card .product-body { padding: 22px; }
.product-card .badge {
  display: inline-block;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--navy);
  background: var(--navy-50);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Two-route payment block */
.routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.route {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.route.primary {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(60,179,113,.12), var(--shadow-sm);
}
.route h3 { display: flex; align-items: center; gap: 8px; }
.route ul { margin-bottom: 0; }
.route .tag {
  display: inline-block;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.route.primary .tag { background: var(--green-50); color: var(--green-700); }
.route.option .tag { background: var(--navy-50); color: var(--navy); }

/* --------- Forms (Bon page) --------- */
.bon-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.form-card h2 { margin-top: 0; }
.form-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.form-section .hint {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.form-row.full { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
}
.field label .req { color: var(--green-700); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(60,179,113,.18);
}
.field textarea { min-height: 90px; resize: vertical; }
.field .help { color: var(--muted); font-size: .82rem; }

.mode-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}
.mode-switch button {
  background: transparent;
  border: 0;
  font: inherit;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.mode-switch button.active {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink);
  margin: 10px 0 18px;
}
.consent input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: var(--green-50); color: var(--green-700); border: 1px solid #c8e9d4; }
.form-status.error   { background: #FDECEA;        color: #B42318;        border: 1px solid #F4C7C3; }

/* Sidebar on bon page */
.bon-sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 { font-size: 1rem; margin-top: 0; }
.side-card ul { padding-left: 1.1em; margin-bottom: 0; }
.side-card li { margin-bottom: 6px; font-size: .92rem; }
.side-card.cta {
  background: var(--navy-50);
  border-color: #dbe3ee;
}
.side-card.cta h3 { color: var(--navy); }
.side-card.cta p { font-size: .92rem; color: var(--ink); }
.side-card.cta .btn { margin-top: 4px; }

/* --------- Footer --------- */
.site-footer {
  background: var(--navy);
  color: #cfd8e6;
  padding: 48px 0 28px;
  margin-top: 64px;
}
.site-footer a { color: #e7edf6; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin: 0 0 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: #aebbd0;
  flex-wrap: wrap;
}
.footer-brand { color: #fff; font-family: "Manrope", system-ui, sans-serif; font-weight: 800; }

/* --------- Misc / legal pages --------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 { margin-bottom: .2em; }
.legal h2 { margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink); }

/* --------- Responsive --------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .usp-row   { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bon-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 32px; }

  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }

  .nav-links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }

  .grid-2, .grid-3, .grid-4, .routes { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .usp-row { grid-template-columns: 1fr 1fr; }
}

/* --------- Print --------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-cta, .form-actions { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
