/* ShootFlow website. One stylesheet, no external resources.
   Colors and contrast pairs: docs/WEBSITE.md §4.5. Amber (#F2A33A) is used for one
   element per view only (the "current" blade) and never as text on a light background. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --petrol: #0E3440;
  --petrol-deep: #0A2830;
  --amber: #F2A33A;

  --bg: #FFFFFF;
  --bg-alt: #F3F7F8;          /* accent on it: 5.2:1 */
  --text: #0E3440;            /* on white: 13.3:1 */
  --text-2: #4B6168;          /* on white: 6.5:1, on --bg-alt: 5.9:1 */
  --accent: #00737F;          /* on white: 5.6:1 */
  --accent-strong: #005C66;
  --on-accent: #FFFFFF;
  --success: #1E7B34;         /* on white: 5.3:1 */
  --on-success: #FFFFFF;
  --line: rgba(14, 52, 64, 0.12);
  --wait: #C5DDE1;            /* blade grey, "waiting" (decorative only) */
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(14, 52, 64, 0.10);
  --glass-light: rgba(255, 255, 255, 0.95);
  --shadow: 0 1px 2px rgba(14, 52, 64, 0.06), 0 10px 30px rgba(14, 52, 64, 0.08);
  --shot-shadow: 0 2px 6px rgba(14, 52, 64, 0.10), 0 24px 60px rgba(14, 52, 64, 0.18);
  --mark: rgba(0, 115, 127, 0.12);

  /* the 12 blades of the icon, light to dark ("waiting") */
  --b0: #C5DDE1; --b1: #BBD3D7; --b2: #B1C9CE; --b3: #A8C0C5; --b4: #A3BBC0; --b5: #9EB6BB;
  --b6: #94ADB2; --b7: #8AA3A9; --b8: #809A9F; --b9: #769196; --b10: #6C878D; --b11: #637D84;

  --radius: 28px;
  --radius-s: 16px;
  --wrap: 72rem;
  --pad: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E3440;
    --bg-alt: #0A2830;
    --text: #E6EEF0;          /* on #0E3440: 11.3:1 */
    --text-2: #A9C1C7;        /* on #0E3440: 7.0:1 */
    --accent: #40BFCC;        /* on #0E3440: 6.0:1, on #0A2830: 7.0:1 */
    --accent-strong: #7FD6DF;
    --on-accent: #0E3440;     /* on #40BFCC: 6.0:1 */
    --success: #30D158;       /* on #0E3440: 6.6:1 */
    --on-success: #0E3440;
    --line: rgba(230, 238, 240, 0.14);
    --wait: #46646C;
    --surface: #123E4B;       /* accent on it: 5.3:1 */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(230, 238, 240, 0.12);
    --glass-light: rgba(255, 255, 255, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.25);
    --shot-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
    --mark: rgba(64, 191, 204, 0.16);

    --b0: #5E7E86; --b1: #587880; --b2: #52717A; --b3: #4D6B74; --b4: #48666F; --b5: #446169;
    --b6: #405C64; --b7: #3C575F; --b8: #38525A; --b9: #344D55; --b10: #304850; --b11: #2C434B;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17–19 px */
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.125rem);    /* 28–34 px */
  letter-spacing: -0.015em;
  font-weight: 700;
}
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
p + p { margin-top: 0.85em; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }

code, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.num { font-variant-numeric: tabular-nums; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.glyph {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Skip link, language hint, header ---------- */
.skip-link {
  position: absolute;
  left: var(--pad);
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--on-accent); }

.lang-hint {
  background: var(--petrol);
  color: #FFFFFF;
}
.lang-hint[hidden] { display: none; }
.lang-hint .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
}
.lang-hint a { color: #40BFCC; font-weight: 600; padding: 0.6rem 0.25rem; }
.lang-hint a:hover { color: #7FD6DF; }
.lang-hint button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #FFFFFF;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.lang-hint button:hover { background: rgba(255, 255, 255, 0.12); }
.lang-hint :focus-visible { outline-color: #40BFCC; }

.site-header { background: #E3EEF0; }
@media (prefers-color-scheme: dark) {
  .site-header { background: #0A2830; }
}
@media (prefers-contrast: more) {
  .site-header { background: var(--bg); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.lang-switch .glyph { width: 1.15rem; height: 1.15rem; }

/* ---------- Buttons and the App Store slot ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.btn-quiet {
  color: var(--accent);
  border: 1px solid currentColor;
}
.btn-quiet:hover { color: var(--accent-strong); background: var(--mark); text-decoration: none; }
.btn .glyph { width: 1.1rem; height: 1.1rem; }

/* "Coming soon": not a control, so it doesn't look like one you can press. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--petrol);
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.2;
}
@media (prefers-color-scheme: dark) {
  .soon { background: #E6EEF0; color: var(--petrol); }
}
.soon .glyph { width: 1.15rem; height: 1.15rem; }

.appstore-badge { display: inline-block; min-height: 44px; }
.appstore-badge img { height: 3rem; width: auto; }   /* Apple: at least 40 px high */

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; }
.section-head p.lead,
.lead {
  margin-top: 0.9rem;
  color: var(--text-2);
  font-size: 1.0625em;
  max-width: 40em;
}
.eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 650;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-light), var(--shadow);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
}
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--text-2);
    box-shadow: none;
  }
}

/* Soft washes behind the glass cards (the icon's blade greys and the accent). */
.wash {
  background:
    radial-gradient(48rem 28rem at 90% 0%, rgba(64, 191, 204, 0.16), transparent 65%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(197, 221, 225, 0.55), transparent 65%),
    var(--bg-alt);
}
@media (prefers-color-scheme: dark) {
  .wash {
    background:
      radial-gradient(48rem 28rem at 90% 0%, rgba(64, 191, 204, 0.12), transparent 65%),
      radial-gradient(40rem 26rem at 0% 100%, rgba(99, 125, 132, 0.22), transparent 65%),
      var(--bg-alt);
  }
}
@media (prefers-contrast: more) {
  .wash { background: var(--bg-alt); }
}

/* ---------- Screenshots (real app screens; no device drawn) ---------- */
.shot {
  --w: 20rem;
  width: var(--w);
  max-width: 100%;
  border-radius: calc(var(--w) * 0.137) / calc(var(--w) * 0.137);
  box-shadow: var(--shot-shadow);
  outline: 1px solid var(--line);
  background: var(--bg-alt);
  aspect-ratio: 1206 / 2622;
}
figure { margin: 0; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 80% 10%, rgba(64, 191, 204, 0.18), transparent 70%),
    linear-gradient(180deg, #E3EEF0 0%, #F3F8F9 55%, var(--bg) 100%);
}
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(60rem 30rem at 80% 10%, rgba(64, 191, 204, 0.14), transparent 70%),
      linear-gradient(180deg, #0A2830 0%, var(--bg) 100%);
  }
}
@media (prefers-contrast: more) {
  .hero { background: var(--bg); }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 1.6rem + 4vw, 4.5rem);       /* 56–72 px on desktop */
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 12ch;
}
.hero .sub {
  margin-top: 1.4rem;
  max-width: 34em;
  color: var(--text-2);
  font-size: 1.1em;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.trust li { display: inline-flex; align-items: center; gap: 0.6rem; }
.trust li:not(:last-child)::after {
  content: "·";
  content: "·" / "";
  color: var(--text-2);
  font-weight: 400;
}
.req {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.hero-shot {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}
.hero-shot .shot { --w: min(19rem, 74vw); }

/* the thin three-node strip under the hero screenshot */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  list-style: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.strip li { display: inline-flex; align-items: center; gap: 0.35rem; }
.strip li:not(:last-child)::after {
  content: "";
  width: clamp(0.6rem, 2.5vw, 1.1rem);
  height: 2px;
  margin-left: 0.15rem;
  border-radius: 2px;
  background: var(--accent);
}
@media (max-width: 24em) {
  .strip { font-size: 0.82rem; padding-inline: 0.7rem; gap: 0.4rem 0.35rem; }
}
.tick {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--success);
  color: var(--on-success);
  flex: none;
}
.tick .glyph { width: 0.85rem; height: 0.85rem; stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .strip .tick { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .strip li:nth-child(1) .tick { animation-delay: 0.5s; }
  .strip li:nth-child(2) .tick { animation-delay: 0.9s; }
  .strip li:nth-child(3) .tick { animation-delay: 1.3s; }
}

@media (min-width: 56em) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
  .hero-shot .shot { --w: 20rem; }
}

/* ---------- The proof line ---------- */
.proof-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  max-width: 50rem;
}
.proof-head > div { flex: 1 1 18rem; }
.aperture {
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
}
.aperture .blade { fill: var(--accent); }
.aperture .hub { fill: var(--petrol); }
.aperture .hub-check {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-color-scheme: dark) {
  .aperture .hub { fill: var(--petrol-deep); }
  .aperture .hub-check { stroke: var(--accent); }
}

.proofline {
  --st: 4rem;           /* station size */
  --rowgap: 2.75rem;
  --colgap: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.pnodes {
  display: grid;
  gap: var(--rowgap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pnode {
  position: relative;
  display: grid;
  grid-template-columns: var(--st) minmax(0, 1fr);
  column-gap: 1.1rem;
  align-items: start;
  align-content: start;
}

.station {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--st);
  height: var(--st);
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
}
.station > .glyph { width: 1.75rem; height: 1.75rem; }
.station .tick {
  position: absolute;
  right: -0.3rem;
  bottom: -0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  box-shadow: 0 0 0 3px var(--surface);
}
.station .tick .glyph { width: 1rem; height: 1rem; }

.pbody { min-width: 0; }
.pbody h3 { display: flex; align-items: baseline; gap: 0.5rem; }
.step {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-weight: 600;
}
.status .tick { margin-top: 0.15rem; }
.pnote {
  margin-top: 0.6rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.files {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.files code {
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.files .tick { width: 1.1rem; height: 1.1rem; }
.files .tick .glyph { width: 0.75rem; height: 0.75rem; }
.files .old code { color: var(--text-2); border-style: dashed; }
.files .tag { color: var(--text-2); font-size: 0.85rem; }
.folder {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  color: var(--text-2);
  font-size: 0.95rem;
}
.folder .glyph { width: 1.2rem; height: 1.2rem; }

mark.suffix {
  display: inline-block;
  max-width: 2ch;
  overflow: hidden;
  vertical-align: bottom;
  background: var(--mark);
  color: var(--accent);
  font-weight: 700;
  border-radius: 3px;
}

.phone-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.9rem;
}
.thumb {
  --w: 5.25rem;
  width: var(--w);
  flex: none;
  border-radius: calc(var(--w) * 0.137);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 1206 / 2622;
  background: var(--bg-alt);
}
.storage { flex: 1; min-width: 0; padding-top: 0.25rem; }
.storage-name { color: var(--text-2); font-size: 0.85rem; }
.bar {
  position: relative;
  height: 0.6rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);          /* final state: emptied */
  transform-origin: left;
}
.storage-label {
  display: grid;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.storage-label > span { grid-area: 1 / 1; }
.storage-full { opacity: 0; }

/* The rails between the stations, with the file chips riding on them.
   Mobile: vertical, in the stations' column. Desktop: horizontal, between station centers. */
.rail {
  position: absolute;
  left: calc(var(--st) / 2 - 0.8rem);
  width: 1.6rem;
  top: calc(var(--st) + 0.4rem);
  bottom: calc(-1 * var(--rowgap) + 0.4rem);
  pointer-events: none;
  container-type: size;
  overflow: hidden;
}
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--wait);
}
.rail::after {
  background: var(--accent);
  transform-origin: top;
  z-index: 0;
}

.train {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column-reverse;   /* the first file rides in front */
  gap: 0.35rem;
  opacity: 0;                       /* final state: everything has arrived */
}
.chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}
.chip::before {                   /* a tiny photo */
  content: "";
  width: 0.95rem;
  height: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(160deg, var(--b0), var(--b6) 60%, var(--b11));
  flex: none;
}
.chip .chip-name,
.chip .tick { display: none; }

@media (min-width: 60em) {
  .pnodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--colgap);
  }
  .pnode {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
  }
  .rail {
    left: calc(var(--st) + 0.6rem);
    width: calc(100% + var(--colgap) - var(--st) - 1.2rem);
    top: calc(var(--st) / 2 - 0.85rem);
    bottom: auto;
    height: 1.7rem;
  }
  .rail::before,
  .rail::after {
    top: calc(50% - 1px);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }
  .rail::after { transform-origin: left; }
  .train { flex-direction: row-reverse; gap: 0.5rem; }
  .chip { padding: 0.3rem 0.45rem 0.3rem 0.3rem; }
  .chip .chip-name { display: inline; }
  .chip .tick { display: inline-grid; width: 0.95rem; height: 0.95rem; }
  .chip .tick .glyph { width: 0.65rem; height: 0.65rem; }
}

.replay {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.replay:hover { border-color: var(--accent); background: var(--mark); }
.replay[hidden] { display: none; }
.replay .glyph { width: 1.1rem; height: 1.1rem; }

/* --- The sequence (4.8 s, plays once). Without JS, with reduced motion and in print,
       none of this applies and the final state above is what you see. --- */
@media screen and (prefers-reduced-motion: no-preference) {
  /* armed: the start, before the line scrolls into view */
  .is-armed .station { border-color: var(--wait); color: var(--text-2); }
  .is-armed .station .tick,
  .is-armed .status .tick { transform: scale(0); }
  .is-armed .status,
  .is-armed .files .new,
  .is-armed .storage-freed { opacity: 0; }
  .is-armed mark.suffix { max-width: 0; }
  .is-armed .rail::after { transform: scale(0); }
  .is-armed .aperture .blade { fill: var(--w); }
  .is-armed .aperture .hub-check { opacity: 0; }

  .is-playing .station { animation: station-on 0.4s ease both; }
  .is-playing .station .tick,
  .is-playing .status .tick { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .is-playing .status { animation: rise 0.4s ease both; }

  .is-playing .pnode-card .station { animation-delay: 0s; }
  .is-playing .pnode-card .tick,
  .is-playing .pnode-card .status { animation-delay: 1.35s; }
  .is-playing .pnode-phone .station { animation-delay: 0.9s; }
  .is-playing .pnode-phone .station .tick,
  .is-playing .pnode-phone .status,
  .is-playing .pnode-phone .status .tick { animation-delay: 1.7s; }
  .is-playing .pnode-dest .station { animation-delay: 2.6s; }
  .is-playing .pnode-dest .station .tick,
  .is-playing .pnode-dest .status,
  .is-playing .pnode-dest .status .tick { animation-delay: 3.5s; }

  /* rails fill as the chips pass */
  .is-playing .rail::after { animation: fill-y 1.4s cubic-bezier(0.4, 0, 0.6, 1) both; }
  .is-playing .pnode-phone .rail::after { animation-delay: 2s; }

  /* the files ride from one station to the next */
  .is-playing .train { animation: ride-y 1.4s cubic-bezier(0.4, 0, 0.6, 1) both; }
  .is-playing .pnode-phone .train { animation-delay: 2s; }

  /* the iPhone's storage fills while copying, and empties only after the destination's check */
  .is-playing .bar-fill { animation: storage 4.8s linear both; }
  .is-playing .storage-full { animation: label-full 4.8s linear both; }
  .is-playing .storage-freed { animation: label-freed 4.8s linear both; }

  /* files land at the destination; the taken name becomes _2 */
  .is-playing .files .new { animation: rise 0.35s ease both; }
  .is-playing .files .new:nth-child(2) { animation-delay: 2.9s; }
  .is-playing .files .new:nth-child(3) { animation-delay: 3.1s; }
  .is-playing .files .new:nth-child(4) { animation-delay: 3.3s; }
  .is-playing mark.suffix { animation: suffix 0.6s ease both; animation-delay: 3.05s; }

  /* the aperture ring: one blade at a time, the current one amber */
  .is-playing .aperture .blade { animation: blade 0.76s linear both; }
  .is-playing .aperture .hub-check { animation: rise 0.4s ease both; animation-delay: 4.5s; }

  @media (min-width: 60em) {
    .is-playing .train { animation-name: ride-x; }
    .is-playing .rail::after { animation-name: fill-x; }
  }
}

.aperture .blade:nth-child(1)  { --w: var(--b0);  animation-delay: 0s; }
.aperture .blade:nth-child(2)  { --w: var(--b1);  animation-delay: 0.38s; }
.aperture .blade:nth-child(3)  { --w: var(--b2);  animation-delay: 0.76s; }
.aperture .blade:nth-child(4)  { --w: var(--b3);  animation-delay: 1.14s; }
.aperture .blade:nth-child(5)  { --w: var(--b4);  animation-delay: 1.52s; }
.aperture .blade:nth-child(6)  { --w: var(--b5);  animation-delay: 1.9s; }
.aperture .blade:nth-child(7)  { --w: var(--b6);  animation-delay: 2.28s; }
.aperture .blade:nth-child(8)  { --w: var(--b7);  animation-delay: 2.66s; }
.aperture .blade:nth-child(9)  { --w: var(--b8);  animation-delay: 3.04s; }
.aperture .blade:nth-child(10) { --w: var(--b9);  animation-delay: 3.42s; }
.aperture .blade:nth-child(11) { --w: var(--b10); animation-delay: 3.8s; }
.aperture .blade:nth-child(12) { --w: var(--b11); animation-delay: 4.18s; }

@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes station-on {
  from { border-color: var(--wait); color: var(--text-2); }
  to { border-color: var(--accent); color: var(--accent); }
}
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ride-x {
  from { opacity: 1; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(100cqw); }
}
@keyframes ride-y {
  from { opacity: 1; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(100cqh); }
}
@keyframes storage {
  0%, 12% { transform: scaleX(0); }
  32%, 79% { transform: scaleX(1); }
  94%, 100% { transform: scaleX(0); }
}
@keyframes label-full {
  0%, 12% { opacity: 0; }
  15%, 78% { opacity: 1; }
  81%, 100% { opacity: 0; }
}
@keyframes label-freed {
  0%, 80% { opacity: 0; }
  84%, 100% { opacity: 1; }
}
@keyframes suffix {
  0% { max-width: 0; background: transparent; }
  40% { max-width: 2ch; background: var(--accent); color: var(--on-accent); }
  100% { max-width: 2ch; }
}
@keyframes blade {
  0% { fill: var(--w); }
  0.1%, 50% { fill: var(--amber); }
  50.1%, 100% { fill: var(--accent); }
}

/* ---------- Cards grid (guarantees, field, devices) ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 52em) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  padding: 1.5rem;
}
.card h3 { margin-top: 0.9rem; }
.card p { margin-top: 0.5rem; color: var(--text-2); }
.icon-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--mark);
  color: var(--accent);
}

/* ---------- Destinations ---------- */
.split {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 56em) {
  .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; }
  .split-reverse { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .split-reverse > figure { order: -1; }
}
.split figure { display: grid; justify-items: center; }
.split .shot { --w: min(18rem, 72vw); }
.split figcaption {
  margin-top: 1rem;
  max-width: 18rem;
  color: var(--text-2);
  font-size: 0.9rem;
  text-align: center;
}

.dest-list {
  display: grid;
  gap: 0.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.dest-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.dest-list li:last-child { border-bottom: 0; }
.dest-list h3 { font-size: 1.125rem; }
.dest-list p { margin-top: 0.2rem; color: var(--text-2); }

.callout {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
}
.callout h3 { font-size: 1.125rem; }
.callout p { margin-top: 0.25rem; color: var(--text-2); }

/* ---------- Workflows ---------- */
.wf {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.wf-head { display: flex; align-items: center; gap: 0.75rem; }
.wf-head h3 { margin: 0; }
.wf dl {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
}
.wf dt {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wf dd { margin: 0.1rem 0 0; }
.wf dd code {
  font-size: 0.8em;
  padding: 0.15rem 0.45rem;
  border-radius: 7px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.wf-note { margin-top: 1.75rem; color: var(--text-2); }

/* ---------- Made for the field ---------- */
.field-list {
  display: grid;
  gap: 1.75rem 2.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 44em) { .field-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68em) { .field-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.field-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.field-list h3 { font-size: 1.125rem; }
.field-list p { margin-top: 0.25rem; color: var(--text-2); }

.devices { margin-top: 3rem; }
.device {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
}
.device .glyph { width: 3rem; height: 3rem; stroke-width: 1.4; color: var(--accent); }
.device h3 { margin: 0; }
.device p { margin-top: 0.35rem; color: var(--text-2); }

/* ---------- Privacy ---------- */
.privacy-lines {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}
.privacy-lines li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.privacy-lines .glyph { width: 1.75rem; height: 1.75rem; margin-top: 0.05em; color: var(--accent); }
.privacy-more { margin-top: 1.75rem; max-width: 44rem; color: var(--text-2); }
.privacy-more strong { color: var(--text); }

/* ---------- Questions and details ---------- */
.faq { margin-top: 2rem; max-width: 50rem; }
.faq details,
.deep {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  margin-right: 0.35rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s ease;
}
details[open] > summary::after { transform: translateY(15%) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
summary:hover { color: var(--accent); }
.answer { padding: 0 0 1.25rem; color: var(--text-2); max-width: 44rem; }

.deep { margin-top: 2rem; max-width: 50rem; border-top: 1px solid var(--line); }
.deep-body { padding-bottom: 1.5rem; }
.deep-body h3 { margin-top: 1.5rem; font-size: 1.0625rem; }
.deep-body h3:first-child { margin-top: 0.25rem; }
.deep-body p,
.deep-body li { color: var(--text-2); }
.deep-body p { margin-top: 0.5rem; }
.deep-body ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.deep-body li + li { margin-top: 0.35rem; }
.deep-body strong { color: var(--text); }

/* ---------- Final call ---------- */
.final { text-align: center; }
.final .section-head { margin-inline: auto; }
.final .actions { justify-content: center; }
.final .trust { justify-content: center; }
.final .icon-big { width: 5rem; height: 5rem; margin: 0 auto 1.5rem; border-radius: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3rem 2.5rem;
  background: var(--petrol);
  color: #E6EEF0;
  font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #081F26; border-top: 1px solid var(--line); }
}
.site-footer a { color: #40BFCC; }          /* on #0E3440: 6.0:1 */
.site-footer a:hover { color: #7FD6DF; }
.site-footer :focus-visible { outline-color: #40BFCC; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer .brand { color: #FFFFFF; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  font-weight: 600;
}
.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 238, 240, 0.16);
  color: #A9C1C7;                              /* on #0E3440: 7.0:1 */
  font-size: 0.85rem;
}
.footer-meta p + p { margin-top: 0.75rem; }
.footer-meta .req-line { color: #E6EEF0; font-size: 0.95rem; }

/* ---------- Legal pages and 404 ---------- */
.page-head {
  padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  background: linear-gradient(180deg, #E3EEF0 0%, var(--bg) 100%);
}
@media (prefers-color-scheme: dark) {
  .page-head { background: linear-gradient(180deg, #0A2830 0%, var(--bg) 100%); }
}
.page-head h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-head h1 span { display: block; }
.page-head h1 .alt { color: var(--text-2); font-weight: 700; font-size: 0.7em; margin-top: 0.3rem; }

.doc-switch ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.doc-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.doc-switch a:hover { border-color: var(--accent); color: var(--accent); }

.doc {
  max-width: 46rem;
  padding-block: 1rem 4rem;
}
.doc > section { scroll-margin-top: 1rem; }
.doc > section + section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.doc h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.doc h3 { margin-top: 2.25rem; font-size: 1.25rem; }
.doc p, .doc ul { margin-top: 0.85rem; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5rem; }
.doc .updated { margin-top: 0.5rem; color: var(--text-2); font-style: italic; }
.doc .tm { margin-top: 2rem; color: var(--text-2); font-size: 0.9rem; }
.doc .email-box { margin-top: 1rem; padding: 1.25rem 1.5rem; font-size: 1.1em; }
.doc .placeholder {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--text-2);
  border-radius: var(--radius-s);
}

.notfound { padding-block: clamp(3rem, 10vw, 7rem); }
.notfound .cols { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 48em) { .notfound .cols { grid-template-columns: 1fr 1fr; } }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.notfound h2 { font-size: 1.5rem; }
.notfound p { margin-top: 0.75rem; color: var(--text-2); }
.notfound .actions { margin-top: 1.25rem; }

/* ---------- Forced colors (Windows High Contrast) ---------- */
@media (forced-colors: active) {
  .tick, .soon, .icon-badge { forced-color-adjust: auto; border: 1px solid CanvasText; }
  .chip, .rail { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header .lang-switch, .lang-hint, .replay, .skip-link, .rail { display: none !important; }
  .hero, .wash, .section-alt, .page-head { background: none !important; }
  .glass { box-shadow: none; border: 1px solid #999; }
  .site-footer { background: none; color: #000; }
  .site-footer a, .footer-meta { color: #000; }
  details > :not(summary) { display: block; }
}
