:root {
  --ink: #0f1e3d;
  --ink-soft: #4a5873;
  --paper: #ffffff;
  --wash: #f3f6fb;
  --line: #dde4ef;
  --navy: #0a2a6b;
  --blue: #1f5fd6;
  --green: #2fb855;
  --amber: #f39a1e;
  --red: #e5483b;
  --teal: #13b8c8;
  --art-top: #dce8ff;
  --art-bottom: #f5f8fd;
  --bar: #d3dcea;
  --player: #0a2a6b;
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef2f9;
    --ink-soft: #a6b1c6;
    --paper: #0d1424;
    --wash: #141d31;
    --line: #26314a;
    --blue: #6f9cff;
    --art-top: #1a2a52;
    --art-bottom: #101a33;
    --bar: #2e3d60;
    --player: #2b4ea6;
  }
}
:root[data-theme="dark"] {
  --ink: #eef2f9;
  --ink-soft: #a6b1c6;
  --paper: #0d1424;
  --wash: #141d31;
  --line: #26314a;
  --blue: #6f9cff;
  --art-top: #1a2a52;
  --art-bottom: #101a33;
  --bar: #2e3d60;
  --player: #2b4ea6;
}

* { box-sizing: border-box; }

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

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.bar nav a { color: var(--ink-soft); font-size: 15px; margin-left: 22px; }

/* Hero */

.hero {
  background: linear-gradient(170deg, #0a1f4d 0%, #0b3a8f 55%, #2f74e6 100%);
  color: #fff;
  overflow: hidden;
}
.hero .bar .brand, .hero .bar nav a { color: #fff; }
.hero .bar nav a { opacity: 0.8; }

.hero-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 0;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
  max-width: 30em;
}

.lights { display: flex; gap: 8px; margin-bottom: 26px; }
.lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  animation: light-on 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.lights span:nth-child(1) { color: var(--green); animation-delay: 0.1s; }
.lights span:nth-child(2) { color: var(--amber); animation-delay: 0.25s; }
.lights span:nth-child(3) { color: var(--red); animation-delay: 0.4s; }

@keyframes light-on {
  0% { opacity: 0.15; transform: scale(0.6); box-shadow: 0 0 0 currentColor; }
  55% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 16px currentColor; }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px currentColor; }
}

/* The hero's words rise in, then the phone. */
.hero h1 .rise { display: inline-block; }
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
  font-weight: 600;
}

.hero-shot { align-self: end; text-align: center; perspective: 1400px; }
.hero-shot img {
  width: min(360px, 100%);
  display: block;
  margin: 0 auto -6px;
  aspect-ratio: 10 / 13;
  object-fit: cover;
  object-position: top;
  border-radius: 46px 46px 0 0;
  box-shadow: 0 30px 80px rgba(3, 12, 36, 0.55);
  transform-origin: 50% 100%;
  animation: phone-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(80px) rotateX(14deg); }
  to { opacity: 1; transform: none; }
}

/* Features */

.section { padding: 88px 0; }
.section.alt { background: var(--wash); }

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.section .intro { color: var(--ink-soft); font-size: 19px; margin: 0 0 48px; max-width: 36em; }

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

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.wave { display: flex; align-items: center; gap: 2px; height: 12px; margin-bottom: 14px; }
.wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: -0.9s; }
.wave i:nth-child(3) { animation-delay: -0.3s; }
.wave i:nth-child(4) { animation-delay: -0.7s; }
.wave i:nth-child(5) { animation-delay: -0.5s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.way { margin: 0; }
.way figcaption { margin-top: 16px; }
.way figcaption strong { display: block; font-size: 18px; letter-spacing: -0.01em; }
.way figcaption span { color: var(--ink-soft); font-size: 16px; }

.art {
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--art-top), var(--art-bottom));
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}

.art-cards { gap: 10px; align-content: center; }
.mini {
  width: min(230px, 100%);
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(10, 30, 70, 0.08);
}
.mini i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); grid-row: span 2; }
.mini b { height: 6px; border-radius: 3px; background: var(--bar); }
.mini b.short { width: 55%; }

.player {
  width: min(250px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 999px;
  background: var(--player);
  box-shadow: 0 10px 26px rgba(10, 30, 70, 0.25);
}
.play {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}
.play svg { width: 14px; height: 14px; fill: #fff; }
.track { flex: 1; display: flex; align-items: center; gap: 3px; height: 30px; }
.track i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.track i.played { background: #fff; }

.art-rest { align-content: center; gap: 12px; }
.timeline { width: min(250px, 100%); display: flex; gap: 3px; height: 54px; }
.timeline span {
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.timeline .a { background: linear-gradient(180deg, #3d8bff, #1868f0); }
.timeline .b { background: linear-gradient(180deg, #35d2e0, var(--teal)); }
.times {
  width: min(250px, 100%);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.note {
  border-left: 4px solid var(--amber);
  background: var(--paper);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  color: var(--ink-soft);
  max-width: 44em;
}
.note strong { color: var(--ink); }

/* Document pages */

.doc { max-width: 720px; padding: 32px 24px 96px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 24px 0 8px; }
.doc .updated { color: var(--ink-soft); margin: 0 0 36px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .summary {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 18px;
}
.doc .summary p { margin: 0; }


/* Narrow screens */

@media (max-width: 860px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 28px; }
  .hero-shot img { width: min(300px, 80%); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .bar nav a { margin-left: 16px; }
  .hero p.lede { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lights span, .rise, .hero-shot img, .wave i { animation: none; }
}
