/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables - greyLaw theme */
:root {
  --color-primary: #37474F;
  --color-primary-light: #546E7A;
  --color-secondary: #7C4DFF;
  --color-background: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-dim: #F5F5F5;
  --color-text-primary: #212121;
  --color-text-secondary: #616161;
  --color-border: #E0E0E0;
  --radius: 8px;
  --max-width: 960px;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, p {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Atkinson Hyperlegible', Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.header-cta {
  display: flex;
  gap: 12px;
}

.store-badge {
  height: 40px;
}

.store-badge-google {
  height: 60px;
  margin: -10px 0;
}

/* Sections */
section {
  padding: 64px 0;
}

section:nth-child(even) {
  background-color: var(--color-surface);
}

section:nth-child(odd) {
  background-color: var(--color-surface-dim);
}

/* Hero */
.hero {
  padding: 80px 0;
  background-color: var(--color-surface);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 0 0 auto;
}

.hero-screenshot {
  max-width: 280px;
  height: auto;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero .subheadline {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.hero .body {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--color-text-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  text-decoration: none;
}

/* Problem Section */
.problem h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.problem p {
  max-width: 720px;
}

/* Solution Section */
.solution h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.solution .intro {
  margin-bottom: 48px;
  color: var(--color-text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.feature-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.feature-card .subhead {
  font-size: 0.875rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

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

/* Screenshots */
.screenshots-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}

.screenshots-row .screenshot {
  max-width: 240px;
  height: auto;
}

/* Features Grid Section */
.features-list h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 32px;
}

.features-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-item h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

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

/* CTA Section */
section.cta {
  text-align: center;
  background-color: var(--color-primary) !important;
  color: white;
  padding: 80px 0;
}

.cta h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 16px;
}

.cta .cta-subtitle {
  margin-bottom: 32px;
  opacity: 0.9;
  font-size: 1.125rem;
}

.cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.cta-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
  color: white;
}

.cta-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #A5D6A7;
  font-weight: bold;
}

.cta .store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cta .store-badge {
  height: 48px;
}

.cta .store-badge-google {
  height: 72px;
  margin: -12px 0;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-trust span {
  position: relative;
}

.cta-trust span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -14px;
  opacity: 0.5;
}

/* Footer */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.footer a {
  color: var(--color-text-secondary);
}

.footer a:hover {
  color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 16px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-screenshot {
    max-width: 220px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .screenshots-row .screenshot-desktop {
    display: none;
  }

  .screenshots-row .screenshot {
    max-width: 200px;
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding: 48px 0;
  }

  .cta {
    padding: 48px 0;
  }

  .cta .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .cta-benefits {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-trust {
    flex-direction: column;
    gap: 8px;
  }

  .cta-trust span:not(:last-child)::after {
    display: none;
  }
}
