/* Lochan marketing site - shared styles. Palette + backdrop + mark mirror
   cloud/viewer/index.html and shared/Sources/Views/Theme.swift so the site,
   the share viewer, and the app read as one brand. */

@font-face {
  font-family: "Fraunces";
  src: url("/fraunces-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --accent: #357a4e;
  --accent-text: #2e5e3a;
  --on-accent: #ffffff;
  --ground: #ffffff;
  --ink: #1a2428;
  --stone: #5e6b70;
  --hairline: rgba(26, 36, 40, 0.1);
  --card: rgba(26, 36, 40, 0.045);
  --card-border: rgba(26, 36, 40, 0.09);
  --accent-soft: rgba(53, 122, 78, 0.12);

  --mark-peak-top: #a8cd96;
  --mark-peak-bottom: #3e7a4e;
  --mark-ridge: #2f6b4a;
  --mark-water: #4f93c4;

  --card-radius: 16px;
  --maxw: 760px;
  --maxw-wide: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco,
    "Cascadia Code", "Roboto Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #79c08f;
    --accent-text: #9ad6ad;
    --on-accent: #ffffff;
    --ground: #0e1416;
    --ink: #e8eded;
    --stone: #a7b4b0;
    --hairline: rgba(232, 239, 237, 0.12);
    --card: rgba(232, 239, 237, 0.05);
    --card-border: rgba(232, 239, 237, 0.1);
    --accent-soft: rgba(121, 192, 143, 0.16);

    --mark-peak-top: #bce0ab;
    --mark-peak-bottom: #4f9163;
    --mark-ridge: #4f9170;
    --mark-water: #6fb0db;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sunlit tarn backdrop (light); moonlit tarn (dark) - from the viewer. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(53, 122, 78, 0.05), transparent 60%),
    radial-gradient(80% 50% at 88% 8%, rgba(53, 122, 78, 0.035), transparent 55%);
}
@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(140% 90% at 50% -10%, #0e1416, #090d11 55%, #06080d 100%);
  }
  body::before {
    background:
      radial-gradient(50% 35% at 78% 6%, rgba(180, 200, 220, 0.07), transparent 60%),
      radial-gradient(90% 55% at 50% 0%, rgba(121, 192, 143, 0.03), transparent 62%);
  }
}

#sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 20px; }

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.mark { width: 38px; height: 32px; flex: 0 0 auto; }
.wordmark { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--stone); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav a.nav-cta { color: var(--accent-text); font-weight: 600; }

/* buttons */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-appstore { display: inline-flex; }
.btn-appstore img { height: 52px; width: auto; display: block; }
.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 16px; color: var(--accent-text);
  text-decoration: none; font-weight: 500;
  padding: 8px 4px;
}
.btn-ghost:hover { color: var(--accent); }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--stone);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero .cta-row { justify-content: center; }

/* sections */
.section { padding: 44px 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section p.body { font-size: 18px; color: var(--stone); margin: 0 0 8px; max-width: 640px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px;
}

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card {
  padding: 20px;
  border-radius: var(--card-radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.card h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--stone); margin: 0; }

/* screenshot band */
.shots {
  display: flex;
  gap: 18px;
  /* Center the shots when they don't fill the row (e.g. 3 of them); `safe`
     falls back to start-alignment when they overflow so the first is never
     clipped and the row stays scrollable on narrow screens. */
  justify-content: safe center;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot { scroll-snap-align: center; flex: 0 0 auto; width: 240px; text-align: center; }
.shot .frame {
  width: 240px; height: 500px;
  border-radius: 34px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 13px; overflow: hidden;
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .cap { font-size: 14px; color: var(--stone); margin-top: 12px; }

/* prose (support + privacy) */
.prose { padding: 40px 0 72px; }
.prose h1 {
  font-family: var(--display); font-size: clamp(32px, 5vw, 44px);
  font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px;
}
.prose .updated { color: var(--stone); font-size: 14px; margin: 0 0 32px; }
.prose h2 {
  font-family: var(--display); font-size: 24px; font-weight: 600;
  margin: 34px 0 10px; letter-spacing: -0.01em;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-bottom-color: var(--accent); }

/* FAQ */
.qa { border-top: 1px solid var(--hairline); padding: 18px 0; }
.qa h3 { font-size: 18px; margin: 0 0 6px; }
.qa p { margin: 0; color: var(--stone); }

/* footer */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 60px;
  margin-top: 40px;
}
footer.site .wrap-wide {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
}
footer.site .flinks { display: flex; gap: 20px; }
footer.site a { color: var(--stone); text-decoration: none; font-size: 14px; }
footer.site a:hover { color: var(--ink); }
footer.site .tag { color: var(--stone); font-size: 13px; opacity: 0.8; }

@media (max-width: 560px) {
  .nav { gap: 16px; }
  .hero { padding: 48px 0 28px; }
}

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