/* One stylesheet for every page and every language. */
:root {
  --ground: #ffffff;
  /* The band behind every other section. Biased towards the accent and dark
     enough to see: at #f5f7f8 the alternating sections were indistinguishable
     from the white ones, so the page read as one unbroken sheet. */
  --panel: #e9f0f1;
  --ink: #14181a;
  --muted: #5b666b;
  --rule: #dbe3e5;
  /* For the lines that have to carry a boundary on their own — between
     sections, and around a card that sits on the same colour as its ground. */
  --rule-strong: #c3d0d3;
  --accent: #0f6b6b;
  --accent-ink: #ffffff;
  --accent-soft: #d9ecea;
  --warn: #b23f3a;
  /* The wrong half of every before-and-after. Warm against the accent, so
     the problem and the fix are two colours rather than two glyphs. */
  --warn-soft: #fbe9e7;
  --glass: rgba(255, 255, 255, .72);
  /* On a Mac this is SF for the Latin letters and Hiragino for the
     Japanese, which is what every other app on the machine looks like. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans",
          "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP",
          "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  /* Two shadows on everything that lifts: a tight one for the edge, a wide
     soft one for the distance. One alone always looks like a sticker. */
  --shadow: 0 1px 2px rgba(16, 24, 26, .05), 0 14px 34px -10px rgba(16, 24, 26, .18);
  --shadow-soft: 0 1px 2px rgba(16, 24, 26, .04), 0 6px 18px -8px rgba(16, 24, 26, .12);
  /* Two widths: the page, and the longest a line of text is allowed to be.
     A wide screen should show more of the layout, not longer lines. */
  --page: 72rem;
  --measure: 44rem;
  --header: 3.6rem;
  /* Light only: the drawings, the screenshots and the palette were all
     built for one scheme, and half-lit versions of them looked worse than
     none. Declared so the browser's own controls follow. */
  color-scheme: light;
}

* { box-sizing: border-box; }
/* `display: inline-block` on .button otherwise wins over the browser's own
   [hidden] rule, and a button meant to be hidden shows anyway. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 40rem) { .wrap { padding: 0 1.25rem; } }

/* Paragraphs and lists stay readable however wide the window is; the
   figures, cards and tables are free to use the whole page. */
section > .wrap > p,
section > .wrap > ul,
section > .wrap > ol { max-width: var(--measure); }
/* The legal pages are one column of text; centred, they sit under the
   header rather than off to one side of a wide window. */
article { max-width: var(--measure); margin: 0 auto; }

/* Header — sticky and translucent, the way a toolbar behaves on this
   machine. The hairline and shadow only appear once the page has moved,
   so at rest the bar is not a line across an empty screen. */
.top {
  position: sticky; top: 0; z-index: 10;
  padding: .8rem 0;
  font-size: .9rem;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.top.scrolled { border-bottom-color: var(--rule); box-shadow: 0 1px 12px rgba(16, 24, 26, .06); }
@supports not (backdrop-filter: blur(1px)) { .top { background: var(--ground); } }
.top .wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -.01em;
}
.brand img { width: 22px; height: 22px; border-radius: 5px; display: block; }
.links { display: flex; gap: 1.1rem; }
.links a {
  color: var(--muted); text-decoration: none;
  transition: color .15s ease;
}
.links a:hover { color: var(--ink); }
@media (max-width: 46rem) { .links { display: none; } }
.langs { margin-left: auto; display: flex; gap: .75rem; }
.langs a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 700; }

/* Anchors land below the sticky bar rather than under it. */
section[id] { scroll-margin-top: calc(var(--header) + 1rem); }

/* Hero — two columns once there is room for them, so a desktop window is
   not one narrow ribbon of text down the middle. The wash behind it is one
   soft circle of the accent, the only decoration on the page. */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 0 3.5rem; border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -30%; right: -10%; width: 55rem; height: 55rem;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  opacity: .8; pointer-events: none;
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) {
  .hero { padding: 5rem 0 4.5rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0 0 1.1rem; padding: .3rem .8rem;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: blink 2.4s ease-in-out infinite;
}
h1 {
  font-size: 2.25rem; line-height: 1.3; margin: 0 0 .9rem;
  font-weight: 700; letter-spacing: -.02em;
  text-wrap: balance;
  /* Japanese and Chinese break between any two characters. Left alone, a
     heading splits a word in half at exactly the wrong width. */
  line-break: strict; overflow-wrap: normal;
}
@media (min-width: 60rem) { h1 { font-size: 2.5rem; } }
.tagline { font-size: 1.1rem; color: var(--muted); margin: 0 0 2rem; max-width: 34rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-block; padding: .72rem 1.5rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button:active { transform: translateY(0); box-shadow: none; }
.button.ghost {
  background: var(--ground); color: var(--accent);
  border-color: var(--rule); box-shadow: var(--shadow-soft);
}
.button.ghost:hover { border-color: var(--accent); }
.note { color: var(--muted); font-size: .85rem; margin: .9rem 0 0; max-width: var(--measure); }

/* The screenshots are framed as windows — three lights and a title bar — so
   a picture of one pane reads as the app rather than as a cropped rectangle.
   Held to 460px: the captures are 590px wide and no more, and shown any
   larger a Retina screen stretches them and they go soft. */
.macwin {
  max-width: 460px; border-radius: 12px; overflow: hidden;
  background: var(--ground); border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.macwin:hover { transform: translateY(-2px); }
.macwin-bar {
  display: flex; align-items: center; gap: 6px;
  padding: .5rem .7rem; border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--panel), var(--ground));
}
.macwin-bar i { width: 11px; height: 11px; border-radius: 50%; }
.macwin-bar i:nth-child(1) { background: #ff5f57; }
.macwin-bar i:nth-child(2) { background: #febc2e; }
.macwin-bar i:nth-child(3) { background: #28c840; }
.macwin-bar span { margin-left: .4rem; font-size: .72rem; font-weight: 600; color: var(--muted); }
img.shot { display: block; width: 100%; height: auto; margin: 0; }
/* アプリの画面写真は、撮った大きさ（pt）より大きく引き伸ばさない。写真は 3 倍の細かさで
   撮っているので、この上限までなら Retina の画面でもくっきり見える。 */
img.shot.panel { max-width: 380px; border-radius: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); }
.macwin.app { max-width: 440px; margin: 0 auto; }
.shot-figure { margin: 0; display: grid; justify-items: center; }
.shot-figure figcaption { max-width: 460px; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
@media (max-width: 60rem) { .shot-figure { margin-top: 1rem; } }

/* Sections. Every other one sits on a band of colour, so where one topic
   ends and the next begins is visible from across the room rather than
   only on the hairline between them. */
section { padding: 3.5rem 0; border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 60rem) { section { padding: 5rem 0; } }
/* Odd rather than even: the first section is the long one, and its four
   features need a band behind them for the cards to sit on. */
body > section:nth-of-type(odd) { background: var(--panel); border-bottom-color: transparent; }
/* A short accent rule over each heading — the mark that says a new section
   starts here. */
h2 {
  position: relative; padding-top: 1.1rem;
  font-size: 1.4rem; margin: 0 0 1rem; letter-spacing: -.01em; text-wrap: balance;
}
h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 2.2rem; height: 3px; border-radius: 2px; background: var(--accent);
}
/* The one line under a section heading. Short by design: everything else
   belongs to the feature it describes. */
.lede { margin: 0 0 2.5rem; color: var(--muted); font-size: 1rem; }
h3 { font-size: 1rem; margin: 2rem 0 .3rem; }
p { margin: 1.15rem 0; }
ul, ol { padding-left: 1.3rem; margin: .8rem 0; }
li { margin: .35rem 0; }
a { color: var(--accent); text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: .88em; background: var(--panel); padding: .1em .35em; border-radius: 4px; }

.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
/* Two by two rather than three and a gap. */
@media (min-width: 56rem) { .features { grid-template-columns: 1fr 1fr; max-width: 56rem; } }
/* Tinted, because this section sits on the white band: a white card on a
   white ground is a rectangle of hairline and nothing else. */
.feature {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature h3 { margin: 0 0 .3rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); }

/* A feature and the picture of it, side by side; every other one flipped so
   the page alternates instead of marching down one edge. */
/* Each one is a card. A rule and a stretch of white between them was not
   enough — four features read as one continuous column of text, with no
   sign of where one ended and the next began. An edge all the way round
   says it plainly. */
.showcase {
  display: grid; gap: 1.75rem; align-items: start;
  background: var(--ground); border: 1px solid var(--rule);
  border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow-soft);
}
@media (min-width: 56rem) { .showcase { padding: 2.25rem; } }
.showcase + .showcase { margin-top: 1.5rem; }
.showcase-text { max-width: var(--measure); }
.showcase-text h3 {
  display: flex; align-items: baseline; gap: .6rem;
  font-size: 1.2rem; margin: 0 0 .4rem; letter-spacing: -.01em;
}
.showcase-text .num {
  flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: .8rem; font-weight: 700; line-height: 1.6rem; text-align: center;
  align-self: flex-start; transform: translateY(.15rem);
}
.showcase-text p { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }
.showcase-text .step {
  margin-top: 1.4rem; padding-left: .9rem; border-left: 2px solid var(--accent-soft);
  font-size: .85rem; color: var(--muted);
}
.showcase-text .step b { color: var(--ink); }
@media (min-width: 56rem) {
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .showcase.flip .showcase-text { order: 2; }
}

/* Figures. These are drawings, not screenshots: they explain what happens,
   and they are built from the page's own colours so they follow the theme. */
.fig { margin: 0; }
.fig figcaption { margin-top: .8rem; font-size: .82rem; color: var(--muted); line-height: 1.7; }
.stage {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.15rem;
}

/* Touch offset: the same panel with the correction off and on. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.case { text-align: center; }
.case .stand { display: block; width: 22%; height: 9px; margin: 0 auto; background: #cfd8da; }
.case .stand::after {
  content: ""; display: block; width: 300%; height: 6px; margin: 0 -100%;
  border-radius: 3px; background: #cfd8da;
}
.case b { display: block; margin-top: .8rem; font-size: .82rem; }
.case.bad b { color: var(--warn); }
.case.good b { color: var(--accent); }
/* Drawn as the monitor it is: a dark bezel, and a neck and foot below. */
.panel {
  position: relative; aspect-ratio: 3 / 4; border-radius: 10px;
  border: 7px solid #2f3a3e; background: var(--ground);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px),
                    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 25% 25%;
}
.touch {
  position: absolute; left: 30%; top: 30%;
  width: 1.5rem; height: 1.5rem; margin: -.75rem 0 0 -.75rem;
  border-radius: 50%; border: 2px solid var(--accent); background: var(--accent-soft);
}
.touch::after {
  content: ""; position: absolute; inset: -.45rem;
  border-radius: 50%; border: 1px dashed var(--accent); opacity: .45;
}
/* The finger is still on the glass, so the touch keeps ringing. */
.touch::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: 50%; border: 2px solid var(--accent);
  animation: ripple 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
}
/* The macOS arrow, drawn rather than fetched. */
.pointer {
  position: absolute; width: 14px; height: 21px; background: var(--ink);
  clip-path: polygon(0% 0%, 0% 89%, 33% 67%, 58% 100%, 75% 94%, 50% 61%, 92% 61%);
}
.case.bad .pointer { left: 30%; top: 68%; }
.case.good .pointer { left: calc(30% + 1px); top: calc(30% + 1px); }
.offset {
  position: absolute; left: 30%; top: 34%; height: 34%;
  border-left: 2px dashed var(--warn);
}
.offset span {
  position: absolute; left: .5rem; top: 50%; transform: translateY(-50%);
  font-size: .7rem; color: var(--warn); white-space: nowrap;
}

/* What a touch does. Two columns so the gesture and its result read as a
   pair rather than a sentence. */
.gestures div {
  display: flex; gap: 1rem; align-items: baseline;
  padding: .6rem .7rem; border-radius: 6px; font-size: .9rem;
}
/* Banded rather than ruled. Six hairlines in a row read as a form to fill
   in; the bands read as a list of pairs, which is what this is. */
.gestures div:nth-child(odd) { background: var(--ground); }
.gestures b { flex: none; width: 10rem; }
.gestures span { color: var(--muted); }
/* On a phone the two columns do not fit, so the result moves to its own
   line. Both halves have to be blocks and the result needs its arrow:
   left inline they ran together and read as one word — 「タップクリック」. */
@media (max-width: 32rem) {
  .gestures div { display: block; }
  .gestures b { display: block; width: auto; }
  .gestures span { display: block; }
  .gestures span::before { content: "→ "; color: var(--accent); font-weight: 700; }
}

/* The menu bar popup. Same rows the app puts there. */
.mock { padding: 1rem; }
.mock-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .2rem .6rem; border-radius: 7px;
  background: var(--ground); border: 1px solid var(--rule);
  font-size: .7rem; color: var(--muted);
}
.mock-bar .spacer { margin-left: auto; }
.mock-bar .glyph { width: 15px; height: 15px; display: block; }
.pop {
  width: min(17rem, 100%); margin: .5rem 0 0 auto; padding: .6rem;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: .72rem; line-height: 1.5;
  transform-origin: top right;
}
.pop-head { display: flex; align-items: center; gap: .55rem; }
.pop-icon { width: 32px; height: 32px; flex: none; display: block; }
.pop-head b { display: block; font-size: .8rem; }
.pop-head small { color: var(--muted); font-size: .68rem; }
.pop-head .live { color: #2e9e5b; }
.sw {
  margin-left: auto; flex: none; position: relative;
  width: 30px; height: 18px; border-radius: 9px; background: var(--accent);
}
.sw::after {
  content: ""; position: absolute; top: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
}
.pop-card {
  margin-top: .5rem; padding: .5rem .6rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 10px;
}
.pop-row { display: flex; align-items: center; gap: .5rem; margin: .2rem 0; }
.pop-row .dim { color: var(--muted); }
.pop-row .push { margin-left: auto; }
.bar { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.seg { display: flex; margin-top: .45rem; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg span { flex: 1; text-align: center; padding: .1rem 0; font-size: .68rem; color: var(--muted); }
.seg span.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pop-btn {
  margin-top: .5rem; padding: .35rem; border-radius: 8px; text-align: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.pop-link { margin-top: .35rem; text-align: center; color: var(--accent); }
.pop-label { color: var(--muted); font-size: .68rem; }

/* Window layout. The first drawing of this was two abstract rectangles and
   nobody could tell what they were looking at. It is a proper illustration
   now — an external monitor on its stand and a laptop on its base, drawn in
   docs/desk-*.svg — with the labels kept out here so every language can
   write its own. */
.desks { display: grid; gap: .9rem; }
.desk-label { margin: 0 0 .55rem; font-size: .78rem; color: var(--muted); }
.desk-label b { color: var(--ink); font-weight: 700; margin-right: .45rem; }
.desk.after .desk-label b { color: var(--accent); }
.desk img { display: block; width: 100%; height: auto; }
.desk-legend {
  display: grid; grid-template-columns: 45% 55%;
  margin: .35rem 0 0; font-size: .72rem; color: var(--muted); text-align: center;
}
.desk-arrow { margin: 0; text-align: center; font-size: .75rem; color: var(--muted); }
.desk-arrow em { font-style: normal; color: var(--accent); font-weight: 700; }

/* Price — the number, then what it buys, in a card that looks like the
   thing you are about to press. */
.price {
  background: var(--accent-soft); border-radius: 16px; padding: 1.5rem;
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 48rem) { .price { grid-template-columns: auto minmax(0, 1fr); padding: 2rem 2.25rem; } }
.price p { margin: .4rem 0; }
.price .amount { font-size: 2.4rem; font-weight: 700; margin: 0; white-space: nowrap; letter-spacing: -.02em; }
.price .amount small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
/* The tick hangs in the margin rather than being a flex item. As a flex
   row every run of text in the line became an item of its own, so the
   sentence was chopped into columns and, on a phone, wrapped mid-phrase. */
.price-list li {
  position: relative; margin: 0; padding-left: 1.5rem; font-size: .92rem;
}
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* Specs, in a card rather than a bare table. */
.scroller {
  overflow-x: auto;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .8rem 1.1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 700; width: 12rem; white-space: nowrap; }
/* On a phone there is no room for two columns: a 12rem label column left
   the wide rows breaking one character at a time (「販売業/者」). The label
   goes above its value instead, and the row keeps the rule under it. */
@media (max-width: 34rem) {
  table, tbody, tr, th, td { display: block; width: auto; }
  tr { border-bottom: 1px solid var(--rule); }
  tr:last-child { border-bottom: 0; }
  th, td { border-bottom: 0; white-space: normal; }
  th { padding: .8rem 1.1rem 0; }
  td { padding: .1rem 1.1rem .8rem; }
}
article .scroller { border: 0; box-shadow: none; background: none; }

footer { padding: 2.5rem 0 4rem; color: var(--muted); font-size: .85rem; }
footer nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
footer a { color: var(--muted); transition: color .15s ease; }
footer a:hover { color: var(--ink); }

article h2:first-of-type { margin-top: 0; }
article section { border: 0; padding: 1.5rem 0 0; }

/* ---- Motion -------------------------------------------------------------
   Everything here is decoration: the page is complete and readable with all
   of it switched off, which is what happens when the visitor asks for less
   movement, and when the script does not run (the .js class is set by it). */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes popin { from { opacity: 0; transform: scale(.94) translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes knob { from { transform: translateX(-12px); } to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* The hero is on screen at load, so it plays straight away, one line after
   the next rather than all at once. */
.js .hero .wrap > * > *,
.js .hero .wrap > figure { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.js .hero .eyebrow { animation-delay: .02s; }
.js .hero h1 { animation-delay: .08s; }
.js .hero .tagline { animation-delay: .16s; }
.js .hero .cta { animation-delay: .24s; }
.js .hero .note { animation-delay: .32s; }
.js .hero .shot-figure { animation-delay: .3s; }

/* Everything below waits until it is nearly in view. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .06s; }
.js .reveal:nth-child(3) { transition-delay: .12s; }
.js .reveal:nth-child(4) { transition-delay: .18s; }

/* The popup arrives the way a popover does, and its switch lands a moment
   after the panel it sits in. */
.js .reveal.in .pop { animation: popin .5s cubic-bezier(.2, .8, .25, 1) both; }
.js .reveal.in .sw::after { animation: knob .45s .35s cubic-bezier(.2, .8, .25, 1) both; }
/* The restored desk arrives a moment after the one above it, so the two
   read as before and after rather than as one picture. */
.js .reveal.in .desk.after { animation: settle .6s .25s cubic-bezier(.2, .8, .25, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    /* The delays have to go too. Zeroing only the duration leaves the
       staggered pieces holding their opening frame — which `both` fills
       backwards, so they sit invisible — and then popping into place when
       the delay runs out. That pop is the movement the visitor asked not
       to see. */
    animation-delay: .001ms !important;
    transition-delay: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Before and after, in two lines, so a visitor who reads nothing else still
   knows what each feature changes. */
/* Two filled rows rather than two lines of text with a mark in front. The
   colour is the message: the warm one is what the machine does on its own,
   the accent one is what changes. A reader who scans and never stops still
   gets the whole page from these. */
.ba { display: grid; gap: .4rem; margin: 1.1rem 0 0; }
.ba div {
  display: flex; gap: .55rem; align-items: baseline;
  padding: .5rem .8rem; border-radius: 8px;
  font-size: .88rem; line-height: 1.6;
}
.ba div::before { flex: none; font-weight: 700; }
.ba .before { background: var(--warn-soft); color: var(--ink); }
.ba .before::before { content: "✗"; color: var(--warn); }
.ba .after { background: var(--accent-soft); color: var(--ink); }
.ba .after::before { content: "✓"; color: var(--accent); }
.ba b { font-weight: 700; margin-right: .35rem; }
.ba .before b { color: var(--warn); }
.ba .after b { color: var(--accent); }
