/* Maestro Switch site: the wand's wardrobe on the web (2026-11-07).
   The skies come from MaestroKit/SkyTheme.swift through sky.js, which
   writes the --sky-* variables (Tonight below, for a page without script).
   Gold is Maestro on every sky. The pieces are the app's: the serif italic
   word, the night capsule with its gold hairline (WandStage lineCapsule),
   the glass capsule (Setup's rows), the flat night card. Shared by every
   page; page-only rules stay inline. */
:root {
  --sky-top: #0d0a24; --sky-mid: #291a5e; --sky-horizon: #5c40b0; --sky-glow: #c9b8ff;
  --sky-ink: #fff5d6; --sky-ink2: #c9b8ff; --sky-shade: #0d0a24;
  --sky-water-top: #291a5e; --sky-water-deep: #0d0a24; --sky-aurora-a: #c9b8ff;
  --gold: #ffc94a; --amber: #e8962a; --cream: var(--sky-ink);
  --sub: rgba(215, 205, 245, 0.82);
  --line: rgba(255, 255, 255, 0.10); --hair: rgba(255, 201, 74, 0.22); --card: rgba(255, 255, 255, 0.045);
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--sky-shade); overflow-x: clip; transition: background-color .6s; }
body {
  overflow-x: clip; color: var(--cream); min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 900px at 50% 0%, color-mix(in srgb, var(--sky-mid) 55%, transparent) 0%, transparent 100%) no-repeat,
    var(--sky-shade);
  font: 17px/1.6 -apple-system, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }

/* The nav floats in a glass capsule, like the wand's room pill. */
nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 18px auto 0; padding: 8px 10px 8px 14px;
  border-radius: 999px; position: relative; z-index: 3;
}
nav.glass, .glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
nav .brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; }
nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
nav .links { display: flex; gap: 4px; }
nav .links a { color: var(--sub); font-size: 15px; padding: 6px 14px; border-radius: 999px; }
nav .links a:hover { color: var(--cream); text-decoration: none; background: rgba(255, 255, 255, 0.06); }
nav .links a[aria-current="page"] { color: var(--cream); background: rgba(255, 255, 255, 0.08); }
nav .links { align-items: center; }
/* The store link in the nav: a small capsule with the gold hairline. */
nav .links a.get { color: var(--gold); border: 0.6px solid var(--hair); min-height: 44px; display: inline-flex; align-items: center; margin-left: 4px; }
nav .links a.get:hover { color: var(--gold); background: rgba(255, 201, 74, 0.10); border-color: rgba(255, 201, 74, 0.6); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
nav .links a:focus-visible, .store-pill:focus-visible { border-radius: 999px; }

section { max-width: 1080px; margin: 0 auto; padding: 90px 24px; }
h2 { font: italic 400 clamp(34px, 4.6vw, 52px)/1.08 var(--serif); color: var(--cream); }
h2 + p { margin-top: 14px; color: var(--sub); font-size: 19px; max-width: 48ch; }
.center { text-align: center; }
/* The pointing animation (assets/point-demo.js). The box is held before the
   script defines the element, so the page does not jump; without script it
   stays an empty night and the caption hides. */
.demo { max-width: 920px; margin: 26px auto 64px; }
.demo figcaption { margin-top: 12px; color: var(--sub); font-size: 15px; }
maestro-point-demo:not(:defined) { display: block; aspect-ratio: 16/9; border-radius: 24px; background: #191243; }
maestro-point-demo:not(:defined) img { display: none; }
.demo:has(maestro-point-demo:not(:defined)) figcaption { visibility: hidden; }
@media (max-width: 603px) { maestro-point-demo:not(:defined) { aspect-ratio: 4/5; } .demo { margin-bottom: 48px; } }
.center h2 + p { margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}

/* The night card: the wand's flat card, a little of the sky showing through. */
.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky-shade) 62%, transparent), color-mix(in srgb, var(--sky-shade) 78%, transparent));
  border: 1px solid var(--line); border-radius: 28px; padding: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card h3 { font: italic 400 28px/1.2 var(--serif); color: var(--gold); }
.card p { margin-top: 10px; color: var(--sub); }

/* The night capsule: the line under the orb (deep fill, gold hairline). */
.capsule {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--sky-shade) 78%, transparent); border: 0.6px solid var(--hair);
  color: var(--cream); font-size: 15px;
}
.capsule.serif { font: italic 17px var(--serif); }

/* The pearl: the orb's gold, as a button. */
.pearl {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; color: #2a1a00; border: 0;
  background: radial-gradient(circle at 35% 28%, #fff4c8, var(--gold) 45%, var(--amber));
  box-shadow: 0 0 40px rgba(255, 190, 70, 0.35), inset 0 -2px 6px rgba(160, 80, 0, 0.25);
}
a.pearl:hover { text-decoration: none; }

/* A store link: the pearl (a live store) or glass (not there yet), with the
   store's glyph. At least 44 px tall for a thumb. */
.store-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: filter .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.store-pill svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.store-pill:hover { text-decoration: none; }
.store-pill.pearl:hover { filter: brightness(1.07); box-shadow: 0 0 56px rgba(255, 190, 70, 0.5), inset 0 -2px 6px rgba(160, 80, 0, 0.25); }
.store-pill.glass { color: var(--cream); font-weight: 500; }
.store-pill.glass:hover { border-color: var(--hair); background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)); }

/* A phone: a real screenshot in a drawn frame. */
.phone { position: relative; width: min(300px, 70vw); }
.frame {
  border-radius: 46px; padding: 9px; background: linear-gradient(160deg, #3c3552, #15121f 40%, #2b2540);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.frame img { display: block; width: 100%; height: auto; border-radius: 38px; }
.phone.android .frame { border-radius: 34px; background: linear-gradient(160deg, #2f3238, #121417 45%, #262a30); }
.phone.android .frame img { border-radius: 26px; }

/* Text pages (support, privacy, press): one readable column. */
.page { max-width: 760px; margin: 0 auto; padding: 50px 24px 80px; }
.page h1 { font: italic 400 clamp(42px, 6vw, 66px)/1.05 var(--serif); }
.page .lede { margin-top: 16px; color: var(--sub); font-size: 19px; }
.page .date { margin-top: 10px; color: var(--sub); font-size: 14px; }
.page h2 { margin-top: 56px; font-size: clamp(28px, 3.6vw, 36px); }
.page h2 + p { max-width: none; font-size: 17px; }
.page p { margin-top: 14px; color: var(--sub); }
.page p strong, .page li strong { color: var(--cream); font-weight: 600; }
.page ul { margin: 12px 0 0; padding-left: 22px; color: var(--sub); }
.page li { margin-top: 6px; }
.page .card { margin-top: 18px; padding: 24px 26px; }
.page .card h3 { font-size: 24px; }
.page .card h3 + p { margin-top: 8px; }
.page .card > p:first-child { margin-top: 0; }

footer { max-width: 1080px; margin: 0 auto; padding: 40px 24px 60px; color: var(--sub); font-size: 14px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
footer a { display: inline-block; padding: 12px 0; color: var(--sub); margin-right: 18px; }

@media (max-width: 820px) {
  nav { margin: 12px 12px 0; }
  nav .links a:not(:last-child) { display: none; }
  section { padding: 64px 22px; }
}
