/* CarMatch — landing beta (matches mobile theme) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --bg: #F3F7EC;
  --card: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --brand-green: #2F4F3E;
  --brand-green-dark: #1F3A2E;
  --brand-green-light: #EAF3E4;
  --text-on-green: #F6FAF1;
  --soft-green: #F6FAF1;
  --border: #D7DEC8;
  --border-light: #E5EBDD;
  --success: #22C55E;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
  --max-width: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

.site-bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #F7FAF4;
  background-image: url('/assets/wallpaper-automotive-pattern.svg');
  background-repeat: repeat;
  background-size: 512px 512px;
}

.site-bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(47, 79, 62, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 15%, rgba(234, 243, 228, 0.55), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(31, 58, 46, 0.05), transparent 55%),
    linear-gradient(180deg, rgba(247, 250, 244, 0.18) 0%, rgba(232, 239, 224, 0.28) 48%, rgba(247, 250, 244, 0.18) 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 247, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-wordmark {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--brand-green-dark);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.brand-wordmark--lg {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: var(--brand-green);
}

.brand-wordmark--footer {
  font-size: 1.75rem;
  color: #fff;
}

.brand:hover {
  text-decoration: none;
}

.brand:hover .brand-wordmark {
  color: var(--brand-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary,
a.btn-primary,
button.btn-primary {
  background: var(--brand-green);
  color: var(--text-on-green) !important;
  border: 1.5px solid var(--brand-green);
  box-shadow: 0 4px 14px rgba(31, 58, 46, 0.28);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #ffffff !important;
}

.nav-links a.btn-primary {
  color: var(--text-on-green) !important;
}

.nav-links a.btn-primary:hover {
  color: #ffffff !important;
  background: var(--brand-green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--brand-green);
  border: 1.5px solid var(--brand-green);
}

.btn-outline:hover {
  background: var(--brand-green-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow:
    0 4px 24px rgba(17, 24, 39, 0.08),
    0 24px 48px rgba(47, 79, 62, 0.06);
}

.hero-visual-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 60% 40%, rgba(47, 79, 62, 0.15), transparent 65%);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.hero-visual-inner {
  position: relative;
  z-index: 1;
  background: var(--soft-green);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-visual img {
  width: 120px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
}

.hero-visual p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Features */
.features {
  padding: 3rem 0 4rem;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
  max-width: 36rem;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
}

.card-link {
  display: inline-block;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-green);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brand-green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.875rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Beta CTA */
.beta-section {
  padding: 3rem 0 4.5rem;
}

.beta-card {
  background: var(--brand-green);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.beta-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
}

.beta-card .beta-intro {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.beta-form-wrap {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  opacity: 0.95;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand-green-light);
  outline-offset: 1px;
}

.btn-light {
  background: #fff;
  color: var(--brand-green-dark);
  width: 100%;
}

.btn-light:hover {
  background: var(--brand-green-light);
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.form-success {
  display: none;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

.form-success.visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--brand-green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.375rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  opacity: 0.7;
  text-align: center;
}

/* App access section */
.app-section {
  padding: 2rem 0 3rem;
}

.app-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.section-title-left,
.section-subtitle-left {
  text-align: left;
  margin-inline: 0;
}

.steps-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 0.875rem;
  color: var(--text-secondary);
}

.steps-list span {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-mock {
  background: var(--soft-green);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-mock img {
  width: 100px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
}

.app-mock p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* FAQ */
.faq-section {
  padding: 2rem 0 3rem;
}

.faq-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  margin-inline: auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0 1.25rem;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Contact strip */
.contact-strip {
  padding: 0 0 3rem;
}

.contact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--brand-green-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
}

.contact-strip h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.contact-strip p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-actions .btn-primary,
.contact-strip .btn-primary {
  color: var(--text-on-green) !important;
}

.contact-actions .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-green) !important;
  border-color: rgba(246, 250, 241, 0.55);
}

.contact-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.beta-intro-secondary {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.beta-intro-secondary a {
  color: #fff;
  text-decoration: underline;
}

.btn-copy-email {
  margin-left: 0.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.field-error {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: #fecaca;
}

.footer-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.form-success.visible,
.form-success:not([hidden]).visible {
  display: block;
}

.form-success[hidden] {
  display: none !important;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem;
  background: rgba(31, 58, 46, 0.96);
  color: #fff;
  box-shadow: 0 -8px 32px rgba(17, 24, 39, 0.2);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.95;
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-banner .btn-cookie-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
}

.cookie-banner .btn-cookie-accept {
  background: #fff;
  color: var(--brand-green-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
}

.hero-brand-wrap {
  text-align: center;
  padding: 1rem 0;
}

.app-mock .brand-wordmark {
  margin-bottom: 0.5rem;
}

.app-soon-badge {
  margin: 1rem 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  letter-spacing: 0.02em;
}

.app-soon-detail {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-web-link {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-mock-soon {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  max-width: 48rem;
  margin-inline: auto;
}

.legal-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0 0 1.75rem;
}

.legal-body {
  white-space: pre-wrap;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
}

.legal-nav {
  margin-bottom: 1.5rem;
}

.legal-nav a {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .beta-card,
  .features-grid,
  .footer-grid,
  .app-card {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--card);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .site-header .header-inner {
    position: relative;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 2rem;
  }

  .beta-card {
    padding: 1.5rem;
  }

  .legal-card {
    padding: 1.25rem;
  }
}
