/* ==========================================================================
   OSM Apps — shared stylesheet (index.html, privacy.html, terms.html)
   Mobile-first, vanilla CSS. No build step, no dependencies.
   ========================================================================== */

:root {
  --accent: #2563eb;          /* royal blue */
  --accent-dark: #1d4ed8;     /* hover */
  --ink: #0f172a;             /* near-black text */
  --muted: #64748b;           /* muted gray */
  --border: #e2e8f0;          /* card borders */
  --bg: #ffffff;              /* page background */
  --bg-soft: #f8fafc;         /* footer / soft sections */
  --dark: #0f172a;            /* dark filled button */
  --dark-hover: #1e293b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 8px 28px rgba(15, 23, 42, 0.12);
  --maxw: 1100px;
}

/* ----- Reset / base ----- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Accessible focus ring */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.975rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-disabled {
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

/* ----- Pill badge ----- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
}
.pill-muted { color: var(--muted); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand img { width: 28px; height: 28px; }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* Mobile dropdown panel */
.nav-panel {
  display: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.nav-panel.open { display: block; }
.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}
.nav-panel a {
  display: block;
  padding: 12px 20px;
  color: var(--ink);
  font-weight: 500;
}
.nav-panel a:hover { background: var(--bg-soft); color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 55%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  padding: 56px 20px 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}
.hero .subline {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 320px;
  margin-inline: auto;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ----- Product grid (mobile-first: 1 col) ----- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card h3 { font-size: 1.2rem; margin: 0; }
.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 0 20px;
  flex: 1;
}
.card .btn { width: 100%; }

/* LIVE / status badges */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-live {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.badge-soon {
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

/* Active product card highlight */
.card.is-live { border-color: #bfdbfe; }

/* Coming-soon card dimming */
.card.is-soon { opacity: 0.72; }
.card.is-soon:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); }

/* ----- Get the app ----- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  min-width: 200px;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
/* When a real href is added later, .store-badge[href] re-enables it. */
.store-badge[href] {
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
.store-badge[href]:hover { background: var(--dark-hover); }
.store-badge .store-icon { font-size: 1.5rem; line-height: 1; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .store-text .small { font-size: 0.7rem; }
.store-badge .store-text .big { font-size: 1rem; font-weight: 700; }
.store-badge .soon-tag {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
}
.store-badge[href] .soon-tag { display: none; }

/* ----- About ----- */
.about { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about p {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08rem;
  color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal {
  padding: 48px 0 64px;
}
.legal .container { max-width: 820px; }
.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
}
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  padding-top: 8px;
}
.legal h3 { font-size: 1.05rem; margin-top: 22px; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .intro { font-size: 1.05rem; }
.legal .placeholder { color: var(--accent-dark); font-weight: 600; }
.legal a { text-decoration: underline; }

/* Highlighted callout note inside legal pages */
.legal .legal-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 4px 20px;
  margin: 24px 0;
}
.legal .legal-note p { margin: 16px 0; color: #1e293b; }

/* ==========================================================================
   Responsive — tablet (2 cols) and desktop (4 cols)
   ========================================================================== */
@media (min-width: 600px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  .hero-actions .btn { min-width: 180px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
