/* ═══ Design tokens — shared with console; keep this block byte-identical ═══ */
:root {
  --surface:#ffffff; --surface-2:#f7f8fa; --border:#e5e7eb;
  --text:#111111; --text-2:#6b7280;
  --accent:#2264e2; --accent-bg:#eff4fe;
  --cta:#111111; --danger:#dc2626; --success:#16a34a;
  --radius:12px; --radius-lg:16px;
  --font-display:'ZonaPro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-body:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ═══ Fonts ═══ */
@font-face {
    font-family: 'ZonaPro';
    src: url('/ui/fonts/ZonaPro-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ZonaPro';
    src: url('/ui/fonts/ZonaPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ═══ Base ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    font-size: 16px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.hidden { display: none !important; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) {
    .container { padding: 0 32px; }
}
[id] { scroll-margin-top: 80px; }

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #111; }
.btn-ghost {
    background: rgba(255,255,255,.85);
    color: var(--text);
    border-color: var(--border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: #111; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ═══ Header ═══ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-pin { flex-shrink: 0; }
.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.main-nav { display: none; }
.main-nav a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-2);
    padding: 6px 2px;
}
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}
.site-header.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px 20px 16px;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header.nav-open .main-nav a {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--surface-2);
}
@media (min-width: 1024px) {
    .main-nav, .site-header.nav-open .main-nav {
        display: flex;
        flex-direction: row;
        gap: 28px;
        position: static;
        padding: 0;
        background: none;
        border-bottom: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .site-header.nav-open .main-nav a {
        padding: 6px 2px;
        font-size: 14.5px;
        color: var(--text-2);
        border-bottom: none;
    }
    .nav-burger { display: none; }
}

/* ═══ Language toggle ═══ */
.lang-toggle {
    display: inline-flex;
    padding: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
}
.lang-toggle button {
    padding: 4px 10px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.lang-toggle button.active { background: var(--cta); color: #fff; }

/* ═══ Hero ═══ */
.hero {
    position: relative;
    height: 70vh;
    height: 70svh;
    min-height: 540px;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .hero {
        height: calc(100vh - 64px);
        height: calc(100svh - 64px);
        min-height: 620px;
    }
}
.hero-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--surface-2);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    pointer-events: none;
}
.hero-card {
    pointer-events: auto;
    width: 100%;
    max-width: 640px;
    padding: 28px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
@media (min-width: 640px) {
    .hero-card { padding: 40px 44px; }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 5px 12px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 9999px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 30px; }
@media (min-width: 640px) {
    .hero h1 { font-size: 40px; }
}
@media (min-width: 1024px) {
    .hero h1 { font-size: 46px; }
}
.hero-sub {
    margin-top: 12px;
    color: var(--text-2);
    font-size: 16px;
}
@media (min-width: 640px) {
    .hero-sub { font-size: 17.5px; }
}

/* Demo search */
.hero-search { position: relative; margin-top: 22px; text-align: left; }
.search-field { position: relative; }
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-2);
    pointer-events: none;
}
#heroSearch {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 46px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 15.5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#heroSearch::placeholder { color: var(--text-2); }
#heroSearch:hover { border-color: #c8cdd4; }
#heroSearch:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}
#heroSearch:disabled { opacity: .55; cursor: not-allowed; }
.hero-search-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.ac-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}
.ac-item:hover, .ac-item.active { background: var(--accent-bg); }
.ac-name { font-size: 14.5px; font-weight: 600; }
.ac-addr {
    font-size: 12.5px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-hint { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.hero-ctas {
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* Landing map pin (divIcon) */
.landing-pin svg { display: block; }
.hero .leaflet-popup-content { font-family: var(--font-body); font-size: 13.5px; }
.hero .leaflet-popup-content .popup-name { font-weight: 600; }
.hero .leaflet-popup-content .popup-addr { color: var(--text-2); margin-top: 2px; }

/* ═══ Value props band ═══ */
.props {
    padding: 56px 0;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.props-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) {
    .props-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
    .props-grid { grid-template-columns: repeat(4, 1fr); }
}
.prop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
}
.prop h3 { font-size: 16px; margin-bottom: 6px; }
.prop p { font-size: 14px; color: var(--text-2); }

/* ═══ Sections ═══ */
.section { padding: 72px 0; }
@media (min-width: 1024px) {
    .section { padding: 96px 0; }
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.eyebrow {
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}
.section-head h2 { font-size: 28px; }
@media (min-width: 640px) {
    .section-head h2 { font-size: 34px; }
}
.section-head p { margin-top: 10px; font-size: 16.5px; color: var(--text-2); }

/* ═══ Cards ═══ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color .15s ease;
}
.card:hover { border-color: #111; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }
.endpoint-chip {
    display: inline-block;
    margin: 14px 0 12px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    word-break: break-all;
}
.card-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); }
.card-link:hover { text-decoration: underline; }

/* ═══ Code sample ═══ */
.code-panel {
    background: #111;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.code-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #2a2a2a;
}
.code-tabs { display: flex; gap: 4px; }
.code-tabs button {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.code-tabs button.active { background: #2a2a2a; color: #fff; }
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: #d1d5db;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.copy-btn:hover { border-color: #666; color: #fff; }
.code-pane { overflow-x: auto; padding: 20px; }
.code-pane pre { margin: 0; }
.code-pane code {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e5e7eb;
    white-space: pre;
}
.tok-str { color: #8ddb9f; }
.tok-kw { color: #7cb3ff; }
.tok-cm { color: #6b7280; }

/* ═══ Pricing ═══ */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
@media (min-width: 640px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.plan-featured:hover { border-color: var(--accent); }
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}
.plan h3 { font-size: 17px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.plan-price .amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.01em;
}
.plan-per { font-size: 14px; color: var(--text-2); }
.plan ul { display: grid; gap: 8px; margin: 14px 0 20px; }
.plan li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); }
.plan li::before { content: '✓'; color: var(--success); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }

/* ═══ Band ═══ */
.band {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.band-inner { text-align: center; }
.band h2 { font-size: 26px; }
@media (min-width: 640px) {
    .band h2 { font-size: 32px; }
}
.band-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* ═══ Footer ═══ */
.site-footer { padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 640px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p { max-width: 280px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.footer-col h4 {
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-2);
}
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-2);
}

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