/* nuvamiapp.com landing — same tokens as the app's glass entry (spec §4.1). */
/* The app's typeface (Public Sans, same files as @expo-google-fonts/public-sans), self-hosted because the CSP allows no third-party origins. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/PublicSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/PublicSans_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/PublicSans_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/PublicSans_700Bold.ttf") format("truetype"); }
:root {
  --navy: #002557;
  --blue: #126cff;
  --scrim: rgba(0, 37, 87, .6);
  --glass: rgba(255, 255, 255, .92);
  --glass-edge: rgba(255, 255, 255, .65);
  --on-scrim: #fff;
  --on-scrim-muted: #d6e0f2;
  --gutter: 16px;
  --scene: 7s;
  --scene-fade: 1.2s;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--on-scrim);
  background: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Backdrop: four photos crossfading with a slow zoom under the navy scrim. */
.backdrop { position: fixed; inset: 0; overflow: hidden; background: var(--navy); z-index: 0; }
.scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--scene-fade) ease-in-out;
}
.scene.is-active { opacity: 1; animation: zoom calc(var(--scene) + var(--scene-fade)) ease-in forwards; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.scrim { position: absolute; inset: 0; background: var(--scrim); }
@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
  .scene.is-active { animation: none; }
}

.nav, .hero, .footer { position: relative; z-index: 1; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* Glass nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; max-width: 1080px; width: 100%; margin: 0 auto; }
.brand img { display: block; height: 22px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.navlinks > a:not(.pill) { color: var(--on-scrim-muted); min-height: 44px; display: inline-flex; align-items: center; }
.navlinks > a:not(.pill):hover { color: var(--on-scrim); }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 24px; padding-bottom: 48px; }
h1 { margin: 0 0 12px; max-width: 14ch; font-size: clamp(30px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.lede { margin: 0 0 32px; max-width: 46ch; color: var(--on-scrim-muted); font-size: clamp(15px, 1.6vw, 18px); }
.actions { display: grid; gap: 12px; width: 100%; max-width: 420px; }
.note { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--on-scrim-muted); font-size: 13px; }
.shield { width: 14px; height: 16px; background: var(--on-scrim); clip-path: polygon(50% 0, 100% 18%, 92% 66%, 50% 100%, 8% 66%, 0 18%); }

/* Pills: the app's Button, primary (white on the scrim) and glass. */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; transition: transform .12s ease, background-color .12s ease;
}
.pill:active { transform: scale(.98); }
.pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pill-primary { background: #fff; border-color: #fff; color: var(--navy); }
.pill-primary:hover { background: #f6f7f4; }
.pill-glass { background: var(--glass); border-color: var(--glass-edge); color: var(--navy); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.pill-glass:hover { background: #fff; }
.navlinks .pill { padding: 0 18px; font-size: 14px; }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1080px; width: 100%; margin: 0 auto; padding-top: 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); color: var(--on-scrim-muted); font-size: 13px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a:hover { color: var(--on-scrim); }

@media (max-width: 560px) {
  .nav { height: 64px; }
  .navlinks > a:not(.pill) { display: none; }
  .actions { max-width: none; }
}
