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

:root {
  --teal:       #00a2a0;
  --teal-dark:  #008a88;
  --teal-light: #e0f5f5;
  --dark:       #0d1f2d;
  --text:       #2d2d2d;
  --muted:      #5a6e7c;
  --bg:         #ffffff;
  --bg-alt:     #f7fefe;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Accessibility ───────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ─── Navigation ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,162,160,0.13);
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.nav-logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,162,160,0.35);
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 80px 5% 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 90vh;
  max-width: 1300px;
  margin: 0 auto;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, #c8efef55 0%, transparent 70%);
  pointer-events: none;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 820px;
  margin: 0 0 20px;
}

.hero h1 span { color: var(--teal); }

.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 40px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-badge {
  margin-top: 8px;
}

/* App Store / Play buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.store-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(13,31,45,0.28);
  background: #182f42;
}

.store-btn .store-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.store-btn .store-sublabel {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 400;
}

.store-btn .store-name {
  font-size: 15px;
  font-weight: 700;
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Phone Mockups */
.hero-mockups {
  flex: 1;
  position: relative;
  min-height: 580px;
}

.phone-clip {
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 24px 64px rgba(13,31,45,0.22);
  position: absolute;
}

.phone-clip-front {
  width: 260px;
  height: 564px;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.phone-clip-back {
  width: 230px;
  height: 499px;
  right: 300px;
  top: 50%;
  transform: translateY(-48%) rotate(-4deg);
  z-index: 1;
  opacity: 0.75;
  filter: blur(0.5px);
}

.phone-img {
  display: block;
  max-width: none;
  height: auto;
}

.phone-img-front {
  width: 1085px;
  margin-left: -394px;
  margin-top: -23px;
}

.phone-img-back {
  width: 909px;
  margin-left: -339px;
  margin-top: -6px;
}

/* ─── OpenLaunch Badge ───────────────────────────────────────────── */
.openlaunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal);
  border-radius: 12px;
  color: var(--teal-dark);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.openlaunch-badge:hover {
  background: #c5ecec;
  box-shadow: 0 4px 16px rgba(0,162,160,0.2);
}
.openlaunch-badge svg { flex-shrink: 0; color: var(--teal); }
.openlaunch-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.openlaunch-badge-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--teal);
}
.openlaunch-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
}

/* ─── Features ──────────────────────────────────────────────────── */
.features {
  padding: 100px 5%;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

.features-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-row-text {
  flex: 1;
}

.feature-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--teal-light);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.feature-row h3 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.feature-row-text p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 400px;
}

.feature-row-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.feature-screenshot-wrap {
  position: relative;
  display: inline-flex;
}

.feature-screenshot-wrap::before {
  content: '';
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,162,160,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.feature-screenshot {
  width: 290px;
  height: 410px;
  border-radius: 30px;
  box-shadow: 0 24px 64px rgba(13,31,45,0.16), 0 6px 20px rgba(13,31,45,0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.07);
}

.feature-row--reverse .feature-screenshot img {
  object-position: left center;
}

/* ─── Download CTA ──────────────────────────────────────────────── */
.cta-section {
  background: var(--teal);
  padding: 90px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-bottom: 40px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.store-btn.light {
  background: #fff;
  color: var(--dark);
}

.store-btn.light:hover {
  background: #f0f0f0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* ─── Legal Page Header ──────────────────────────────────────────── */
.legal-header {
  padding: 80px 5% 60px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,162,160,0.08);
}

.legal-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.legal-header p {
  color: var(--muted);
  font-size: 16px;
}

/* ─── Legal Content ──────────────────────────────────────────────── */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 5%;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 20px;
  letter-spacing: -0.5px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin: 28px 0 16px;
}

.legal-content p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: none;
  margin: 16px 0 20px;
  padding-left: 24px;
}

.legal-content li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
}

.legal-content li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 12px;
}

.legal-content a {
  color: var(--teal);
  text-decoration: underline;
  transition: color 0.25s ease;
}

.legal-content a:hover {
  color: var(--teal-dark);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.legal-content th {
  background: var(--bg-alt);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  border: 1px solid rgba(0,162,160,0.12);
}

.legal-content td {
  padding: 12px;
  border: 1px solid rgba(0,162,160,0.12);
  color: var(--text);
}

.legal-content table tr:nth-child(even) {
  background: rgba(0,162,160,0.03);
}

.table-of-contents {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: 12px;
  margin: 30px 0;
  border-left: 4px solid var(--teal);
}

.table-of-contents h3 {
  margin-top: 0;
}

.table-of-contents ol {
  margin: 16px 0;
  padding-left: 24px;
  columns: 2;
  column-gap: 32px;
}

.table-of-contents li {
  margin-bottom: 8px;
  padding-left: 0;
  break-inside: avoid;
}

.table-of-contents li::before {
  content: '';
}

.table-of-contents a {
  color: var(--teal);
  text-decoration: underline;
  font-size: 14px;
}

.important-notice {
  background: rgba(0,162,160,0.08);
  border-left: 4px solid var(--teal);
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 15px;
  color: var(--dark);
}

.important-notice strong {
  color: var(--dark);
}

.last-updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,162,160,0.12);
}

/* ─── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 5%;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  position: relative;
  transition: color 0.25s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { width: 100%; }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ─── Responsive: tablet ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-row,
  .feature-row--reverse {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }
  .feature-row-text p { max-width: 100%; }
  .feature-row-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Responsive: mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 4%; }

  .nav-links a.nav-link { display: none; }

  .hero {
    padding: 50px 4% 40px;
    flex-direction: column;
    min-height: auto;
    text-align: center;
  }

  .hero-text { text-align: center; }

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

  .hero-badge { display: flex; justify-content: center; }

  .phone-clip-back { display: none; }

  .phone-clip {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  .hero-mockups {
    min-height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .features {
    padding: 60px 5%;
  }

  .cta-section {
    padding: 60px 5%;
  }

  .features-list {
    gap: 60px;
  }

  .legal-header {
    padding: 50px 4% 40px;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  .legal-content {
    padding: 40px 4%;
  }

  .legal-content h2 {
    font-size: 20px;
    margin-top: 30px;
  }

  .legal-content h3 {
    font-size: 16px;
  }

  .table-of-contents {
    padding: 16px;
  }

  .table-of-contents ol {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .feature-screenshot { width: 240px; height: 339px; }
}
