/* Funtiviti LLC — beach logo palette (navy word + sun/wave) */
:root {
  --word: #074787;
  --frame: #047caf;
  --accent: #FF8048;
  --bg: #f5f9fc;
  --bg-soft: #eef5fa;
  --text: #1a2e28;
  --text-muted: #4a635c;
  --surface: #ffffff;
  --border: rgba(7, 71, 135, 0.18);
  --shadow: 0 12px 40px rgba(7, 71, 135, 0.10);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 960px;
}


@font-face {
  font-family: "Caacupe One";
  src: url("../fonts/CaacupeOne-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Brand wordmarks only — body UI stays on --font */
.brand-wordmark {
  font-family: "Caacupe One", var(--font);
  font-weight: normal;
  letter-spacing: 0.01em;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  /* Sky fallback; photo lives on .bg-motion and scrolls with the document */
  background: #9ec4d8;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

a { color: var(--word); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--word);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ——— Parallax page background (moves slower than foreground) ——— */
.bg-motion {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Tall layer so slower scroll still reveals street by page bottom */
  height: 175vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: #9ec4d8;
  background-image: url("../bg-lake-havasu.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  /* cover = keep aspect ratio (100% 100% was squashing on phones) */
  background-size: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.bg-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../bg-lake-havasu.jpg") center top / cover no-repeat;
}

.bg-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(248, 252, 255, 0.14) 20%,
      rgba(248, 252, 255, 0.42) 36%,
      rgba(248, 252, 255, 0.55) 50%,
      rgba(248, 252, 255, 0.42) 64%,
      rgba(248, 252, 255, 0.14) 80%,
      transparent 100%
    ),
    url("../bg-lake-havasu-soft.jpg") center top / cover no-repeat;
  -webkit-mask-image: radial-gradient(
    ellipse 52% 58% at 50% 32%,
    #000 10%,
    rgba(0, 0, 0, 0.9) 36%,
    rgba(0, 0, 0, 0.3) 58%,
    transparent 74%
  );
  mask-image: radial-gradient(
    ellipse 52% 58% at 50% 32%,
    #000 10%,
    rgba(0, 0, 0, 0.9) 36%,
    rgba(0, 0, 0, 0.3) 58%,
    transparent 74%
  );
}

.bg-shape {
  display: none;
}

@media (max-width: 720px) {
  .bg-motion {
    /* Extra height on portrait phones so cover crop + parallax still reach the street */
    height: 220vh;
    background-position: center 15%;
  }
  .bg-motion::before,
  .bg-motion::after {
    background-position: center 15%;
  }
}


/* Home: logo near top; parallax bg; street under cards as more cards are added */
body.home {
  min-height: max(100vh, 1400px);
}
body.home .hero {
  /* ~1 inch under sticky header */
  padding-top: clamp(0.65rem, 1.2vh, 1rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
body.home .logo-stage-wrap {
  margin-top: 0;
}
body.home .logo-stage {
  /* Nudge slightly left so last "i" sits left of the first tall palm */
  transform: translateX(-3.5%);
}
body.home .logo-hero {
  width: min(400px, 72vw);
}
body.home section[aria-label="Apps"] {
  padding-top: clamp(0.75rem, 3vh, 1.75rem);
  padding-bottom: clamp(7rem, 18vh, 12rem);
}
body.home .site-footer {
  background: rgba(255, 255, 255, 0.55);
}
body.home main {
  padding-bottom: 1rem;
}

/* Other pages: enough scroll for parallax + frost panels */
body:not(.home) {
  min-height: max(100vh, 1100px);
}
body:not(.home) main {
  padding-bottom: 4rem;
}


@media (prefers-reduced-motion: reduce) {
  .bg-motion,
  .bg-motion::before,
  .bg-motion::after,
  .logo-stage,
  .logo-wordmark,
  .logo-hero {
    animation: none !important;
    transition: none !important;
  }
  .bg-motion {
    transform: none !important;
    height: 100vh;
    background-size: cover;
  }
}

/* ——— Chrome ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 249, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--word);
  font-family: "Caacupe One", var(--font);
  font-weight: normal;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-link:hover { color: var(--accent); }
.brand-link img,
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--word);
}
.nav-list a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
}
.nav-short { display: none; }
.nav-long { display: inline; }

/* Phone: smaller menu so all links stay on one line */
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
  }
  .brand-logo {
    height: 44px;
  }
  .nav-list {
    flex-wrap: nowrap;
    gap: 0.2rem 0.4rem;
    justify-content: flex-end;
  }
  .nav-list a {
    font-size: clamp(0.58rem, 2.4vw, 0.78rem);
    padding: 0.15rem 0;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
  .nav-long { display: none; }
  .nav-short { display: inline; }
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 1.25rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--word); }

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* ——— Home hero ——— */
.hero {
  display: block;
  padding: 1.75rem 0 1rem;
  width: 100%;
}

.logo-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
}

.logo-stage {
  position: relative;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 20px;
  transition: transform 0.35s ease;
  background: transparent;
  padding: 0.25rem;
}
.logo-stage:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
.logo-stage:hover .logo-hero {
  transform: scale(1.03);
}

.logo-hero {
  width: min(720px, 100%);
  height: auto;
  user-select: none;
  pointer-events: none;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 10px 28px rgba(16, 64, 128, 0.18));
}

.logo-wordmark {
  margin: 0;
  font-family: "Caacupe One", var(--font);
  font-weight: normal;
  font-size: clamp(3.25rem, 14vw, 7.5rem);
  line-height: 0.95;
  color: var(--word);
  text-align: center;
  user-select: none;
  transition: transform 0.35s ease;
  text-shadow: 0 4px 24px rgba(48, 152, 120, 0.18);
}

.tagline {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}
.tagline .brand-wordmark {
  color: var(--word);
  font-size: 1.45em;
  line-height: 1.2;
}
.tagline-app {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1.4em;
}

/* QR card */
.qr-card {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.qr-card h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--word);
}
.qr-frame {
  position: relative;
  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed var(--frame);
}
.qr-frame img {
  width: 132px;
  height: 132px;
  image-rendering: pixelated;
}
.qr-badge {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.qr-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.qr-note code {
  font-size: 0.8rem;
  background: var(--bg-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--word);
}

/* App card + QR row */
.section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--word);
}
.apps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  max-width: min(920px, 100%);
  margin: 0 auto 0;
}
/* Street band under cards is tuned on body.home above */
section[aria-labelledby="apps-heading"] {
  padding-bottom: 3rem;
}
@media (min-width: 720px) {
  .apps-row {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1rem;
    align-items: stretch;
  }
}
.apps-row .qr-card {
  height: 100%;
  justify-content: center;
  padding: 1rem;
}
.app-card {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
}
.app-feature-graphic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  border-radius: 10px;
  margin: 0.15rem 0 0.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--word), var(--frame), var(--accent));
}
.app-card h3 {
  margin: 0;
  font-family: "Caacupe One", var(--font);
  font-weight: normal;
  font-size: 1.2rem;
  color: var(--word);
}
.app-badge {
  display: inline-block;
  width: fit-content;
  background: rgba(255, 128, 72, 0.15);
  color: #c24e1f;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.app-card p { margin: 0; color: var(--text-muted); }
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ——— Content pages ——— */
.page-header {
  margin-bottom: 1.75rem;
}
.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4.5vw, 2.45rem);
  color: var(--word);
  letter-spacing: -0.02em;
}
.page-header h1 .brand-wordmark {
  font-size: 1.22em;
  color: var(--word);
}
.draft-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 128, 72, 0.12);
  border: 1px solid rgba(255, 128, 72, 0.45);
  color: #9a3d12;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
/* Frosted white glass panels (home cards share this look; prose on content pages) */
.prose {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
}
.page-header h1 {
  color: var(--word);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.35);
}
.prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  color: var(--word);
  text-shadow: none;
}
.prose h2 .brand-wordmark {
  font-size: 1.2em;
  color: var(--word);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--word); }
.prose a:hover { color: var(--accent); }
.prose ul { padding-left: 1.25rem; }
.prose .disclaimer {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.45);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* Forms */
.contact-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
}
.form-card, .info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
}
.form-group .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--word);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--word);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: #267a60; }
.btn:active { transform: scale(0.98); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #e66a33; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-soft);
  color: var(--word);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.email-pill:hover { color: var(--accent); }

.success-panel {
  display: none;
  background: rgba(48, 152, 120, 0.1);
  border: 1px solid var(--frame);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.success-panel.is-visible { display: block; }
.success-panel h2 {
  margin: 0 0 0.5rem;
  color: var(--word);
  font-size: 1.15rem;
}
.success-panel p { margin: 0; color: var(--text-muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}


/* ——— Launch polish: honeypot + home CTA ——— */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-cta {
  margin: 0.35rem 0 0;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: #FBB02F;
  color: #073B7F !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(245, 161, 20, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.cta-button:hover {
  background: #F5A114;
  color: #073B7F !important;
  box-shadow: 0 10px 28px rgba(245, 161, 20, 0.45);
}
.cta-button:active {
  transform: scale(0.98);
}

/* ——— Home: scroll-linked watermark logo → corner logo ——— */
:root { --corner-logo-w: 84px; }
@media (max-width: 720px) { :root { --corner-logo-w: 58px; } }
body.home.has-scroll-logo .brand-link {
  width: var(--corner-logo-w);
  height: var(--corner-logo-w);
  flex: 0 0 auto;
}
body.home.has-scroll-logo .brand-logo { visibility: hidden; }
body.home.has-scroll-logo .logo-hero { opacity: 0; }
.scroll-logo {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 18px rgba(16, 64, 128, 0.14));
}

/* ——— Top light fade (all pages) ——— */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 200px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.96) 0%,
    rgba(255,255,255,0.85) 28%,
    rgba(238,245,250,0.55) 58%,
    rgba(238,245,250,0) 100%);
}
@media (max-width: 720px) { body::before { height: 160px; } }

/* ——— AllTrails-style header/nav ——— */
.site-header {
  z-index: 65;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}
.header-inner { flex-wrap: nowrap; position: relative; }
.primary-nav .nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0; padding: 0; list-style: none;
}
.nav-item { position: relative; }
.nav-toggle,
.primary-nav a.nav-login-link {
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--word);
  background: none;
  border: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
}
.nav-toggle:hover, .primary-nav a.nav-login-link:hover,
.nav-item.is-open > .nav-toggle { background: rgba(7,71,135,0.08); color: var(--word); }
.nav-toggle:focus-visible, .primary-nav a.nav-login-link:focus-visible,
.primary-nav .nav-dropdown a:focus-visible, .nav-burger:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.nav-item.is-current > .nav-toggle { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.caret { transition: transform 0.2s ease; }
.nav-item.is-open .caret { transform: rotate(180deg); }
.nav-login { margin-left: 0.5rem; }
.primary-nav a.nav-login-link { border: 1.5px solid rgba(7,71,135,0.35); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(7,71,135,0.18);
  border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s .15s;
  z-index: 70;
}
.nav-item.is-open > .nav-dropdown {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .15s ease, transform .15s ease;
}
.primary-nav .nav-dropdown a, .nav-sub-disabled {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav .nav-dropdown a[aria-current="page"] { color: var(--word); border-bottom: 0; box-shadow: inset 3px 0 0 var(--accent); }
.primary-nav .nav-dropdown a:hover { background: var(--bg-soft); color: var(--word); }
.nav-sub-disabled { color: var(--text-muted); font-weight: 500; font-style: italic; cursor: default; }
.nav-burger { display: none; }

@media (max-width: 720px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: rgba(255,255,255,0.7); border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; margin-left: auto;
  }
  .nav-burger span { display: block; height: 2px; background: var(--word); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0.65rem; right: 0.65rem;
    background: #fff; border-radius: 14px; border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(7,71,135,0.2);
    padding: 0.5rem; z-index: 70;
    max-height: calc(100vh - 90px); overflow: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-toggle, .primary-nav a.nav-login-link { width: 100%; justify-content: space-between; font-size: 1rem; padding: 0.8rem 0.9rem; border-radius: 10px; }
  .nav-item.is-current > .nav-toggle { box-shadow: none; }
  .nav-dropdown {
    position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0.3rem 0.75rem;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav-item.is-open > .nav-dropdown { display: block; }
  .nav-login { margin: 0.4rem 0 0; }
  .primary-nav a.nav-login-link { justify-content: center; }
}

/* ——— Home: AllTrails-style community / phone section ——— */
.community { padding: 0 1.25rem clamp(6rem, 16vh, 11rem); }
.community-panel {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1rem clamp(1.75rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.25rem);
}
/* Soft feathered frosted backdrop: no hard edges */
.community-panel::before {
  --feather: 90px;
  content: "";
  position: absolute;
  inset: calc(var(--feather) * -0.75);
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.78) 55%, rgba(245,249,252,0.66) 100%);
  /* no backdrop-filter: Chromium shows a seam at the masked blur edge */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent),
    linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent),
    linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  mask-composite: intersect;
  pointer-events: none;
}
@media (max-width: 760px) {
  .community-panel::before { --feather: 56px; inset: -40px -0.9rem; }
}
.community-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--word);
  letter-spacing: -0.02em;
}
.community-title .brand-wordmark { font-size: 1.08em; letter-spacing: 0; font-weight: normal; }
.community-sub { margin: 0 0 1.75rem; font-size: 1.15rem; color: var(--text-muted); }
.community-get { display: flex; align-items: center; gap: 1.25rem; }
.community-qr {
  flex: 0 0 auto;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.community-qr img { display: block; width: 160px; height: 160px; image-rendering: pixelated; }
.store-badges { display: flex; flex-direction: column; gap: 0.6rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 190px;
  height: 56px;
  padding: 0 0.9rem;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.store-badge[data-coming-soon],
.store-badge[data-live="false"] { opacity: 0.82; cursor: default; }
.store-badge[data-coming-soon]:hover,
.store-badge[data-live="false"]:hover { transform: none; }
a.community-qr { display: block; }
a.community-qr[href]:hover { box-shadow: 0 6px 18px rgba(7,71,135,0.15); }
.store-icon { flex: 0 0 auto; width: 26px; height: 26px; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.store-text small { font-size: 0.66rem; letter-spacing: 0.02em; }
.store-text b { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
.store-note { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

.community-phone { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(270px, 70vw);
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b2f36, #0d0f12 60%, #22262c);
  box-shadow:
    0 0 0 2px #3a3f47,
    0 30px 60px rgba(7, 40, 80, 0.35),
    inset 0 0 0 2px #000;
  box-sizing: border-box;
}
.phone-btn { position: absolute; width: 4px; background: #2a2e34; border-radius: 3px; }
.phone-btn-vol1 { left: -5px; top: 22%; height: 9%; }
.phone-btn-vol2 { left: -5px; top: 33%; height: 9%; }
.phone-btn-power { right: -5px; top: 27%; height: 14%; }
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fde7c8;
}
.phone-poster, .phone-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone-poster {
  object-position: 62% 50%;
  animation: phone-kenburns 22s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
}
.phone-video { opacity: 0; transition: opacity .6s ease; }
.phone-video.is-playing { opacity: 1; }
@keyframes phone-kenburns {
  0%   { object-position: 62% 50%;  transform: scale(1.02); }
  100% { object-position: 100% 50%; transform: scale(1.14); }
}
.phone-island {
  position: absolute; top: 10px; left: 50%;
  width: 32%; height: 24px;
  transform: translateX(-50%);
  background: #000; border-radius: 999px;
}
.phone-island::after {
  content: ""; position: absolute; right: 12px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a6b, #0a0d14 70%);
}
@media (prefers-reduced-motion: reduce) { .phone-poster { animation: none; object-position: 30% 50%; } }

@media (max-width: 760px) {
  .community { padding-left: 0.9rem; padding-right: 0.9rem; }
  .community-panel { grid-template-columns: 1fr; text-align: center; padding: 1.75rem 1.1rem 2rem; }
  .community { overflow: hidden; }
  .community-get { flex-direction: column; gap: 1rem; }
  .store-badges { align-items: center; }
  .community-phone { margin-top: 0.5rem; }
  .phone { width: min(240px, 66vw); }
}
.phone-card {
  position: absolute; left: 10px; right: 10px; bottom: 14px;
  padding: 0.65rem 0.75rem; border-radius: 16px;
  background: rgba(255,255,255,0.92); box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  text-align: left; font-size: 0.72rem; color: var(--text); line-height: 1.3;
}
.phone-card b { display: block; color: var(--word); font-size: 0.82rem; }
.phone-card .phone-card-badge { display: inline-block; margin-top: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #fff1e8; color: #c4511d; font-weight: 700; font-size: 0.64rem; }
.phone-top { position: absolute; top: 44px; left: 12px; right: 12px; font-weight: 800; color: #fff; font-size: 0.95rem; text-shadow: 0 1px 6px rgba(0,0,0,0.45); text-align: left; }

/* Real app video playing: hide the mock overlays */
.phone-screen.has-video .phone-top,
.phone-screen.has-video .phone-card,
.phone-screen.has-video .phone-poster { opacity: 0; transition: opacity .6s ease; }


/* ——— Contact form error (Web3Forms) ——— */
.form-error { margin: 0.75rem 0 0; color: #b42318; font-size: 0.95rem; }
.form-error[hidden] { display: none; }

/* ——— Terms page: photo scrolls slowly so its bottom meets the page bottom ——— */
body.parallax-fit .bg-motion,
body.parallax-fit .bg-motion::before,
body.parallax-fit .bg-motion::after {
  background-position: center top;
}
body.parallax-fit .bg-motion { height: 100vh; }
body.parallax-fit .bg-motion.is-fit-cover,
body.parallax-fit .bg-motion.is-fit-cover::before,
body.parallax-fit .bg-motion.is-fit-cover::after {
  background-position: center bottom;
}
