/* EV Charge PH landing page. Tokens mirror EVChargePH/Core/DesignSystem/Theme.swift. */
:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f5f5f5;
  --elevated: #fafafa;
  --text: #111111;
  --text-secondary: #5f5f5f; /* Theme's #777777 darkened slightly for 4.5:1 contrast on #f5f5f5 */
  --border: #e8e8e8;
  --green: #278c35;
  --green-bright: #52d72f;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 20px;
  --max: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--background); color: var(--text); font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--background); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--text-secondary); padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow { color: var(--green); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 8vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 19px; color: var(--text-secondary); margin: 0 0 24px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px; border-radius: var(--radius-s); background: var(--text); color: #fff; text-decoration: none; font-weight: 600; }
.store-badge:hover { color: #fff; background: #000; }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; }
.store-badge small { display: block; font-size: 11px; font-weight: 400; opacity: .85; line-height: 1.1; }
.store-badge span { line-height: 1.15; }
.note { font-size: 14px; color: var(--text-secondary); }
.hero-shot { justify-self: center; width: min(320px, 82vw); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.12); background: var(--surface); }

/* Sections */
section { padding: 40px 0; }
.section-title { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-lead { color: var(--text-secondary); margin: 0 0 24px; max-width: 40em; }
.surface { background: var(--surface); }

.features { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.feature { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-bright); flex: none; }

/* Screenshot strip: horizontal scroll inside its own box, never the page */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; list-style: none; -webkit-overflow-scrolling: touch; }
.gallery li { flex: 0 0 min(240px, 66vw); scroll-snap-align: start; }
.gallery img { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }

.privacy-points { display: grid; gap: 12px; padding: 0; list-style: none; margin: 0; }
.privacy-points li { padding-left: 28px; position: relative; }
.privacy-points li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

.disclaimer { font-size: 15px; color: var(--text-secondary); }

/* Article pages (privacy, support) */
.article { padding: 32px 0 48px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(30px, 7vw, 44px); }
.article h2 { font-size: 22px; margin: 32px 0 8px; }
.article p, .article li { color: #2a2a2a; }
.article .meta { color: var(--text-secondary); font-size: 15px; }
details { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 0 16px; margin: 0 0 10px; background: var(--background); }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.contact-card { background: var(--surface); border-radius: var(--radius-m); padding: 20px; margin: 16px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: 14px; color: var(--text-secondary); }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--text-secondary); }

@media (min-width: 760px) {
  .hero { padding: 64px 0 40px; }
  .hero .wrap { grid-template-columns: 1.2fr 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
