:root {
  --blue-900: #06355f;
  --blue-800: #075985;
  --blue-600: #0874f2;
  --cyan: #27d9e6;
  --teal: #21d7a3;
  --purple: #7447e8;
  --ink: #07162f;
  --muted: #637083;
  --line: #dce6f2;
  --white: #ffffff;
  --soft: #f5f9ff;
  --shadow: 0 24px 70px rgba(7, 22, 47, 0.16);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(5, 44, 80, 0.22);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, box-shadow 220ms ease;
}
.site-header[data-scrolled="true"] { background: rgba(5, 34, 62, 0.88); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 900; letter-spacing: -0.04em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 42px; font-size: 14px; font-weight: 800; }
.nav-links a { opacity: .92; }
.nav-links a:hover { opacity: 1; }
.mobile-menu-button { display: none; border: 0; color: white; background: transparent; font-size: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, #0b7cff, #0a65e8); box-shadow: 0 18px 35px rgba(8, 116, 242, .28); }
.button-small { min-height: 46px; padding-inline: 18px; border-radius: 10px; font-size: 13px; }
.button-ghost { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.button-light { background: white; border-color: #bfd1e4; color: var(--ink); }

.hero {
  position: relative;
  min-height: 780px;
  padding: 128px 0 70px;
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,45,88,.25), rgba(4,34,64,.25)),
    url("images/hero-bg.svg") center bottom / cover no-repeat,
    linear-gradient(135deg, #008fe7 0%, #055188 52%, #042643 100%);
}
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 48px; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 900; color: rgba(255,255,255,.82); }
.eyebrow.blue { color: var(--blue-600); }
h1 { max-width: 560px; margin: 0; font-size: clamp(58px, 8vw, 104px); line-height: .92; letter-spacing: -0.075em; font-weight: 900; }
.hero-subtitle { max-width: 560px; margin: 26px 0 0; color: rgba(255,255,255,.9); font-size: 22px; line-height: 1.45; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.rating-row { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; border: 3px solid white; }
.avatar-stack img:first-child { margin-left: 0; }
.stars { color: #ffd43b; letter-spacing: 2px; font-size: 19px; }
.rating-row strong { color: white; font-size: 15px; }
.phone-cluster { position: relative; min-height: 560px; }
.phone { position: absolute; width: min(300px, 48%); filter: drop-shadow(0 34px 35px rgba(0,0,0,.35)); }
.phone-feed { left: 16%; top: 0; transform: rotate(3deg); z-index: 2; }
.phone-map { right: 4%; top: 34px; transform: rotate(7deg); }

.value-strip {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 30px 26px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.value-strip article { display: flex; align-items: center; gap: 22px; padding: 0 24px; border-right: 1px solid var(--line); }
.value-strip article:last-child { border-right: 0; }
.value-strip img { width: 60px; height: 60px; }
.value-strip h2 { margin: 0; font-size: 20px; }
.value-strip p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; font-weight: 650; }

.section { padding: 86px 0; }
.section-white { background: white; }
.section-dark { background: var(--blue-900); color: white; }
.tight-top { padding-top: 20px; }
.centered { text-align: center; }
.section-title { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.03; letter-spacing: -0.05em; font-weight: 900; }
.section-title.small { font-size: clamp(30px, 3vw, 40px); }

.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 34px; }
.step-card { position: relative; text-align: left; }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; color: white; background: var(--blue-600); border-radius: 999px; font-weight: 900; }
.step-number.green { background: #12aa80; }
.step-number.purple { background: var(--purple); }
.step-card h3 { display: inline-block; margin: 0 0 0 10px; color: var(--blue-600); }
.step-card p { min-height: 48px; margin: 8px 0 20px; color: var(--muted); font-weight: 650; line-height: 1.45; }
.step-card img { width: 250px; margin: 0 auto; filter: drop-shadow(0 24px 24px rgba(7,22,47,.14)); }

.feature-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; margin-top: 32px; }
.feature-card { min-height: 172px; padding: 22px 16px; text-align: center; border: 1px solid #edf3fa; border-radius: 20px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 16px 45px rgba(7,22,47,.06); }
.feature-card img { width: 50px; height: 50px; margin: 0 auto 14px; }
.feature-card h3 { margin: 0; font-size: 15px; }
.feature-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; font-weight: 650; }

.community { padding: 76px 0; background: linear-gradient(180deg, rgba(4,38,67,.88), rgba(3,22,41,.94)), url("images/community-bg.svg") center / cover no-repeat; }
.community-grid { display: grid; grid-template-columns: .9fr 1.35fr; gap: 46px; align-items: center; }
.community h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.055em; }
.community p { color: rgba(255,255,255,.8); line-height: 1.65; font-weight: 650; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.stats-grid strong { display: block; font-size: 28px; }
.stats-grid span { display: block; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial { min-height: 260px; margin: 0; padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.testimonial blockquote { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 700; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.testimonial figcaption img { width: 46px; height: 46px; border-radius: 50%; }
.testimonial figcaption strong, .testimonial figcaption span { display: block; }
.testimonial figcaption span { color: rgba(255,255,255,.7); line-height: 1.35; }
.testimonial figcaption strong { color: white; }
.logo-row { display: grid; grid-template-columns: 1.1fr repeat(6, 1fr); gap: 22px; align-items: center; padding: 34px 0; color: #a2aab5; text-align: center; }
.logo-row span { text-transform: uppercase; letter-spacing: .2em; font-size: 13px; font-weight: 900; }
.logo-row strong { font-size: 26px; font-style: italic; color: #9ca5b0; }

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.faq-list { display: grid; gap: 14px; }
details { border: 1px solid #e3edf7; border-radius: 18px; padding: 20px 22px; background: #fbfdff; }
summary { cursor: pointer; font-weight: 900; font-size: 18px; }
details p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; font-weight: 650; }

.download-cta { padding: 34px 0 58px; }
.cta-card { display: grid; grid-template-columns: 1fr .9fr; gap: 30px; align-items: center; overflow: hidden; padding: 54px 64px; border-radius: 32px; background: linear-gradient(135deg, #effcff, #d6f9f1 44%, #eaf6ff); }
.cta-card h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -0.06em; font-weight: 900; }
.cta-card p:not(.eyebrow) { max-width: 480px; color: var(--muted); font-weight: 650; line-height: 1.55; }
.cta-card img { width: 520px; margin-bottom: -70px; }

.footer { padding: 34px 0 22px; color: white; background: #06355f; }
.footer-grid { display: grid; grid-template-columns: 2.1fr repeat(4, 1fr); gap: 34px; align-items: start; }
.footer .brand { color: white; }
.footer p { max-width: 240px; color: rgba(255,255,255,.75); line-height: 1.55; font-weight: 650; }
.footer h3 { margin: 10px 0 14px; font-size: 15px; }
.footer a:not(.brand) { display: block; margin: 9px 0; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }
.copyright { max-width: none !important; margin: 28px 0 0; text-align: center; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 220ms; }

@media (max-width: 980px) {
  .nav-links, .site-header > .button { display: none; }
  .mobile-menu-button { display: block; }
  .site-header.is-open { border-radius: 28px; align-items: flex-start; }
  .site-header.is-open .nav-links { display: flex; position: absolute; left: 16px; right: 16px; top: 72px; flex-direction: column; gap: 18px; padding: 22px; border-radius: 22px; background: rgba(5,34,62,.96); }
  .hero-grid, .community-grid, .faq-grid, .cta-card { grid-template-columns: 1fr; }
  .hero { padding-top: 116px; }
  .phone-cluster { min-height: 510px; }
  .value-strip { grid-template-columns: 1fr; }
  .value-strip article { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 10px; }
  .value-strip article:last-child { border-bottom: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { text-align: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { font-size: 22px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .phone-cluster { min-height: 400px; }
  .phone { width: 58%; }
  .phone-feed { left: 0; }
  .phone-map { right: 0; }
  .feature-grid, .testimonial-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 34px 22px; }
}

/* Legal pages */
.legal-page { background: var(--soft); }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: var(--blue-900);
  box-shadow: 0 4px 24px rgba(7, 22, 47, 0.12);
}
.legal-header-inner {
  display: flex;
  align-items: center;
}
.legal-header .brand { color: var(--white); font-size: 22px; }
.legal-header .brand img { width: 36px; height: 36px; }
.legal-main { padding: 48px 0 64px; }
.legal-content {
  max-width: 720px;
  padding: 40px 36px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(7, 22, 47, 0.08);
}
.legal-title-block { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-title-block h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--ink);
}
.legal-effective {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}
.legal-content h2 {
  margin: 36px 0 14px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--blue-800);
}
.legal-content h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.legal-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 550;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 550;
}
.legal-content li { margin-bottom: 8px; }
.legal-content li:last-child { margin-bottom: 0; }
.legal-content a {
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--blue-800); }
.legal-footer {
  padding: 24px 0 32px;
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.75);
}
.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 720px;
}
.legal-footer p { margin: 0; font-size: 13px; font-weight: 650; }
.legal-footer nav { display: flex; gap: 20px; }
.legal-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}
.legal-footer a:hover { color: var(--white); }

@media (max-width: 620px) {
  .legal-main { padding: 28px 0 48px; }
  .legal-content { padding: 28px 22px; border-radius: 18px; }
  .legal-footer-inner { flex-direction: column; text-align: center; }
}

/* Embedded mode (mobile app WebView): ?embedded=1 */
html.embedded .site-header,
html.embedded .legal-header,
html.embedded .legal-footer {
  display: none;
}
html.embedded .hero { padding-top: 48px; min-height: auto; }
html.embedded .legal-main { padding-top: 28px; }
@media (max-width: 980px) {
  html.embedded .hero { padding-top: 32px; }
}
@media (max-width: 620px) {
  html.embedded .legal-main { padding-top: 16px; }
}

/* Feature share page (/f/{uuid}/) */
.feature-page {
  background: var(--soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.feature-main {
  flex: 1;
  padding: 32px 0 48px;
}
.feature-container {
  max-width: 720px;
}
.feature-root {
  min-height: 280px;
}
.feature-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(7, 22, 47, 0.08);
}
.feature-hero {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #e8eef5;
}
.feature-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-body {
  padding: 28px 32px 36px;
}
.feature-header {
  margin-bottom: 20px;
}
.feature-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--ink);
}
.feature-park {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}
.feature-map-actions {
  margin-bottom: 24px;
}
.feature-map-actions .button {
  width: 100%;
  max-width: 280px;
}
.feature-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.feature-tile {
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfdff;
}
.feature-tile h2 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-tile p {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.feature-meta {
  margin-bottom: 24px;
  padding-top: 4px;
}
.feature-meta-line {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}
.feature-meta-line strong {
  color: var(--ink);
  font-weight: 800;
}
.feature-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.feature-section h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-800);
}
.feature-section p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}
.feature-coords {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px !important;
}
.feature-state.feature-message {
  text-align: center;
  padding: 56px 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(7, 22, 47, 0.08);
}
.feature-state.feature-message h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.feature-state.feature-message p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}
.feature-skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, #e8eef5 25%, #f4f8fc 50%, #e8eef5 75%);
  background-size: 200% 100%;
  animation: feature-shimmer 1.2s ease-in-out infinite;
}
.feature-hero-skeleton {
  aspect-ratio: 4 / 3;
  border-radius: 24px 24px 0 0;
}
.feature-title-skeleton {
  height: 36px;
  width: 70%;
  margin: 28px 32px 12px;
}
.feature-subtitle-skeleton {
  height: 22px;
  width: 45%;
  margin: 0 32px 20px;
}
.feature-button-skeleton {
  height: 54px;
  width: 200px;
  margin: 0 32px 24px;
}
.feature-tiles-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 32px 32px;
}
.feature-tiles-skeleton .feature-skeleton {
  height: 72px;
}
@keyframes feature-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
html.embedded.feature-page .legal-header,
html.embedded.feature-page .legal-footer,
html.embedded .feature-page .legal-header,
html.embedded .feature-page .legal-footer {
  display: none;
}
html.embedded .feature-main {
  padding-top: 16px;
}
@media (max-width: 620px) {
  .feature-body {
    padding: 22px 20px 28px;
  }
  .feature-tiles,
  .feature-tiles-skeleton {
    grid-template-columns: 1fr;
  }
  .feature-map-actions .button {
    max-width: none;
    width: 100%;
  }
  .feature-title-skeleton,
  .feature-subtitle-skeleton,
  .feature-button-skeleton,
  .feature-tiles-skeleton {
    margin-left: 20px;
    margin-right: 20px;
  }
}
