@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap");

:root {
  --bg: #f3f7f5;
  --bg-elevated: #ffffff;
  --text: #0c1814;
  --text-secondary: #3d524a;
  --muted: #5c6f66;
  --line: rgba(12, 24, 20, 0.08);
  --line-strong: rgba(12, 24, 20, 0.14);
  --accent: #0d7a4d;
  --accent-hover: #0a6240;
  --accent-soft: #d4efe3;
  --accent-glow: rgba(13, 122, 77, 0.22);
  --danger: #c62828;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-sm: 0 2px 8px rgba(12, 34, 28, 0.06);
  --shadow-md: 0 12px 40px rgba(12, 34, 28, 0.08);
  --shadow-lg: 0 24px 64px rgba(12, 34, 28, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1140px;
  --pad-x: clamp(18px, 4vw, 40px);
  --header-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.2vw + 0.96rem, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 520px at 100% -15%, var(--accent-glow), transparent 55%),
    radial-gradient(800px 420px at -10% 20%, rgba(212, 239, 227, 0.9), transparent 50%);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-shell {
  width: min(var(--max), 100% - 2 * var(--pad-x));
  margin: 0 auto;
  padding-top: calc(10px + var(--safe-top));
  padding-bottom: calc(32px + var(--safe-bottom));
}

/* ——— Top bar (all pages) ——— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: var(--header-h);
  padding: 10px 18px;
  margin-bottom: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: calc(6px + var(--safe-top));
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 20px;
  height: 14px;
  background: linear-gradient(var(--text) 2px, transparent 0) 0 0 / 100% 6px repeat-y;
  opacity: 0.8;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.topnav a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(13, 122, 77, 0.2);
}

.topnav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topnav a.nav-cta {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.topnav a.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

@media (max-width: 760px) {
  .site-page .nav-toggle {
    display: flex;
  }

  .site-page .topnav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .site-page .topnav.is-open {
    display: flex;
  }

  .site-page .topbar {
    flex-wrap: wrap;
  }

  .site-page .topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* ——— Hero ——— */
.hero {
  margin-bottom: clamp(48px, 9vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid rgba(13, 122, 77, 0.15);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw + 0.6rem, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 1.2vw + 0.95rem, 1.2rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 122, 77, 0.28);
}

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

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: rgba(13, 122, 77, 0.35);
  background: #fafcfb;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 34rem;
}

.store-hint {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

/* ——— Phone mockups ——— */
.hero-shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 300px;
  padding: 12px 0;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  border-radius: 32px;
  padding: 11px;
  background: linear-gradient(160deg, #fff 0%, #e8f2ec 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.phone--back {
  position: absolute;
  right: 4%;
  bottom: 8%;
  max-width: 220px;
  opacity: 0.92;
  transform: rotate(6deg) translateY(8px);
  z-index: 0;
}

.phone--front {
  position: relative;
  z-index: 1;
  transform: rotate(-2deg);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: var(--accent-soft);
}

.phone-placeholder {
  display: none;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: repeating-linear-gradient(
    -45deg,
    rgba(13, 122, 77, 0.06),
    rgba(13, 122, 77, 0.06) 12px,
    rgba(13, 122, 77, 0.02) 12px,
    rgba(13, 122, 77, 0.02) 24px
  );
}

.phone.show-ph .phone-placeholder {
  display: grid;
}

.phone.show-ph img {
  display: none;
}

.hero-blob {
  position: absolute;
  inset: auto 10% 0 10%;
  height: 45%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ——— Sections ——— */
.section {
  margin-bottom: clamp(48px, 8vw, 88px);
}

.section-head {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw + 0.5rem, 2.125rem);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.02rem;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  margin: 0;
  padding: 22px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.feature-card:hover {
  border-color: rgba(13, 122, 77, 0.22);
  box-shadow: var(--shadow-md);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 1.25rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

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

.limits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.limits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.limits-table th,
.limits-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.limits-table th {
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(212, 239, 227, 0.35);
}

.limits-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.limits-table tr:last-child td {
  border-bottom: none;
}

.small-print {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  margin: 0;
  text-align: center;
}

.gallery-card .phone {
  max-width: 220px;
  margin: 0 auto;
  transform: none;
}

.gallery-card .phone--back {
  display: none;
}

.gallery-card figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cta-band {
  text-align: center;
  padding: clamp(28px, 5vw, 44px);
  background: linear-gradient(135deg, rgba(212, 239, 227, 0.55) 0%, var(--bg-elevated) 65%);
  border: 1px solid rgba(13, 122, 77, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 0 0 12px;
}

.cta-band > p {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 46ch;
}

.footer {
  text-align: center;
  margin-top: clamp(40px, 7vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ——— Legal pages ——— */
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-page .back:hover {
  color: var(--accent-hover);
}

.legal-page .content {
  padding: clamp(26px, 4vw, 40px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.legal-page .content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.legal-page .content h2 {
  margin-top: clamp(26px, 3vw, 32px);
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--accent-hover);
}

.legal-page .content p,
.legal-page .content li {
  max-width: 72ch;
}

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

.legal-page .important {
  font-weight: 600;
  color: var(--text);
}

.legal-page .update {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-shots {
    order: -1;
    min-height: 260px;
  }

  .phone--back {
    right: 8%;
    max-width: 200px;
  }

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

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

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .limits-table {
    font-size: 0.82rem;
  }

  .limits-table th,
  .limits-table td {
    padding: 10px 8px;
  }
}
