/* AndLink website. Colors are the apps' Material roles (DESIGN.md › Brand color); teal means linked or acting.
   Shadows appear only on real macOS captures (a window, a menu popover), where the shadow is part of the product. */
:root {
  --ground: #F4FBF8;
  --panel: #EFF5F2;
  --panel-2: #E3EAE7;
  --ink: #171D1B;
  --ink-2: #3F4946;
  --ink-3: #5A6461;
  --outline: #6F7976;
  --rule: #DAE5E1;
  --rule-2: #BEC9C5;
  --teal: #006B5F;
  --on-teal: #FFFFFF;
  --teal-soft: #9EF2E3;
  --on-teal-soft: #005047;
  --tonal: #CCE8E2;
  --on-tonal: #334B47;
  --glyph-off: #DDE4E1;
  --select: #9EF2E3;
  --radius-panel: 28px;
  --radius-m: 16px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --page: min(1200px, 100% - 2 * var(--gutter));
  --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1513; --panel: #171D1B; --panel-2: #252B2A; --ink: #DDE4E1; --ink-2: #BEC9C5; --ink-3: #9AA4A1; --outline: #899390;
    --rule: #252B2A; --rule-2: #3F4946; --teal: #82D5C7; --on-teal: #003731; --teal-soft: #005047; --on-teal-soft: #9EF2E3;
    --tonal: #334B47; --on-tonal: #CCE8E2; --glyph-off: #303634;
    --select: #005047; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1513; --panel: #171D1B; --panel-2: #252B2A; --ink: #DDE4E1; --ink-2: #BEC9C5; --ink-3: #9AA4A1; --outline: #899390;
  --rule: #252B2A; --rule-2: #3F4946; --teal: #82D5C7; --on-teal: #003731; --teal-soft: #005047; --on-teal-soft: #9EF2E3;
  --tonal: #334B47; --on-tonal: #CCE8E2; --glyph-off: #303634;
  --select: #005047; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  caret-color: var(--teal); scrollbar-color: var(--rule-2) var(--ground);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(ko) body, body:lang(ko) { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Roboto, sans-serif; word-break: keep-all; }
body:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; line-break: strict; }
body:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; line-break: strict; }
::selection { background: var(--select); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--teal); color: var(--on-teal); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: var(--page); margin-inline: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
.hero h1 span { display: block; }
:lang(zh-Hant) .hero h1 { font-size: clamp(2rem, 1.1rem + 4.3vw, 4.25rem); }
/* Japanese display text keeps each phrase whole and breaks only at the <wbr> marks in the strings (U+200B where
   site.js swaps text in). Same result in Safari and Chromium; overflow-wrap is the last resort on a very narrow screen. */
:lang(ja) :is(h1, h2, h3, .lede, .note, .label, .tab, .group-label, figcaption) { word-break: keep-all; overflow-wrap: anywhere; }
p, li, dd, td, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(2.5rem, 1.1rem + 4.3vw, 4.75rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 1.15rem + 2.3vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
:lang(ko) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3), :lang(zh-Hant) :is(h1, h2, h3) { letter-spacing: -0.01em; }
:lang(ja) h1, :lang(zh-Hant) h1 { line-height: 1.15; }
p { margin: 0; }
.lede { font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem); color: var(--ink-2); line-height: 1.5; max-width: 46ch; text-wrap: pretty; }
.hero .lede { max-width: 58ch; text-wrap: balance; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.bar.scrolled { border-bottom-color: var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; padding: 8px 12px; border-radius: 999px; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.nav a:hover { background: var(--panel); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.bar .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); font-size: 0.9375rem; padding: 8px 10px 8px 12px; border-radius: 999px; min-height: 40px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--panel); color: var(--ink); }
.lang summary .chev { transition: transform 200ms var(--ease); width: 18px; height: 18px; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--radius-m); min-width: 180px; }
.lang li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.lang li a:hover { background: var(--panel-2); }
.lang li a[aria-current="true"] { color: var(--teal); font-weight: 600; }
.soon { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tonal); color: var(--on-tonal); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.soon:hover { filter: brightness(0.97); }

/* Hero: the connection panel at page scale */
.hero { padding: clamp(24px, 4vh, 44px) 0 0; text-align: center; overflow: clip; }
.hero h1 { font-size: clamp(2.5rem, 1.1rem + 4.3vw, 4.25rem); }
.hero h1 { margin-inline: auto; }
.hero .lede { margin: 14px auto 0; }
.tabs { display: inline-flex; gap: 6px; margin-top: 24px; padding: 6px; background: var(--panel); border-radius: 999px; }
.tab { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9375rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.tab:hover { color: var(--ink); background: var(--panel-2); }
.tab[aria-selected="true"] { background: var(--teal); color: var(--on-teal); }
#panel { position: relative; margin-top: 20px; padding: clamp(24px, 2.5vw, 32px) clamp(16px, 4vw, 56px) clamp(28px, 4vw, 48px); background: var(--panel); border-radius: var(--radius-panel); }
.link { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin: 0 auto; width: min(1000px, 100%); }
.glyph { width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--on-teal-soft); transition: transform 190ms var(--ease), background-color 250ms var(--ease); }
.glyph .i { width: 36px; height: 36px; }
.line { position: relative; height: 6px; margin-inline: 12px; border-radius: 3px; background: var(--teal); transition: height 190ms var(--ease); }
.link.linking .line { background: repeating-linear-gradient(90deg, var(--teal) 0 10px, transparent 10px 24px); background-size: 24px 6px; animation: travel 700ms linear infinite; }
.link.settle .line { height: 9px; transition-duration: 110ms; }
.link.settle .glyph { transform: scale(1.04); transition-duration: 110ms; }
@keyframes travel { to { background-position: 24px 0; } }
.label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; background: var(--panel); padding: 6px 16px; border-radius: 999px; color: var(--teal); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.label .i { width: 20px; height: 20px; }
.note { margin: 12px auto 0; max-width: 68ch; color: var(--ink-2); font-size: 0.9375rem; min-height: 1.6em; text-wrap: balance; }
.stage { display: grid; grid-template-columns: 1fr minmax(260px, 300px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: 10px; text-align: left; }
.group-label, .get .group-label { font-size: 0.9375rem; letter-spacing: 0; color: var(--teal); font-weight: 600; margin: 0 0 14px; }
.works ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.works li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.works li .i { color: var(--teal); margin-top: 1px; }
.works li.off { color: var(--ink-3); }
.works li.off .i { color: var(--outline); }
.works li small { display: block; color: var(--ink-3); font-size: 0.875rem; }
.works { justify-self: end; max-width: 300px; padding-top: 24px; }
.window { position: relative; margin: 0; }
.window img { width: 100%; border-radius: 12px; box-shadow: 0 1px 0 var(--rule), 0 30px 60px -30px rgb(0 40 34 / 0.45); }
.window figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); text-align: center; }
.window img.swap { animation: fade 250ms var(--ease); }
@keyframes fade { from { opacity: 0.2; } }
.motion { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.motion:hover { background: var(--panel-2); color: var(--ink); }
.motion .i { width: 22px; height: 22px; }
.motion .when-off, .motion[data-state="paused"] .when-on { display: none; }
.motion[data-state="paused"] .when-off { display: contents; }
.get { max-width: 300px; padding-top: 24px; }
.store { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius-m); background: var(--ground); border: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; margin-bottom: 10px; }
a.store { transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
a.store:hover { border-color: var(--teal); }
.getband .store { background: var(--panel); }
.get .store { background: none; border: 0; border-top: 1px solid var(--rule-2); border-radius: 0; padding: 14px 4px; margin: 0; }
.get .store:last-of-type { border-bottom: 1px solid var(--rule-2); }
.get a.store:hover { background: var(--panel-2); }
.store b { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.store span { font-size: 0.875rem; color: var(--ink-3); }
.get p { font-size: 0.875rem; color: var(--ink-2); margin-top: 12px; }

/* Sections */
section.s { padding: clamp(80px, 12vh, 140px) 0; }
.s .head { max-width: 760px; }
.s .head p { margin-top: 18px; }
.alt { background: var(--panel); }

/* What crosses the line: a vertical link with the features as stations */
.cross { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 6vw, 96px); margin-top: 56px; align-items: start; }
.stations { list-style: none; margin: 0; padding: 0; position: relative; }
.stations::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; border-radius: 2px; background: var(--teal); }
.stations li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 0 0 34px; }
.stations li:last-child { padding-bottom: 0; }
.stations .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--on-teal-soft); position: relative; }
.stations .dot .i { width: 26px; height: 26px; }
.stations h3 { margin-top: 13px; }
.stations p { color: var(--ink-2); margin-top: 6px; max-width: 52ch; }
.shot { position: sticky; top: 96px; margin: 0; }
.shot img { border-radius: 14px; box-shadow: 0 1px 0 var(--rule), 0 30px 60px -34px rgb(0 40 34 / 0.45); }
.shot figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }

/* One QR code */
.qr { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; position: relative; padding-bottom: 36px; }
.steps li::before { content: counter(step); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--glyph-off); color: var(--ink); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 26px; top: 64px; bottom: 8px; width: 4px; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 18px); border-radius: 2px; }
.steps li:last-child::before { background: var(--teal-soft); color: var(--on-teal-soft); }
.steps h3 { margin-top: 14px; }
.steps p { color: var(--ink-2); margin-top: 6px; max-width: 50ch; }
.aside { margin-top: 8px; padding: 18px 20px; border-radius: var(--radius-m); background: var(--panel); color: var(--ink-2); font-size: 0.9375rem; display: flex; gap: 12px; }
.aside .i { color: var(--ink-3); margin-top: 2px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 48px; align-items: center; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }
.phone-shot img { border-radius: 22px; box-shadow: 0 0 0 1px var(--rule); }

/* Privacy: the line with nothing on it, and what it means hung under the phone, the line and the Mac */
.direct { margin-top: 56px; }
.direct .link { width: 100%; }
.direct .label { background: var(--ground); }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.facts li { max-width: 36ch; }
.facts li:nth-child(2) { justify-self: center; }
.facts li:nth-child(3) { justify-self: end; }
.facts p { margin-top: 8px; color: var(--ink-2); }

/* Pro: the window, then its six additions in the order of the window's toolbar */
.pro { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 56px; align-items: start; }
.pro .shot { position: static; }
.pro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 620px; }
.pro-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.pro-list .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--on-teal-soft); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 250ms var(--ease); }
.pro-list .ic .i { width: 22px; height: 22px; }
.pro-list h3 { padding-top: 8px; }
/* Each Pro addition and its own button on the window's toolbar (drop to send: the whole phone screen) carry the same
   2px teal ring while lit. Positions are fractions of the 720x1736 capture; the toolbar is identical in every language. */
.frame { position: relative; }
.mark { position: absolute; left: var(--x); top: var(--y, 96.26%); width: var(--w, 7.22%); height: var(--h, 3%); border: 2px solid var(--teal); border-radius: 8px; opacity: 0; transition: opacity 250ms var(--ease); pointer-events: none; }
.mark[data-mark="control"] { --x: 2.78%; --w: 30.97%; }
.mark[data-mark="rec"] { --x: 57.08%; --w: 15.83%; }
.mark[data-mark="hq"] { --x: 74.17%; }
.mark[data-mark="top"] { --x: 82.43%; }
.mark[data-mark="audio"] { --x: 90.76%; }
.mark[data-mark="drop"] { --x: 0.6%; --y: 3.6%; --w: 98.8%; --h: 91.5%; border-radius: 4px; }
.mark.on, .pro-list li.on .ic { opacity: 1; outline-color: var(--teal); }
.pro-list li.on .ic { animation: settle 300ms linear; }
.pro-list h3 { font-size: 1.125rem; }
.pro-list p { margin-top: 4px; color: var(--ink-2); }
.terms { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule-2); max-width: 620px; font-weight: 600; color: var(--ink); }
.pro .free { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; max-width: 60ch; }

/* Get */
.getband { text-align: center; }
.getband .lede { margin: 18px auto 0; }
.getband .stores { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.getband .store { min-width: 240px; text-align: left; margin: 0; }
.req { margin-top: 24px; color: var(--ink-3); font-size: 0.9375rem; }
.lede.guide-d { font-size: 1rem; margin-top: 8px; }
.guidecta { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; }
.guidecta .i { transition: transform 200ms var(--ease); }
.guidecta:hover .i { transform: translateX(3px); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; color: var(--ink-3); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .langs { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* Guide (Read) */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding: 56px 0 120px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc p { font-size: 0.8125rem; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--teal); border-left-color: var(--teal); font-weight: 600; }
.prose { max-width: 68ch; }
.prose > p, .prose > ul, .prose > ol, .prose .tip { max-width: 58ch; }
.prose h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.25rem); }
.prose > .lede { margin-top: 16px; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 72px 0 0; padding-top: 8px; }
.prose h3 { margin: 32px 0 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose figure { margin-top: 14px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--ink-3); }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); }
.prose figure.phone { max-width: 300px; }
.prose figure.phone img { border-radius: 22px; }
.prose figure.mac { max-width: 380px; }
.prose figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.prose th { color: var(--ink); font-weight: 600; }
.prose td { color: var(--ink-2); }
.prose th[scope=row] { width: 34%; min-width: 9em; }
.prose tbody td:first-child { width: 42%; color: var(--ink); }
.prose th small { display: block; margin-top: 2px; font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); }
.prose .tip { padding: 16px 18px; border-radius: var(--radius-m); background: var(--panel); display: flex; gap: 12px; }
.prose .tip .i { color: var(--ink-3); margin-top: 3px; }
.prose kbd { font: inherit; font-size: 0.875em; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); color: var(--ink); }
.path { font-size: 0.9375rem; color: var(--ink); background: var(--panel); padding: 2px 8px; border-radius: 6px; }

@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr minmax(240px, 300px); }
  .works { grid-column: 1; grid-row: 1; justify-self: start; }
  .window { grid-column: 2; grid-row: 1 / span 2; }
  .get { grid-column: 1; grid-row: 2; }
  .nav { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 76px; }
  .bar .wrap { gap: 12px; height: 60px; }
  .brand span { font-size: 1.0625rem; }
  .lang summary .lname { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 22px; }
  .tab { justify-content: center; padding: 6px 8px; flex-direction: column; gap: 2px; font-size: 0.8125rem; min-height: 56px; border-radius: 16px; text-align: center; line-height: 1.2; }
  .glyph { width: 60px; height: 60px; }
  .glyph .i { width: 28px; height: 28px; }
  .line { margin-inline: 6px; }
  .link { margin-bottom: 64px; }
  .label { top: calc(100% + 12px); transform: translateX(-50%); font-size: 0.8125rem; padding: 4px 10px; gap: 6px; background: transparent; }
  .stage { grid-template-columns: 1fr; gap: 28px; }
  .works, .window, .get { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: none; padding-top: 0; }
  .window { width: min(240px, 70%); margin-inline: auto; order: -1; }
  .pro .shot { max-width: 260px; margin-inline: auto; }
  .cross, .qr, .pro, .doc { grid-template-columns: 1fr; }
  .shot { position: static; max-width: 380px; }
  .qr .qrshot { max-width: 340px; }
  .pair { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .facts li:nth-child(n) { justify-self: stretch; max-width: none; }
  .motion { top: 8px; right: 8px; }
  .toc { position: static; }
  footer .langs { margin-left: 0; }
}
/* Motion: everything crosses the link line. The CSS default is the final, still state; site.js adds the motion
   (classes .live, .linking, .on, .run, .done and the .packet elements) only when reduced motion is off. */
.glyph { position: relative; }
.glyph .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; pointer-events: none; }
.link.linking .glyph { background: var(--glyph-off); color: var(--ink-2); }
.packet { position: absolute; left: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--on-teal-soft); box-shadow: 0 0 0 2px var(--teal); pointer-events: none; opacity: 0; will-change: transform, opacity; }
.packet .i { width: 18px; height: 18px; }
.works li { margin-inline: -8px; padding: 3px 8px; border-radius: 10px; }
.works li.ping { animation: ping 1200ms var(--ease); }
.works li.ping .yes .i { animation: pop 420ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes ping { 0%, 30% { background-color: color-mix(in srgb, var(--teal-soft) 65%, transparent); } 100% { background-color: transparent; } }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes settle { 37% { transform: scale(1.08); animation-timing-function: var(--ease); } }

.stations .dot { z-index: 1; transition: background-color 250ms var(--ease), color 250ms var(--ease); }
.stations.live::before { background: var(--glyph-off); }
.stations.live::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; border-radius: 2px; background: var(--teal); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.stations.live li:not(.on) .dot { background: var(--glyph-off); color: var(--ink-3); }
.stations.live li.on .dot { animation: settle 300ms linear; }

.steps.live li::before { transition: background-color 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease); }
.steps.live li:last-child:not(.done)::before { background: var(--glyph-off); color: var(--ink); }
.steps.live li.now::before { box-shadow: inset 0 0 0 3px var(--teal); }
.steps.live li.done::before { animation: settle 300ms linear; }
.steps.live li:not(:last-child)::after { background-size: 4px 18px; transition: opacity 250ms var(--ease); }
.steps.live li:not(:last-child):not(.run):not(.ran)::after { opacity: 0.3; }
.steps.live li.run::after { animation: travel-y 700ms linear infinite; }
@keyframes travel-y { to { background-position: 0 18px; } }
@media (max-width: 760px) {
  .packet { width: 28px; height: 28px; margin-top: -14px; }
  .packet .i { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
