/**
 * Public landing page (/ with no parameters). Colours match admin-theme.css so the site and the dashboard read as
 * one product.
 */

:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #1d64d8;
  --accent-hover: #1650b0;
  --accent-soft: #eaf1fd;
  --navy: #0f172a;
  --success: #15803d;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img, svg { display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--text); border-color: var(--border); background: #fff; }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(29, 100, 216, 0.35); outline-offset: 2px; }


/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-weight: 700; font-size: 17px; }
.brand-name span { color: var(--accent); }
.site-nav { display: flex; gap: 28px; margin-right: auto; }
.site-nav a { color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.link-quiet { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 15px; }
.link-quiet:hover { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%); padding: 88px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
.hero-lead { font-size: 19px; color: var(--text-secondary); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

/* Hero illustration */
.hero-visual { display: flex; justify-content: center; }
.phone { position: relative; width: 250px; background: #fff; border: 8px solid var(--navy); border-radius: 30px; padding: 26px 14px 16px; box-shadow: var(--shadow-lg); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 56px; height: 6px; border-radius: 3px; background: #cbd5e1; }
.phone-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.phone-pkg { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; font-size: 13px; }
.phone-pkg em { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); }
.phone-pkg em.save { color: var(--success); }
.phone-pkg.is-active { border: 2px solid var(--accent); background: var(--accent-soft); }
.phone-wallets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.phone-wallets span { display: grid; place-items: center; height: 30px; padding: 3px 5px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.phone-wallets span.is-active { border: 2px solid var(--accent); }
.phone-wallets img { max-width: 100%; max-height: 20px; object-fit: contain; }
.phone-btn { margin-top: 12px; background: var(--accent); color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 11px; border-radius: 10px; }

/* Works with */
.works-with { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.works-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.works-group { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.works-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; }
/* Logos as their owners publish them: unaltered, each sized to look the same weight */
.logo { display: block; width: auto; }
.logo-ecocash { height: 26px; }
.logo-innbucks { height: 38px; border-radius: 6px; }
.logo-omari { height: 40px; }
.logo-mikrotik { height: 22px; }
.logo-ruijie { height: 30px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2, .cta-band h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p:last-child { color: var(--text-secondary); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--text-secondary); font-size: 15px; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--text-secondary); margin: 0; }



.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--text-secondary); }

.cta-band { background: linear-gradient(135deg, var(--accent) 0%, #1446a0 100%); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.link-light { color: #fff; font-weight: 600; text-decoration: none; opacity: 0.9; }
.link-light:hover { opacity: 1; text-decoration: underline; }

.site-footer { background: var(--navy); color: #94a3b8; padding: 48px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #7fb0ff; }
.site-footer p { margin: 6px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer nav a { color: #cbd5e1; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.copyright { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .link-quiet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
