/* EV Charge PH home page. Article pages (privacy, support) keep using style.css. */
:root {
  color-scheme: light;
  --bg: #f6f5ee;
  --card: #ffffff;
  --ink: #101511;
  --ink-2: #4c544d;
  --line: #e4e3d8;
  --green: #17602a;
  --green-deep: #0f3f1c;
  --green-ink: #1e7a34;
  --lime: #c8f36a;
  --lime-soft: #e3f5c4;
  --max: 1160px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "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; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.02; }
em { font-style: normal; color: var(--green); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip-link:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--green); border: 1.5px solid var(--green-ink); border-radius: 7px; padding: 2px 8px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--green); }

/* Store badge (not a link until the app is live) */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 18px; min-height: 60px; border-radius: 12px; background: #000; color: #fff; }
.store svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.store span { font-size: 23px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.store small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: .9; }
.store-light { border: 1.5px solid rgba(255,255,255,.6); }

/* Hero */
.hero { padding: 40px 0 8px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 9vw, 62px); font-weight: 820; margin: 0 0 18px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2); margin: 0 0 26px; max-width: 24em; }
.meta { font-size: 15px; color: var(--ink-2); margin: 14px 0 0; }
.meta i { font-style: normal; padding: 0 4px; }

.hero-art { position: relative; justify-self: center; width: min(360px, 78vw); margin: 8px 0 24px; }
.blob { position: absolute; inset: 6% -38% -4% -30%; z-index: -1; background:
  radial-gradient(60% 55% at 60% 40%, var(--lime-soft) 0 60%, transparent 61%),
  radial-gradient(40% 35% at 30% 75%, #d8efb9 0 60%, transparent 61%); filter: blur(2px); }
.phone { filter: drop-shadow(0 30px 40px rgba(16, 40, 20, .22)) drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.phone-hero { width: 100%; }
.float-card { position: absolute; left: -22%; top: 47%; display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 14px 18px 14px 14px; box-shadow: 0 18px 40px rgba(16,40,20,.16), 0 1px 2px rgba(0,0,0,.06); }
.float-card small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.float-card b { font-size: 26px; font-weight: 800; color: var(--green); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bolt { width: 38px; height: 38px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; flex: none; }
.bolt svg { width: 20px; height: 20px; fill: var(--green-deep); }

/* Three promises */
.trio { padding: 8px 0 8px; }
.trio-grid { display: grid; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.trio-item { display: flex; gap: 16px; align-items: flex-start; }
.trio-item svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.trio-item h2 { font-size: 21px; margin: 0 0 4px; letter-spacing: -0.02em; }
.trio-item p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Sections */
section { padding: 48px 0; }
.big { font-size: clamp(34px, 7vw, 56px); font-weight: 820; margin: 0 0 28px; }
.sub { color: var(--ink-2); margin: -12px 0 24px; max-width: 40em; }

/* Bento */
.bento { display: grid; gap: 16px; }
.card { border-radius: 22px; padding: 24px 24px 0; overflow: hidden; position: relative; display: grid; gap: 16px; }
.card h3 { font-size: clamp(25px, 3.4vw, 32px); font-weight: 800; margin: 0 0 8px; }
.card p { margin: 0; }
.card .phone-card { width: min(300px, 80%); justify-self: center; margin-bottom: -38%; }

.card-fit { background: var(--card); border: 1px solid var(--line); }
.card-fit p { color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px; }
.chips li.on { background: var(--green); border-color: var(--green); color: #fff; }
.chips svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.card-pesos { background: var(--green-deep); color: #fff; }
.card-pesos p { color: rgba(255,255,255,.82); }
.card-pesos .tag { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 3px 10px; background: rgba(255,255,255,.08); }
.stats { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 16px 0 0; }
.stats dt { font-size: 13px; color: rgba(255,255,255,.72); }
.stats dd { margin: 0; font-size: clamp(22px, 2.4vw, 28px); white-space: nowrap; font-weight: 800; color: var(--lime); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.card-private { background: var(--card); border: 1px solid var(--line); padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.card-private svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; }
.card-private h3 { font-size: 24px; }
.card-private p { color: var(--ink-2); }

/* App preview: scrolls inside its own row, never the page */
.preview { padding-top: 24px; }
.shelf { list-style: none; margin: 0 auto; padding: 24px 16px 48px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; max-width: var(--max); -webkit-overflow-scrolling: touch; }
.shelf li { flex: 0 0 min(250px, 64vw); scroll-snap-align: center; text-align: center; }
.shelf .phone { filter: drop-shadow(0 14px 18px rgba(16, 40, 20, .16)); }
.shelf span { display: block; margin-top: 14px; font-weight: 650; font-size: 16px; }

/* CTA with the provided footer artwork */
.cta { padding: 24px 0 40px; }
.cta-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end;
  background: #0f3f1c url("footer-car.webp") right 30% center / cover no-repeat; }
.cta-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c3618 0%, rgba(12,54,24,.9) 38%, rgba(12,54,24,0) 70%); }
.cta-copy { position: relative; padding: 32px 28px; }
.cta h2 { color: #fff; font-size: clamp(34px, 6.5vw, 60px); font-weight: 820; margin: 0 0 24px; }
.cta h2 em { color: var(--lime); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0 36px; font-size: 14px; color: var(--ink-2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.brand-small { font-size: 17px; color: var(--ink); }
.brand-small img { width: 28px; height: 28px; border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { text-decoration: none; color: var(--ink); }
.foot nav a:hover { color: var(--green); }
.foot p { margin: 0 0 0 auto; font-size: 13px; }

@media (max-width: 559px) {
  .nav { gap: 16px; font-size: 14px; }
  .nav a:first-child { display: none; }
  .pill { display: none; }
  .float-card { left: -8%; top: auto; bottom: 18%; padding: 10px 14px 10px 10px; }
  .float-card b { font-size: 21px; }
  .cta-card { background-size: auto 100%; background-position: 80% center; align-items: flex-start; min-height: 440px; }
  .cta-card::before { background: linear-gradient(180deg, #0c3618 0%, rgba(12,54,24,.85) 45%, rgba(12,54,24,0) 75%); }
  .foot p { margin-left: 0; }
}

@media (min-width: 860px) {
  .hero { padding: 64px 0 24px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .hero-art { width: min(370px, 100%); margin: 0 0 0 auto; }
  .trio-grid { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 34px 0; }
  .trio-item + .trio-item { border-left: 1px solid var(--line); padding-left: 32px; }
  .trio-item { padding-right: 24px; }
  section { padding: 72px 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .card { grid-template-columns: minmax(0, 1fr) 210px; padding: 32px 32px 0; align-items: start; }
  .card .phone-card { width: 210px; margin: 8px 0 -60px; }
  .card-fit { grid-row: span 2; grid-template-columns: 1fr; }
  .card-fit .phone-card { width: 290px; margin-bottom: -150px; }
  .card-private { padding: 28px 32px; }
  .cta-card { min-height: 360px; align-items: center; }
  .cta-copy { padding: 48px 56px; }
}
