/* The home page (index.html). The typeface, colours and the footer come from base.css. */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 92px; }

/* ── top bar: see-through over the hero; once the page scrolls, docked to the top as a full-width frosted strip (js/home.js).
   It moves up by its top gap instead of losing it, so the page under it doesn't jump. ── */
header.top { position: sticky; top: 0; z-index: 20; padding-top: 12px; border-bottom: 1px solid transparent;
  transition: top .25s, background .25s, border-color .25s, box-shadow .25s; }
header.top.scrolled { top: -12px; background: color-mix(in srgb, var(--surface) 78%, transparent); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 10px 28px -20px rgb(0 0 0 / .3); }
.bar { width: min(1180px, 100% - 24px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 56px; padding: 0 8px 0 16px; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { padding: 7px 13px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .15s, background .15s; }
.bar nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.bar > .btn { justify-self: end; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em; border-radius: 12px; padding: 11px 18px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.btn-primary { color: var(--accent-ink); background: var(--accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 2px rgb(0 0 0 / .14), 0 10px 26px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 90%, #fff); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 2px rgb(0 0 0 / .14), 0 14px 32px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.btn-ghost:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn-large { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── hero ── */
.hero { position: relative; text-align: center; padding: 64px 0 64px; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / .04);
  font-size: 13.5px; color: var(--muted); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge a { color: var(--text); font-weight: 600; text-decoration: none; margin-left: 3px; white-space: nowrap; }
.badge a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; vertical-align: 2px; border: solid currentColor;
  border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); transition: transform .15s; }
.badge a:hover::after { transform: translateX(2px) rotate(45deg); }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.hero h1 { font-size: clamp(46px, 7.6vw, 96px); line-height: .98; letter-spacing: -0.05em; font-weight: 700; }
.hero h1 span { display: inline-block; color: var(--faint); }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; letter-spacing: -0.015em; color: var(--muted); max-width: 590px; margin: 26px auto 36px; }
.lede mark { color: var(--text); font-weight: 600; padding: 0 3px; border-radius: 3px;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 32%, transparent) 58% 92%, transparent 92%); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta { margin: 22px 0 0; font-size: 14px; color: var(--faint); }

/* The noise Plicbox leaves out: a few pop-ups and upsells around the headline, each struck through and cleared away. */
.noise { position: absolute; inset: 24px 0 24px; pointer-events: none; }
.noise > span { position: absolute; left: var(--x); top: var(--y); animation: chip-in .5s cubic-bezier(.2, .7, .3, 1) calc(.2s + var(--i) * 70ms) both; }
.noise > span.r { left: auto; right: var(--x); }
.noise b { position: relative; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 13px; border-radius: 11px;
  font-size: 13px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow);
  animation: chip-out .6s ease-in calc(1.9s + var(--i) * 150ms) forwards; }
.noise b i { font-style: normal; color: var(--faint); letter-spacing: 0; }
.noise b i.ad { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-strong); }
.noise b::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; animation: strike .32s ease-out calc(1.4s + var(--i) * 150ms) forwards; }
@keyframes chip-in { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@keyframes strike { to { transform: scaleX(1); } }
@keyframes chip-out { to { opacity: 0; filter: blur(6px); transform: translateY(-12px) scale(.95); visibility: hidden; } }

/* ── hero backdrop: a dot floor seen in perspective, with hills, and signals running along its rows (js/home.js) ── */
main { position: relative; isolation: isolate; overflow-x: clip; }  /* the dot fields may reach past the page's sides, never widen it */
.backdrop { position: absolute; inset: -80px 0 auto; height: 1000px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 38%, #000 40%, transparent 88%);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 38%, #000 40%, transparent 88%); }
.backdrop canvas { display: block; width: 100%; height: 100%; opacity: .6; }  /* the whole effect, kept well behind the text */

/* ── the app's videos, in a glass frame ── */
.stage { position: relative; }
.stage::before { content: ""; position: absolute; inset: 6% 8% 2%; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); }
.frame { padding: 9px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shot-shadow);
  background: color-mix(in srgb, var(--surface) 62%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.frame video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1200; border-radius: 18px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); }
/* Tilted back a little, and laid flat as it scrolls into view (where the browser can tie animations to scrolling). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage { perspective: 2200px; }
    .hero-shot { transform-origin: 50% 0; animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    @keyframes settle { from { transform: rotateX(16deg) scale(.93); } to { transform: none; } }
  }
}

/* ── the accounts it works with ── */
.works { margin: 72px 0 0; text-align: center; }
.works p { margin: 0 0 18px; font-size: 13.5px; color: var(--faint); }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
/* Each logo in one grey, its own colours when pointed at. */
.works li { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--text) 52%, transparent); transition: color .2s; }
.works svg { width: 20px; height: 20px; flex: none; fill: currentColor; transition: fill .2s; }
.works li:hover { color: var(--text); }
.works li:hover svg { fill: var(--brand, currentColor); }
.works .ms:hover path:nth-child(1) { fill: #f25022; } .works .ms:hover path:nth-child(2) { fill: #7fba00; }
.works .ms:hover path:nth-child(3) { fill: #00a4ef; } .works .ms:hover path:nth-child(4) { fill: #ffb900; }
/* Logos that are words (Zoho, GMX) at their own width, in place of the name. */
.works .wide svg { width: auto; height: 17px; }
.works .gmx svg { height: 13px; }
.works .any { font-weight: 500; color: var(--faint); }
.works .any svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.works .any:hover svg { fill: none; }

/* ── section headings: a small label, a two-tone heading and a line of explanation ── */
section > .head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 12px 64px; margin-bottom: 44px; }
.head .eyebrow { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--accent); }
.head h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; }
.head h2 span { color: var(--faint); }
.head > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 460px; padding-bottom: 6px; }
.head a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.head a:hover { text-decoration-color: currentColor; }
.head.center { display: block; text-align: center; }
.head.center .eyebrow { margin-bottom: 12px; }
.head.center > p:last-child { margin: 16px auto 0; }

#features, #tour, .perf, .faq { margin: 140px 0; }

/* ── features: a grid of tiles, each with a small piece of the app ── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
/* Each tile spans three of the grid's rows (its piece of the app, title, text), shared with the tiles beside it, so the
   titles of a row line up whatever the length of the texts. */
.tile { grid-column: span 4; grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; position: relative; padding: 26px 28px 28px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow); overflow: hidden; }
.tile.w6 { grid-column: span 6; }
.tile h3 { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.tile p a { color: var(--text); font-weight: 500; text-underline-offset: 3px; text-decoration-color: var(--line-strong); white-space: nowrap; }
.tile p a:hover { text-decoration-color: currentColor; }
.viz { position: relative; flex: 1; display: grid; place-items: center; min-height: 190px; margin: -8px -10px 22px; }
/* A faint dot grid behind each piece, like the floor behind the hero. */
.viz::before { content: ""; position: absolute; inset: -20px -20px 0; z-index: 0; pointer-events: none;
  background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000, transparent); }
.viz > * { position: relative; z-index: 1; }
.viz svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The pieces of the app share a look: a small card, like a bit of a window, a shade off its tile in dark mode. */
.bento { --ui: var(--surface); --chip: var(--surface-2); }
@media (prefers-color-scheme: dark) { .bento { --ui: #1c1c21; --chip: #26262c; } }
.ui { background: var(--ui); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 16px 36px -18px rgb(0 0 0 / .3);
  font-size: 13px; line-height: 1.4; letter-spacing: -0.005em; text-align: left; }
.ui b { font-weight: 600; color: var(--text); }
.ui small { display: block; color: var(--muted); font-size: 12px; }
.av { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff;
  font-size: 12.5px; font-weight: 600; }

/* Free and open: nothing to pay, in big type. */
.price { display: grid; justify-items: center; gap: 18px; }
.zero { display: flex; font-size: 128px; font-weight: 750; line-height: 1; letter-spacing: -0.07em; color: var(--text);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, rgb(0 0 0 / .2)); mask-image: linear-gradient(180deg, #000 35%, rgb(0 0 0 / .2)); }
.zero b { display: block; font-weight: inherit; padding-right: .04em; }
/* The sign rolls through the world's currencies, quickly, and lands on the next one; the 0 stays (js/home.js). */
.cur { display: flex; justify-content: flex-end; height: 1em; overflow: hidden; margin-right: -.03em; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.reel { display: flex; flex-direction: column; align-items: flex-end; }
.reel b { width: max-content; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  color: var(--muted); background: var(--chip); border: 1px solid var(--line); }
.pills span::before { content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* Trackers blocked: a newsletter with the app's notes about what was kept out. */
.mail { width: min(100%, 360px); padding: 14px; display: grid; gap: 12px; }
.from { display: flex; align-items: center; gap: 10px; }
.from b, .from small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.note { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; color: var(--muted);
  background: var(--chip); border: 1px solid var(--line); }
.note svg { width: 14px; height: 14px; }
.note u { color: var(--link); text-decoration: none; font-weight: 500; }
.blank { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; }
.blank span { height: 34px; border-radius: 7px; border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--text) 4%, transparent) 6px 7px); }
.blank span:first-child { grid-row: span 2; height: auto; }
.in .note { animation: pop .45s cubic-bezier(.2, .8, .3, 1.2) both; }
.in .note + .note { animation-delay: .15s; }
/* What Download does, over and over: a pointer clicks it, the pictures load, and the note about them goes, while
   "Tracking blocked" lights up, as tracking pixels stay out even then. Then it starts again. */
.trackers .viz { place-items: start center; padding-top: 4px; }
.notes .note { max-height: 30px; }
.note u { position: relative; border-radius: 4px; }
.note .pointer { position: absolute; left: 40%; top: 50%; width: 24px; height: 24px; opacity: 0; pointer-events: none;
  fill: var(--text) !important; stroke: var(--surface) !important; stroke-width: 1.5 !important; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .25)); }
.blank span { position: relative; }
.blank span::after { content: ""; position: absolute; inset: -1px; border-radius: 7px; opacity: 0; }
/* The newsletter's pictures, once downloaded: quiet tints of the page's own colours, the big one with the album's name. */
.blank span::after { --tint: color-mix(in srgb, var(--text) 7%, var(--surface)); }
.blank span:nth-child(1)::after { content: "Night Transit"; display: flex; align-items: flex-end; padding: 8px 10px; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  background: radial-gradient(at 80% 25%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(at 15% 85%, color-mix(in srgb, #7c4ddb 14%, transparent), transparent 60%), var(--tint); }
.blank span:nth-child(2)::after { background: radial-gradient(at 25% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--tint); }
.blank span:nth-child(3)::after { background: radial-gradient(at 80% 70%, color-mix(in srgb, #1a73e8 12%, transparent), transparent 70%), var(--tint); }
/* (.notes in front: more specific than the delay the second note gets above) */
.in .notes .pics { animation: pop .45s cubic-bezier(.2, .8, .3, 1.2) .15s both, pics-go 9s 1.5s infinite; }
.in .pics u { animation: press 9s 1.5s infinite; }
.in .pointer { animation: point 9s 1.5s infinite; }
.in .blank span::after { animation: load 9s 1.5s infinite; }
.in .blank span:nth-child(2)::after { animation-delay: 1.6s; } .in .blank span:nth-child(3)::after { animation-delay: 1.7s; }
.in .trk { animation: pop .45s cubic-bezier(.2, .8, .3, 1.2) both, still 9s 1.5s infinite; }
@keyframes point {
  0%, 4% { opacity: 0; transform: translate(70px, 56px); }
  8% { opacity: 1; }
  17% { opacity: 1; transform: none; animation-timing-function: ease-in-out; }
  19% { transform: scale(.82); }
  21% { opacity: 1; transform: none; }
  27%, 100% { opacity: 0; transform: none; }
}
@keyframes press { 0%, 18% { background: transparent; } 19%, 21% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 24%, 100% { background: transparent; } }
@keyframes pics-go {
  0%, 21% { max-height: 30px; opacity: 1; margin-top: 0; padding-top: 4px; padding-bottom: 4px; border-width: 1px; }
  24% { max-height: 30px; opacity: 0; margin-top: 0; padding-top: 4px; padding-bottom: 4px; border-width: 1px; }
  28%, 86% { max-height: 0; opacity: 0; margin-top: -6px; padding-top: 0; padding-bottom: 0; border-width: 0; }
  93%, 100% { max-height: 30px; opacity: 1; margin-top: 0; padding-top: 4px; padding-bottom: 4px; border-width: 1px; }
}
@keyframes load { 0%, 23% { opacity: 0; } 30%, 84% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes still {
  0%, 31% { box-shadow: 0 0 0 0 transparent; color: var(--muted); border-color: var(--line); }
  36%, 52% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
  62%, 100% { box-shadow: 0 0 0 0 transparent; color: var(--muted); border-color: var(--line); }
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.92); } }

/* Phishing warnings: the app's red banner, and an attachment dressed up as a document. */
.warn { width: min(100%, 380px); padding: 12px; display: grid; gap: 10px; }
.banners { display: grid; }
.banners .banner { grid-area: 1 / 1; opacity: 0; transform: translateY(5px); transition: opacity .45s, transform .45s; }
.banners .banner.on { opacity: 1; transform: none; }
.banner { display: flex; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--danger);
  background: color-mix(in srgb, var(--danger) 9%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.banner svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.banner b { display: block; color: var(--danger); font-size: 12.5px; }
.banner small { margin-top: 3px; font-size: 11.5px; line-height: 1.4; }
.file { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 6px 10px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid var(--line); background: var(--chip); color: var(--text); }
.file svg { width: 14px; height: 14px; color: var(--muted); }
.file em { font-style: normal; font-weight: 600; color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-radius: 4px; padding: 0 2px; }
.in .banners { animation: pop .5s cubic-bezier(.2, .8, .3, 1.2) both; }
/* Where the phishing and malware lists come from. */
.lists { display: flex; align-items: flex-start; gap: 8px; padding: 10px 2px 1px; border-top: 1px dashed var(--line-strong); font-size: 11.5px;
  line-height: 1.45; color: var(--muted); }
.lists svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: #2e9e4f; }
.lists b { color: var(--text); }
.in .lists svg { animation: turn 1.2s cubic-bezier(.5, 0, .3, 1) .4s both; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Undo send, send later: the toolbar while a message waits, and one that goes later. */
.stack { display: grid; gap: 10px; justify-items: center; width: 100%; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; max-width: 100%; }
.toolbar .new { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 7px; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 600; }
.toolbar .new svg, .toolbar .link svg { width: 14px; height: 14px; }
.toolbar .new svg { stroke-width: 2.4; }
.sending { position: relative; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 4px; }
.sending i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; opacity: .8; }
.in .sending i { animation: drain 8s linear infinite; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toolbar .link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 600; }
.later { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 12px; color: var(--muted); }
.later svg { width: 14px; height: 14px; }

/* Fast search: the search box, typing, and what it finds (js/home.js types the words). */
.finder { width: min(100%, 360px); padding: 10px; }
.field { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font-size: 13px; }
.field svg { flex: none; width: 15px; height: 15px; color: var(--muted); }
.q { white-space: nowrap; overflow: hidden; }
.q .hint { color: var(--faint); font-style: italic; }
.q.typing::after { content: ""; display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -3px; background: var(--accent);
  animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hits { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.hits li { display: grid; grid-template-columns: auto 84px minmax(0, 1fr); align-items: center; gap: 9px; padding: 6px; border-radius: 8px;
  font-size: 12px; transition: opacity .3s, transform .3s; }
.hits li:first-child { background: color-mix(in srgb, #1a73e8 12%, transparent); transition: opacity .3s, transform .3s, background .3s; }
.hits .av { width: 22px; height: 22px; font-size: 10.5px; }
.hits b, .hits span:not(.av) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits span:not(.av) { color: var(--muted); }
.hits mark { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--text); border-radius: 3px; padding: 0 1px; transition: background .3s; }
.finder.empty .hits li { opacity: .28; transform: translateY(3px); }
.finder.empty .hits mark { background: transparent; }
.finder.empty .hits li:first-child { background: transparent; }
.took { display: flex; align-items: center; gap: 6px; margin: 8px 6px 2px; font-size: 11.5px; color: var(--muted); transition: opacity .25s; }
.took svg { flex: none; width: 13px; height: 13px; color: var(--accent); }
.took b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 3px; border-radius: 4px; }
.finder.empty .took { opacity: 0; }
.finder:not(.empty) .took b { animation: flash .9s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 35%, transparent); } }
.finder .hits li:nth-child(2) { transition-delay: .06s; } .finder .hits li:nth-child(3) { transition-delay: .12s; }

/* Offline, for real: a plane on its way above the Outbox, which holds what waits. */
.offline .viz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.side { width: 200px; padding: 10px 8px; display: grid; gap: 2px; }
.side small { padding: 2px 8px 6px; font-weight: 600; font-size: 11.5px; color: var(--faint); }
.side .row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--text); }
.side .row svg { width: 16px; height: 16px; color: var(--muted); }
.side .row em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.side .row.on { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.side .row.on em { color: var(--accent); }
.sky { position: relative; width: min(100%, 280px); height: 22px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 9px) 0 50% / 100% 2px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.sky i { position: absolute; inset: 0; transform: translateX(62%); }
.plane { position: absolute; left: -22px; top: 0; width: 22px; height: 22px; color: var(--text); transform: rotate(90deg);
  fill: currentColor !important; stroke: none !important; }
.in .sky i { animation: fly 6s cubic-bezier(.45, 0, .4, 1) infinite; }
@keyframes fly { from { transform: translateX(0); } to { transform: translateX(calc(100% + 22px)); } }

/* Push mail: a notification sliding in from the tray. */
.toast { width: min(100%, 290px); padding: 12px 14px; display: grid; gap: 1px; }
.toast .app { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11.5px; color: var(--muted); }
.toast .app img { width: 14px; height: 14px; }
.toast .app span { margin-left: auto; }
.toast > span:not(.app) { color: var(--text); }
.toast small { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in .toast { animation: toast 6s cubic-bezier(.2, .8, .3, 1) infinite; }
@keyframes toast {
  0% { opacity: 0; transform: translateX(60px); }
  10%, 82% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateX(60px); }
}

/* Rules: a rule, written out. */
.rule { padding: 12px; display: grid; gap: 9px; width: min(100%, 350px); }
.rule .line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rule .kw { width: 34px; font-size: 12px; font-weight: 600; color: var(--faint); }
.rule .pill { padding: 4px 9px; border-radius: 7px; font-size: 12px; border: 1px solid var(--line); background: var(--chip); color: var(--text); }
.rule .pill.val { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 500; }

/* Daily backups: the backup folder, with a backup for every day. */
.saved { width: min(100%, 290px); padding: 12px; display: grid; gap: 10px; }
.folder { display: flex; align-items: center; gap: 10px; }
.folder > svg { width: 28px; height: 28px; color: var(--accent); fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.folder .ok { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2e9e4f; color: #fff; }
.folder .ok svg { width: 13px; height: 13px; stroke-width: 2.6; }
.days { display: flex; gap: 6px; }
.days i { flex: 1; font-style: normal; text-align: center; padding: 5px 0; border-radius: 7px; font-size: 11.5px; color: var(--muted);
  background: var(--chip); border: 1px solid var(--line); }
.days i:first-child { color: var(--text); font-weight: 600; }

/* In your language: the Reply button in each language the app speaks, and its accent colours (js/home.js turns them). */
.lang .viz { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.say { display: grid; justify-items: center; gap: 10px; }
.reply { --c: #f7931e; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 18px; font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text); border-radius: 14px; min-width: 196px; justify-content: center; transition: box-shadow .4s; }
.reply svg { width: 22px; height: 22px; color: var(--c); stroke-width: 2; transition: color .4s; }
.word { display: inline-block; transition: opacity .25s, transform .25s, filter .25s; }
.word.out { opacity: 0; transform: translateY(-8px); filter: blur(3px); }
.tongue { font-size: 13px; color: var(--faint); transition: opacity .25s; }
.swatches { display: grid; grid-template-columns: repeat(4, 22px); gap: 10px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); transition: transform .3s, box-shadow .3s; }
.swatches i.on { transform: scale(1.18); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }

/* ── tour: tabs over a video each ── */
.tabs { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 16px; padding: 4px; gap: 2px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs .thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 10px;
  background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 12px -4px rgb(0 0 0 / .15); transition: transform .35s cubic-bezier(.3, .8, .3, 1), width .35s cubic-bezier(.3, .8, .3, 1); }
.tabs button { position: relative; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: transparent; border: 0;
  padding: 8px 18px; border-radius: 10px; cursor: pointer; transition: color .2s; white-space: nowrap; }
.tabs button:hover, .tabs button[aria-selected="true"] { color: var(--text); }
.tab-caption { text-align: center; color: var(--muted); font-size: 15px; min-height: 3.2em; max-width: 640px; margin: 0 auto 18px; }
.panel[hidden] { display: none; }
.panel { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── measured, every release: a tile per number, a column per version (written by update-versions.ps1) ── */
.numbers { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
/* The dot floor again, faintly, under the tiles. */
.numbers::before { content: ""; position: absolute; inset: -48px -64px; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 60%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 55% 60% at 50% 60%, #000 20%, transparent 75%); }
.numbers > div { display: flex; flex-direction: column; min-width: 0; padding: 24px 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--tile-shadow); }
.numbers h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.numbers p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.numbers .figure { margin: 6px 0 8px; font-size: 46px; font-weight: 700; line-height: 1.05; letter-spacing: -0.045em; color: var(--text);
  font-variant-numeric: tabular-nums; }
.numbers .figure span { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--faint); }
.numbers .columns { display: block; max-width: 100%; height: auto; margin-top: auto; padding-top: 24px; box-sizing: content-box; }
/* Columns of dots on a faint grid of dots: plain rectangles, cut into dots by a mask of 8 rows, one column per version. */
.columns { --dots: radial-gradient(circle, #000 1.6px, transparent 2.2px) 0 0 / calc(100% / var(--cols)) 5px content-box;
  -webkit-mask: var(--dots); mask: var(--dots); }
.columns .grid { fill: color-mix(in srgb, var(--faint) 13%, transparent); }
.columns .col { fill: color-mix(in srgb, var(--muted) 70%, transparent); transition: fill .15s; transform-box: fill-box; transform-origin: 50% 100%; }
.columns .hit { fill: transparent; }
.columns g:hover .col { fill: var(--text); }
.columns .now .col, .columns .now:hover .col { fill: var(--accent); }
/* They rise, column by column, as the numbers come into view (js/home.js). */
.js .numbers:not(.in) .col { transform: scaleY(0); }
.numbers.in .col { animation: rise .7s cubic-bezier(.2, .8, .2, 1) calc(.15s + var(--i) * 45ms) both; }
@keyframes rise { from { transform: scaleY(0); } }
.numbers .range { display: flex; justify-content: space-between; max-width: 100%; margin-top: 6px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.perf .fine { max-width: 640px; margin: 22px auto 0; text-align: center; font-size: 13.5px; color: var(--faint); }
.perf .fine a { color: var(--muted); text-underline-offset: 2px; }

/* ── questions: the heading on the left, the answers opening on the right ── */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 72px; align-items: start; }
.faq > .head { display: block; margin: 0; position: sticky; top: 100px; }
.faq > .head .eyebrow { margin-bottom: 12px; }
.faq > .head > p:last-child { margin-top: 16px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--muted), var(--muted)) center / 10px 1.6px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.6px 10px no-repeat;
  transition: transform .25s, background-color .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover::after { border-color: var(--muted); }
.qa details p { margin: -4px 0 0; padding: 0 44px 22px 2px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.qa details[open] p { animation: fade .3s ease; }
.qa a { color: var(--link); text-underline-offset: 2px; }
.qa code { font: 13px/1.4 var(--mono); padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--text) 6%, transparent); overflow-wrap: anywhere; }

/* ── closing call ── */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 88px 24px 64px; border-radius: 32px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--tile-shadow); margin-bottom: 80px; }
/* A soft glow centred on the icon (88px of padding + half its 76px). */
.cta::before { content: ""; position: absolute; z-index: -1; left: 50%; top: calc(126px - 240px); width: 620px; height: 480px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent) 5%, transparent) 55%, transparent); }
.cta::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 420px 300px at 50% 126px, #000, transparent); mask-image: radial-gradient(ellipse 420px 300px at 50% 126px, #000, transparent); }
.cta img { width: 76px; height: 76px; margin: 0 auto 26px; filter: drop-shadow(0 14px 24px color-mix(in srgb, var(--accent) 45%, transparent)); }
.cta h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; margin-bottom: 16px; }
.cta > p:not(.fine) { color: var(--muted); font-size: 17px; margin: 0 auto 32px; max-width: 500px; }
.cta .fine { font-size: 13.5px; color: var(--faint); margin: 30px auto 0; max-width: 540px; }
.cta .fine + .fine { margin-top: 12px; }
.cta .fine a { color: var(--muted); text-underline-offset: 2px; }

/* ── smaller screens ── */
@media (max-width: 1199px) { .noise { display: none; } }
@media (max-width: 1020px) {
  .tile.w4 { grid-column: span 6; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq > .head { position: static; }
}
@media (max-width: 820px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar nav { display: none; }
  .hero { padding: 40px 0 48px; }
  section > .head { grid-template-columns: 1fr; margin-bottom: 32px; }
  #features, #tour, .perf, .faq { margin: 96px 0; }
  .works { margin-top: 56px; }
  .works ul { gap: 10px 20px; }
  .works li { font-size: 15px; }
  .works svg { width: 18px; height: 18px; }
  .tile.w4, .tile.w6 { grid-column: span 12; }
  .tile { min-height: 0; }
  .tabs button { padding: 8px 12px; }
  .zero { font-size: 104px; }
}
@media (max-width: 480px) {
  .numbers { grid-template-columns: 1fr; }
  .tile { padding: 22px 20px 24px; }
  .actions .btn { width: 100%; }
  .badge { font-size: 12.5px; }
  .cta { padding: 64px 20px 48px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .noise { display: none; }
  .pulse, .panel, .qa details[open] p { animation: none !important; }
  .numbers.in .col { animation: none !important; }
  .in .notes .pics, .in .pics u, .in .pointer, .in .blank span::after, .in .trk { animation: none !important; }
  .in .note, .in .banners, .in .toast, .in .sending i, .in .sky i, .in .lists svg, .took b { animation: none !important; }
  .cur, .banners .banner { transition: none; }
  .btn, .tabs .thumb, .word, .reply svg, .swatches i, .hits li { transition: none; }
}
