/*
  re-notify.com, one stylesheet for the landing page, the blog and the legal pages.

  Type: Roboto Flex, the typeface Android itself is set in. Body text uses the
  text cut; headlines use the display cut (optical size 144) a little wider and
  heavier. Both files are subsets built from the OFL release, see fonts/OFL.txt.

  Colour: the blues are the three stops of the app icon. Everything inside .ui
  is a drawing of the app and uses the app's own palette from ui/theme/IosTheme.kt,
  so those values are not page tokens and must follow the app, not the site.
*/
@font-face {
  font-family: "Roboto Flex";
  src: url("/fonts/roboto-flex-text.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Flex Display";
  src: url("/fonts/roboto-flex-display.woff2") format("woff2");
  font-weight: 500 900; font-stretch: 90% 125%; font-style: normal; font-display: swap;
}

:root {
  --sky: #5ac8fa;
  --azure: #2a8cf4;
  --cobalt: #0a5ce8;
  --deep: #0a2e6e;

  --bg: #eef2f8;
  --surface: #ffffff;
  --stage: #f2f2f7;
  --ink: #0a1f44;
  --muted: #4a5876;
  --line: rgba(10, 31, 68, 0.1);
  --accent: #0a5ce8;
  --accent-soft: rgba(10, 92, 232, 0.1);
  --on-accent: #ffffff;
  --hero-a: #1565dc;
  --hero-b: #0a45bc;
  --phone-shadow: 0 40px 70px -30px rgba(6, 30, 84, 0.65), 0 18px 30px -18px rgba(6, 30, 84, 0.45);
  --card-shadow: 0 1px 0 rgba(10, 31, 68, 0.04), 0 18px 40px -28px rgba(10, 46, 110, 0.35);

  --font-text: "Roboto Flex", Roboto, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Roboto Flex Display", "Roboto Flex", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b14;
    --surface: #111827;
    --stage: #000000;
    --ink: #f2f5fa;
    --muted: #a3aec2;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #6cb0ff;
    --accent-soft: rgba(108, 176, 255, 0.14);
    --on-accent: #06142e;
    --hero-a: #1257c8;
    --hero-b: #08348f;
    --phone-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 18px 30px -18px rgba(0, 0, 0, 0.7);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ header */
.site-head {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: inherit; font-family: var(--font-display); font-weight: 700; font-stretch: 108%;
  font-size: 21px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--sky) 0%, var(--azure) 55%, var(--cobalt) 100%);
  color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; fill: currentColor; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 10px;
  color: inherit; font-size: 15px; font-weight: 600;
}
.nav a:hover { text-decoration: none; background: var(--accent-soft); }
.nav a[aria-current="page"] { background: var(--accent-soft); }
.lang {
  display: inline-flex; padding: 3px; border-radius: 10px;
  background: rgba(10, 31, 68, 0.08);
}
.lang a, .lang button {
  padding: 5px 11px; border: 0; border-radius: 8px; background: transparent;
  color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; opacity: 0.72;
}
.lang a:hover, .lang button:hover { text-decoration: none; opacity: 1; }
.lang [aria-current="true"], .lang [aria-pressed="true"] {
  background: var(--surface); color: var(--ink); opacity: 1;
  box-shadow: 0 1px 3px rgba(6, 30, 84, 0.18);
}
@media (prefers-color-scheme: dark) {
  .lang { background: rgba(255, 255, 255, 0.1); }
  .lang [aria-current="true"], .lang [aria-pressed="true"] { background: #f2f5fa; color: #0a1f44; }
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 14px;
  background: var(--cobalt); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn-light { background: #fff; color: #0a3fa8; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-quiet { background: var(--accent-soft); color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------------------------------------------------- hero */
/* The hero is the app icon at page size: the same blue, the same gloss arc
   across the top, the same faint replay arrow behind the subject. */
.hero-shell { padding: 12px 12px 0; }
.hero {
  position: relative; border-radius: 36px; color: #fff;
  padding: 0 clamp(20px, 4vw, 56px);
}
.hero-bg {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(52% 70% at 82% 62%, rgba(90, 200, 250, 0.5), transparent 70%),
    linear-gradient(180deg, var(--hero-a), var(--hero-b));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -50px rgba(10, 69, 188, 0.8);
}
.hero-bg::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -60%; height: 92%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.05);
}
.hero-replay {
  position: absolute; right: -4%; top: 8%; width: min(64%, 760px); aspect-ratio: 1;
  fill: #fff; opacity: 0.09; transform: rotate(-14deg);
}
.hero > :not(.hero-bg) { position: relative; }
.hero .site-head { max-width: var(--wrap); margin: 0 auto; }
.hero .brand-mark { background: #fff; color: var(--cobalt); }
.hero .nav a:hover { background: rgba(255, 255, 255, 0.16); }
.hero .lang { background: rgba(4, 22, 64, 0.28); }
.hero .lang [aria-current="true"] { background: #fff; color: #0a3fa8; }

.hero-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 32px;
  align-items: center;
}
.hero-copy { padding: 44px 0 84px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-stretch: 110%;
  font-size: clamp(40px, 5.3vw, 70px); line-height: 1.02; letter-spacing: -0.015em;
  max-width: 12.5em;
}
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; margin: 22px 0 30px; max-width: 34em; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.86); }

.demo { margin: 0 0 -132px; justify-self: center; }
.under-hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 32px;
  min-height: 132px; padding-top: 26px; align-items: start;
}
.demo-hint { margin: 0; padding-top: 122px; text-align: center; font-size: 14px; color: var(--muted); }

.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.trust a:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------- phone */
.phone {
  --w: 350px;
  position: relative; width: var(--w); padding: 9px; border-radius: 46px;
  background: #0b0d12;
  box-shadow: inset 0 0 0 1.5px #343a48, 0 0 0 1px #05060a, var(--phone-shadow);
}
.phone::before {
  content: ""; position: absolute; z-index: 6; top: 21px; left: 50%;
  width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: #05060a; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone .screen {
  /* a 412 dp wide phone, the size the app's top row is laid out for */
  --dp: calc((var(--w) - 18px) / 412);
  position: relative; height: calc((var(--w) - 18px) * 1.99);
  border-radius: 37px; overflow: hidden; background: var(--a-bg);
}
.phone .screen::after {
  content: ""; position: absolute; left: 50%; bottom: calc(7 * var(--dp));
  width: calc(108 * var(--dp)); height: calc(4 * var(--dp)); margin-left: calc(-54 * var(--dp));
  border-radius: 4px; background: var(--a-label); opacity: 0.55;
}

/* ---------------------------------------------------------- the app, drawn */
/* Sizes are the dp values from the Compose code times --dp, so a drawing can
   be scaled by changing one number. */
.ui {
  --dp: 0.9px;
  --a-bg: #f2f2f7; --a-card: #ffffff; --a-label: #000000; --a-sub: #8a8a8e;
  --a-sep: #c6c6c8; --a-fill: #e9e9eb;
  --a-blue: #007aff; --a-red: #ff3b30; --a-green: #34c759; --a-orange: #ff9500;
  --a-sheet: #ffffff; --a-banner: #ffffff; --a-banner-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-family: var(--font-text); color: var(--a-label); line-height: 1.3; text-align: left;
  font-size: calc(15 * var(--dp));
}
@media (prefers-color-scheme: dark) {
  .ui {
    --a-bg: #000000; --a-card: #1c1c1e; --a-label: #ffffff; --a-sub: #8d8d93;
    --a-sep: #38383a; --a-fill: #2c2c2e;
    --a-blue: #0a84ff; --a-red: #ff453a; --a-green: #30d158; --a-orange: #ff9f0a;
    --a-sheet: #1c1c1e; --a-banner: #2a2a2e; --a-banner-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  }
}
.ui svg { fill: currentColor; flex: none; }

.ui-status {
  display: flex; align-items: center; justify-content: space-between;
  height: calc(34 * var(--dp)); padding: calc(6 * var(--dp)) calc(22 * var(--dp)) 0;
  font-size: calc(13 * var(--dp)); font-weight: 600;
}
.ui-status span { display: inline-flex; align-items: center; gap: calc(5 * var(--dp)); }
.ui-status svg { width: calc(15 * var(--dp)); height: calc(15 * var(--dp)); }
.ui-body { padding: calc(8 * var(--dp)) calc(16 * var(--dp)); display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(8 * var(--dp)); }
.ui-top { display: flex; align-items: center; gap: calc(16 * var(--dp)); padding-top: calc(8 * var(--dp)); color: var(--a-blue); }
.ui-top b { margin-right: auto; color: var(--a-label); font-size: calc(34 * var(--dp)); font-weight: 700; line-height: 1.15; }
.ui-top svg { width: calc(24 * var(--dp)); height: calc(24 * var(--dp)); }
.ui-top span { font-size: calc(17 * var(--dp)); }
.ui-seg { display: flex; padding: calc(3 * var(--dp)); border-radius: calc(10 * var(--dp)); background: var(--a-fill); }
.ui-seg span {
  flex: 1; padding: calc(7 * var(--dp)) 0; border-radius: calc(8 * var(--dp));
  text-align: center; color: var(--a-sub); white-space: nowrap;
}
.ui-seg .on { background: var(--a-card); color: var(--a-label); font-weight: 600; }
.ui-search {
  display: flex; align-items: center; gap: calc(6 * var(--dp));
  padding: calc(7 * var(--dp)) calc(8 * var(--dp)); border-radius: calc(10 * var(--dp));
  background: var(--a-fill); color: var(--a-sub); font-size: calc(17 * var(--dp));
}
.ui-search svg { width: calc(18 * var(--dp)); height: calc(18 * var(--dp)); }
.ui-opened { display: flex; align-items: center; padding: calc(6 * var(--dp)) 0; font-size: calc(20 * var(--dp)); font-weight: 600; }
.ui-opened svg { width: calc(24 * var(--dp)); height: calc(24 * var(--dp)); color: var(--a-blue); }
.ui-action {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12 * var(--dp)) calc(16 * var(--dp)); border-radius: calc(12 * var(--dp));
  background: var(--a-card); color: var(--a-blue); font-size: calc(17 * var(--dp));
}
.ui-action.red { color: var(--a-red); }
.ui-action svg { width: calc(16 * var(--dp)); height: calc(16 * var(--dp)); color: var(--a-sub); }
.ui-label { padding: calc(12 * var(--dp)) 0 0 calc(16 * var(--dp)); color: var(--a-sub); font-size: calc(13 * var(--dp)); }

.ui-icon {
  display: grid; place-items: center; flex: none;
  width: calc(34 * var(--dp)); height: calc(34 * var(--dp)); border-radius: 24%;
  background: var(--tile, var(--a-blue)); color: #fff;
}
.ui-icon svg { width: 58%; height: 58%; }
.ui-icon.s { width: calc(18 * var(--dp)); height: calc(18 * var(--dp)); }
.ui-icon.m { width: calc(22 * var(--dp)); height: calc(22 * var(--dp)); }
.tile-chat { --tile: #34c759; } .tile-mail { --tile: #ff3b30; } .tile-bank { --tile: #5856d6; }
.tile-shop { --tile: #ff9500; } .tile-music { --tile: #ff2d55; } .tile-cal { --tile: #00a3a3; }
.tile-app { --tile: linear-gradient(180deg, #5ac8fa, #2a8cf4 55%, #0a5ce8); }

.ui-card {
  display: flex; align-items: center; gap: calc(10 * var(--dp));
  padding: calc(14 * var(--dp)); border-radius: calc(20 * var(--dp)); background: var(--a-card);
}
.ui-card > div { flex: 1; min-width: 0; }
.ui-meta { display: flex; align-items: center; gap: calc(6 * var(--dp)); margin-bottom: calc(4 * var(--dp)); color: var(--a-sub); font-size: calc(12 * var(--dp)); }
.ui-meta .app { margin-right: auto; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-meta .removed { color: var(--a-red); }
.ui-meta .blocked { color: var(--a-orange); }
.ui-meta .bolt { width: calc(12 * var(--dp)); height: calc(12 * var(--dp)); color: var(--a-blue); margin-right: calc(-2 * var(--dp)); }
.ui-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
/* the app shows up to three lines of text */
.ui-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; margin: 0; overflow: hidden; }
.ui-resend {
  display: grid; place-items: center; flex: none; padding: 0; border: 0; cursor: pointer;
  width: calc(30 * var(--dp)); height: calc(30 * var(--dp)); border-radius: 50%;
  background: var(--a-blue); color: #fff;
}
.ui-resend svg { width: calc(17 * var(--dp)); height: calc(17 * var(--dp)); }
button.ui-resend { transition: transform 0.15s ease; }
button.ui-resend:hover { transform: scale(1.12); }
button.ui-resend:active { transform: scale(0.92); }
button.ui-resend:focus-visible { outline: 3px solid var(--a-blue); outline-offset: 3px; border-radius: 50%; }
.ui-chipline {
  display: inline-block; margin-top: calc(8 * var(--dp)); padding: calc(4 * var(--dp)) calc(10 * var(--dp));
  border-radius: 100px; background: color-mix(in srgb, var(--a-blue) 12%, transparent);
  color: var(--a-blue); font-size: calc(12 * var(--dp));
}

.ui-group {
  display: flex; align-items: center; gap: calc(12 * var(--dp));
  padding: calc(12 * var(--dp)) calc(14 * var(--dp)); border-radius: calc(20 * var(--dp)); background: var(--a-card);
}
.ui-group > div { flex: 1; min-width: 0; }
.ui-group strong { display: block; font-size: calc(17 * var(--dp)); font-weight: 600; }
.ui-group small { display: block; color: var(--a-sub); font-size: calc(12 * var(--dp)); }
.ui-count {
  min-width: calc(24 * var(--dp)); padding: calc(3 * var(--dp)) calc(7 * var(--dp)); border-radius: calc(12 * var(--dp));
  background: var(--a-blue); color: #fff; font-size: calc(12 * var(--dp)); text-align: center;
}
.ui-group > svg { width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); color: var(--a-sep); margin-left: calc(-8 * var(--dp)); }

/* the banner Android shows when a notification arrives, and the app's snackbar */
.ui-heads {
  position: absolute; z-index: 4; left: calc(10 * var(--dp)); right: calc(10 * var(--dp)); top: calc(38 * var(--dp));
  display: flex; gap: calc(12 * var(--dp)); align-items: flex-start;
  padding: calc(14 * var(--dp)) calc(16 * var(--dp)); border-radius: calc(26 * var(--dp));
  background: var(--a-banner); box-shadow: var(--a-banner-shadow);
  transform: translateY(-160%); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.2s ease;
}
.ui-heads.show { transform: translateY(0); opacity: 1; }
.ui-heads > div { flex: 1; min-width: 0; }
.ui-heads small { display: block; margin-bottom: calc(2 * var(--dp)); color: var(--a-sub); font-size: calc(12 * var(--dp)); }
.ui-heads strong, .ui-heads p { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-heads strong { font-weight: 600; }
.ui-heads.static { position: static; transform: none; opacity: 1; }
.ui-snack {
  position: absolute; z-index: 4; left: calc(12 * var(--dp)); right: calc(12 * var(--dp)); bottom: calc(26 * var(--dp));
  padding: calc(14 * var(--dp)) calc(16 * var(--dp)); border-radius: calc(6 * var(--dp));
  background: #322f35; color: #f5eff7; font-size: calc(14 * var(--dp));
  transform: translateY(20%); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease;
}
.ui-snack.show { transform: none; opacity: 1; }
.ui-snack.static { position: static; transform: none; opacity: 1; }

/* swipe: the row moved right, the blue resend ground showing behind it */
.ui-swipe { position: relative; border-radius: calc(20 * var(--dp)); background: var(--a-blue); }
.ui-swipe > svg { position: absolute; left: calc(22 * var(--dp)); top: 50%; width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); margin-top: calc(-10 * var(--dp)); color: #fff; }
.ui-swipe .ui-card { transform: translateX(calc(64 * var(--dp))); box-shadow: -6px 0 16px rgba(0, 0, 0, 0.12); }
.ui-clip { overflow: hidden; border-radius: calc(20 * var(--dp)); }

/* sheets, rules, switches */
.ui-sheet { border-radius: calc(22 * var(--dp)) calc(22 * var(--dp)) 0 0; background: var(--a-sheet); padding: calc(10 * var(--dp)) 0 calc(6 * var(--dp)); }
.ui-sheet::before { content: ""; display: block; width: calc(34 * var(--dp)); height: calc(4 * var(--dp)); margin: 0 auto calc(8 * var(--dp)); border-radius: 4px; background: var(--a-sep); }
.ui-sheet h4 { margin: 0; padding: calc(6 * var(--dp)) calc(24 * var(--dp)) calc(4 * var(--dp)); color: var(--a-sub); font-size: calc(13 * var(--dp)); font-weight: 400; }
.ui-sheet p { margin: 0; padding: calc(13 * var(--dp)) calc(24 * var(--dp)); font-size: calc(17 * var(--dp)); }
.ui-sheet .blue { color: var(--a-blue); }
.ui-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: calc(6 * var(--dp)) calc(7 * var(--dp)); }
.ui-sentence span { padding: calc(6 * var(--dp)) 0; }
.ui-sentence b {
  display: inline-flex; align-items: center; gap: calc(2 * var(--dp));
  padding: calc(6 * var(--dp)) calc(8 * var(--dp)) calc(6 * var(--dp)) calc(12 * var(--dp)); border-radius: 100px;
  background: color-mix(in srgb, var(--a-blue) 12%, transparent); color: var(--a-blue); font-weight: 600;
}
.ui-sentence b svg { width: calc(15 * var(--dp)); height: calc(15 * var(--dp)); }
.ui-sentence b.plain { padding-right: calc(12 * var(--dp)); }
.ui-panel { padding: calc(16 * var(--dp)); border-radius: calc(20 * var(--dp)); background: var(--a-card); }
.ui-sub { margin-top: calc(-6 * var(--dp)); color: var(--a-sub); }
.ui-pills { display: flex; flex-wrap: wrap; gap: calc(8 * var(--dp)); margin-top: calc(12 * var(--dp)); }
.ui-pill { padding: calc(8 * var(--dp)) calc(16 * var(--dp)); border-radius: 100px; background: var(--a-fill); color: var(--a-blue); font-weight: 600; }
.ui-pill.fill { background: var(--a-blue); color: #fff; }
.ui-rule { display: flex; align-items: center; gap: calc(8 * var(--dp)); padding: calc(12 * var(--dp)) calc(16 * var(--dp)); border-radius: calc(20 * var(--dp)); background: var(--a-card); }
.ui-rule > div { flex: 1; min-width: 0; }
.ui-rule strong { display: block; font-weight: 600; }
.ui-rule small { display: block; margin-top: calc(2 * var(--dp)); color: var(--a-sub); font-size: calc(13 * var(--dp)); }
.ui-gear { display: grid; place-items: center; width: calc(30 * var(--dp)); height: calc(30 * var(--dp)); border-radius: 50%; background: var(--a-fill); color: var(--a-sub); }
.ui-gear svg { width: calc(16 * var(--dp)); height: calc(16 * var(--dp)); }
.ui-switch {
  position: relative; flex: none; width: calc(52 * var(--dp)); height: calc(32 * var(--dp)); border-radius: 100px;
  background: var(--a-fill); box-shadow: inset 0 0 0 calc(2 * var(--dp)) var(--a-sep);
}
.ui-switch::after {
  content: ""; position: absolute; top: 50%; left: calc(8 * var(--dp));
  width: calc(16 * var(--dp)); height: calc(16 * var(--dp)); margin-top: calc(-8 * var(--dp));
  border-radius: 50%; background: var(--a-sub);
}
.ui-switch.on { background: var(--a-blue); box-shadow: none; }
.ui-switch.on::after { left: auto; right: calc(4 * var(--dp)); width: calc(24 * var(--dp)); height: calc(24 * var(--dp)); margin-top: calc(-12 * var(--dp)); background: #fff; }
.ui-row { display: flex; align-items: center; gap: calc(12 * var(--dp)); padding: calc(8 * var(--dp)) 0; }
.ui-row > div { flex: 1; min-width: 0; }
.ui-row strong { display: block; font-size: calc(17 * var(--dp)); font-weight: 400; }
.ui-row small { display: block; color: var(--a-sub); font-size: calc(13 * var(--dp)); }
.ui-menu { width: calc(276 * var(--dp)); max-width: 100%; padding: calc(8 * var(--dp)) calc(16 * var(--dp)); border-radius: calc(16 * var(--dp)); background: var(--a-card); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); }
.ui-menu h4 { margin: calc(4 * var(--dp)) 0; color: var(--a-sub); font-size: calc(13 * var(--dp)); font-weight: 400; }

/* widgets on a home screen */
.ui-home {
  display: grid; gap: calc(12 * var(--dp)); padding: calc(18 * var(--dp)); border-radius: calc(20 * var(--dp));
  background: linear-gradient(160deg, #7cc7f7, #3c7fe6 55%, #2b4fbf);
}
.ui-widget { padding: calc(12 * var(--dp)); border-radius: calc(22 * var(--dp)); background: var(--a-card); }
.ui-widget header { display: flex; align-items: center; gap: calc(8 * var(--dp)); padding: 0 calc(4 * var(--dp)) calc(8 * var(--dp)); }
.ui-widget header b { font-size: calc(15 * var(--dp)); }
.ui-widget header small { margin-left: auto; color: var(--a-sub); font-size: calc(11 * var(--dp)); }
.ui-witem { display: flex; align-items: center; gap: calc(10 * var(--dp)); padding: calc(10 * var(--dp)); border-radius: calc(14 * var(--dp)); background: var(--a-bg); }
.ui-witem + .ui-witem { margin-top: calc(6 * var(--dp)); }
.ui-witem > svg { width: calc(22 * var(--dp)); height: calc(22 * var(--dp)); color: var(--a-blue); }
.ui-witem > div { flex: 1; min-width: 0; }
.ui-witem strong, .ui-witem span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-witem strong { font-size: calc(14 * var(--dp)); font-weight: 700; }
.ui-witem span { font-size: calc(13 * var(--dp)); }
.ui-witem .ui-resend { width: calc(28 * var(--dp)); height: calc(28 * var(--dp)); }
.ui-wcount { display: flex; align-items: center; gap: calc(6 * var(--dp)); padding: calc(8 * var(--dp)) calc(14 * var(--dp)); border-radius: calc(22 * var(--dp)); background: var(--a-card); }
.ui-wcount b { margin-left: calc(4 * var(--dp)); font-size: calc(22 * var(--dp)); }
.ui-wcount small { margin-right: auto; color: var(--a-sub); font-size: calc(12 * var(--dp)); }
.ui-wcount > svg { width: calc(22 * var(--dp)); height: calc(22 * var(--dp)); color: var(--a-sub); }
.ui-wcount > svg.first { color: var(--a-blue); }

/* trends */
.ui-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(6 * var(--dp)) calc(8 * var(--dp)); }
.ui-bar + .ui-bar { margin-top: calc(12 * var(--dp)); }
.ui-bar strong { font-weight: 600; }
.ui-bar small { color: var(--a-sub); font-size: calc(13 * var(--dp)); }
.ui-bar i { grid-column: 1 / -1; height: calc(6 * var(--dp)); border-radius: 3px; background: var(--a-fill); overflow: hidden; }
.ui-bar i::after { content: ""; display: block; width: var(--v); height: 100%; border-radius: 3px; background: var(--a-blue); }
.ui-bar.rest i::after { background: var(--a-sep); }
.ui-hours { display: flex; align-items: flex-end; gap: 2.2%; height: calc(84 * var(--dp)); margin-top: calc(14 * var(--dp)); }
.ui-hours i { flex: 1; height: var(--v, 3%); min-height: 2px; border-radius: 1.5px; background: color-mix(in srgb, var(--a-blue) 28%, transparent); }
.ui-hours i.peak { background: var(--a-blue); }
.ui-axis { display: flex; justify-content: space-between; margin-top: calc(6 * var(--dp)); color: var(--a-sub); font-size: calc(12 * var(--dp)); }
.ui-h { margin: 0 0 calc(12 * var(--dp)); font-size: calc(17 * var(--dp)); font-weight: 600; }
.ui-big { display: flex; align-items: flex-end; justify-content: space-between; }
.ui-big b { display: block; font-size: calc(34 * var(--dp)); line-height: 1.1; }
.ui-big small { color: var(--a-sub); font-size: calc(13 * var(--dp)); }
.ui-big em { display: inline-flex; align-items: center; color: var(--a-green); font-style: normal; font-size: calc(17 * var(--dp)); font-weight: 600; }
.ui-big em svg { width: calc(18 * var(--dp)); height: calc(18 * var(--dp)); transform: rotate(180deg); }
.ui-big em + small { display: block; text-align: right; }

/* ---------------------------------------------------------------- sections */
.sec { padding-top: clamp(72px, 9vw, 120px); }
.sec-head { max-width: 720px; }
.sec h2, .page-head h1, .closing h2 {
  font-family: var(--font-display); font-weight: 700; font-stretch: 108%;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.012em;
}
.sec-head p { margin: 14px 0 0; color: var(--muted); font-size: 19px; max-width: 34em; }
.sec h3 { font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -0.005em; }

.stage {
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: calc(8 * var(--dp));
  padding: 22px; border-radius: 20px; background: var(--stage);
}
/* A drawing never gets wider than the phone it comes from. */
.stage > * { width: 100%; max-width: 400px; }
.stage.flush { padding: 0; background: none; }
.stage.flush > * { max-width: none; height: 100%; align-content: center; }

/* steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; }
.steps .stage { height: 236px; }
.steps li > h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.steps li > h3::before {
  content: counter(step); flex: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 30px; line-height: 1; color: var(--accent);
}
.steps li > p { margin: 8px 0 0; color: var(--muted); max-width: 30em; }

/* features: each cell shows the part of the app it talks about */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.cell {
  grid-column: span 4; display: flex; flex-direction: column;
  padding: 14px 14px 26px; border-radius: 30px;
  background: var(--surface); box-shadow: var(--card-shadow);
}
.cell.w7 { grid-column: span 7; }
.cell.w5 { grid-column: span 5; }
.cell .stage { flex: 1; min-height: 232px; }
.cell > h3 { margin: 22px 12px 0; }
.cell > p { margin: 8px 12px 0; color: var(--muted); font-size: 16px; }
.cell.text { padding: 26px 24px; }
.cell.text > h3 { margin: 16px 0 0; }
.cell.text > p { margin: 8px 0 0; }
.cell-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); }
.cell-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pro-tag {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: 3px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.stage.bottom { align-content: end; padding-bottom: 0; }
/* the promise that closes the list: what no rule and no filter can touch */
.cell.band {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 3vw, 36px);
}
.band p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.protected { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.protected li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-soft); font-size: 15px; font-weight: 600; line-height: 1.25;
}
.protected span { min-width: 0; overflow-wrap: break-word; }
.protected svg { width: 20px; height: 20px; flex: none; fill: var(--accent); }

/* privacy */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .sec-head p { font-size: 18px; }
.facts { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; max-width: 520px; }
.facts li, .checks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.facts svg, .checks svg { width: 20px; height: 20px; margin-top: 3px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cell.solo { grid-column: auto; padding: 14px; }
.cell.solo .stage { padding: clamp(18px, 3vw, 34px); }

/* price */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3.2vw, 40px); border-radius: 30px; background: var(--surface); box-shadow: var(--card-shadow); }
.plan h3 { font-size: 18px; }
.plan .price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.plan .price b { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(44px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.plan .price span { color: var(--muted); font-size: 16px; }
.plan > p { margin: 0; color: var(--muted); font-size: 16px; }
.checks { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.checks li { font-weight: 500; }
.plan.pro { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); color: #fff; box-shadow: 0 30px 60px -40px rgba(10, 69, 188, 0.9); }
.plan.pro > p, .plan.pro .price span { color: rgba(255, 255, 255, 0.86); }
.plan.pro .checks svg { stroke: #fff; }
.plan .fine { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.plan.pro .fine { border-color: rgba(255, 255, 255, 0.25); }

/* questions */
.faq { margin-top: 28px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 22px; color: var(--muted); max-width: 40em; }

/* closing */
.closing {
  position: relative; margin-top: clamp(72px, 9vw, 120px); padding: clamp(40px, 6vw, 72px);
  border-radius: 36px; overflow: hidden; color: #fff;
  background: radial-gradient(60% 120% at 100% 0%, rgba(90, 200, 250, 0.45), transparent 70%), linear-gradient(180deg, var(--hero-a), var(--hero-b));
}
.closing > :not(.hero-replay) { position: relative; }
.closing .hero-replay { right: -6%; top: -30%; width: min(54%, 520px); }
.closing p { margin: 14px 0 28px; font-size: 19px; max-width: 30em; }

/* ------------------------------------------------------------------ footer */
.site-foot {
  margin-top: 72px; padding: 28px 0 44px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  color: var(--muted); font-size: 15px;
}
.site-foot .brand { color: var(--ink); font-size: 18px; margin-right: 0; }
.site-foot .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.site-foot .brand-mark svg { width: 16px; height: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-right: auto; }
.site-foot nav a { color: var(--muted); font-weight: 600; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot p { margin: 0; flex-basis: 100%; font-size: 14px; }
/* Our other apps: icon, name and platform, on a line of their own. */
.site-foot .other-apps { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-foot .other-apps > span { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.site-foot .other-apps a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.site-foot .other-apps img { width: 36px; height: 36px; border-radius: 9px; }
.site-foot .other-apps a span { display: flex; flex-direction: column; line-height: 1.25; }
.site-foot .other-apps b { font-size: 15px; font-weight: 700; }
.site-foot .other-apps small { font-size: 12.5px; color: var(--muted); }
.site-foot .other-apps a:hover b { text-decoration: underline; }

/* ---------------------------------------------------- blog and legal pages */
.page-head { padding: clamp(28px, 5vw, 56px) 0 0; max-width: 820px; }
.page-head p { margin: 14px 0 0; color: var(--muted); font-size: 19px; max-width: 36em; }
.page-head .when { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
/* The store link under a post's intro. Only where the box beside the text
   has moved below the article: on a phone that is a long scroll away. */
.inline-cta { display: none; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 15px; font-weight: 600; }
.crumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.post-card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; border-radius: 26px;
  background: var(--surface); box-shadow: var(--card-shadow); color: var(--ink);
  transition: transform 0.18s ease;
}
.post-card:hover { text-decoration: none; transform: translateY(-2px); }
.post-card .when { color: var(--muted); font-size: 14px; font-weight: 600; }
.post-card h2 { font-size: 21px; font-weight: 700; line-height: 1.22; letter-spacing: -0.008em; }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }
.post-card:first-child { grid-column: 1 / -1; padding: clamp(26px, 4vw, 44px); }
.post-card:first-child h2 { font-family: var(--font-display); font-stretch: 108%; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; max-width: 22em; }
.post-card:first-child p { font-size: 18px; max-width: 40em; }

.post {
  max-width: 760px; margin: 32px 0 0; padding: clamp(24px, 4.4vw, 52px); border-radius: 30px;
  background: var(--surface); box-shadow: var(--card-shadow);
}
.post > :first-child { margin-top: 0; }
.post > :last-child { margin-bottom: 0; }
.post p, .post li { font-size: 18px; line-height: 1.72; }
.post p { margin: 0 0 18px; }
.post h2 { margin: 40px 0 10px; font-size: 25px; font-weight: 700; line-height: 1.22; letter-spacing: -0.008em; }
.post h3 { margin: 28px 0 8px; font-size: 20px; }
.post ul, .post ol { margin: 0 0 18px; padding-left: 24px; }
.post li { margin: 8px 0; }
.post a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.post a:hover { text-decoration-color: currentColor; }
.post address { font-style: normal; }
.post .highlight { padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); font-weight: 600; }
.post .muted { color: var(--muted); font-size: 15px; }
.post .lead { font-size: 20px; line-height: 1.6; }
.post table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.post th, .post td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
/* A table wider than a phone scrolls inside its own box, not with the page. */
.post .scroll { overflow-x: auto; margin: 0 0 18px; }
.post .scroll table { margin: 0; min-width: 500px; }
.post .scroll th, .post .scroll td { padding: 10px 8px; }
.post .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.post .tags li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.5; }

/* A post and what follows it: beside the text on a wide screen, where it
   stays in view while reading, below it everywhere else. */
.reading { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 320px); gap: 40px; align-items: start; }
.after-post { position: sticky; top: 24px; display: grid; gap: 20px; padding-top: clamp(28px, 5vw, 56px); }
.reading .more, .reading .ctabox { padding: 26px; }
.reading .ctabox .btn { width: 100%; }
.more { padding: 26px clamp(24px, 4.4vw, 52px); border-radius: 26px; background: var(--surface); box-shadow: var(--card-shadow); }
.more h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--muted); }
.more a { display: block; padding: 8px 0; font-size: 18px; font-weight: 650; line-height: 1.3; }
.more a + a { border-top: 1px solid var(--line); }
.ctabox {
  position: relative; overflow: hidden; padding: clamp(26px, 4.4vw, 44px); border-radius: 26px; color: #fff;
  background: radial-gradient(70% 140% at 100% 0%, rgba(90, 200, 250, 0.45), transparent 70%), linear-gradient(180deg, var(--hero-a), var(--hero-b));
}
.ctabox strong { display: block; font-family: var(--font-display); font-stretch: 108%; font-size: 26px; line-height: 1.15; }
.ctabox p { margin: 8px 0 20px; }

.notfound { min-height: 56vh; display: grid; align-content: center; justify-items: start; gap: 14px; padding-top: 40px; }
.notfound h1 { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; }
.notfound p { margin: 0 0 14px; color: var(--muted); font-size: 19px; }
[hidden] { display: none !important; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid, .under-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 0 12px; }
  .demo { margin-top: 24px; }
  .under-hero { min-height: 0; gap: 26px; padding-top: 148px; }
  .under-hero .demo-hint { order: -1; padding-top: 0; }
  .trust { justify-content: center; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cell, .cell.w7, .cell.w5 { grid-column: span 6; }
  .cell.text { grid-column: span 2; }
  .cell.band { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; max-width: 520px; }
  .split { grid-template-columns: 1fr; }
  .reading { grid-template-columns: minmax(0, 760px); }
  .after-post { position: static; padding-top: 0; }
  .reading .more, .reading .ctabox { padding: clamp(24px, 4.4vw, 44px); }
  .reading .ctabox .btn { width: auto; }
  .inline-cta {
    display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 20px 0 0;
    padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); color: inherit;
    font-size: 15px; line-height: 1.4;
  }
  .inline-cta:hover { text-decoration: none; }
  .inline-cta svg { width: 22px; height: 22px; flex: none; fill: var(--accent); }
  .inline-cta span { flex: 1; }
  .inline-cta b { flex: none; color: var(--accent); }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .hero-shell { padding: 8px 8px 0; }
  .hero { border-radius: 28px; }
  .hero h1 { font-size: clamp(29px, 9.2vw, 48px); overflow-wrap: break-word; }
  .hero-replay { top: auto; bottom: 4%; right: -34%; width: 120%; }
  .nav a[href^="#"] { display: none; }
  .site-head { gap: 8px; }
  .plans, .posts { grid-template-columns: 1fr; }
  .cell.text { grid-column: span 6; }
  .protected { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .phone { --w: min(350px, 86vw); }
  .site-foot nav { margin-right: 0; }
  .site-foot .other-apps > span { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .brand { font-size: 19px; }
  .nav a { padding: 8px 8px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
