/* milevoy.com - one stylesheet for every page.
   The app's look: "AC-1 glass". Orange on warm white by day, orange on near
   black by night, white glass cards with 22 px corners, Barlow throughout.
   Light and dark follow the phone (prefers-color-scheme); the nav's sun/moon
   button overrides it with html[data-theme]. */

:root {
  color-scheme: light dark;
  --bg: #F5F3EF;
  --bg2: #ECE8E1;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #FFFFFF;
  --chip: rgba(16, 18, 22, 0.05);
  --line: rgba(16, 18, 22, 0.09);
  --line-strong: rgba(16, 18, 22, 0.16);
  --text: #101216;
  --text2: #5F6B7A;
  --accent: #E4561C;          /* fills */
  --accent-text: #BF4612;     /* orange as text: 4.6:1 on the page */
  --accent-soft: rgba(228, 86, 28, 0.10);
  --on-accent: #FFFFFF;
  --glow: rgba(255, 107, 44, 0.22);
  --shadow: 0 18px 50px rgba(16, 18, 22, 0.10);
  --shadow-sm: 0 6px 20px rgba(16, 18, 22, 0.08);
  --radius: 22px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216;
    --bg2: #15181E;
    --card: rgba(24, 27, 33, 0.72);
    --card-solid: #181B21;
    --chip: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #F2F4F7;
    --text2: #9AA3B2;
    --accent: #E4561C;
    --accent-text: #FF6B2C;
    --accent-soft: rgba(255, 107, 44, 0.14);
    --glow: rgba(255, 107, 44, 0.16);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #101216;
  --bg2: #15181E;
  --card: rgba(24, 27, 33, 0.72);
  --card-solid: #181B21;
  --chip: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #F2F4F7;
  --text2: #9AA3B2;
  --accent: #E4561C;
  --accent-text: #FF6B2C;
  --accent-soft: rgba(255, 107, 44, 0.14);
  --glow: rgba(255, 107, 44, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: anywhere;
}
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* Backdrop: two soft orange glows so the glass has something to blur. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::before, .backdrop::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); background: var(--glow);
}
.backdrop::before { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; top: -20vw; right: -14vw; }
.backdrop::after { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; bottom: -16vw; left: -12vw; opacity: 0.8; }

/* Glass */
.glass {
  background: var(--card);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.lockup:hover { text-decoration: none; }
/* The horizontal lockup (img/milevoy-logo-horizontal-*.webp, 1000x219): the
   light one by day, the dark one by night, following the toggle too. */
.lockup img { height: 36px; width: auto; }
.lockup .logo-dark { display: none; }
:root[data-theme="dark"] .lockup .logo-light { display: none; }
:root[data-theme="dark"] .lockup .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lockup .logo-light { display: none; }
  :root:not([data-theme="light"]) .lockup .logo-dark { display: block; }
}
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: 4px; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--chip);
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
@media (max-width: 900px) { .nav-links a.secondary { display: none; } }
@media (max-width: 560px) { .nav-links { gap: 12px; } .nav-links a:not(.nav-cta) { display: none; } .lockup img { height: 32px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 17px; line-height: 1; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); font-size: 19px; }
.btn-primary:hover { background: #D14C15; }
.btn-ghost { background: var(--chip); color: var(--text); border-color: var(--line-strong); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* Store badges: Play now; the App Store link only once stores.js names an id. */
.stores { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stores .badge { display: inline-flex; line-height: 0; border-radius: 10px; transition: transform .15s ease; }
.stores .badge:hover { transform: translateY(-2px); }
.stores .badge img { height: 56px; width: auto; }
.appstore {
  display: inline-flex; align-items: center; gap: 9px; height: 56px; padding: 0 16px 0 12px; border-radius: 10px;
  background: #101216; color: #FFFFFF; border: 1px solid #3A3F4A; text-decoration: none; line-height: 1.05;
}
.appstore:hover { text-decoration: none; transform: translateY(-2px); }
.appstore svg { width: 24px; height: 24px; fill: #FFFFFF; flex: none; }
.appstore small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.appstore span { font-size: 18px; font-weight: 600; }
.soon {
  display: inline-flex; align-items: center; height: 56px; padding: 0 16px; border-radius: 10px;
  border: 1px dashed var(--line-strong); color: var(--text2); font-size: 15px; font-weight: 600;
}
.hide { display: none !important; }

/* Sections */
.section { padding: 72px 0; }
.kicker { color: var(--accent-text); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 12px; }
.lede { color: var(--text2); font-size: 18px; max-width: 620px; margin-bottom: 36px; }
@media (max-width: 640px) { .section { padding: 52px 0; } .lede { font-size: 17px; margin-bottom: 26px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 40px; font-size: 15px; color: var(--text2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.footer a { color: var(--text2); display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--text); }
.footer .lockup { display: inline-flex; margin-bottom: 10px; }
.footer .lockup img { height: 32px; }
.footer .about { max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Long-form pages: Privacy, Terms, Delete Account. The wording on those pages
   is the policy; only its dress lives here. */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; color: var(--text); line-height: 1.75; font-size: 16.5px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--text2); font-size: 15px; margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 18px; margin: 22px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 8px 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal li::marker { color: var(--accent-text); }
.legal strong { color: var(--text); font-weight: 700; }
.legal .highlight {
  background: var(--card); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px;
  padding: 16px 20px; margin: 16px 0 20px; font-size: 15.5px;
}
.legal .highlight p:last-child { margin-bottom: 0; }
.legal a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal-foot { border-top: 1px solid var(--line); padding: 22px 20px; text-align: center; font-size: 14px; color: var(--text2); }
.legal-foot a { color: var(--text2); margin: 0 6px; }
@media (max-width: 480px) { .legal { padding: 32px 16px 56px; font-size: 16px; } .legal h2 { font-size: 22px; } }

/* Centred single card: Join, Sign In. */
.centre { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.card-narrow { width: 100%; max-width: 440px; padding: 30px 24px; text-align: center; }
.card-narrow h1 { font-size: 26px; margin: 0 0 8px; }
.card-narrow p { color: var(--text2); font-size: 15.5px; margin: 0 0 16px; }

.feature .lead{margin:0 0 .6rem;font-weight:600;color:var(--accent)}
