:root {
  --blue: #0a84ff;
  --navy: #061b30;
  --cyan: #94e0ff;
  --ink: #16202b;
  --muted: #59636e;
  --bg: #ffffff;
  --surface: #f3f6f9;
  --line: #e1e7ee;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4aa8ff;
    --ink: #eef2f6;
    --muted: #a3adb8;
    --bg: #0d1116;
    --surface: #161c23;
    --line: #26303a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

@media (max-width: 420px) {
  .site-header nav a[href="#features"], .site-header nav a[href="./#features"] { display: none; }
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  margin-left: 22px;
}

.site-header nav a:hover { color: #fff; }

/* Hero: the calculator display's navy into the app icon's blue */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 128px 0 0;
  background:
    radial-gradient(55% 60% at 90% 40%, rgba(10, 132, 255, 0.55), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(148, 224, 255, 0.35), transparent 70%),
    linear-gradient(160deg, #0b2a4a 0%, var(--navy) 60%, #04121f 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.hero .wrap > * { min-width: 0; }

.hero-copy { padding-bottom: 96px; }

.hero-icon {
  width: 96px;
  border-radius: 22px;
  margin: 0 0 28px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 30em;
  margin: 0 0 32px;
}

.hero code { background: rgba(255, 255, 255, 0.14); color: var(--cyan); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.badge svg { width: 20px; height: 20px; }

/* Phone mockup */

.phone {
  justify-self: center;
  width: min(330px, 80vw);
  margin-bottom: -64px;
  padding: 11px;
  border-radius: 54px;
  background: #0f0e14;
  box-shadow: 0 40px 80px -20px rgba(0, 10, 30, 0.7), inset 0 0 0 2px #2b2934;
}

.phone img { border-radius: 44px; }

/* Sections */

section { padding: 112px 0 72px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.section-head p { color: var(--muted); margin: 0; font-size: 19px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  margin-bottom: 16px;
}

.feature .icon svg { width: 22px; height: 22px; }

.feature h3 { font-size: 19px; margin: 0 0 6px; }

.feature p { margin: 0; color: var(--muted); font-size: 16px; }

code, kbd {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Support band */

.support {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support .wrap { max-width: 720px; }

.support h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.015em; margin: 0 0 14px; }

.support p, .support li { color: var(--muted); }

.support ul { padding-left: 22px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

.site-footer a { color: var(--muted); }

/* Document pages (privacy, terms) */

.doc-hero { padding: 120px 0 56px; }

.doc-hero .wrap { display: block; }

.doc-hero h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 0 0 8px; letter-spacing: -0.02em; }

.doc-hero p { margin: 0; color: rgba(255, 255, 255, 0.85); }

.doc { max-width: 720px; padding: 56px 24px 80px; }

.doc h2 { font-size: 22px; margin: 40px 0 10px; }

.doc p, .doc li { color: var(--ink); }

.doc ul { padding-left: 22px; }

.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.doc .summary p { margin: 0; }

/* Small screens */

@media (max-width: 820px) {
  .hero { padding-top: 104px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .hero-copy { padding-bottom: 32px; }
  .hero-icon { margin: 0 auto 24px; width: 80px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .phone { width: min(280px, 76vw); margin-bottom: -48px; }
  .features { grid-template-columns: 1fr; }
  section { padding: 88px 0 56px; }
  .site-header nav a { margin-left: 16px; }
}
