:root {
  --foam: #f4fbff;        /* page: soap-white with a hint of aqua */
  --rinse: #e2f4fa;       /* tinted band */
  --ink: #0b2545;         /* deep blue text, not black */
  --muted: #45607a;
  --line: #cfe5ee;
  --blue: #2563eb;        /* brand light accent */
  --link: #1d4fd8;
  --aqua: #5be0f2;
  --cover: #1b1b1b;       /* the app's lock cover */
  --cap: #ffffff;         /* keycap face, from the icon */
  --cap-edge: #c8d7f0;
  --cap-blue-edge: #1a3fa8;
  --bubble: rgba(37, 99, 235, .38);
  --glow: #d4f5fc;
  --font: ui-rounded, "SF Pro Rounded", Nunito, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --foam: #0c1b2c;
    --rinse: #11263b;
    --ink: #eaf7fc;
    --muted: #a3b9cd;
    --line: #22405c;
    --link: #8cbcff;
    --cap: #1d3753;
    --cap-edge: #081525;
    --cap-blue-edge: #0f2c7a;
    --bubble: rgba(91, 224, 242, .55);
    --glow: #12344a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 75% 760px at 50% 0, var(--glow), transparent) no-repeat var(--foam);
  color: var(--ink);
  font: 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
code { font: .86em/1.4 var(--mono); }
h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 32px; }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 19px;
}
.top-link { font-weight: 700; }

/* Hero: bright foam, then the one dark thing on the page, the lock cover. */
main > .hero {
  text-align: center;
  padding-top: 40px;
}
.hero-icon { margin: 0 auto 8px; width: 112px; }
h1 {
  margin: 0 auto;
  font-size: clamp(44px, 8.4vw, 108px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.035em;
}
h1 span { display: inline-block; }
.lede {
  max-width: 38ch; margin: 24px auto 0;
  font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.meta { margin: 24px 0 0; font-weight: 700; }
.note { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* Buttons are keycaps: they press down when you click. */
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  border-radius: 14px;
  background: var(--cap);
  color: var(--ink);
  font-weight: 800; font-size: 18px; text-decoration: none;
  box-shadow: 0 5px 0 var(--cap-edge), 0 14px 24px -12px rgba(11, 37, 69, .45);
  transition: transform .07s ease-out, box-shadow .07s ease-out;
}
.key.primary { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--cap-blue-edge), 0 14px 24px -12px rgba(37, 99, 235, .6); }
.key:hover { filter: brightness(1.04); }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cap-edge); }
.key.primary:active { box-shadow: 0 1px 0 var(--cap-blue-edge); }
.key:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }

.stage { position: relative; max-width: 1040px; margin: 64px auto 0; padding-bottom: 96px; }
.screen {
  padding: 10px;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 50px 90px -40px rgba(11, 37, 69, .55), 0 0 0 1px rgba(11, 37, 69, .08);
}
.screen video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 13px;
  background: var(--cover);
}
.stage figcaption { margin: 20px auto 0; max-width: 46ch; color: var(--muted); font-size: 16px; }

/* Suds on the edge of the screen, drawn like the icon's bubbles. */
.bubble {
  position: absolute; z-index: 1;
  border-radius: 50%;
  border: 3px solid var(--bubble);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 9%, transparent 10%), rgba(91, 224, 242, .16);
  backdrop-filter: blur(2px);
}
.b1 { width: 92px; height: 92px; left: -34px; top: -40px; }
.b2 { width: 40px; height: 40px; left: 60px; top: -62px; }
.b3 { width: 64px; height: 64px; right: -22px; top: 40px; }
.b4 { width: 26px; height: 26px; right: 56px; top: -30px; }

/* Why */
.why, .how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 96px;
  border-top: 1px solid var(--line);
}
.text p { margin: 0 0 14px; color: var(--muted); max-width: 52ch; }
.junk { margin: 0; }
.junk p {
  margin: 0;
  padding: 22px 24px;
  min-height: 170px;
  border-radius: 14px;
  background: var(--cap);
  border: 1px solid var(--line);
  box-shadow: 0 5px 0 var(--cap-edge);
  font: 600 20px/1.45 var(--mono);
  color: var(--ink);
  word-break: break-all;
}
.junk p::after {   /* the caret, still typing */
  content: ""; display: inline-block; width: 2px; height: 1.1em;
  margin-left: 2px; vertical-align: -.2em; background: var(--blue);
}
.junk figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* How it works: number keys for the steps */
.steps { list-style: none; margin: 8px 0 24px; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 22px 64px;
  font-size: 19px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 44px; height: 42px;
  border-radius: 10px;
  background: var(--cap);
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 var(--cap-edge);
  font-weight: 900; font-size: 20px;
}
kbd {
  display: inline-block;
  padding: 1px 9px; margin: 2px 1px;
  border-radius: 7px;
  background: var(--cap);
  border: 1px solid var(--line);
  box-shadow: 0 3px 0 var(--cap-edge);
  font: 800 .85em/1.5 var(--font);
  white-space: nowrap;
}
.stops { font-size: 17px; }
.popover { justify-self: center; width: 346px; filter: drop-shadow(0 30px 40px rgba(11, 37, 69, .25)); }

/* Safe by design */
.safe { padding-block: 96px; border-top: 1px solid var(--line); }
.safe ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.safe h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; font-weight: 800; }
.safe h3::before {   /* one bubble per point */
  content: ""; display: block; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 50%;
  border: 3px solid var(--bubble);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 10%, transparent 11%), rgba(91, 224, 242, .25);
}
.safe p { margin: 0; color: var(--muted); }

/* Privacy */
.privacy { background: var(--rinse); padding-block: 88px; }
.privacy h2 span { display: inline-block; }
.privacy ul { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: 900px; }
.privacy li { padding-left: 30px; position: relative; }
.privacy li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--aqua);
}

/* FAQ */
.faq { padding-block: 96px 72px; }
.faq details { max-width: 776px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  font-weight: 800; font-size: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 900; color: var(--blue); }
details[open] summary::after { content: "\2212"; }
details p, details ol { margin: 0 0 20px; color: var(--muted); }
details ol { padding-left: 1.3em; }
details li { margin-bottom: 8px; }
pre {
  margin: 0 0 22px; padding: 14px 16px;
  border-radius: 10px;
  background: var(--cover); color: #f2f2f2;
  overflow-x: auto;
}
details[open] { padding-bottom: 4px; }

footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
footer p { margin: 0; }
footer .brand { font-size: 17px; }
footer nav { display: flex; gap: 24px; }

/* One moment of motion: the bubbles rise onto the screen. */
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: rise 1.1s cubic-bezier(.2, .8, .3, 1.15) both; }
  .b2 { animation-delay: .15s; }
  .b3 { animation-delay: .3s; }
  .b4 { animation-delay: .45s; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.6); } }
}

@media (max-width: 860px) {
  .wrap { padding-inline: 16px; }
  .why, .how { grid-template-columns: 1fr; gap: 40px; padding-block: 64px; }
  .safe { padding-block: 64px; }
  .safe ul, .privacy ul { grid-template-columns: 1fr; gap: 28px; }
  .privacy ul { gap: 12px; }
  .privacy { padding-block: 64px; }
  .faq { padding-block: 64px 48px; }
  .stage { margin-top: 56px; padding-bottom: 64px; }
  .screen { padding: 6px; border-radius: 16px; }
  .screen video { border-radius: 11px; }
  .b1 { width: 64px; height: 64px; left: -14px; top: -30px; }
  .b2 { left: 44px; top: -44px; width: 28px; height: 28px; }
  .b3 { width: 44px; height: 44px; right: -10px; top: 24px; }
  .b4 { right: 40px; top: -22px; }
  .top-link { font-size: 16px; }
  .junk p { font-size: 17px; min-height: 0; }
}
@media (max-width: 420px) {
  .cta { flex-direction: column; align-items: stretch; }
  .popover { width: 100%; }
}
