:root {
  --navy: #14213D;
  --navy-deep: #0D1526;
  --navy-light: #223566;
  --gold: #E2B33C;
  --gold-ink: #3A2A00;
  --paper: #F5F6FA;
  --card: #FFFFFF;
  --ink: #1B2233;
  --muted: #5B6478;
  --line: #E1E4EC;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 21, 38, .06), 0 8px 24px rgba(13, 21, 38, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1526;
    --card: #15203A;
    --ink: #EEF1F7;
    --muted: #A9B2C6;
    --line: #26324F;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a:not(.btn) { text-decoration: none; opacity: .9; }
.top nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #ECC256; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-small { min-height: 38px; padding: 0 16px; background: var(--gold); color: var(--gold-ink); }

/* Hero */
.hero {
  background: radial-gradient(circle at 75% 40%, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; padding: 56px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .3px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.5px; }
.lead { font-size: 19px; color: #D3D9E8; max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: #AEB7CC; font-size: 14px; margin: 18px 0 0; max-width: 520px; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(340px, 80%); animation: float 5s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } .btn:hover { transform: none; } }

/* Sections */
section { padding: 64px 0; }
section[id] { scroll-margin-top: 64px; } /* clear the sticky header when jumping to #get-the-app */
h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; letter-spacing: -.3px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.features h2 { margin-bottom: 24px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 6px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.ico { font-size: 26px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }

/* App cards */
.apps { background: linear-gradient(var(--paper), var(--paper)); }
.app { display: flex; flex-direction: column; gap: 12px; position: relative; }
.app .btn { align-self: flex-start; }
.app.mine { border: 2px solid var(--gold); }
.badge {
  position: absolute; top: -12px; right: 16px; background: var(--gold); color: var(--gold-ink);
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.meta { font-size: 14px; }
.qr { display: flex; align-items: center; gap: 14px; }
.qr img { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.qr p { font-size: 14px; }
.small-link { font-size: 14px; color: var(--muted); }
details { border-top: 1px solid var(--line); padding-top: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
details ol { margin: 10px 0 8px; padding-left: 20px; color: var(--muted); }
details li { margin-bottom: 6px; }
.fine { font-size: 13px; color: var(--muted); }

/* Device-specific parts (site.js sets body classes) */
.only-mobile-android { display: none !important; }
body.is-android .only-mobile-android { display: inline-flex !important; }
body.is-android .only-desktop, body.is-ios .only-desktop { display: none !important; }

/* Windows: installer steps once the release has a Setup.exe, zip steps until then */
.steps-installer { display: none; }
body.win-installer .steps-installer { display: block; }
body.win-installer .steps-zip { display: none; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq details p { color: var(--muted); margin: 8px 0 4px; }

/* Footer */
.foot { background: var(--navy-deep); color: #C9CFDE; padding: 28px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 18px; }
.foot .fine { color: #8E98AF; }

/* Narrow screens */
@media (max-width: 920px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 700px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .top nav a:not(.btn) { display: none; }
  .cta .btn { width: 100%; }
  section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .grid4 { grid-template-columns: 1fr; }
}

/* Privacy page */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.draft { background: #FFF4D6; color: #5A4300; border: 1px solid #F0D58A; border-radius: 12px; padding: 12px 16px; }
.fill { background: #FFE58F; color: #3A2A00; padding: 0 4px; border-radius: 4px; }
