/* Blimp website. One stylesheet for the landing page and the legal pages. */

:root {
  --sky-top: #b8dbff;
  --sky-bottom: #f5faff;
  --page: #f5faff;
  --card: #ffffff;
  --text: #141828;
  --muted: #5b6478;
  --line: rgba(20, 24, 40, 0.1);
  --pill: rgba(255, 255, 255, 0.78);
  --accent: #2f6fed;
  --phone: #0c0d12;
  --shadow: 0 24px 60px rgba(30, 60, 120, 0.18);

  --red: #ff3b30;
  --orange: #ff9500;
  --yellow: #ffcc00;
  --green: #34c759;
  --mint: #00c7be;
  --blue: #007aff;
  --purple: #af52de;
  --gray: #8e8e93;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #141c42;
    --sky-bottom: #05080f;
    --page: #05080f;
    --card: #11162a;
    --text: #f2f4fa;
    --muted: #9aa3ba;
    --line: rgba(255, 255, 255, 0.12);
    --pill: rgba(40, 46, 72, 0.78);
    --accent: #8db4ff;
    --phone: #1b1e2b;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Sky: the same gradient and soft clouds as the app's sign-in screen. */
.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
}
.sky::before, .sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  filter: blur(40px);
  pointer-events: none;
}
.sky::before { width: 520px; height: 220px; left: -160px; top: 60px; }
.sky::after { width: 460px; height: 190px; right: -140px; top: 300px; }
@media (prefers-color-scheme: dark) {
  .sky::before, .sky::after { opacity: 0.04; }
}
.sky > * { position: relative; z-index: 1; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding: 36px 0 88px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; margin-top: 22px; }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); margin-top: 16px; max-width: 30ch; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero-art::before { background: radial-gradient(closest-side, rgba(255, 150, 40, 0.38), rgba(255, 150, 40, 0)); }
}
.hero-art img { position: relative; filter: drop-shadow(0 22px 26px rgba(20, 40, 90, 0.22)); }

.float { animation: float 5.6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(-7px) rotate(-1.2deg); }
  50% { transform: translateY(7px) rotate(1.2deg); }
}

/* The status pill: the brand mark, and a button that shows example Blimps. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  cursor: pointer;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(0.95); }
.pill .label { white-space: nowrap; }
.pill.swap .label, .pill.swap .dot { animation: swap 0.28s ease; }
@keyframes swap {
  from { opacity: 0; filter: blur(6px); transform: scale(0.94); }
  to { opacity: 1; filter: none; transform: none; }
}

.dot {
  position: relative;
  flex: none;
  width: 0.58em;
  height: 0.58em;
  border-radius: 50%;
  background: var(--green);
}
.dot[data-color="red"] { background: var(--red); }
.dot[data-color="orange"] { background: var(--orange); }
.dot[data-color="yellow"] { background: var(--yellow); }
.dot[data-color="green"] { background: var(--green); }
.dot[data-color="mint"] { background: var(--mint); }
.dot[data-color="blue"] { background: var(--blue); }
.dot[data-color="purple"] { background: var(--purple); }
.dot[data-color="gray"] { background: var(--gray); }
.dot[data-color="gold"] { background: linear-gradient(135deg, #ffed9e, #f0b833 55%, #b88014); }
.dot[data-color="holo"] { background: conic-gradient(#ff5fa2, #af52de, #007aff, #00c7be, #ffcc00, #ff5fa2); }

/* A ring spreading from the dot until the first tap: "press here". */
.pill.hint .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: ripple 1.8s ease-out infinite;
}
@keyframes ripple {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(2.4); opacity: 0; }
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-weight: 700;
  font-size: 16px;
}
.note { color: var(--muted); font-size: 15px; }

/* Sections */
section { padding: 84px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 10px; }
.sub { color: var(--muted); font-size: 19px; margin-top: 12px; max-width: 46ch; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 44px 0;
}
.feature.flip .copy { order: 2; }
.feature .sticker { width: 150px; margin-bottom: 14px; filter: drop-shadow(0 10px 14px rgba(20, 40, 90, 0.18)); }
.feature h3 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.feature p { color: var(--muted); font-size: 19px; margin-top: 12px; max-width: 34ch; }
.feature .shot { justify-self: center; }

/* A phone around a screenshot or the video. */
.phone {
  margin: 0;
  width: min(300px, 78vw);
  aspect-ratio: 603 / 1311;
  border: 9px solid var(--phone);
  border-radius: 46px;
  overflow: hidden;
  background: var(--phone);
  box-shadow: var(--shadow);
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }

.player { position: relative; }
.sound {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.72);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* The widgets on their own, as they sit on a Home Screen. */
.widgets { margin: 0; width: min(340px, 84vw); border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); }

.strip {
  display: flex;
  gap: 26px;
  margin-top: 44px;
  padding: 10px 20px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.strip .phone { flex: none; width: 236px; border-width: 7px; border-radius: 38px; scroll-snap-align: center; }
.strip figure { margin: 0; }
.strip figcaption { text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 14px; }
@media (min-width: 1140px) { .strip { justify-content: safe center; } }

.video { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.video .phone { justify-self: center; }

.plus {
  border-radius: 32px;
  padding: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.plus ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 18px; }
.plus li { display: flex; gap: 12px; align-items: baseline; }
.plus li .dot { width: 11px; height: 11px; translate: 0 -1px; }
.plus .stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plus .stickers img { filter: drop-shadow(0 8px 12px rgba(20, 40, 90, 0.16)); }

footer { border-top: 1px solid var(--line); padding: 34px 0 54px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal-head { padding: 28px 0 56px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-top: 26px; }
.legal-head p { color: var(--muted); margin-top: 10px; }
.prose { width: min(720px, 100% - 40px); margin: 0 auto; padding: 48px 0 80px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }
.prose .summary { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; margin-bottom: 36px; }
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 60px; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero-art { order: -1; width: min(420px, 92%); margin: 0 auto; }
  .feature, .video, .plus { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature.flip .copy { order: 0; }
  .feature .sticker { margin-inline: auto; }
  .feature p, .sub { margin-inline: auto; }
  .plus { padding: 32px 24px; }
  .plus li { text-align: left; }
  .plus .stickers { max-width: 320px; margin: 0 auto; }
  section { padding: 60px 0; }
  .top nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .float, .pill.hint .dot::after, .pill.swap .label, .pill.swap .dot { animation: none; }
  html { scroll-behavior: auto; }
}
