/* Marketing pages (home, about, architecture) — section layouts.
   Restrained: no glow, no marquee, minimal motion. Loaded via $page_styles=['marketing']. */

/* ═══════════ Home hero ═══════════ */
.home-hero { position: relative; padding: var(--sp-9) var(--sp-5) var(--sp-8); overflow: hidden; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.home-hero-inner {
    position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: center;
}
.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--radius-full);
    background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border);
    font-size: 13px; font-weight: 600; margin-bottom: var(--sp-5);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.home-hero h1 { font-size: clamp(34px, 5.2vw, 58px); margin-bottom: var(--sp-4); }
.home-hero .lede { font-size: clamp(16px, 1.9vw, 20px); color: var(--text-muted); max-width: 560px; margin: 0 0 var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.hero-tertiary { margin-top: var(--sp-5); font-size: 14px; color: var(--text-muted); }
.hero-tertiary a { color: var(--primary-strong); font-weight: 600; text-decoration: none; }
.hero-tertiary a:hover { text-decoration: underline; }

/* ═══════════ Dashboard preview mock (clearly labelled demo) ═══════════ */
.preview-frame {
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.preview-topbar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.preview-label {
    margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-dim);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full);
    padding: 3px 10px;
}
.preview-body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.preview-head .bike { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.preview-map {
    position: relative; height: 150px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: var(--surface-2);
}
.preview-map img { width: 100%; height: 100%; object-fit: cover; }
.preview-pin {
    position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary); border: 3px solid #fff; box-shadow: var(--shadow-md);
}
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.preview-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.preview-stat .k { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.preview-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.preview-event {
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted);
    background: var(--warn-soft); border: 1px solid var(--warn-border); color: var(--warn);
    border-radius: var(--radius-sm); padding: 8px 12px;
}

/* ═══════════ Benefit cards ═══════════ */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.benefit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.benefit-card .icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); font-size: 19px; margin-bottom: var(--sp-4); }
.benefit-card h3 { font-size: 17px; margin-bottom: 8px; }
.benefit-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ═══════════ How it works ═══════════ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: var(--sp-4); }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ═══════════ Tracking profiles ═══════════ */
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.profile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.profile h3 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; }
.profile .purpose { color: var(--text-muted); font-size: 14px; margin: 0; flex: 1; }
.profile dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.profile dt { color: var(--text-dim); }
.profile dd { margin: 0; font-weight: 600; text-align: right; }
.battery-meter { height: 6px; border-radius: var(--radius-full); background: var(--surface-3); overflow: hidden; }
.battery-meter span { display: block; height: 100%; border-radius: inherit; }
.battery-1 span { width: 20%; background: var(--ok); }
.battery-2 span { width: 45%; background: var(--ok); }
.battery-3 span { width: 80%; background: var(--warn); }
.battery-4 span { width: 95%; background: var(--danger); }

/* ═══════════ Security list ═══════════ */
.security-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.security-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.security-list li { display: flex; gap: 14px; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.security-list .li-icon { flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); }
.security-list strong { display: block; margin-bottom: 3px; }
.security-list span { color: var(--text-muted); font-size: 14px; }

/* ═══════════ CTA strip ═══════════ */
.cta-strip { position: relative; padding: var(--sp-8) var(--sp-6); border-radius: var(--radius-lg); background: linear-gradient(135deg, #1e293b, #0f172a); text-align: center; color: #fff; }
.cta-strip h2 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.85); font-size: 16px; max-width: 620px; margin: 0 auto var(--sp-6); }
.cta-strip .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: #fff; }
.cta-strip .btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ═══════════ About: team + roadmap ═══════════ */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.member-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.member-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow-md); margin-bottom: var(--sp-4); background: var(--surface-2); }
.member-card h3 { font-size: 21px; margin-bottom: 4px; }
.member-role { display: inline-block; padding: 4px 10px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.member-card p { color: var(--text-muted); margin: 0 0 16px; font-size: 14px; }
.member-links { display: flex; gap: 14px; }
.member-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-strong); font-size: 14px; font-weight: 600; text-decoration: none; }
.member-links a:hover { text-decoration: underline; }
.stage-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.stage-card .stage-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-full); background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border); font-size: 13px; font-weight: 600; margin-bottom: var(--sp-4); }
.stage-card ul { margin: 0; padding-left: 20px; color: var(--text-muted); line-height: 1.8; }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }

/* ═══════════ Download page ═══════════ */
.dl-shell { max-width: 900px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-9); }
.dl-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 12px; }
.dl-emblem { width: 52px; height: 52px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.dl-emblem.android { background: linear-gradient(135deg, #3ddc84, #10b981); }
.dl-emblem.ios { background: linear-gradient(135deg, #64748b, #0f172a); }
.dl-card h2 { margin: 0; font-size: 20px; }
.dl-card .sub { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }
.dl-meta { display: grid; gap: 4px; font-size: 13px; color: var(--text-muted); }
.dl-meta .row { display: flex; justify-content: space-between; gap: 12px; }
.dl-meta .row .k { color: var(--text-dim); }
.dl-checksum { font-family: 'SF Mono', Consolas, monospace; font-size: 11px; word-break: break-all; color: var(--text-muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.dl-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; min-height: 46px; border-radius: var(--radius-full); font-weight: 600; font-size: 15px; text-decoration: none; background: var(--primary); color: #fff; }
.dl-btn:hover { background: var(--btn-primary-hover); }
.dl-btn.disabled { background: var(--surface-2); color: var(--text-dim); pointer-events: none; border: 1px solid var(--border); }
.dl-steps { margin: var(--sp-5) 0 0; padding-left: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }

/* ═══════════ Architecture: two-level (simple + expandable technical) ═══════════ */
.arch-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.arch-node { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.arch-node .icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); font-size: 20px; margin-bottom: var(--sp-3); }
.arch-node h3 { font-size: 16px; margin-bottom: 6px; }
.arch-node p { font-size: 13px; color: var(--text-muted); margin: 0; }
.arch-tech { margin-top: var(--sp-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.arch-tech > summary { list-style: none; cursor: pointer; padding: var(--sp-5) var(--sp-6); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.arch-tech > summary::-webkit-details-marker { display: none; }
.arch-tech > summary .chev { transition: transform var(--dur); color: var(--text-muted); }
.arch-tech[open] > summary .chev { transform: rotate(180deg); }
.arch-tech > summary:hover { background: var(--surface-2); }
.arch-tech-body { padding: 0 var(--sp-6) var(--sp-6); border-top: 1px solid var(--border); }
.arch-spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); }
.arch-spec .item { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); }
.arch-spec .item h4 { font-size: 14px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.arch-spec .item p { font-size: 13px; color: var(--text-muted); margin: 0; }
.arch-note { margin-top: var(--sp-5); font-size: 13px; color: var(--text-dim); }
@media (max-width: 860px) { .arch-flow { grid-template-columns: repeat(2, 1fr); } .arch-spec { grid-template-columns: 1fr; } }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 960px) {
    .home-hero-inner, .security-split { grid-template-columns: 1fr; gap: var(--sp-6); }
    .benefit-grid, .steps, .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .benefit-grid, .steps, .profile-grid { grid-template-columns: 1fr; }
    .preview-stats { grid-template-columns: repeat(3, 1fr); }
}
