/* Plottr -- UK Planning Permission Tracker */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2942;
  --navy-mid: #243551;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #bbf7d0;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.04);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--gray-800); line-height: 1.6; background: var(--white); -webkit-font-smoothing: antialiased; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav { background: var(--navy); padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--gray-300); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-cta { background: var(--green); color: var(--navy) !important; padding: 8px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: background .2s; }
.nav-cta:hover { background: var(--green-dark); color: var(--white) !important; }

.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; border-radius: 50%; background: rgba(34,197,94,.05); }
.hero h1 { font-size: 52px; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 span { color: var(--green); }
.hero p { font-size: 20px; color: var(--gray-400); max-width: 560px; margin: 0 auto 40px; line-height: 1.5; }

.search-box { max-width: 520px; margin: 0 auto; display: flex; gap: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.search-box input { flex: 1; padding: 18px 24px; border: none; font-size: 16px; font-family: inherit; outline: none; background: transparent; }
.search-box input::placeholder { color: var(--gray-400); }
.search-box button { padding: 18px 32px; background: var(--green); color: var(--navy); border: none; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .2s; white-space: nowrap; }
.search-box button:hover { background: var(--green-dark); color: var(--white); }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: 13px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; }

/* ── Section defaults ── */
section { padding: 80px 0; }
.section-label { font-size: 13px; font-weight: 600; color: var(--green-dark); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 18px; color: var(--gray-500); max-width: 600px; line-height: 1.6; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.step { text-align: center; padding: 32px 24px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--navy); font-size: 22px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--gray-500); line-height: 1.6; }

/* ── Features / Use Cases ── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.feature-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; transition: box-shadow .2s, border-color .2s; }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--green); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--green-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--green-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--gray-500); line-height: 1.6; }

/* ── Pricing ── */
.pricing-section { background: var(--gray-50); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.price-card { background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px 28px; position: relative; transition: box-shadow .2s; }
.price-card.featured { border-color: var(--green); box-shadow: var(--shadow-lg); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.price-card h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.price-card .price { font-size: 44px; font-weight: 800; color: var(--navy); margin: 16px 0 4px; }
.price-card .price span { font-size: 16px; font-weight: 500; color: var(--gray-500); }
.price-card .price-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 28px; }
.price-card li { padding: 8px 0; font-size: 15px; color: var(--gray-600); display: flex; align-items: flex-start; gap: 10px; }
.price-card li::before { content: ''; display: inline-block; width: 20px; height: 20px; min-width: 20px; background: var(--green-light); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; margin-top: 2px; }
.price-btn { display: block; text-align: center; padding: 14px; border-radius: var(--radius); font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .2s; border: 2px solid var(--gray-200); background: var(--white); color: var(--navy); text-decoration: none; }
.price-btn:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.price-btn.primary { background: var(--green); border-color: var(--green); color: var(--navy); }
.price-btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

/* ── Use Cases ── */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.usecase { text-align: center; padding: 32px 20px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); transition: box-shadow .2s; }
.usecase:hover { box-shadow: var(--shadow-md); }
.usecase-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.usecase-icon svg { width: 28px; height: 28px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.usecase h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.usecase p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }

/* ── FAQ ── */
.faq-section { background: var(--navy); padding: 80px 0; }
.faq-section .section-label { color: var(--green); }
.faq-section .section-title { color: var(--white); }
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--navy-mid); }
.faq-item:first-child { border-top: 1px solid var(--navy-mid); }
.faq-question { width: 100%; background: none; border: none; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; text-align: left; font-family: inherit; }
.faq-question span { font-size: 16px; font-weight: 600; color: var(--white); }
.faq-chevron { color: var(--gray-400); flex-shrink: 0; transition: transform .2s; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 0 20px; }
.faq-answer p { font-size: 15px; color: var(--gray-400); line-height: 1.7; }

/* ── CTA / Waitlist ── */
.cta-section { background: var(--navy); padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: var(--gray-400); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.waitlist-form { max-width: 460px; margin: 0 auto; display: flex; gap: 0; background: var(--navy-light); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--navy-mid); }
.waitlist-form input { flex: 1; padding: 16px 20px; border: none; background: transparent; color: var(--white); font-size: 15px; font-family: inherit; outline: none; }
.waitlist-form input::placeholder { color: var(--gray-500); }
.waitlist-form button { padding: 16px 28px; background: var(--green); color: var(--navy); border: none; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .2s; white-space: nowrap; }
.waitlist-form button:hover { background: var(--green-dark); color: var(--white); }

/* ── Footer ── */
.footer { background: var(--navy); border-top: 1px solid var(--navy-mid); padding: 40px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-left { color: var(--gray-500); font-size: 14px; }
.footer-left strong { color: var(--white); font-weight: 700; }
.footer-left strong span { color: var(--green); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-500); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--gray-300); }

/* ── Results Page ── */
.results-header { background: var(--navy); padding: 24px 0; }
.results-header .container { display: flex; align-items: center; gap: 24px; }
.results-search { flex: 1; max-width: 400px; }
.results-search .search-box { box-shadow: none; border-radius: var(--radius); }
.results-search .search-box input { padding: 12px 16px; font-size: 14px; }
.results-search .search-box button { padding: 12px 20px; font-size: 14px; }
.results-meta { color: var(--gray-400); font-size: 14px; margin-left: auto; }
.results-meta strong { color: var(--white); }

.results-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; min-height: calc(100vh - 180px); }

/* Filters */
.filters { background: var(--gray-50); border-right: 1px solid var(--gray-200); padding: 24px; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 13px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); padding: 6px 0; cursor: pointer; }
.filter-group input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; }
.filter-group select, .filter-group input[type="date"] { width: 100%; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: var(--white); color: var(--gray-700); }
.filter-count { background: var(--gray-200); color: var(--gray-600); font-size: 12px; padding: 1px 8px; border-radius: 10px; margin-left: auto; }

/* Map */
.map-area { background: var(--gray-100); height: 280px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; position: relative; }
.map-placeholder { text-align: center; color: var(--gray-400); }
.map-placeholder svg { width: 48px; height: 48px; stroke: var(--gray-300); fill: none; stroke-width: 1.5; margin-bottom: 8px; }
.map-placeholder p { font-size: 14px; }

/* Application List */
.results-content { background: var(--white); }
.results-list { padding: 16px 24px; }
.results-count { font-size: 14px; color: var(--gray-500); padding: 16px 0 8px; border-bottom: 1px solid var(--gray-200); margin-bottom: 8px; }
.results-count strong { color: var(--navy); }

.app-card { padding: 20px 0; border-bottom: 1px solid var(--gray-100); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.app-card:last-child { border-bottom: none; }
.app-address { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.app-desc { font-size: 14px; color: var(--gray-600); margin-bottom: 10px; line-height: 1.5; }
.app-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--gray-500); }
.app-meta span { display: flex; align-items: center; gap: 4px; }
.app-right { text-align: right; }
.app-distance { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }

.status-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: var(--green-light); color: var(--green-dark); }
.status-refused { background: #fecaca; color: #991b1b; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .results-layout { grid-template-columns: 1fr; }
  .filters { border-right: none; border-bottom: 1px solid var(--gray-200); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .hero { padding: 60px 0 50px; }
  .section-title { font-size: 28px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .search-box { flex-direction: column; }
  .search-box button { padding: 16px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { padding: 16px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer .container { flex-direction: column; gap: 16px; text-align: center; }
  .results-header .container { flex-direction: column; }
  .results-search { max-width: 100%; width: 100%; }
}

/* Stripe checkout buttons & badge */
.stripe-btn { background: #22c55e !important; color: #fff !important; border: none; cursor: pointer; font-size: 1rem; font-weight: 600; padding: 12px 24px; border-radius: 8px; width: 100%; display: block; text-align: center; }
.stripe-btn:hover { background: #16a34a !important; }
.stripe-badge { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 8px; text-align: center; }
