/* MinMax website, "Night" design (design canvas: Website B · Night). The app's navy-to-purple
   palette on a dark page. Sora is self-hosted so the site loads nothing from third parties. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
}

:root {
  --bg: #060a26;
  --panel: #0b1036;
  --text: #ffffff;
  --soft: #b8c4e6;
  --faint: #8a96bd;
  --link: #a5c4ff;
  --line: rgba(165, 196, 255, 0.18);
  --label: #bfd0f5;
  --rate: #a5f3fc;
  --widget:
    radial-gradient(120% 90% at 65% -10%, rgba(37, 120, 235, 0.85) 0%, rgba(37, 120, 235, 0) 55%),
    radial-gradient(90% 90% at 100% 110%, rgba(108, 66, 200, 0.55) 0%, rgba(108, 66, 200, 0) 50%),
    linear-gradient(120deg, #070d33 0%, #121c6b 55%, #1f2370 100%);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
/* In-page links ("Features", "See how it works") glide down and stop a little above the section. */
section[id] { scroll-margin-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); }
a:hover { color: #ffffff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Glow behind the top of every page. */
.glow {
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(37, 120, 235, 0.55) 0%, rgba(37, 120, 235, 0) 70%),
    radial-gradient(45% 45% at 85% 55%, rgba(140, 43, 226, 0.45) 0%, rgba(140, 43, 226, 0) 70%),
    radial-gradient(40% 40% at 10% 60%, rgba(58, 26, 147, 0.5) 0%, rgba(58, 26, 147, 0) 70%),
    var(--bg);
}

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; font-size: 20px; font-weight: 700; }
.brand:hover { color: #ffffff; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.nav a { padding: 8px 14px; border-radius: 8px; color: #dce5ff; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.nav a.nav-cta { background: #ffffff; color: var(--bg); font-weight: 600; }

/* Hero */
.hero { padding: 88px 0 0; text-align: center; }
.eyebrow { display: inline-block; margin: 0 0 28px; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(165, 196, 255, 0.35); color: var(--link); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.hero h1 { margin: 0 auto; max-width: 900px; font-size: clamp(40px, 7vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; }
.hero .lead { margin: 24px auto 0; max-width: 600px; font-size: 19px; line-height: 1.6; color: var(--soft); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button { padding: 16px 26px; border-radius: 12px; color: #ffffff; text-decoration: none; font-weight: 600; }
.button:hover { color: #ffffff; }
.button-primary { background: linear-gradient(120deg, #2578eb 0%, #5b3bd6 55%, #8c2be2 100%); }
.button-ghost { border: 1px solid rgba(255, 255, 255, 0.22); }

/* Phone: three drawn screens that cross-fade (iPhone lock → home → Android lock → home).
   TODO before launch: replace the drawn screens with real screenshots of the widgets. */
.showcase { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 72px 24px 48px; }
.phone { position: relative; width: 340px; max-width: 100%; height: 600px; border-radius: 52px; border: 10px solid #1a2150; overflow: hidden; background: #0b0f30; }
.screen { position: absolute; inset: 0; opacity: 0; display: flex; flex-direction: column; }
.screen-ios { animation: show-ios 14s infinite; background: linear-gradient(165deg, #3b2f7a 0%, #1c1f52 55%, #0b0f30 100%); align-items: center; padding-top: 14px; }
.screen-home { animation: show-home 14s infinite; background: linear-gradient(170deg, #2a2f6b 0%, #151a45 55%, #0b0f30 100%); padding: 14px 18px 0; gap: 18px; }
.screen-android { animation: show-android 14s infinite; background: linear-gradient(175deg, #1e2a5a 0%, #121638 60%, #080b24 100%); padding: 16px 20px 0; gap: 16px; }
@keyframes show-ios { 0%, 22% { opacity: 1; } 27%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes show-home { 0%, 22% { opacity: 0; } 27%, 47% { opacity: 1; } 52%, 72% { opacity: 0; } 77%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes show-android { 0%, 47% { opacity: 0; } 52%, 72% { opacity: 1; } 77%, 100% { opacity: 0; } }

.island { width: 96px; height: 28px; border-radius: 14px; background: #000000; }
.ios-date { margin-top: 26px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.ios-time { font-size: 84px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: rgba(255, 255, 255, 0.95); }
.ios-widget { margin-top: 18px; width: 200px; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.95); }
.ios-row { display: flex; gap: 8px; align-items: center; }
.ios-row i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.ios-row span { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-row b { font-weight: 700; }
.ios-buttons { margin-top: auto; margin-bottom: 34px; width: 100%; padding: 0 44px; display: flex; justify-content: space-between; }
.ios-buttons i { width: 48px; height: 48px; border-radius: 24px; background: rgba(255, 255, 255, 0.14); }

.status { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.status i { width: 72px; height: 22px; border-radius: 11px; background: #000000; }
.widget { padding: 16px 18px; border-radius: 22px; background: var(--widget); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; text-align: left; }
.widget-small { width: 58%; padding: 14px 16px; border-radius: 26px; background: var(--widget); text-align: left; }
.cat { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; color: var(--label); }
.card { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate { font-size: 12px; color: var(--rate); }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; padding: 0 6px; }
.apps i { aspect-ratio: 1; border-radius: 14px; background: rgba(255, 255, 255, 0.13); }
.apps .app-minmax { background: linear-gradient(120deg, #070d33 0%, #121c6b 55%, #1f2370 100%); display: flex; align-items: center; justify-content: center; }
.apps .app-minmax svg { width: 34px; height: 34px; }

.punch { display: flex; justify-content: center; }
.punch i { width: 14px; height: 14px; border-radius: 7px; background: #000000; }
.android-clock { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 4px; color: rgba(255, 255, 255, 0.92); }
.android-clock b { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.android-clock span { font-size: 13px; }
.screen-android .widget { border-radius: 26px; }
.pages { margin-top: auto; margin-bottom: 22px; display: flex; justify-content: center; gap: 6px; }
.pages i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.pages i:last-child { background: #ffffff; }

.caption { display: grid; justify-items: center; font-size: 14px; color: var(--soft); }
.caption span { grid-area: 1 / 1; opacity: 0; }
.caption .c-ios { animation: show-ios 14s infinite; }
.caption .c-home { animation: show-home 14s infinite; }
.caption .c-android { animation: show-android 14s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen, .caption span { animation: none; }
  .screen-home, .caption .c-home { opacity: 1; }
}

/* Feature tiles */
.section { padding: 112px 0 48px; }
.section h2 { margin: 0 0 40px; max-width: 640px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 380px; min-height: 260px; padding: 32px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.tile-wide { flex: 2 1 560px; }
.tile h3 { margin: 0; font-size: 24px; font-weight: 600; }
.tile p { margin: 0; max-width: 460px; color: var(--soft); line-height: 1.6; }
.tile-blue { background: linear-gradient(160deg, rgba(37, 120, 235, 0.22) 0%, rgba(6, 10, 38, 0) 60%), var(--panel); }
.tile-purple { background: linear-gradient(200deg, rgba(140, 43, 226, 0.28) 0%, rgba(6, 10, 38, 0) 60%), var(--panel); }
.tile-indigo { background: linear-gradient(20deg, rgba(58, 26, 147, 0.35) 0%, rgba(6, 10, 38, 0) 60%), var(--panel); }
.big-number { margin: 0 0 auto !important; font-size: 56px; font-weight: 700; letter-spacing: -0.04em; background: linear-gradient(100deg, #8fb0f5, #c9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* Privacy panel */
.panel { padding: 48px; border-radius: 24px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.panel > div { flex: 1 1 320px; }
.panel h2 { margin: 0 0 12px; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; }
.panel p { margin: 0; color: var(--soft); line-height: 1.6; }
.checks { flex: 1 1 320px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { flex: none; width: 20px; height: 20px; }

/* Legal and support pages */
.page-hero { padding: 64px 0 56px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.doc { max-width: 760px; margin: 0 auto; padding: 0 24px 96px; color: #dce5ff; }
.doc h2 { margin: 40px 0 8px; font-size: 22px; font-weight: 600; color: #ffffff; letter-spacing: -0.01em; }
.doc h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 600; color: #ffffff; }
.doc p, .doc li { line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc strong { color: #ffffff; }
.updated { color: var(--faint); font-size: 14px; }
.summary { padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(37, 120, 235, 0.16) 0%, rgba(6, 10, 38, 0) 70%), var(--panel); }
.summary p { margin: 0; }

/* Footer */
footer { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-inner { padding: 32px 24px 48px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; font-size: 14px; color: var(--faint); }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 24px; }

/* Phones: the hero's own button covers "Get notified", so the nav stays on one line. */
@media (max-width: 560px) {
  .nav .nav-cta { display: none; }
  .nav a { padding: 8px 10px; }
}
