/*
Theme Name: TipidEV
Theme URI: https://tipidev.ph
Author: Daryl John Tulay
Description: The website for TipidEV, the EV cost and savings tracker for the Philippines. Includes the landing page, privacy policy and support page. Set the support email and App Store link in Appearance › Customize › TipidEV.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: tipidev
*/

:root {
  --green: #0f9d66;
  --green-dark: #0a7a4f;
  --green-light: #35d692;
  --mint: #e8f8f0;
  --orange: #f5a623;
  --brown: #3b2a20;
  --ink: #14201b;
  --muted: #5b6b64;
  --line: #e3ebe7;
  --bg: #ffffff;
  --soft: #f6faf8;
  --radius: 20px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.current { color: var(--ink); }
.nav .btn { color: #fff; }
@media (max-width: 720px) { .nav a.hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; font-size: .95rem; border: 0; transition: transform .15s ease, background .15s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); background: #000; }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .two { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn .two small { font-weight: 500; font-size: .7rem; opacity: .8; }
.btn.store { padding: 10px 20px 10px 16px; }
.soon { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); color: var(--green-dark); font-weight: 700; padding: 12px 20px; border-radius: 999px; font-size: .95rem; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(15,157,102,.18); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(53,214,146,.22), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(245,166,35,.12), transparent 60%), var(--bg); padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--green-dark); background: var(--mint); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 span { color: var(--green); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 48px 0 64px; } }

/* Phone mockup */
.phone { position: relative; width: 320px; max-width: 100%; margin: 0 auto; background: #0d1512; border-radius: 48px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(10,60,40,.45), 0 0 0 1px rgba(0,0,0,.05); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0d1512; border-radius: 20px; z-index: 2; }
.screen { background: #f2f4f3; border-radius: 38px; overflow: hidden; padding: 54px 14px 18px; min-height: 600px; }
.screen .title { font-size: 1.6rem; font-weight: 800; margin: 0 4px 12px; letter-spacing: -0.02em; }
.card { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.card .label { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card .big { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--green); line-height: 1.1; margin: 4px 0 2px; }
.card .sub { font-size: .78rem; color: var(--muted); }
.card.hero-card { background: linear-gradient(135deg, var(--green-light), var(--green) 55%, var(--green-dark)); color: #fff; }
.card.hero-card .label, .card.hero-card .sub { color: rgba(255,255,255,.85); }
.card.hero-card .big { color: #fff; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tiles .card { margin: 0; }
.tiles .big { font-size: 1.25rem; color: var(--ink); }
.bar { height: 8px; border-radius: 8px; background: #e7eeea; overflow: hidden; margin: 10px 0 6px; display: flex; }
.bar i { display: block; height: 100%; }
.row { display: flex; justify-content: space-between; font-size: .8rem; padding: 6px 0; border-top: 1px solid #f0f3f1; }
.row:first-of-type { border-top: 0; }
.row b { font-weight: 700; }
.sample { text-align: center; font-size: .7rem; color: #8a9891; margin-top: 8px; }
.tarsi-float { position: absolute; width: 96px; right: -28px; bottom: 70px; border-radius: 24px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.35); transform: rotate(8deg); }
@media (max-width: 900px) { .tarsi-float { right: 4px; top: -18px; bottom: auto; width: 72px; } }

/* Sections */
section.block { padding: 88px 0; }
section.block.soft { background: var(--soft); }
.center { text-align: center; }
.kicker { color: var(--green-dark); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.intro { max-width: 720px; margin: 0 auto 48px; }
.intro p { color: var(--muted); font-size: 1.1rem; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.compare .col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: #fff; }
.compare .col.us { border: 2px solid var(--green); box-shadow: 0 20px 40px -24px rgba(15,157,102,.35); }
.compare ul { margin: 12px 0 0; padding: 0; list-style: none; }
.compare li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); }
.compare li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: #e9eeeb; }
.compare .us li { color: var(--ink); }
.compare .us li::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--mint); color: var(--green-dark); }
.feature .ic svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.feature.orange .ic { background: #fff3df; color: #c47a00; }
.feature.blue .ic { background: #e7efff; color: #2457d6; }
.feature.purple .ic { background: #f1e9fb; color: #7a3fc0; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 12px; border-radius: var(--radius); background: rgba(255,255,255,.08); }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat span { opacity: .8; font-size: .95rem; }
.dark { background: linear-gradient(160deg, #0d3b2a, #0a2a1f); color: #fff; }
.dark .kicker { color: var(--green-light); }
.dark .intro p { color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.privacy-band ul { margin: 0; padding: 0; list-style: none; }
.privacy-band li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.privacy-band li:first-child { border-top: 0; }
.privacy-band li svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Final CTA */
.final { text-align: center; }
.final img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 20px 40px -20px rgba(10,60,40,.5); }
.final .cta-row { justify-content: center; }

/* Pages (privacy, support) */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.page-head p { color: var(--muted); margin: 10px 0 0; }
.prose { max-width: 760px; margin: 0 auto; padding: 48px 24px 88px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose .callout, .prose .wp-block-group.callout { background: var(--mint); border-radius: 16px; padding: 20px 24px; margin: 1.5em 0; }
.prose .callout p:last-child { margin: 0; }
.prose code { background: #eef3f0; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.prose summary { cursor: pointer; font-weight: 700; }
.wp-block-button__link { background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 22px; text-decoration: none; font-weight: 700; display: inline-block; }
.wp-block-button__link:hover { color: #fff; background: #000; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
