/* ----------------------------------------------------------------
   Wander — shared styles for landing, support, and privacy pages.
   Brand themes pulled from the App Store marketing screenshots:
   warm photographic hero backgrounds, white SF-Pro headlines with
   subtle shadow, clean cream cards for body content.
   ---------------------------------------------------------------- */

:root {
  --color-text: #1c1c1e;
  --color-text-muted: #4a4a4f;
  --color-bg: #f6f3ee;
  --color-card: #ffffff;
  --color-link: #c45c1e;
  --color-link-hover: #a04915;
  --color-accent: #c45c1e;
  --color-rule: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-device: 0 30px 80px rgba(0, 0, 0, 0.22), 0 10px 24px rgba(0, 0, 0, 0.12);
  --radius-card: 18px;
  --radius-device: 44px;
  --radius-icon: 22.5%;
  --hero-overlay: linear-gradient(180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.20) 35%,
    rgba(0, 0, 0, 0.30) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #ececef;
    --color-text-muted: #b2b2b6;
    --color-bg: #14161a;
    --color-card: #1e2026;
    --color-link: #ff9961;
    --color-link-hover: #ffb88a;
    --color-rule: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-link-hover); text-decoration: underline; }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 480px;
  padding: 96px 24px 80px;
  text-align: center;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  margin: 0 0 12px;
}
.hero p.tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  opacity: 0.96;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  margin: 0 auto 32px;
  max-width: 36ch;
}
.hero .hero-icon {
  width: 132px;
  height: 132px;
  border-radius: var(--radius-icon);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 0 auto 28px;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Compact hero variant for support / privacy pages */
.hero.compact {
  min-height: 280px;
  padding: 80px 24px 56px;
}
.hero.compact .hero-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px;
}

.wrap.narrow { max-width: 720px; }

/* ---------- Cards ---------- */

.card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-card);
}
.card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 22px 0 4px;
}
.card h3:first-of-type { margin-top: 0; }
.card p { margin: 0 0 12px; color: var(--color-text); }
.card p:last-child { margin-bottom: 0; }
.card ol, .card ul { margin: 0 0 12px 24px; }
.card li { margin-bottom: 6px; }
.card a { font-weight: 500; }

/* ---------- Feature sections (landing page) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--color-rule);
}
.feature:last-of-type { border-bottom: none; }
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-image { order: 1; }

.feature-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--color-text);
}
.feature-copy p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 38ch;
}

.feature-image img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-device);
  box-shadow: var(--shadow-device);
}

@media (max-width: 720px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
    text-align: center;
  }
  .feature.reverse .feature-copy,
  .feature.reverse .feature-image { order: initial; }
  .feature-copy p { margin: 0 auto; }
}

/* ---------- Privacy callout strip ---------- */

.privacy-strip {
  background: var(--color-card);
  padding: 56px 24px;
  text-align: center;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
.privacy-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.privacy-strip p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 50ch;
  margin: 0 auto;
}

/* ---------- App Store badge ---------- */

.app-store-badge {
  display: inline-block;
}
.app-store-badge img {
  height: 56px;
  width: auto;
  display: block;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--color-rule);
}
footer p { margin: 0 0 8px; }
footer a { margin: 0 6px; }
footer a:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-block;
}

/* ---------- Top navigation ---------- */
/* Overlays the photographic hero. White text with the same soft shadow
   the hero headline uses, so it stays legible on the sunrise photo. */

.hero .topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
}
.hero .topnav .wordmark {
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.hero .topnav .wordmark:hover {
  color: white;
  opacity: 0.85;
  text-decoration: none;
}
.hero .topnav .nav-links {
  display: flex;
  gap: 22px;
}
.hero .topnav .nav-links a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.hero .topnav .nav-links a:hover {
  color: white;
  opacity: 0.85;
  text-decoration: none;
}
.hero .topnav .nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
@media (max-width: 480px) {
  .hero .topnav { padding: 16px 18px; }
  .hero .topnav .nav-links { gap: 18px; }
  .hero .topnav .nav-links a { font-size: 0.9rem; }
}
