/* idapp.io: the app's live sky behind every page (sky.js), white type on
   it, and plain reading panels for the policy and contact pages */
:root {
  --ink: #17171f;
  --muted: #5c5c6c;
  --panel: rgba(255, 255, 255, 0.86);
  --accent: #fbc02d;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ececf3; --muted: #a3a3b5; --panel: rgba(16, 16, 28, 0.82); color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  color: #fff;
  background: #3d8feb;
  -webkit-text-size-adjust: 100%;
}
canvas.sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: pan-y; z-index: 0;
}
main, nav, footer { position: relative; z-index: 1; }
a { color: inherit; }
.shadow, nav, footer, .hero { text-shadow: 0 1px 12px rgba(10, 20, 50, 0.45); }

/* The menu: the mark home on the left, two links on the right */
nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 760px; margin: 0 auto; padding: 18px 16px;
}
nav .home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
nav .home svg { height: 22px; width: auto; fill: #fff; filter: drop-shadow(0 1px 8px rgba(10, 20, 50, 0.35)); }
nav .home .mark { height: 26px; fill: var(--accent); }
nav .links { display: flex; gap: 20px; font-weight: 600; font-size: 16px; }
nav .links a { text-decoration: none; }
nav .links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* The home page: everything in the upper sky, clear of the hills */
.hero {
  min-height: 100svh; padding: 13svh 16px 0; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.hero > * { pointer-events: auto; }
.hero .mark { width: 76px; height: auto; fill: var(--accent); filter: drop-shadow(0 2px 14px rgba(10, 20, 50, 0.35)); }
.hero h1 { margin: 18px 0 0; line-height: 0; }
.hero h1 svg { width: min(300px, 70vw); height: auto; fill: #fff; filter: drop-shadow(0 2px 14px rgba(10, 20, 50, 0.4)); }
.hero .lead { font-size: clamp(20px, 5vw, 26px); font-weight: 600; line-height: 1.3; margin: 22px 0 6px; max-width: 26ch; }
.hero h1 + .sub { margin-top: 22px; }
.hero .sub { margin: 0; max-width: 34ch; opacity: 0.95; }
.soon {
  display: inline-block; margin-top: 26px; padding: 11px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #17171f; text-shadow: none;
  font-weight: 700; font-size: 15px; box-shadow: 0 4px 20px rgba(10, 20, 50, 0.18);
}
.hint { margin-top: 14px; font-size: 13px; opacity: 0.8; }

/* Reading pages: a panel over the sky */
.page { max-width: 760px; margin: 0 auto; padding: 8px 16px 48vh; }
.panel {
  background: var(--panel); color: var(--ink); border-radius: 20px;
  padding: 28px clamp(18px, 5vw, 40px); text-shadow: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 40px rgba(10, 20, 50, 0.18);
}
.panel h1 { font-size: 30px; line-height: 1.2; margin: 0 0 4px; }
.panel h2 { font-size: 19px; margin: 28px 0 6px; }
.panel p, .panel li { margin: 0 0 10px; }
.panel ul { padding-left: 20px; }
.muted { color: var(--muted); }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent);
  color: #17171f; font-weight: 700; text-decoration: none;
}
.qr { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.qr img { background: #fff; border-radius: 10px; padding: 6px; }
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }
@media not ((hover: none) and (pointer: coarse)) { .phone-only { display: none; } }
nav.no-home .home { visibility: hidden; }
.hero { min-height: calc(100svh - 64px); padding-top: 7svh; }
