:root {
  --blue-1: #3587f6;
  --blue-2: #2b63da;
  --blue-3: #162d8d;
  --yellow: #ffd43b;

  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #566074;
  --line: #e3e8f0;
  --accent: #1f5fd6;
  --shadow: 0 30px 60px -20px rgba(15, 35, 90, 0.35), 0 12px 24px -12px rgba(15, 35, 90, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e14;
    --bg-alt: #10141c;
    --card: #151a23;
    --text: #e9edf3;
    --muted: #9aa3b2;
    --line: #232a36;
    --accent: #6ea8ff;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: var(--accent); }

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  text-wrap: balance;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.hl { color: var(--yellow); }

/* ---------- Devices ---------- */

.phone, .tablet { container-type: inline-size; }
.phone { width: var(--w, 280px); max-width: 100%; }
.tablet { width: var(--w, 480px); max-width: 100%; }

.bezel {
  position: relative;
  background: #0c0e13;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.bezel img { display: block; width: 100%; height: auto; }

.phone .bezel { padding: 3.2cqw; border-radius: 16.5cqw; }
.phone .bezel img { border-radius: 13.3cqw; }
.phone .bezel::after {
  content: "";
  position: absolute;
  top: 5.6cqw;
  left: 50%;
  width: 26cqw;
  height: 7.6cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 99px;
}

.tablet .bezel { padding: 2.8cqw; border-radius: 6cqw; }
.tablet .bezel img { border-radius: 3.4cqw; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, transparent 58%, rgba(255, 255, 255, 0.07) 58.2%, transparent 76%),
    linear-gradient(180deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

.topnav nav { display: flex; gap: 26px; font-size: 0.95rem; }
.topnav nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.topnav nav a:hover { color: #fff; }

.hero-copy {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 48px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 .line { display: block; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  font-weight: 800;
}

.hero .lede {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

/* Apple's "Download on the App Store" badge, as Apple supplies it: never redrawn, at least 40px tall. */
.badge { display: inline-block; line-height: 0; border-radius: 9px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45); }
.badge img { display: block; width: auto; height: 50px; }

.textlink { color: #fff; font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
}
.checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23ffd43b'/%3E%3Cpath d='M5.8 10.3l2.7 2.7 5.7-5.9' fill='none' stroke='%23162d8d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.devices {
  position: relative;
  width: min(760px, 100%);
  height: clamp(300px, 62vw, 540px);
  margin: 56px auto 0;
  overflow: hidden;
}
.devices .tablet { --w: 70%; margin: 0 auto 0 4%; }
.devices .phone { --w: 31%; position: absolute; right: 4%; top: 18%; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--tint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--yellow);
  color: #3a2c00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.feature + .feature { margin-top: 110px; }
.feature:nth-of-type(even) .copy { order: 2; }

.feature h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.feature .copy > p { margin: 18px 0 0; color: var(--muted); font-size: 1.12rem; }

.ticks { margin: 24px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; margin-top: 12px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--tint);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 6.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

.visual {
  display: flex;
  justify-content: center;
  padding: 56px 20px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 62%),
    color-mix(in srgb, var(--tint) 9%, var(--bg));
}
.visual .phone { --w: 290px; }

.t-blue { --tint: #2966f5; }
.t-purple { --tint: #9e52e6; }
.t-green { --tint: #23a257; }
.t-orange { --tint: #f07d12; }
.t-pink { --tint: #e8457f; }
.t-teal { --tint: #11a0ad; }
.t-indigo { --tint: #5c57e6; }
.t-red { --tint: #ec3b3d; }

@media (prefers-color-scheme: dark) {
  .t-blue { --tint: #5b8cff; }
  .t-purple { --tint: #b57cf0; }
  .t-green { --tint: #3cc576; }
  .t-orange { --tint: #ff9a3d; }
}

/* Bento */

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

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 8px 0 0; color: var(--muted); }
.card.tall { grid-row: span 2; padding-bottom: 0; }
.card.tall p { margin-bottom: 28px; }

.card .shot {
  position: relative;
  height: 330px;
  margin-top: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.card .shot .phone { --w: 250px; }

.tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 80%, #fff), var(--tint));
}
.tile svg { width: 24px; height: 24px; }

/* Privacy band */

.band {
  color: #fff;
  background:
    linear-gradient(160deg, transparent 50%, rgba(255, 255, 255, 0.06) 50.2%, transparent 72%),
    linear-gradient(180deg, var(--blue-2), var(--blue-3));
}
.band .section-head p { color: rgba(255, 255, 255, 0.85); }

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises li {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.promises svg { width: 30px; height: 30px; color: var(--yellow); }
.promises strong { display: block; margin-top: 14px; font-size: 1.1rem; }
.promises span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

.band .more-link { text-align: center; margin: 40px 0 0; }
.band .more-link a { color: #fff; font-weight: 600; }

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.plan {
  padding: 34px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}
.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(160deg, var(--blue-1), var(--blue-3)) border-box;
  box-shadow: var(--shadow);
}
.plan h3 { font-size: 1.5rem; font-weight: 800; }
.plan .price { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.plan .ticks li::before { background: var(--accent); }
.plan .note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--yellow) 22%, var(--card));
  font-size: 0.95rem;
}

/* Final call to action */

.final { text-align: center; }
.final img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.final h2 { margin-top: 26px; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.final p { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 1.1rem; }
.final .actions .textlink { color: var(--accent); }

footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card.last { grid-column: 1 / -1; }
  .promises { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .topnav nav a.wide { display: none; }
  .hero-copy { padding-top: 28px; }
  .devices .tablet { --w: 78%; margin-left: 0; }
  .devices .phone { --w: 38%; right: 0; top: 22%; }

  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature + .feature { margin-top: 80px; }
  .feature:nth-of-type(even) .copy { order: 0; }
  .visual { padding: 40px 16px; border-radius: 28px; }
  .visual .phone { --w: 250px; }

  .bento { grid-template-columns: 1fr; }
  .card.tall { grid-row: auto; }
  .card.last { grid-column: auto; }
  .card .shot { height: 300px; }

  .promises { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
}
