/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2E7D32;
  --primary-light: #60AD5E;
  --primary-dark: #005005;
  --secondary: #E65100;
  --secondary-light: #FF833A;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #212121;
  --text-secondary: #757575;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  max-width: 1.5rem;
  max-height: 1.5rem;
  vertical-align: middle;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-nav:hover {
  background: var(--primary-dark);
}

.lang-switch {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary) !important;
  border: 1.5px solid var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s;
}

.lang-switch:hover {
  color: var(--primary) !important;
  border-color: var(--primary);
}

/* === Hamburger Menu === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.hero-store-badges {
  align-items: center;
  flex-wrap: wrap;
}
.hero-store-badges a {
  display: inline-block;
  transition: transform 0.2s;
}
.hero-store-badges a:hover {
  transform: translateY(-1px);
}
.hero-store-badges img {
  display: block;
  height: 56px;
  width: auto;
}
@media (max-width: 600px) {
  .hero-store-badges img {
    height: 52px;
  }
}

/* === Phone Mockup === */
.hero-visual {
  flex: 0 0 320px;
}

.phone-mockup {
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  padding: 2rem 1rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.notif {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: white;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.notif strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.notif p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Video embed inside phone mockup */
.phone-screen--video {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 16/9 = 1.7778 → 9:16 portrait */
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 26px; /* match phone-screen radius */
}

/* === Features === */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

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

/* === Pricing === */
.pricing {
  background: var(--primary-dark);
  padding: 5rem 1.5rem;
  color: white;
}

.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 3rem;
}

.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.popular {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--secondary);
  border-width: 2px;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
}

.price-period {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  text-align: left;
}

.pricing-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.pricing-card li::before {
  content: "✓ ";
  color: var(--primary-light);
  font-weight: 700;
}

.pricing-footnote {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.pricing-note {
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.65;
  font-style: italic;
}

/* === SEPAQ Waitlist === */
.sepaq-waitlist {
  background: linear-gradient(135deg, #f3f9f4 0%, #e8f5e9 100%);
  padding: 4rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.waitlist-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-content h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.waitlist-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.waitlist-form button {
  flex: 0 0 auto;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-status {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.waitlist-status.success {
  color: var(--primary-dark);
}

.waitlist-status.error {
  color: #c62828;
}

/* === Download === */
.download {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.download h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.download p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--text);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.store-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* === Footer === */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 1.5rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: white;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-links .lang-switch {
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-links .lang-switch:hover {
  color: white !important;
  border-color: white;
}

.footer-copy {
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  opacity: 0.6;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
    gap: 2rem;
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
    width: 280px;
  }

  /* Video hero: move buttons below the video on mobile */
  .hero:has(.phone-screen--video) .hero-content {
    display: contents;
  }

  .hero:has(.phone-screen--video) .hero-content h1 {
    order: 1;
  }

  .hero:has(.phone-screen--video) .hero-subtitle {
    order: 2;
  }

  .hero:has(.phone-screen--video) .hero-visual {
    order: 3;
  }

  .hero:has(.phone-screen--video) .hero-buttons {
    order: 4;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

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

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .btn-nav {
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-links .lang-switch {
    border: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    margin-top: 0;
    align-self: stretch;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* === Install Banner (Android only — iOS handled via apple-itunes-app meta) === */
.install-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.install-banner[hidden] { display: none; }
.install-banner .banner-close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.install-banner .banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}
.install-banner .banner-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.install-banner .banner-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.install-banner .banner-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}
.install-banner .banner-cta {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.install-banner .banner-cta:hover {
  background: var(--primary-dark);
}
