/* Olanava site styles: shared by olanava.com and every app microsite.
   Tokens first; each microsite overrides --accent from its app.json. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --edge: #e7e5e0;
  --fg: #1c1c1e;
  --muted: #5f5f63;
  --faint: #8e8e93;
  --brand: #4a7c59;
  --accent: var(--brand);
  --on-accent: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --space: 16px;
  --max: 960px;
  --prose: 680px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161617; --surface: #1f1f21; --edge: #2e2e31; --fg: #f2f2f4;
    --muted: #a8a8ad; --faint: #7c7c82; --brand: #7fb58f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161617; --surface: #1f1f21; --edge: #2e2e31; --fg: #f2f2f4;
  --muted: #a8a8ad; --faint: #7c7c82; --brand: #7fb58f; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--space); }
.prose { max-width: var(--prose); }

/* Header / footer */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 650; font-size: 17px; }
.wordmark img { width: 28px; height: 28px; border-radius: 22.5%; }
.wordmark .brand-mark { color: var(--brand); flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
main { flex: 1; }
.site-footer { padding: 32px 0 40px; font-size: 13.5px; color: var(--faint); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--faint); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 700; }
.hero p.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 600px; margin: 0; }
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-hero .icon { width: 128px; height: 128px; }
.app-hero h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.app-hero .tagline { font-size: clamp(18px, 2.4vw, 22px); color: var(--fg); margin: 0 0 10px; font-weight: 500; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--edge); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
.btn.secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--edge); }
.meta { font-size: 13px; color: var(--faint); }

/* App icon fallback (monogram) */
.icon { border-radius: 22.5%; box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 6px 18px rgba(0,0,0,.06); }
.monogram { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; }

/* Cards */
.section { padding: 24px 0 56px; }
.section h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
a.card:not(.app-card) { display: block; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--faint); }
.grid.apps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.app-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.app-card .icon { width: 56px; height: 56px; }
.app-card .row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.app-card .row h3 { margin: 0; }
.app-card .plat { font-size: 13px; color: var(--faint); }

/* Prose pages (privacy, terms, support) */
.page { padding: 40px 0 64px; }
.page h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; }
.page .updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.page h2 { font-size: 20px; margin: 36px 0 10px; }
.page p, .page li { color: var(--fg); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.callout { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 18px 20px; font-size: 16.5px; }
details { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius-sm); padding: 14px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Download page */
.dl { padding: 48px 0 40px; text-align: center; }
.dl .brand { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.dl .brand .icon { width: 64px; height: 64px; }
.dl .brand h1 { font-size: 26px; margin: 0; }
.dl .status { margin-top: 28px; font-size: 18px; font-weight: 600; }
.dl .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px auto 0; max-width: 760px; text-align: left; }
.step { background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; padding: 14px; }
.step .num { width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step b.t { display: block; font-size: 14px; margin-top: 10px; }
.step p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.linkbox { margin: 18px auto 0; max-width: 480px; background: var(--surface); border: 1px solid var(--edge); border-radius: 10px; padding: 10px; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.dl .foot { margin-top: 22px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.only-phone, .only-unavailable { display: none; }
body.is-phone .only-mac { display: none; } body.is-phone .only-phone { display: block; }
body.is-unavailable .only-mac, body.is-unavailable .only-phone { display: none; } body.is-unavailable .only-unavailable { display: block; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  .app-hero { grid-template-columns: 1fr; gap: 18px; }
  .app-hero .icon { width: 96px; height: 96px; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; }
}
