/*
 * SmartCleanup — the product site of an on-device photo and storage cleaner.
 *
 * The app's own design decides this file:
 *
 *   - ONE action colour. #249BEB is the app's AccentColor. Everything a visitor
 *     can press is that blue; nothing that is not pressable borrows it.
 *   - Three colours are the app's confidence labels and mean nothing else:
 *     green "pre-selected", amber "suggested", a grey ring "info only". A green
 *     tick for "included" or an amber border for decoration would teach the
 *     reader a second meaning for a colour the app uses to say how sure it is.
 *   - Red is the delete bar and the critical notice, nowhere else.
 *   - Sizes are set in tabular figures, so "~1.6 GB" and "~0.9 GB" line up.
 *
 * Light is the base, as the app's is. The app has a dark mode and so does this,
 * and a visitor's own choice wins over both.
 */

/* -------------------------------------------------------------------------
 * Colour modes — three blocks, and the order is the mechanism.
 *
 * The runtime sets `data-theme` on <html> from an inline script in <head>, before
 * first paint. It does NOT set it on the server: the preference lives in the
 * visitor's browser and the server has never seen it. So the theme is asked what
 * to do when the attribute is ABSENT, and the answer has to be "obey the OS".
 *
 *   1. `:root`                      — LIGHT, the base. Applies when nothing else does.
 *   2. `prefers-color-scheme: dark` — the OS speaking, honoured only while the
 *                                     visitor has not explicitly chosen light.
 *   3. `[data-theme="dark"]`        — an explicit choice, which beats the OS.
 *
 * The dark tokens are written twice, in 2 and 3. Plain CSS cannot name a block of
 * declarations and apply it under two conditions, so keep the two lists
 * identical — build.mjs refuses to build when they drift.
 * ---------------------------------------------------------------------- */

:root {
  --sc-accent: #249beb;
  --sc-accent-2: #4fb2f2;
  --sc-on-accent: #ffffff;

  --sc-radius: 16px;
  --sc-radius-sm: 12px;
  --sc-radius-lg: 24px;
  --sc-pill: 999px;

  --sc-header-h: 62px;
  --sc-band: clamp(48px, 5.2vw, 84px);
  --sc-band-sm: clamp(28px, 3vw, 44px);
  --sc-head-gap: clamp(24px, 2.8vw, 36px);
  --sc-doc-gap: 38px;

  --sc-bg: #f7f9fc;
  --sc-surface: #ffffff;
  --sc-panel: #ffffff;
  --sc-panel-2: #f1f4f8;
  --sc-tint: #edf2f8;
  --sc-line: #e2e7ee;
  --sc-ink: #0f1722;
  --sc-muted: #5f6b7a;
  --sc-shadow: 0 20px 48px rgba(15, 23, 34, 0.12);
  --sc-shadow-sm: 0 6px 18px rgba(15, 23, 34, 0.08);
  --sc-high: #16a34a;
  --sc-medium: #d99a06;
  --sc-info: #8a94a3;
  --sc-danger: #e5332a;
  --sc-accent-text: #0b6db3;
  --sc-grid: rgba(15, 23, 34, 0.05);

  /* Glass — see "Glass and depth" at the end of this file. */
  --sc-aurora-1: rgba(36, 155, 235, 0.26);
  --sc-aurora-2: rgba(251, 146, 60, 0.22);
  --sc-aurora-3: rgba(167, 139, 250, 0.22);
  --sc-aurora-4: rgba(244, 114, 182, 0.18);
  --sc-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
  --sc-glass-solid: rgba(255, 255, 255, 0.9);
  --sc-glass-band: rgba(237, 242, 248, 0.45);
  --sc-glass-edge: rgba(255, 255, 255, 0.9);
  --sc-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(15, 23, 34, 0.04),
    0 0 0 1px rgba(15, 23, 34, 0.06), 0 2px 4px rgba(15, 23, 34, 0.04), 0 14px 32px -12px rgba(15, 23, 34, 0.2);
  --sc-lift-up:
    inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(15, 23, 34, 0.04),
    0 0 0 1px rgba(15, 23, 34, 0.06), 0 4px 8px rgba(15, 23, 34, 0.05), 0 26px 48px -16px rgba(15, 23, 34, 0.3);
}

/* ---- DARK, from the OS, while no explicit light choice is in force ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sc-bg: #0e1116;
    --sc-surface: #151a21;
    --sc-panel: #181e26;
    --sc-panel-2: #222a34;
    --sc-tint: #131820;
    --sc-line: #2a323d;
    --sc-ink: #eef2f7;
    --sc-muted: #9aa6b5;
    --sc-shadow: 0 28px 72px rgba(0, 0, 0, 0.6);
    --sc-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.45);
    --sc-high: #4ade80;
    --sc-medium: #f4c14d;
    --sc-info: #8a94a3;
    --sc-danger: #ff6b63;
    --sc-accent: #51b8ff;
    --sc-on-accent: #04121f;
    --sc-accent-text: #7ccbff;
    --sc-grid: rgba(220, 228, 240, 0.05);
    --sc-aurora-1: rgba(36, 155, 235, 0.18);
    --sc-aurora-2: rgba(234, 88, 12, 0.13);
    --sc-aurora-3: rgba(124, 58, 237, 0.2);
    --sc-aurora-4: rgba(219, 39, 119, 0.11);
    --sc-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    --sc-glass-solid: rgba(24, 30, 38, 0.92);
    --sc-glass-band: rgba(19, 24, 32, 0.45);
    --sc-glass-edge: rgba(255, 255, 255, 0.12);
    --sc-lift:
      inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 36px -12px rgba(0, 0, 0, 0.7);
    --sc-lift-up:
      inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.35), 0 28px 52px -16px rgba(0, 0, 0, 0.85);
  }
}

/* ---- DARK, chosen by the visitor. Same list as above. ---- */
:root[data-theme="dark"] {
  --sc-bg: #0e1116;
  --sc-surface: #151a21;
  --sc-panel: #181e26;
  --sc-panel-2: #222a34;
  --sc-tint: #131820;
  --sc-line: #2a323d;
  --sc-ink: #eef2f7;
  --sc-muted: #9aa6b5;
  --sc-shadow: 0 28px 72px rgba(0, 0, 0, 0.6);
  --sc-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.45);
  --sc-high: #4ade80;
  --sc-medium: #f4c14d;
  --sc-info: #8a94a3;
  --sc-danger: #ff6b63;
  --sc-accent: #51b8ff;
  --sc-on-accent: #04121f;
  --sc-accent-text: #7ccbff;
  --sc-grid: rgba(220, 228, 240, 0.05);
  --sc-aurora-1: rgba(36, 155, 235, 0.18);
  --sc-aurora-2: rgba(234, 88, 12, 0.13);
  --sc-aurora-3: rgba(124, 58, 237, 0.2);
  --sc-aurora-4: rgba(219, 39, 119, 0.11);
  --sc-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  --sc-glass-solid: rgba(24, 30, 38, 0.92);
  --sc-glass-band: rgba(19, 24, 32, 0.45);
  --sc-glass-edge: rgba(255, 255, 255, 0.12);
  --sc-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 36px -12px rgba(0, 0, 0, 0.7);
  --sc-lift-up:
    inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.35), 0 28px 52px -16px rgba(0, 0, 0, 0.85);
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

.sc {
  background: var(--sc-bg);
  color: var(--sc-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.sc *,
.sc *::before,
.sc *::after {
  box-sizing: border-box;
}

/*
 * The resets sit under `:where()` so they weigh nothing.
 *
 * Written as `.sc p` they scored (0,1,1) and beat every one-class rule that sets
 * a paragraph's margin — `.sc__lead`, `.sc__note`, `.sc__eyebrow`,
 * `.sc__doc-updated`, `.sc__data-where` — so each of those spacings silently
 * came out as 0 and the lead sat on the headline, the notes on the cards above
 * them and the update date on the page title. Zero-weight resets let the
 * component rules below say what they mean.
 */
:where(.sc) h1,
:where(.sc) h2,
:where(.sc) h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.sc h1 {
  font-size: clamp(32px, 4.4vw, 52px);
}

.sc h2 {
  font-size: clamp(25px, 2.9vw, 36px);
}

.sc h3 {
  font-size: 19px;
  font-weight: 700;
}

:where(.sc) p {
  margin: 0;
}

.sc a {
  color: inherit;
}

.sc img {
  max-width: 100%;
  height: auto;
}

.sc :focus-visible {
  outline: 3px solid var(--sc-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.sc__measure {
  max-width: 760px;
}

.sc__section {
  padding-block: var(--sc-band);
}

/* The header is sticky, so anything an in-page link scrolls to has to clear it —
   every band with an anchor, every numbered heading on a policy page. */
.sc [id] {
  scroll-margin-top: calc(var(--sc-header-h) + 16px);
}

.sc__section--tint {
  background: var(--sc-tint);
}

.sc__skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 12px 18px;
  background: var(--sc-accent);
  color: var(--sc-on-accent);
  border-radius: 0 0 var(--sc-radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}

.sc__skip:focus {
  left: 0;
}

/* -------------------------------------------------------------------------
 * Type and controls
 * ---------------------------------------------------------------------- */

.sc__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--sc-pill);
  background: linear-gradient(180deg, var(--sc-accent-2), var(--sc-accent));
  color: var(--sc-on-accent);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  box-shadow: var(--sc-shadow-sm);
}

.sc__button:hover {
  filter: brightness(1.05);
}

.sc__button--ghost {
  background: transparent;
  color: var(--sc-ink);
  border: 1.5px solid var(--sc-line);
  box-shadow: none;
}

.sc__button--small {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 15px;
}

.sc__text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sc-accent-text);
  font-weight: 700;
  text-decoration: none;
}

.sc__text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 22px;
}

.sc__eyebrow {
  margin-bottom: 12px;
  color: var(--sc-accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sc__lead {
  margin-top: 16px;
  color: var(--sc-muted);
  font-size: clamp(17px, 1.5vw, 19px);
}

.sc__accent {
  color: var(--sc-accent-text);
}

.sc__note {
  margin-top: 22px;
  color: var(--sc-muted);
  font-size: 15px;
}

.sc__empty {
  padding: 40px 0;
  color: var(--sc-muted);
  text-align: center;
}

.sc__section-head {
  max-width: 720px;
  margin-bottom: var(--sc-head-gap);
}

.sc__section-head--center {
  margin-inline: auto;
  text-align: center;
}

.sc__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

/*
 * No `backdrop-filter` here on mobile, and that is not a style choice.
 *
 * `backdrop-filter` (like `filter` and `transform`) makes an element the
 * containing block for its `position: fixed` descendants. With it on, the
 * drawer's `top: 62px; bottom: 0` resolved against the 62px-tall HEADER rather
 * than the viewport, and the menu opened as a 48px sliver with the close button
 * in it. The blur is restored at ≥900px, where the panel is static and cannot be
 * caught by it.
 */
.sc__header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--sc-surface);
  border-bottom: 1px solid var(--sc-line);
}

/*
 * The bar keeps ONE height on mobile, always.
 *
 * It used to be a wrapping flex row with the menu panel as a full-width child,
 * so opening the menu grew the sticky header and shoved the page under it. The
 * panel is now a fixed overlay (below) and the bar never wraps, which is what
 * makes the header a fixed, known quantity — the drawer hangs off it and every
 * in-page anchor offsets by it.
 */
.sc__header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--sc-header-h);
  flex-wrap: nowrap;
}

.sc__menu-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--sc-radius-sm);
  border: 1px solid var(--sc-line);
  color: inherit;
  text-decoration: none;
}

/*
 * Three bars, drawn absolutely so the box stays 2px tall whatever the bars do.
 *
 * The earlier version put the outer two in flow with `position: relative` and
 * `top` nudges, which meant crossing them into an × moved the box as well as the
 * bars. Absolute takes the pseudo-elements out of layout entirely: the × is two
 * rotations and nothing shifts.
 */
.sc__menu-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.sc__menu-bars::before,
.sc__menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.sc__menu-bars::before {
  top: -6px;
}

.sc__menu-bars::after {
  top: 6px;
}

/* Open: the middle bar goes, the outer two cross. */
.sc__menu-bars--x {
  background: transparent;
}

.sc__menu-bars--x::before {
  top: 0;
  transform: rotate(45deg);
}

.sc__menu-bars--x::after {
  top: 0;
  transform: rotate(-45deg);
}

/*
 * Which of the two links is showing.
 *
 * `:has()` because the buttons come BEFORE the drawer in the markup and there is
 * no previous-sibling combinator. It is not a new floor for this theme — the
 * palette already depends on `color-mix()`, which landed later than `:has()` in
 * every engine. Where `:has()` is missing the opener simply stays put; the menu
 * still opens, and still closes on any menu link or the back button.
 */
.sc__menu-button--close {
  display: none;
}

.sc__header-inner:has(#sc-menu:target) .sc__menu-button--open {
  display: none;
}

/* Open, and looking it: the button wears the accent while the drawer is down. */
.sc__header-inner:has(#sc-menu:target) .sc__menu-button--close {
  display: inline-flex;
  border-color: var(--sc-accent);
  background: color-mix(in srgb, var(--sc-accent) 12%, transparent);
  color: var(--sc-accent-text);
}

/*
 * The drawer.
 *
 * `position: fixed` under the bar, so opening it changes NOTHING about the
 * header's height or the page's layout — the defect this replaced. It scrolls
 * itself when a long menu meets a short phone, and `overscroll-behavior` keeps
 * that scroll from chaining into the page behind it.
 */
.sc__header-panel {
  display: none;
  position: fixed;
  top: var(--sc-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--sc-surface);
  border-top: 1px solid var(--sc-line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sc__header-panel .sc__nav {
  margin-top: 4px;
}

.sc__header-panel:target {
  display: flex;
}

.sc__nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc__nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--sc-line);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.sc__nav a:hover {
  color: var(--sc-accent-text);
}

.sc__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.sc__brand img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}

.sc__brand-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--sc-accent-2), var(--sc-accent));
  color: var(--sc-on-accent);
}

.sc__brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc__brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.sc__brand-text strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc__brand-text small {
  color: var(--sc-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc__brand--compact img,
.sc__brand--compact .sc__brand-mark {
  width: 38px;
  height: 38px;
}

.sc__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sc__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--sc-radius-sm);
  border: 1px solid var(--sc-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sc__icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---- Language switcher ---- */

.sc__lang {
  position: relative;
}

.sc__lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--sc-radius-sm);
  border: 1px solid var(--sc-line);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sc__lang summary::-webkit-details-marker {
  display: none;
}

.sc__lang summary i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/*
 * A flag is a small rectangle of real-world colour, so it needs an edge of its
 * own: the Japanese flag is a white field, and without a rim it reads on a white
 * page as a floating red dot.
 *
 * The rim is an OUTSET ring, not `inset`. An inset box-shadow paints between the
 * element's background and its content, and each of these flags starts with a
 * full-bleed `<rect>` — which covered the ring exactly where it was needed. Grey
 * rather than black so the same value works in both colour modes.
 */
.sc__flag {
  width: 21px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45);
}

.sc__lang ul {
  position: absolute;
  /* In the drawer the switcher sits at the left edge, so the list opens
     rightwards from it; anchored right it would hang off the screen. */
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: 178px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  box-shadow: var(--sc-shadow);
}

.sc__lang a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
}

.sc__lang a:hover,
.sc__lang a[aria-current="page"] {
  background: var(--sc-panel-2);
}

/* -------------------------------------------------------------------------
 * Store buttons
 * ---------------------------------------------------------------------- */

.sc__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.sc .sc__store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px 10px 16px;
  border-radius: var(--sc-radius-sm);
  background: var(--sc-ink);
  color: var(--sc-bg);
  text-decoration: none;
}

.sc__store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.sc__store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sc__store small {
  font-size: 11px;
  opacity: 0.75;
}

.sc__store strong {
  font-size: 17px;
  font-weight: 700;
}

.sc .sc__store--soon {
  background: transparent;
  color: var(--sc-muted);
  border: 1.5px dashed var(--sc-line);
}

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

.sc__hero {
  position: relative;
  padding-block: clamp(40px, 5vw, 76px) var(--sc-band);
  background-image:
    linear-gradient(var(--sc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sc-grid) 1px, transparent 1px);
  background-size: 34px 34px;
}

.sc__hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.sc__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.sc__hero-notes li {
  padding: 7px 14px;
  border-radius: var(--sc-pill);
  background: var(--sc-panel-2);
  color: var(--sc-muted);
  font-size: 13.5px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
 * The phones
 *
 * Redrawn from the app's own screenshots, and drawn rather than screenshotted for
 * the usual three reasons: it is sharp at every density, it translates with the
 * page, and it does not go stale the day the app's type changes.
 *
 * The whole mockup scales off ONE number. `--sc-ph` is the screen width, and
 * every size inside is a fraction of it, so the pair shrinks to fit a 390px
 * viewport without a single extra media query — and without the 11px text that
 * a fixed-pixel mockup ends up with when it is squeezed.
 * ---------------------------------------------------------------------- */

.sc__phones {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 20px);
  justify-content: center;
  justify-self: center;
  width: 100%;
}

/*
 * The phones FILL their column rather than sitting at a fixed width inside it.
 *
 * They used to be `width: 252px` each, centred — which left the pair 17px short
 * of the container on both sides, so the hero looked misaligned against the
 * cards below it even though every container on the page has the same edges.
 * Flexing to the column fixes the alignment and buys the mockup its width back
 * in the same change.
 *
 * `--sc-ph` is the screen width that every size inside the mockup is a fraction
 * of. With a flexed phone we no longer know that number up front, so the phone
 * becomes a container and the screen reads its OWN rendered width with `cqw`.
 * The px value on the line above is the fallback: where container queries are
 * missing the mockup is drawn slightly small rather than not at all, because a
 * `--sc-ph` that fails to parse would take every calc() in this file with it.
 */
.sc__phone {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  max-width: 320px;
}

.sc__phone-screen {
  flex: 1;
}

/*
 * Below 620px the second phone goes, rather than stacking.
 *
 * Two full app screens stacked on a 390px viewport push the headline, the store
 * buttons and the whole rest of the page about a screen and a half down — and
 * the reader who most needs those buttons is the one holding a phone. One
 * screen still shows what the app looks like; two is a luxury of width.
 */
@media (max-width: 619px) {
  .sc__phone--second {
    display: none;
  }
}


/*
 * The screen is drawn the way the app draws itself since the Liquid Glass
 * redesign: an aurora of four soft blobs over a warm base, glass cards on top.
 * The blob colours, alphas and positions are the app's own (ios Shared/
 * Glass.swift, android ui/theme/Glass.kt) — change them there first.
 *
 * The screen follows the SITE's colour mode, not a fixed one: a reader in dark
 * mode sees the app as they would see it on their own phone at night.
 */
.sc__phone-screen {
  --sc-ph: 264px;
  --sc-ph: 100cqw;
  --ap-base: #f7f2ef;
  --ap-blob-1: rgba(251, 146, 60, 0.38);
  --ap-blob-2: rgba(244, 114, 182, 0.26);
  --ap-blob-3: rgba(167, 139, 250, 0.22);
  --ap-blob-4: rgba(125, 211, 252, 0.22);
  --ap-ink: #16110f;
  --ap-muted: rgba(60, 50, 50, 0.55);
  --ap-glass-top: rgba(255, 255, 255, 0.55);
  --ap-glass-bottom: rgba(255, 255, 255, 0.25);
  --ap-glass-line: rgba(255, 255, 255, 0.9);
  --ap-glass-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  --ap-inset: rgba(234, 88, 12, 0.07);
  --ap-inset-line: rgba(255, 255, 255, 0.7);
  --ap-accent: #c2410c;
  --ap-track: rgba(60, 40, 30, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--sc-ph) * 0.13);
  background:
    radial-gradient(circle calc(var(--sc-ph) * 1.6) at -10% 5%, var(--ap-blob-1), transparent),
    radial-gradient(circle calc(var(--sc-ph) * 1.5) at 110% 20%, var(--ap-blob-2), transparent),
    radial-gradient(circle calc(var(--sc-ph) * 1.5) at 0% 60%, var(--ap-blob-3), transparent),
    radial-gradient(circle calc(var(--sc-ph) * 1.6) at 100% 95%, var(--ap-blob-4), transparent),
    var(--ap-base);
  border: calc(var(--sc-ph) * 0.022) solid #1b1b1f;
  box-shadow: var(--sc-shadow);
  font-size: calc(var(--sc-ph) * 0.045);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sc__phone-screen {
    --ap-base: #0d0b10;
    --ap-blob-1: rgba(234, 88, 12, 0.3);
    --ap-blob-2: rgba(219, 39, 119, 0.22);
    --ap-blob-3: rgba(124, 58, 237, 0.24);
    --ap-blob-4: rgba(2, 132, 199, 0.2);
    --ap-ink: #f5f3f7;
    --ap-muted: rgba(235, 230, 240, 0.55);
    --ap-glass-top: rgba(255, 255, 255, 0.08);
    --ap-glass-bottom: rgba(255, 255, 255, 0.03);
    --ap-glass-line: rgba(255, 255, 255, 0.16);
    --ap-glass-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    --ap-inset: rgba(0, 0, 0, 0.18);
    --ap-inset-line: rgba(255, 255, 255, 0.14);
    --ap-accent: #ff8a4c;
    --ap-track: rgba(255, 255, 255, 0.14);
  }
}

:root[data-theme="dark"] .sc__phone-screen {
  --ap-base: #0d0b10;
  --ap-blob-1: rgba(234, 88, 12, 0.3);
  --ap-blob-2: rgba(219, 39, 119, 0.22);
  --ap-blob-3: rgba(124, 58, 237, 0.24);
  --ap-blob-4: rgba(2, 132, 199, 0.2);
  --ap-ink: #f5f3f7;
  --ap-muted: rgba(235, 230, 240, 0.55);
  --ap-glass-top: rgba(255, 255, 255, 0.08);
  --ap-glass-bottom: rgba(255, 255, 255, 0.03);
  --ap-glass-line: rgba(255, 255, 255, 0.16);
  --ap-glass-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  --ap-inset: rgba(0, 0, 0, 0.18);
  --ap-inset-line: rgba(255, 255, 255, 0.14);
  --ap-accent: #ff8a4c;
  --ap-track: rgba(255, 255, 255, 0.14);
}

/* The home indicator. Two pixels of hardware that make the frame read as a
   phone rather than as a floating card. */
.sc__phone-bar {
  display: block;
  width: 36%;
  height: 4px;
  margin: 8px auto 0;
  border-radius: var(--sc-pill);
  background: var(--sc-line);
}

/* The screen is a fixed-size window onto a longer page, as a screenshot is:
   whatever does not fit runs out under the tab bar, the way it does in the
   app, instead of the frame growing to fit the content. */
.sc__app {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(var(--sc-ph) * 0.035);
  padding: 0 calc(var(--sc-ph) * 0.04);
  color: var(--ap-ink);
  line-height: 1.3;
}

.sc__app b,
.sc__app small {
  display: block;
}

.sc__app small {
  color: var(--ap-muted);
}

.sc__app em,
.sc__app i {
  font-style: normal;
}

.sc__app svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Glass ---- */

.sc__glass {
  border-radius: calc(var(--sc-ph) * 0.06);
  background: linear-gradient(180deg, var(--ap-glass-top), var(--ap-glass-bottom));
  border: 1px solid var(--ap-glass-line);
  box-shadow: var(--ap-glass-shadow);
}

/* ---- Status bar ---- */

.sc__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--sc-ph) * 0.035) calc(var(--sc-ph) * 0.05) 0;
  font-size: calc(var(--sc-ph) * 0.045);
  font-weight: 700;
}

.sc__status-icons {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--sc-ph) * 0.017);
}

.sc__app .sc__status-icons svg {
  height: calc(var(--sc-ph) * 0.04);
  width: auto;
  fill: currentColor;
  stroke: none;
}

/* ---- Dashboard ---- */

.sc__app-large {
  margin-top: calc(var(--sc-ph) * 0.015);
  font-size: calc(var(--sc-ph) * 0.1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sc__app-hero {
  display: flex;
  flex-direction: column;
  gap: calc(var(--sc-ph) * 0.028);
  padding: calc(var(--sc-ph) * 0.04);
}

.sc__app-usage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--sc-ph) * 0.03);
}

.sc__app-usage small {
  font-size: calc(var(--sc-ph) * 0.04);
}

.sc__app-used {
  font-size: calc(var(--sc-ph) * 0.068);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sc__app-used em {
  font-size: 0.62em;
  font-weight: 700;
}

/* The storage ring: a conic gradient masked to a band, the share in the middle. */
.sc__app-ring {
  --ap-share: 77%;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: calc(var(--sc-ph) * 0.24);
  aspect-ratio: 1;
  border-radius: 50%;
}

.sc__app-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#f97316 0, #ef4444 var(--ap-share), var(--ap-track) var(--ap-share));
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
}

.sc__app-ring b {
  font-size: calc(var(--sc-ph) * 0.052);
  font-weight: 700;
}

.sc__app-reclaim {
  display: flex;
  flex-direction: column;
  gap: calc(var(--sc-ph) * 0.015);
  padding: calc(var(--sc-ph) * 0.035) calc(var(--sc-ph) * 0.04);
  border-radius: calc(var(--sc-ph) * 0.05);
  background: var(--ap-inset);
  border: 1px solid var(--ap-inset-line);
}

.sc__app-reclaim > small:first-child {
  color: var(--ap-ink);
  font-size: calc(var(--sc-ph) * 0.042);
}

.sc__app-big {
  font-size: calc(var(--sc-ph) * 0.1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.sc__app-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.sc__app-row small {
  font-size: calc(var(--sc-ph) * 0.032);
  white-space: nowrap;
}

.sc__app-row small:first-child {
  color: var(--ap-ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc__app-track {
  display: flex;
  height: calc(var(--sc-ph) * 0.01);
  border-radius: var(--sc-pill);
  background: var(--ap-track);
  overflow: hidden;
}

.sc__app-scan {
  width: 26%;
  border-radius: inherit;
  background: #f97316;
}

/* The stacked bar, one colour per section — the app's section colours
   (Formatters.swift). They appear nowhere else on the site: a section colour
   anywhere else would start to read as a confidence label, which it is not. */
.sc__app-stack {
  display: flex;
  gap: calc(var(--sc-ph) * 0.012);
  height: calc(var(--sc-ph) * 0.03);
}

.sc__app-seg {
  flex-basis: 0;
  border-radius: var(--sc-pill);
}

.sc__app-seg--duplicates,
.sc__app-key--duplicates::before {
  background: #8c5cf5;
}

.sc__app-seg--photos,
.sc__app-key--photos::before {
  background: #3385f5;
}

.sc__app-seg--screenshots,
.sc__app-key--screenshots::before {
  background: #fa9421;
}

.sc__app-seg--videos,
.sc__app-key--videos::before {
  background: #ed4782;
}

.sc__app-legend {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--sc-ph) * 0.01) calc(var(--sc-ph) * 0.03);
}

.sc__app-key {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--sc-ph) * 0.014);
  font-size: calc(var(--sc-ph) * 0.034);
  white-space: nowrap;
}

.sc__app-key::before {
  content: "";
  width: calc(var(--sc-ph) * 0.024);
  height: calc(var(--sc-ph) * 0.024);
  border-radius: 50%;
}

.sc__app .sc__app-cleaned {
  color: var(--ap-accent);
  font-size: calc(var(--sc-ph) * 0.038);
}

.sc__app-section {
  display: flex;
  align-items: center;
  gap: calc(var(--sc-ph) * 0.025);
  margin-top: calc(var(--sc-ph) * 0.01);
}

.sc__app-section b {
  flex: 1;
  font-size: calc(var(--sc-ph) * 0.056);
  font-weight: 700;
  text-transform: uppercase;
}

.sc__app-section small {
  font-size: calc(var(--sc-ph) * 0.045);
}

.sc__app-section-mark {
  display: inline-grid;
  place-items: center;
  width: calc(var(--sc-ph) * 0.085);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
}

.sc__app-section-mark svg {
  width: 60%;
  height: 60%;
}

.sc__app-section-mark--gray {
  background: #8e8e93;
}

.sc__app-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--sc-ph) * 0.03);
}

.sc__app-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sc__app-cover {
  position: relative;
  aspect-ratio: 2.6 / 1;
}

.sc__app .sc__app-play {
  position: absolute;
  left: 7%;
  bottom: 10%;
  width: 18%;
  padding: 2%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  fill: #fff;
  stroke: none;
}

.sc__app-tile-body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--sc-ph) * 0.006);
  padding: calc(var(--sc-ph) * 0.022) calc(var(--sc-ph) * 0.035) calc(var(--sc-ph) * 0.03);
}

.sc__app-tile-body b {
  font-size: calc(var(--sc-ph) * 0.045);
  font-weight: 600;
}

.sc__app-tile-body small {
  font-size: calc(var(--sc-ph) * 0.038);
}

.sc__app-tile-body em {
  font-size: calc(var(--sc-ph) * 0.06);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sc__app-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc__app-tile-icon {
  width: calc(var(--sc-ph) * 0.07);
  height: calc(var(--sc-ph) * 0.07);
}

.sc__app-tile-icon--video {
  color: #ed4782;
}

.sc__app-tile-icon--photo {
  color: #3385f5;
}

.sc__app-chev {
  width: calc(var(--sc-ph) * 0.05);
  height: calc(var(--sc-ph) * 0.05);
  color: var(--ap-muted);
}

/* ---- The floating tab bar ---- */

.sc__app-tabs {
  position: absolute;
  left: calc(var(--sc-ph) * 0.035);
  right: calc(var(--sc-ph) * 0.035);
  bottom: calc(var(--sc-ph) * 0.035);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: calc(var(--sc-ph) * 0.025) calc(var(--sc-ph) * 0.01);
  border-radius: var(--sc-pill);
  background: linear-gradient(180deg, var(--ap-glass-top), var(--ap-glass-bottom));
  border: 1px solid var(--ap-glass-line);
  box-shadow: var(--ap-glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.sc__app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--sc-ph) * 0.008);
  min-width: 0;
  color: var(--ap-muted);
  font-size: calc(var(--sc-ph) * 0.03);
  white-space: nowrap;
}

.sc__app-tab svg {
  width: calc(var(--sc-ph) * 0.062);
  height: calc(var(--sc-ph) * 0.062);
}

.sc__app-tab--on {
  color: var(--ap-accent);
  font-weight: 700;
}

/* The raised Clean-up button: an orange sphere that breaks out of the bar. */
.sc__app-fab {
  display: grid;
  place-items: center;
  width: calc(var(--sc-ph) * 0.15);
  aspect-ratio: 1;
  margin-top: calc(var(--sc-ph) * -0.1);
  border-radius: 50%;
  background: linear-gradient(180deg, #fb923c, #ea580c);
  border: calc(var(--sc-ph) * 0.008) solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 calc(var(--sc-ph) * 0.015) calc(var(--sc-ph) * 0.04) rgba(234, 88, 12, 0.5);
}

.sc__app .sc__app-fab svg {
  width: 55%;
  height: 55%;
  fill: #fff;
  stroke: none;
}

/* ---- Category screen ---- */

.sc__app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--sc-ph) * 0.02);
  margin-top: calc(var(--sc-ph) * 0.02);
}

.sc__app-nav b {
  min-width: 0;
  font-size: calc(var(--sc-ph) * 0.05);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc__app-round {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--sc-ph) * 0.1);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ap-glass-top), var(--ap-glass-bottom));
  border: 1px solid var(--ap-glass-line);
  box-shadow: var(--ap-glass-shadow);
}

.sc__app-round svg {
  width: 55%;
  height: 55%;
  stroke-width: 2.2;
}

.sc__app-intro {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--sc-ph) * 0.025);
}

.sc__app-intro small {
  font-size: calc(var(--sc-ph) * 0.036);
  line-height: 1.35;
}

/* The confidence label, as a pill with its dot — "Safe" here. */
.sc__app-conf {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: calc(var(--sc-ph) * 0.012);
  padding: calc(var(--sc-ph) * 0.01) calc(var(--sc-ph) * 0.025);
  border-radius: var(--sc-pill);
  background: color-mix(in srgb, #22c55e 18%, transparent);
  font-size: calc(var(--sc-ph) * 0.034);
  font-weight: 600;
  white-space: nowrap;
}

.sc__app-conf::before {
  content: "";
  width: calc(var(--sc-ph) * 0.02);
  height: calc(var(--sc-ph) * 0.02);
  border-radius: 50%;
  background: #22c55e;
}

.sc__app-chips {
  display: flex;
  gap: calc(var(--sc-ph) * 0.022);
}

.sc__app-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--sc-ph) * 0.012);
  min-width: 0;
  padding: calc(var(--sc-ph) * 0.018) calc(var(--sc-ph) * 0.035);
  border-radius: var(--sc-pill);
  background: linear-gradient(180deg, var(--ap-glass-top), var(--ap-glass-bottom));
  border: 1px solid var(--ap-glass-line);
  color: var(--ap-muted);
  font-size: calc(var(--sc-ph) * 0.036);
  font-weight: 600;
  white-space: nowrap;
}

.sc__app-chip svg {
  width: calc(var(--sc-ph) * 0.045);
  height: calc(var(--sc-ph) * 0.045);
}

.sc__app-chip--on {
  color: var(--ap-accent);
}

.sc__app-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--sc-ph) * 0.025);
  padding: calc(var(--sc-ph) * 0.04);
}

.sc__app-group-head {
  display: flex;
  align-items: baseline;
  gap: calc(var(--sc-ph) * 0.02);
  white-space: nowrap;
}

.sc__app-group-head b {
  flex: 1;
  font-size: calc(var(--sc-ph) * 0.045);
  font-weight: 700;
}

.sc__app-group-head small {
  font-size: calc(var(--sc-ph) * 0.036);
}

.sc__app-group-head em {
  color: var(--ap-accent);
  font-size: calc(var(--sc-ph) * 0.036);
  font-weight: 600;
}

/* Thumbnails in a group scroll sideways in the app; three fit, the fourth is
   cut by the card's edge, which is how the reader knows there is more. */
.sc__thumbs {
  display: flex;
  gap: calc(var(--sc-ph) * 0.02);
  margin-right: calc(var(--sc-ph) * -0.04);
  overflow: hidden;
}

/*
 * A photo, as a gradient. Each group shares a family of tones with a small
 * shift between them, because that is what a group of repeated shots IS — the
 * same picture four times, slightly different — and the eye reads the row as
 * one group before reading any label.
 */
.sc__thumb {
  position: relative;
  flex: 0 0 31%;
  aspect-ratio: 1;
  border-radius: calc(var(--sc-ph) * 0.045);
  overflow: hidden;
}

.sc__thumb--sea {
  background: linear-gradient(180deg, #8ecdf5 0 46%, #2f7fc1 46% 70%, #f1d7a8 70%);
}
.sc__thumb--sea2 {
  background: linear-gradient(180deg, #92d0f6 0 44%, #327fbf 44% 69%, #efd4a3 69%);
}
.sc__thumb--sea3 {
  background: linear-gradient(180deg, #88c7ee 0 48%, #2b78b8 48% 72%, #ecd0a0 72%);
}
.sc__thumb--sea4 {
  background: linear-gradient(180deg, #9ad3f5 0 45%, #3584c4 45% 71%, #f3dbad 71%);
  filter: blur(0.6px);
}
.sc__thumb--dusk {
  background: radial-gradient(circle at 50% 62%, #ffd27a 0 12%, transparent 13%),
    linear-gradient(180deg, #f59e8b 0%, #f7b267 55%, #3d3a5c 55%);
}
.sc__thumb--dusk2 {
  background: radial-gradient(circle at 52% 64%, #ffd27a 0 11%, transparent 12%),
    linear-gradient(180deg, #f39a88 0%, #f5ad62 57%, #3a3758 57%);
}
.sc__thumb--dusk3 {
  background: radial-gradient(circle at 48% 60%, #ffd9887a 0 13%, transparent 14%),
    linear-gradient(180deg, #e98f80 0%, #eea55f 53%, #36334f 53%);
}
.sc__thumb--leaf {
  background: radial-gradient(circle at 35% 40%, #9be07c 0 22%, transparent 23%),
    radial-gradient(circle at 70% 55%, #4caf50 0 26%, transparent 27%),
    linear-gradient(180deg, #d9f2d0, #2e7d32);
}
.sc__thumb--leaf2 {
  background: radial-gradient(circle at 37% 42%, #97dc78 0 21%, transparent 22%),
    radial-gradient(circle at 68% 56%, #48aa4c 0 25%, transparent 26%),
    linear-gradient(180deg, #d4efca, #2b7a30);
}
.sc__thumb--leaf3 {
  background: radial-gradient(circle at 33% 38%, #a1e384 0 23%, transparent 24%),
    radial-gradient(circle at 72% 53%, #51b455 0 27%, transparent 28%),
    linear-gradient(180deg, #ddf4d4, #317f35);
  filter: brightness(0.7);
}

/* Ticked for deletion: dimmed, with the tick where the app puts it. */
.sc__thumb--picked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.sc__thumb-tick,
.sc__thumb-ring {
  position: absolute;
  top: 7%;
  right: 7%;
  z-index: 1;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.sc__thumb-tick {
  display: grid;
  place-items: center;
  background: var(--ap-accent);
  border: 1.5px solid #fff;
}

.sc__app .sc__thumb-tick svg {
  width: 70%;
  height: 70%;
  stroke: #fff;
  stroke-width: 3.2;
}

.sc__thumb-ring {
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.15);
}

/* The keeper's label: never ticked, and labelled so that is visible. */
.sc__thumb-badge {
  position: absolute;
  top: 36%;
  left: 7%;
  padding: calc(var(--sc-ph) * 0.006) calc(var(--sc-ph) * 0.018);
  border-radius: var(--sc-pill);
  background: #34a853;
  color: #fff;
  font-size: calc(var(--sc-ph) * 0.03);
  font-weight: 700;
}

.sc__thumb-size {
  position: absolute;
  left: 7%;
  bottom: 7%;
  z-index: 1;
  padding: calc(var(--sc-ph) * 0.004) calc(var(--sc-ph) * 0.016);
  border-radius: var(--sc-pill);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: calc(var(--sc-ph) * 0.028);
  white-space: nowrap;
}

/* The delete button, floating over the list just above the tab bar. */
.sc__app-delete {
  position: absolute;
  left: calc(var(--sc-ph) * 0.035);
  right: calc(var(--sc-ph) * 0.035);
  bottom: calc(var(--sc-ph) * 0.25);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--sc-ph) * 0.02);
  padding: calc(var(--sc-ph) * 0.035);
  border-radius: var(--sc-pill);
  background: linear-gradient(180deg, #ef5350, #d32f2f);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 calc(var(--sc-ph) * 0.02) calc(var(--sc-ph) * 0.05) rgba(211, 47, 47, 0.4);
  color: #fff;
  font-size: calc(var(--sc-ph) * 0.045);
  font-weight: 700;
  white-space: nowrap;
}

.sc__app-delete svg {
  width: calc(var(--sc-ph) * 0.055);
  height: calc(var(--sc-ph) * 0.055);
}

/* -------------------------------------------------------------------------
 * Scenes
 * ---------------------------------------------------------------------- */

.sc__scene {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: var(--sc-radius-sm);
}

.sc__scene-plate {
  fill: var(--sc-tint);
}

/* Photos in a scene: three muted tones, so a row reads as pictures without
   being any particular picture. */
.sc__scene-photo--0 {
  fill: color-mix(in srgb, var(--sc-accent) 38%, var(--sc-surface));
}

.sc__scene-photo--1 {
  fill: color-mix(in srgb, #7c5cff 30%, var(--sc-surface));
}

.sc__scene-photo--2 {
  fill: color-mix(in srgb, #14b8a6 32%, var(--sc-surface));
}

.sc__scene-dim {
  opacity: 0.45;
}

.sc__scene-found {
  stroke: var(--sc-accent);
  stroke-width: 3;
}

.sc__scene-beam {
  fill: var(--sc-accent);
}

.sc__scene-tick {
  fill: var(--sc-accent);
  stroke: var(--sc-surface);
  stroke-width: 1.5;
}

.sc__scene-tick-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc__scene-ring {
  fill: none;
  stroke: var(--sc-surface);
  stroke-width: 1.5;
}

.sc__scene-keep {
  fill: var(--sc-high);
}

.sc__scene-card {
  fill: var(--sc-surface);
  stroke: var(--sc-line);
}

.sc__scene-bar {
  fill: var(--sc-muted);
  opacity: 0.55;
}

.sc__scene-bar--dim {
  opacity: 0.3;
}

.sc__scene-track {
  fill: var(--sc-line);
}

.sc__scene-fill {
  fill: var(--sc-high);
}

.sc__scene-fill--low {
  fill: var(--sc-medium);
}

.sc__scene-arrow,
.sc__scene-undo {
  fill: none;
  stroke: var(--sc-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc__scene-undo {
  stroke: var(--sc-high);
  stroke-dasharray: 5 5;
}

.sc__scene-bin {
  fill: none;
  stroke: var(--sc-muted);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc__scene-code {
  fill: color-mix(in srgb, var(--sc-accent) 18%, var(--sc-surface));
  stroke: var(--sc-accent);
  stroke-width: 1.5;
}

.sc__scene-qr {
  fill: var(--sc-panel-2);
}

.sc__scene-qr-mark {
  fill: var(--sc-ink);
  opacity: 0.7;
}

.sc__scene-shield {
  fill: var(--sc-high);
}

.sc__scene-play {
  fill: #fff;
  opacity: 0.9;
}

.sc__scene-wave {
  fill: none;
  stroke: var(--sc-muted);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.45;
}

.sc__scene-slash {
  fill: none;
  stroke: var(--sc-accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.sc__scene-lock {
  fill: var(--sc-accent);
}

.sc__scene-shackle {
  fill: none;
  stroke: var(--sc-accent);
  stroke-width: 5;
  stroke-linecap: round;
}

/* -------------------------------------------------------------------------
 * The flow
 * ---------------------------------------------------------------------- */

.sc__flow {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.sc__flow-step {
  position: relative;
  padding: 18px 20px 24px;
  border-radius: var(--sc-radius-lg);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
}

.sc__flow-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sc-accent-2), var(--sc-accent));
  color: var(--sc-on-accent);
  font-size: 15px;
  font-weight: 700;
}

.sc__flow-step p {
  margin-top: 8px;
  color: var(--sc-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Features
 * ---------------------------------------------------------------------- */

.sc__features {
  display: grid;
  gap: 16px;
}

.sc__feature {
  padding: 22px;
  border-radius: var(--sc-radius-lg);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
}

.sc__feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sc-accent) 12%, transparent);
  color: var(--sc-accent-text);
}

.sc__feature p {
  margin-top: 8px;
  color: var(--sc-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Numbers
 * ---------------------------------------------------------------------- */

.sc__stats-band {
  padding-block: var(--sc-band);
  background: var(--sc-tint);
}

.sc__stats {
  display: grid;
  gap: 20px;
  margin: 0;
}

.sc__stat {
  padding: 20px;
  border-radius: var(--sc-radius);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  text-align: center;
}

.sc__stat dt {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sc-accent-text);
  font-variant-numeric: tabular-nums;
}

.sc__stat dd {
  margin: 8px 0 0;
  color: var(--sc-muted);
  font-size: 14.5px;
}

/* -------------------------------------------------------------------------
 * Confidence labels and the category map
 * ---------------------------------------------------------------------- */

/* The label as a chip: a dot in the level's colour and the word beside it.
   The word carries the meaning; the colour only repeats it, so the chip reads
   the same to a reader who cannot tell green from amber. */
.sc__level {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--sc-pill);
  background: var(--sc-panel-2);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.sc__level::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sc__level--high {
  background: color-mix(in srgb, var(--sc-high) 14%, transparent);
}

.sc__level--high::before {
  background: var(--sc-high);
}

.sc__level--medium {
  background: color-mix(in srgb, var(--sc-medium) 18%, transparent);
}

.sc__level--medium::before {
  background: var(--sc-medium);
}

.sc__level--info::before {
  border: 2px solid var(--sc-info);
  width: 6px;
  height: 6px;
}

.sc__legend {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 18px 20px;
  border-radius: var(--sc-radius);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  list-style: none;
}

.sc__legend li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}

.sc__legend li span:last-child {
  color: var(--sc-muted);
}

.sc__legend .sc__level {
  min-width: 112px;
  justify-content: flex-start;
}

.sc__cats {
  display: grid;
  gap: 18px;
  align-items: start;
}

.sc__cat {
  padding: 22px 22px 8px;
  border-radius: var(--sc-radius-lg);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
}

.sc__cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.sc__cat-head .sc__feature-mark {
  margin: 0;
}

.sc__cat-head h3 {
  font-size: 19px;
}

.sc__cat ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc__cat li {
  padding: 13px 0;
  border-top: 1px solid var(--sc-line);
}

.sc__cat li:first-child {
  border-top: 0;
}

.sc__cat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sc__cat-line b {
  font-size: 15.5px;
}

.sc__cat li p {
  margin-top: 4px;
  color: var(--sc-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * The data list
 * ---------------------------------------------------------------------- */

.sc__data {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc__data-item {
  padding: 18px 20px;
  border-radius: var(--sc-radius);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
}

.sc__data-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sc__data-head h3 {
  font-size: 17px;
}

.sc__chip {
  padding: 4px 12px;
  border-radius: var(--sc-pill);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/*
 * "Stays on the phone" is the good answer, and it is not green.
 *
 * Green is money in. A privacy verdict painted in the income colour would be the
 * second meaning the colour carries, and the first one would stop being reliable.
 * So the two chips separate on weight and ground: the reassuring one is the
 * accent tint, the one worth reading twice is amber — the same amber the app uses
 * for "waiting", which is exactly what "only when you export it yourself" is.
 */
.sc__chip--stays {
  background: color-mix(in srgb, var(--sc-accent) 12%, transparent);
  color: var(--sc-accent-text);
}

.sc__chip--leaves {
  background: color-mix(in srgb, var(--sc-medium) 20%, transparent);
  color: var(--sc-ink);
}

.sc__data-when {
  color: var(--sc-muted);
  font-size: 13.5px;
}

.sc__data-where {
  margin-top: 8px;
  color: var(--sc-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------------- */

.sc__notice {
  padding-block: var(--sc-band-sm);
}

.sc__notice-inner {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--sc-radius-lg);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-left: 4px solid var(--sc-muted);
}

.sc__notice--info .sc__notice-inner {
  border-left-color: var(--sc-accent);
}

.sc__notice--warn .sc__notice-inner {
  border-left-color: var(--sc-medium);
}

.sc__notice--critical .sc__notice-inner {
  border-left-color: var(--sc-danger);
}

.sc__notice-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--sc-panel-2);
}

.sc__notice-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc__notice h2 {
  font-size: 21px;
}

.sc__notice p {
  margin-top: 8px;
  color: var(--sc-muted);
  font-size: 15.5px;
}

.sc__notice-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sc__notice-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 2px solid var(--sc-line);
}

.sc__notice-list b {
  font-size: 15.5px;
}

.sc__notice-list span {
  color: var(--sc-muted);
  font-size: 15px;
}

/* -------------------------------------------------------------------------
 * FAQ
 * ---------------------------------------------------------------------- */

.sc__faq {
  display: grid;
  gap: 10px;
}

.sc__faq-item {
  padding: 4px 20px;
  border-radius: var(--sc-radius);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
}

.sc__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sc__faq-item summary::-webkit-details-marker {
  display: none;
}

.sc__faq-item summary i {
  flex: none;
  margin-right: 3px;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--sc-accent);
  border-bottom: 2.5px solid var(--sc-accent);
  transform: translateY(-3px) rotate(45deg);
}

.sc__faq-item[open] summary i {
  transform: translateY(2px) rotate(-135deg);
}

.sc__faq-item p {
  padding-bottom: 18px;
  color: var(--sc-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Closing band
 * ---------------------------------------------------------------------- */

.sc__cta {
  padding-block: var(--sc-band);
  background: var(--sc-tint);
  background-image:
    linear-gradient(var(--sc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sc-grid) 1px, transparent 1px);
  background-size: 34px 34px;
}

.sc__cta-inner {
  max-width: 720px;
  text-align: center;
}

.sc__cta-inner .sc__stores,
.sc__cta-inner .sc__actions {
  justify-content: center;
}

/* -------------------------------------------------------------------------
 * Pages, documents and prose
 * ---------------------------------------------------------------------- */

.sc__page-head {
  padding-block: clamp(36px, 4vw, 60px) 0;
}

.sc__page-head h1 {
  max-width: 22ch;
}

.sc__doc-updated {
  margin-top: 14px;
  color: var(--sc-muted);
  font-size: 14px;
}

.sc__doc-lead {
  padding: 18px 20px;
  border-radius: var(--sc-radius);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  color: var(--sc-ink);
}

/*
 * A page is ONE column, whatever the blocks inside it happen to be.
 *
 * Every block draws its own full-bleed band with a container inside, and those
 * containers disagree on purpose: prose is set to a reading measure (760px)
 * while a data list takes the full 1180px, because on the HOMEPAGE that
 * difference is the layout. On a privacy page it is not a layout — it is text
 * that steps in and out by 200px on each side as the reader scrolls. So this
 * pins every container on such a page to one width, and the reading measure
 * inside it becomes a no-op.
 */
.sc__page--doc .sc__container {
  width: min(880px, 100% - 40px);
}

.sc__page--doc .sc__measure {
  max-width: none;
}

.sc__doc .sc__section {
  padding-block: 0;
}

.sc__doc .sc__section + .sc__section {
  padding-top: var(--sc-doc-gap);
}

/* The page head ends in the contents box and the last section ends in prose;
   neither is a band with its own padding, so the document supplies the gap to
   the first heading and to the footer itself. */
.sc__doc .sc__page-head {
  padding-bottom: var(--sc-doc-gap);
}

.sc__doc {
  padding-bottom: var(--sc-band);
}


/*
 * A block heading inside a document is a section heading like any other.
 *
 * The data list draws its heading through the theme's normal section head, which
 * is sized for a marketing band (up to 36px). On the privacy page that heading is
 * numbered and sits in the contents list beside prose headings set at 26px, so
 * left alone it printed one section of the document a size larger than the rest.
 */
.sc__doc .sc__section-head h2 {
  font-size: clamp(21px, 2.2vw, 26px);
}

.sc__doc .sc__section-head {
  margin-bottom: 18px;
}

.sc__toc {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--sc-radius);
  background: var(--sc-panel-2);
}

.sc__toc b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc__toc ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc__toc a {
  color: var(--sc-accent-text);
  font-size: 15px;
  text-decoration: none;
}

.sc__toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc__prose {
  font-size: 17px;
}

.sc__prose h2 {
  margin-top: 38px;
  font-size: clamp(21px, 2.2vw, 26px);
}

.sc__prose h3 {
  margin-top: 26px;
}

.sc__prose h2:first-child,
.sc__prose h3:first-child {
  margin-top: 0;
}

.sc__prose p,
.sc__prose ul,
.sc__prose ol {
  margin-top: 14px;
}

.sc__prose ul,
.sc__prose ol {
  padding-left: 22px;
}

/* The host page's reset strips list markers; prose lists need theirs back, or
   an indented list reads as a stray indented paragraph. */
.sc__prose ul {
  list-style: disc;
}

.sc__prose ol {
  list-style: decimal;
}

.sc__prose li::marker {
  color: var(--sc-muted);
}

.sc__prose li {
  margin-top: 7px;
}

.sc__prose a {
  color: var(--sc-accent-text);
  text-underline-offset: 3px;
}

.sc__prose strong {
  font-weight: 700;
}

.sc__prose table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.sc__prose th,
.sc__prose td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--sc-line);
  text-align: left;
  vertical-align: top;
}

.sc__prose blockquote {
  margin: 20px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--sc-accent);
  color: var(--sc-muted);
}

.sc__figure {
  margin: 0;
}

.sc__figure img {
  border-radius: var(--sc-radius);
}

.sc__figure figcaption {
  margin-top: 10px;
  color: var(--sc-muted);
  font-size: 14px;
}

/* -------------------------------------------------------------------------
 * Posts
 * ---------------------------------------------------------------------- */

.sc__post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--sc-muted);
  font-size: 14px;
}

.sc__post-grid {
  display: grid;
  gap: 16px;
}

.sc__post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: var(--sc-radius-lg);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
}

.sc__post-card h3 {
  margin-top: 6px;
}

.sc__post-card h3 a {
  text-decoration: none;
}

.sc__post-card p {
  margin-top: 8px;
  color: var(--sc-muted);
  font-size: 15.5px;
}

.sc__post-card-date {
  color: var(--sc-muted);
  font-size: 13px;
}

.sc__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.sc__pager a {
  min-width: 42px;
  padding: 9px 12px;
  border-radius: var(--sc-radius-sm);
  border: 1px solid var(--sc-line);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sc__pager a[aria-current="page"] {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: var(--sc-on-accent);
}

/* -------------------------------------------------------------------------
 * 404 / 500
 * ---------------------------------------------------------------------- */

.sc__state {
  padding-block: clamp(60px, 9vw, 120px);
  text-align: center;
}

.sc__state .sc__measure {
  margin-inline: auto;
}

.sc__state-mark {
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sc-line);
}

.sc__state h1 {
  margin-top: 12px;
}

.sc__state p {
  margin-top: 14px;
  color: var(--sc-muted);
}

.sc__state .sc__actions {
  justify-content: center;
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.sc__footer {
  padding-block: var(--sc-band) 32px;
  background: var(--sc-surface);
  border-top: 1px solid var(--sc-line);
}

/*
 * Two link columns from the narrowest screen up.
 *
 * "Product" and "More" are four or five one-word links each. Stacked one per
 * row on a phone they turned the footer into a column of ten items a thumb has
 * to scroll past; side by side they read as two short lists and the footer ends
 * a screen earlier. The brand block and Contact keep the full width — a
 * paragraph and an email address do not halve well.
 */
.sc__footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.sc__footer-about,
.sc__footer-contact {
  grid-column: 1 / -1;
}

.sc__footer-about p {
  margin-top: 16px;
  color: var(--sc-muted);
  font-size: 15px;
}

.sc__footer-build {
  font-variant-numeric: tabular-nums;
}

.sc__footer-col h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc__footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc__footer-col a {
  font-size: 15px;
  text-decoration: none;
}

.sc__footer-col a:hover {
  color: var(--sc-accent-text);
}

.sc__footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/*
 * Centred on a phone, split to the two edges on a desktop.
 *
 * `space-between` on a narrow screen does nothing useful: both halves wrap onto
 * their own row and each sits hard against the left margin, which reads as two
 * stray lines rather than as the closing rule of the page.
 */
.sc__footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--sc-line);
  color: var(--sc-muted);
  font-size: 13.5px;
  text-align: center;
}

.sc__footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.sc__footer-bottom a {
  text-decoration: none;
}

.sc__footer-bottom a:hover {
  color: var(--sc-accent-text);
}

.sc__builtwith {
  margin-left: 10px;
}

/* -------------------------------------------------------------------------
 * Widths
 *
 * Mobile first, and the two breakpoints are where the CONTENT needs them, not
 * where a device happens to be: 640px is where two cards fit side by side, and
 * 900px is where the header stops needing a menu button and the hero can put the
 * phone next to the words.
 * ---------------------------------------------------------------------- */

@media (min-width: 640px) {
  .sc__flow,
  .sc__features,
  .sc__stats,
  .sc__cats,
  .sc__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  :root {
    --sc-header-h: 72px;
  }

  .sc__header {
    background: color-mix(in srgb, var(--sc-surface) 92%, transparent);
    backdrop-filter: blur(12px);
  }

  /* Above this width the menu is not a drawer at all: it is a row in the bar,
     always open, static, with no target to reach and no button to reach it. */
  .sc__menu-button,
  .sc__header-inner:has(#sc-menu:target) .sc__menu-button--close {
    display: none;
  }

  .sc__header-panel,
  .sc__header-panel:target {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border-top: 0;
    overflow: visible;
  }

  .sc__nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 22px;
  }

  .sc__nav a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 600;
  }

  .sc__header-actions {
    margin-top: 0;
  }

  .sc__lang ul {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
  }

  .sc__brand img,
  .sc__brand-mark {
    width: 44px;
    height: 44px;
  }

  .sc__brand-text strong {
    font-size: 19px;
  }

  /* The phones get the wider half. Two app screens side by side need more
     room than a headline and three chips, and the headline reads fine at 500px. */
  .sc__hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }

  .sc__flow {
    grid-template-columns: repeat(4, 1fr);
  }

  .sc__features {
    grid-template-columns: repeat(3, 1fr);
  }

  .sc__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .sc__post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sc__footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .sc__footer-about,
  .sc__footer-contact {
    grid-column: auto;
  }

  .sc__footer-bottom {
    justify-content: space-between;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc * {
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------------------------------
 * Glass and depth
 *
 * The site wears the app's Liquid Glass: an aurora of soft colour fixed behind
 * the page, and every card, button and menu drawn as frosted glass floating
 * over it — a translucent fill, a bright top edge, and a stack of shadows that
 * lifts it off the page. The layer sits last so it restyles the surfaces above
 * without rewriting their layout.
 *
 * Glass only reads as glass over colour, which is what the aurora is for. It is
 * `position: fixed` on a pseudo-element rather than `background-attachment:
 * fixed`, which iOS Safari ignores (and then stretches the blobs down the whole
 * page). `isolation` keeps its `z-index: -1` inside `.sc` — above the page
 * colour, beneath everything else.
 * ---------------------------------------------------------------------- */

.sc {
  position: relative;
  isolation: isolate;
}

.sc::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 0% 0%, var(--sc-aurora-1), transparent 70%),
    radial-gradient(55vmax 45vmax at 100% 10%, var(--sc-aurora-2), transparent 70%),
    radial-gradient(60vmax 50vmax at 10% 100%, var(--sc-aurora-3), transparent 70%),
    radial-gradient(50vmax 45vmax at 100% 90%, var(--sc-aurora-4), transparent 70%);
}

/* Bands let the aurora through instead of painting over it. */
.sc__section--tint,
.sc__stats-band,
.sc__cta {
  background: var(--sc-glass-band);
}

.sc__footer {
  background: var(--sc-glass-band);
  border-top: 1px solid var(--sc-glass-edge);
}

/* ---- Cards ---- */

.sc__flow-step,
.sc__feature,
.sc__stat,
.sc__legend,
.sc__cat,
.sc__data-item,
.sc__notice-inner,
.sc__faq-item,
.sc__doc-lead,
.sc__toc,
.sc__post-card {
  background: var(--sc-glass);
  border: 1px solid var(--sc-glass-edge);
  box-shadow: var(--sc-lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease;
}

/* The notice keeps its coloured spine: it is what says how serious it is. */
.sc__notice-inner {
  border-left: 4px solid var(--sc-muted);
}

.sc__notice--info .sc__notice-inner {
  border-left-color: var(--sc-accent);
}

.sc__notice--warn .sc__notice-inner {
  border-left-color: var(--sc-medium);
}

.sc__notice--critical .sc__notice-inner {
  border-left-color: var(--sc-danger);
}

/* Cards float up under the pointer. Only on devices that hover — on touch the
   lift would stick after a tap. Static reading furniture (the notice, the table
   of contents, the policy lead) stays put. */
@media (hover: hover) {
  .sc__flow-step:hover,
  .sc__feature:hover,
  .sc__stat:hover,
  .sc__cat:hover,
  .sc__data-item:hover,
  .sc__faq-item:hover,
  .sc__post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sc-lift-up);
  }
}

/* The marks inside cards are small glass tiles of their own. */
.sc__feature-mark,
.sc__notice-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 6px 14px -6px color-mix(in srgb, var(--sc-accent) 45%, transparent);
}

.sc__flow-n,
.sc__brand-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 8px 18px -6px color-mix(in srgb, var(--sc-accent) 60%, transparent);
}

/* ---- Buttons ---- */

/*
 * The primary button is a glossy capsule: the gradient body, a bright rim along
 * the top, a darker lip along the bottom, a sheen over the upper half and a
 * shadow tinted with its own colour. It rises on hover and sinks when pressed,
 * like a key.
 */
.sc__button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px color-mix(in srgb, var(--sc-accent) 40%, transparent),
    0 12px 26px -8px color-mix(in srgb, var(--sc-accent) 70%, transparent);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.sc__button::before {
  content: "";
  position: absolute;
  inset: 0 0 50%;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.sc__button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 2px 4px color-mix(in srgb, var(--sc-accent) 40%, transparent),
    0 18px 34px -10px color-mix(in srgb, var(--sc-accent) 80%, transparent);
}

.sc__button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.18),
    0 4px 10px -4px color-mix(in srgb, var(--sc-accent) 60%, transparent);
}

/* The secondary button is clear glass rather than an outline. */
.sc__button--ghost {
  background: var(--sc-glass);
  color: var(--sc-ink);
  border: 1px solid var(--sc-glass-edge);
  box-shadow: var(--sc-lift);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
}

.sc__button--ghost::before {
  display: none;
}

.sc__button--ghost:hover {
  box-shadow: var(--sc-lift-up);
}

.sc__button--ghost:active {
  box-shadow: var(--sc-lift);
}

/* Store badges: a glossy black slab, pressed like the buttons. */
.sc .sc__store {
  background: linear-gradient(180deg, #2a323e, #0b0f14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 12px 26px -10px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease;
}

a.sc__store:hover {
  transform: translateY(-2px);
}

a.sc__store:active {
  transform: translateY(1px);
}

/* "Coming soon" is glass with a dashed rim: present, but not yet a thing to press. */
.sc .sc__store--soon {
  background: var(--sc-glass);
  color: var(--sc-muted);
  border: 1.5px dashed color-mix(in srgb, var(--sc-muted) 45%, transparent);
  box-shadow: var(--sc-lift);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Small controls in the header, the pager and the hero's reassurances. */
.sc__icon-btn,
.sc__lang summary,
.sc__menu-button,
.sc__pager a,
.sc__hero-notes li {
  background: var(--sc-glass);
  border: 1px solid var(--sc-glass-edge);
  box-shadow: var(--sc-lift);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) {
  .sc__icon-btn:hover,
  .sc__lang summary:hover,
  .sc__pager a:hover {
    transform: translateY(-1px);
    box-shadow: var(--sc-lift-up);
  }
}

.sc__pager a[aria-current="page"] {
  background: linear-gradient(180deg, var(--sc-accent-2), var(--sc-accent));
  color: var(--sc-on-accent);
}

/* Menus open as frosted panels. */
.sc__lang ul {
  background: var(--sc-glass-solid);
  border: 1px solid var(--sc-glass-edge);
  box-shadow: var(--sc-lift-up);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

/* The mobile drawer is the fixed element itself, so blurring it is safe (it is
   the header, an ANCESTOR of a fixed element, that must not carry a filter —
   see the note on .sc__header). */
.sc__header-panel {
  background: var(--sc-glass-solid);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

/* On mobile the header stays nearly opaque: without a blur (see above) a
   see-through bar would show the text scrolling under it. */
.sc__header {
  background: color-mix(in srgb, var(--sc-surface) 94%, transparent);
  border-bottom: 1px solid var(--sc-glass-edge);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--sc-line) 60%, transparent);
}

@media (min-width: 900px) {
  .sc__header {
    background: color-mix(in srgb, var(--sc-surface) 62%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.7);
    backdrop-filter: blur(20px) saturate(1.7);
  }

  .sc__header-panel,
  .sc__header-panel:target {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* The phones turn slightly toward each other, as if standing on the page. */
  .sc__phones {
    perspective: 1800px;
  }

  .sc__phone {
    transform: rotateY(9deg) rotateX(2deg);
    transform-origin: right center;
  }

  .sc__phone--second {
    transform: rotateY(-9deg) rotateX(2deg) translateY(18px);
    transform-origin: left center;
  }
}

/* The phones cast a deep, soft shadow so they read as objects above the page. */
.sc__phone-screen {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(15, 23, 34, 0.08),
    0 30px 60px -20px rgba(15, 23, 34, 0.45),
    0 60px 90px -40px color-mix(in srgb, var(--sc-accent) 35%, transparent);
}

/* -------------------------------------------------------------------------
 * Phones — one inner edge for every card
 *
 * Each card was padded on its own terms (18/20/24, 22, 24, 18/22), so on a
 * 390px screen the text inside them started at five different distances from
 * the page edge and the eye caught every step. Below the two-column width they
 * all share one 20px inset, matching the 20px page gutter, and the few blocks
 * that set things side by side stack instead of squeezing a column of text
 * into what is left.
 * ---------------------------------------------------------------------- */

@media (max-width: 639px) {
  .sc__flow-step,
  .sc__feature,
  .sc__legend,
  .sc__data-item,
  .sc__doc-lead,
  .sc__toc,
  .sc__notice-inner {
    padding: 20px;
  }

  .sc__cat {
    padding: 20px 20px 6px;
  }

  .sc__flow,
  .sc__features,
  .sc__cats {
    gap: 16px;
  }

  /* The number beside its sentence, not above it: four centred cards of one
     big digit and a line of text were a screen and a half of scrolling. */
  .sc__stats {
    gap: 12px;
  }

  .sc__stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-align: left;
  }

  .sc__stat dt {
    flex: none;
    min-width: 64px;
    text-align: center;
  }

  .sc__stat dd {
    margin: 0;
  }

  /* Label over its explanation: a fixed 112px label column left the
     explanation a strip of three-word lines. */
  .sc__legend {
    gap: 16px;
  }

  .sc__legend li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .sc__legend .sc__level {
    min-width: 0;
  }

  /* The icon heads the notice instead of holding a 60px column down its
     whole left side. */
  .sc__notice-inner {
    flex-direction: column;
    gap: 14px;
  }

  /* The title takes its own line, so the chip sits in the same place on every
     card instead of wherever the title happened to wrap. */
  .sc__data-head h3 {
    flex-basis: 100%;
  }
}
