:root {
  /* Teal is accent/highlight — not large text or button fills at mid luminance */
  --teal: #0d9488;
  --teal-dark: #134e4a;
  --teal-darker: #0f3d38;
  --teal-light: #ccfbf1;
  --slate: #334155;
  --slate-muted: #64748b;
  --surface: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --max-width: 1100px;
  /* WCAG AA: white on --cta-bg ≈ 7.2:1; --cta-bg on white ≈ 7.2:1 for links */
  --cta-bg: #134e4a;
  --cta-bg-hover: #0f3d38;
  --link: #0f5c54;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--slate);
  background: var(--surface);
}

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

a {
  color: var(--link);
  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: 10;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

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

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

.logo svg,
.logo img {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  color: var(--slate-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary,
a.btn-primary {
  background: var(--cta-bg);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(15, 61, 56, 0.28);
}

.btn-primary:hover,
a.btn-primary:hover {
  background: var(--cta-bg-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Hero */

.hero {
  padding: 3.5rem 0 4rem;
}

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

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

.hero .lead {
  font-size: 1.125rem;
  color: var(--slate-muted);
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--teal-light);
  color: var(--cta-bg);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Hero visual (phone + otter + Play CTA) */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: min(320px, 100%);
  padding-top: 0.5rem;
}

.hero-otter {
  position: absolute;
  left: -3.5rem;
  bottom: 5.5rem;
  width: clamp(140px, 38vw, 200px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
}

/* Phone mockup */

.phone-mockup {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
}

.hero-cta--play {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
  margin-bottom: 0;
  justify-content: center;
}

.phone-frame {
  background: #1e293b;
  border-radius: 2rem;
  padding: 0.75rem;
  box-shadow: var(--shadow), 0 24px 48px rgba(15, 23, 42, 0.12);
}

.phone-screen {
  background: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 480px;
}

.mock-header {
  background: var(--cta-bg);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.mock-trip {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.mock-trip strong {
  display: block;
  color: var(--slate);
}

.mock-trip span {
  color: var(--slate-muted);
  font-size: 0.8125rem;
}

.mock-checklist {
  padding: 0.5rem 0;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.mock-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
}

.mock-checkbox.checked {
  background: var(--teal);
  border-color: var(--teal);
  position: relative;
}

.mock-checkbox.checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mock-item.done {
  color: var(--slate-muted);
  text-decoration: line-through;
}

.screenshot-slot {
  margin-top: 1rem;
  text-align: center;
}

.screenshot-slot img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-inline: auto;
}

.screenshot-slot figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-muted);
}

/* App tour */

.tour {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tour-viewer {
  max-width: 420px;
  margin-inline: auto;
}

.tour-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.tour-phone {
  margin: 0;
  background: #1e293b;
  border-radius: 1.75rem;
  padding: 0.625rem;
  box-shadow: var(--shadow), 0 20px 40px rgba(15, 23, 42, 0.1);
}

.tour-phone img {
  width: 100%;
  border-radius: 1.25rem;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top;
  background: var(--white);
}

.tour-phone figcaption {
  margin: 0.875rem 0.25rem 0.25rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.tour-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tour-nav:hover:not(:disabled) {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.tour-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tour-nav svg {
  width: 1.125rem;
  height: 1.125rem;
}

.tour-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
}

.tour-counter {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.tour-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tour-dot {
  width: 0.625rem;
  height: 0.625rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}

.tour-dot.is-active {
  background: var(--teal-dark);
  transform: scale(1.15);
}

/* Sections */

section {
  padding: 4rem 0;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-lead {
  text-align: center;
  color: var(--slate-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

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

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--slate);
}

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

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Privacy block */

.privacy-block {
  background: linear-gradient(135deg, var(--cta-bg-hover) 0%, var(--cta-bg) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.privacy-block h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.privacy-block p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.privacy-block .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.privacy-block .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow);
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0.5rem 0 1rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--slate-muted);
}

.price-card li {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-muted);
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--slate-muted);
}

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

/* Privacy page */

.page-content {
  padding: 3rem 0 4rem;
}

.page-content h1 {
  color: var(--teal-dark);
  margin-top: 0;
}

.page-content h2 {
  color: var(--cta-bg-hover);
  font-size: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}

.page-content ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* Responsive */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-otter {
    left: -0.5rem;
    bottom: 6.5rem;
    width: 130px;
    z-index: 2;
  }

  .nav-links .nav-hide-mobile {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .tour-stage {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tour-nav {
    display: none;
  }

  .tour-meta {
    flex-direction: column;
    align-items: center;
  }
}
