/* Aero's page: a Thin Air page (the studio's width, header, type and footer, like ShelfSync's) in the studio's own colours.
   All motion on this page is Aero (assets/anim.css + aero.js); nothing here sets transform, transition or animation
   on a demo element, so what you see is the library. */
@font-face { font-family: "Inter"; src: url("/assets/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* the studio's tokens (site.css) */
  --charcoal: #2A2D30; --ink: #1B1D20; --slate: #5B626C; --body: #3E4449;
  --viridian: #40826D; --viridian-deep: #2F6B58;
  --mist: #DCEBE4; --mist-line: #BFD3CA; --cloud: #F3F5F4; --white: #FFFFFF;
  --code: #1B1D20; --code-text: #DCEBE4; --code-dim: #8FA59B;
  --error: #B4442F; /* semantic: form errors only */
  --wrap: 1360px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --bar: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: rgba(27, 45, 38, .5);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); scroll-behavior: smooth; }
body.ap {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--mist); color: var(--charcoal);
  font: 17px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--viridian); outline-offset: 3px; border-radius: 6px; }
button, input, select { font: inherit; color: inherit; }
.ap-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.ap-skip { position: fixed; left: 16px; top: -60px; z-index: 30; padding: 8px 14px; border-radius: 999px; background: var(--charcoal); color: var(--white); font-weight: 600; text-decoration: none; }
.ap-skip:focus { top: 12px; }
.fine { font-size: 14px; color: var(--slate); }

/* ---- header: sticky mist glass, the studio's logo first ---- */
.ap-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--mist) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: env(safe-area-inset-top, 0px); }
.ap-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--bar); }
.ap-lockup { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ap-studio { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ap-studio .sym { width: 52px; }
.ap-studio .word { width: 112px; }
.ap-studio .peak, .ap-studio .glyph { fill: var(--charcoal); }
.ap-studio .curl, .ap-studio .glyph.accent { fill: var(--viridian); }
.ap-slash { color: var(--mist-line); font-size: 26px; font-weight: 300; line-height: 1; }
.ap-brand { font-weight: 700; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.ap-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.ap-nav > a:not(.ap-btn) { color: var(--slate); text-decoration: none; }
.ap-nav > a:not(.ap-btn):hover { color: var(--charcoal); }
.ap-motion { padding: 8px 14px; border: 1px solid var(--mist-line); border-radius: 999px; background: none; font-size: 14px; font-weight: 500; color: var(--slate); cursor: pointer; white-space: nowrap; }
.ap-motion:hover { color: var(--charcoal); border-color: var(--slate); }
.ap-motion[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* ---- buttons and links ---- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--charcoal); color: var(--white); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ap-btn:hover { background: var(--ink); }
.ap-btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.ap-ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--charcoal); font-weight: 600; text-decoration: none; }
.ap-link { display: inline-flex; gap: .35em; color: var(--viridian-deep); font-weight: 600; text-decoration: none; }
.ap-link i, .ap-links i, .ap-case em i, .ap-more-links i { display: inline-block; font-style: normal; color: var(--viridian); }
.ap-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--viridian-deep); font-size: 14px; font-weight: 600; }
.ap-tag { display: block; margin-top: 14px; font: 500 13px/1.4 var(--mono); color: var(--slate); }

/* ---- code ---- */
.ap-code { position: relative; margin-top: 20px; border-radius: 16px; background: var(--code); color: var(--code-text); }
.ap-code pre { overflow-x: auto; padding: 20px 96px 20px 22px; font: 14px/1.65 var(--mono);
  mask-image: linear-gradient(to left, transparent 92px, #000 132px); scrollbar-width: none; } /* a long line fades out before the Copy button instead of running under it */
.ap-copy { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--code-text) 25%, transparent);
  background: none; color: var(--code-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.ap-copy:hover { background: color-mix(in srgb, var(--code-text) 12%, transparent); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ap-replay { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mist-line);
  background: var(--white); color: var(--charcoal); font-size: 14px; font-weight: 600; cursor: pointer; }
.ap-replay:hover { border-color: var(--slate); }
.ap-replay span[aria-hidden] { color: var(--viridian); font-size: 16px; line-height: 1; }

/* ---- hero ---- */
.ap-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); }
.ap-hero h1 { margin-top: 22px; font-size: clamp(48px, 7vw, 120px); line-height: .94; letter-spacing: -.058em; font-weight: 600; max-width: 10ch; }
.ap-hero .lead { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--body); max-width: 40ch; }
.ap-install { margin-top: 36px; display: flex; align-items: center; gap: 12px; max-width: 640px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--code); color: var(--code-text); }
.ap-install code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 14px/1.4 var(--mono); }
.ap-install .ap-copy { position: static; flex: none; }
.ap-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.ap-actions .ap-btn i { display: inline-block; margin-left: 8px; font-style: normal; }
.ap-hero .fine { margin-top: 16px; }

/* Our logo, built by Aero: the peak grows up from its base, the curls slide in after it, then the letters rise. */
.ap-mark { display: grid; gap: 14px; padding: 14px; border-radius: 32px; background: var(--white); box-shadow: 0 44px 70px -50px var(--shadow); }
.ap-mark-stage { display: grid; place-items: center; min-height: clamp(360px, 36vw, 560px); border-radius: 22px; background: var(--cloud); }
.ap-logo { display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 36px); width: min(76%, 460px); }
.ap-logo .sym { width: 74%; overflow: visible; } .ap-logo .word { width: 100%; overflow: visible; }
.ap-logo .peak, .ap-logo .glyph { fill: var(--charcoal); }
.ap-logo .curl, .ap-logo .glyph.accent { fill: var(--viridian); }
.ap-logo path { transform-box: fill-box; }
.ap-logo .peak { transform-origin: 50% 100%; --aero-distance: 0px; --aero-grow: 0; --aero-duration: 1s; --aero-delay: .15s; --aero-easing: cubic-bezier(.16, 1, .3, 1); }
.ap-logo .curl { --aero-i: var(--i); --aero-delay: .7s; --aero-stagger: 110ms; --aero-distance: 26px; --aero-duration: .8s; }
.ap-logo .glyph { --aero-i: var(--i); --aero-delay: 1.15s; --aero-stagger: 40ms; --aero-distance: 16px; --aero-duration: .6s; }
.ap-mark figcaption, .ap-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 4px 10px; }
.ap-mark figcaption code { font: 500 13px/1.4 var(--mono); color: var(--slate); }

/* ---- sections ---- */
.ap-section { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(24px, 4vw, 48px); }
.ap-section h2 { font-size: clamp(38px, 5.4vw, 92px); line-height: .96; letter-spacing: -.055em; font-weight: 600; max-width: 14ch; --aero-distance: 7vh; }
.ap-section .intro { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--body); max-width: 58ch; --aero-distance: 3vh; }

/* ---- playground ---- */
.ap-play { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ap-controls { display: grid; align-content: start; gap: 22px; padding: 26px; border-radius: 28px; background: var(--white); }
.ap-controls fieldset { border: 0; }
.ap-controls legend, .ap-range > span, .ap-select > span { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.ap-range output { font: 500 14px var(--mono); color: var(--viridian-deep); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chips label { position: relative; }
.ap-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ap-chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--mist-line); font: 500 13px/1.2 var(--mono); color: var(--body); }
.ap-chips input:hover + span { border-color: var(--slate); }
.ap-chips input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.ap-chips input:focus-visible + span { outline: 2px solid var(--viridian); outline-offset: 2px; }
.ap-range { display: grid; }
.ap-range input { width: 100%; accent-color: var(--viridian); }
.ap-select { display: grid; }
.ap-select select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--mist-line); background: var(--white); }
.ap-check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ap-check input { width: 18px; height: 18px; accent-color: var(--viridian); }
.ap-controls .ap-btn { justify-self: start; min-height: 46px; }
.ap-play-stage { display: grid; place-items: center; min-height: 420px; padding: clamp(20px, 3vw, 40px); border-radius: 28px; background: var(--cloud); overflow: hidden; }
.ap-mock { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: start; }
.ap-mock-card { display: grid; gap: 4px; padding: 12px 12px 18px; border-radius: 22px; background: var(--white); box-shadow: 0 24px 40px -30px var(--shadow); }
.ap-mock-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 14px; background: var(--mist); margin-bottom: 8px; }
.ap-mock-card span { padding-inline: 6px; font-size: 13px; color: var(--slate); }
.ap-mock-card strong { padding-inline: 6px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.25; letter-spacing: -.015em; }

.ap-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-presets button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mist-line); background: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.ap-presets button:hover { border-color: var(--slate); }
.ap-presets button[aria-pressed="true"] { background: var(--viridian-deep); border-color: var(--viridian-deep); color: var(--white); }
.ap-play-stage { align-content: center; gap: 28px; }
.ap-lane { width: 100%; }
.ap-lane-label { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--slate); }

/* ---- scroll ---- */
.ap-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--viridian); transform-origin: 0 50%; --aero-distance: 0px; --aero-grow: 0; }
/* The pinned track: the stage stays under the header while the section scrolls past, and the phones play
   through the section's progress (aero-track + aero-scrub-track). */
.ap-pin { height: 280vh; margin-top: clamp(24px, 3vw, 48px); }
.ap-pin-stage { position: sticky; top: var(--bar); height: calc(100dvh - var(--bar)); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: 20px; padding-bottom: 28px; }
.ap-phones.big { height: 100%; min-height: 0; }
.ap-phones.big .phone { width: clamp(140px, min(15vw, 30vh), 330px); padding: 6px; border-radius: 32px; }
.ap-phones.big .phone img { border-radius: 26px; }
.ap-phones.big .l, .ap-phones.big .r { --aero-fan-x: 0%; --aero-fan-y: 6%; --aero-fan-rot: 0deg; --aero-scrub-range: contain 10% contain 80%; }
.ap-phones.big .c { --aero-fan-y: 14%; --aero-scrub-range: contain 0% contain 40%; }
.ap-fan-side { min-width: 0; }
.ap-meter { padding: 26px; border-radius: 28px; background: var(--white); }
.ap-meter p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; color: var(--slate); }
.ap-meter output { font: 600 clamp(32px, 3vw, 48px)/1 var(--mono); color: var(--viridian-deep); font-variant-numeric: tabular-nums; }
.ap-meter-track { margin-top: 18px; height: 10px; border-radius: 999px; background: var(--cloud); overflow: hidden; }
.ap-meter-track i { display: block; height: 100%; border-radius: 999px; background: var(--viridian); transform-origin: 0 50%; transform: scaleX(0); }
.ap-meter-ends { margin-top: 10px; display: flex; justify-content: space-between; font: 500 13px var(--mono); color: var(--slate); }
.ap-pass { margin-top: clamp(80px, 12vw, 160px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ap-pass > div { position: sticky; top: calc(var(--bar) + 40px); }
.ap-pass h3 { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; --aero-distance: 4vh; }
.ap-pass p { margin-top: 14px; color: var(--body); max-width: 46ch; --aero-distance: 3vh; }
.ap-pass ol { list-style: none; }
.ap-pass li { border-bottom: 1px solid var(--mist-line); }
.ap-pass a { display: grid; gap: 4px; padding-block: clamp(28px, 5vh, 56px); text-decoration: none; }
.ap-pass a strong { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; }
.ap-pass a strong i { display: inline-block; font-style: normal; color: var(--viridian); }
.ap-pass a:hover strong { color: var(--viridian-deep); }
.ap-pass a span { color: var(--slate); font-size: 15px; }

/* ---- hover: the homepage's own pieces ---- */
.ap-svc { list-style: none; margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.ap-svc li { display: flex; flex-direction: column; min-width: 0; }
.ap-svc-plate { position: relative; display: block; aspect-ratio: 3 / 2; }
.ap-svc-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; --aero-hover-duration: .6s; --aero-hover-easing: var(--ease-out); }
.ap-svc h3 { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--mist-line); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; }
.ap-svc p { margin-top: 12px; color: var(--body); font-size: 16px; line-height: 1.65; }
.ap-proof { margin-top: auto; padding-top: 18px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; text-decoration: none; font-size: 15px; font-weight: 500; }
.ap-proof small { flex-basis: 100%; font-size: 13px; font-weight: 400; color: var(--slate); }
.ap-proof i { display: inline-block; font-style: normal; color: var(--viridian); --aero-hover-duration: .5s; --aero-hover-easing: var(--ease-out); }
.ap-svc li:hover .ap-proof span, .ap-proof:focus-visible span { color: var(--viridian-deep); }
.ap-hover-row { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.ap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 24px; padding: 24px 24px 24px 32px; border-radius: 28px; background: var(--white); text-decoration: none; }
.ap-row span { display: grid; gap: 6px; }
.ap-row strong { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; }
.ap-row strong i { display: inline-block; font-style: normal; color: var(--viridian); }
.ap-row small { font-size: 15px; color: var(--slate); }
.ap-row img { width: 100%; --aero-hover-x: -10px; --aero-hover-scale: 1.03; --aero-hover-duration: .6s; --aero-hover-easing: var(--ease-out); }
.ap-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 26px; border-radius: 28px; background: var(--white); }

/* ---- cursor ---- */
.ap-cursor { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: clamp(20px, 3vw, 40px);
  border-radius: 32px; background: var(--charcoal); --aero-spotlight-color: rgb(255 255 255 / .35); --aero-spotlight-size: 380px; }
.ap-poster, .ap-scene { position: relative; display: grid; place-items: center; min-height: 440px; padding: 32px 32px 56px; border-radius: 24px; background: var(--mist); overflow: hidden; }
.ap-poster { box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .7); }
.ap-poster img { width: auto; max-height: 380px; }
.ap-poster figcaption, .ap-scene figcaption { position: absolute; left: 22px; bottom: 18px; font: 500 13px/1.4 var(--mono); color: var(--slate); }
.ap-layer { grid-area: 1 / 1; width: min(78%, 480px); }
.ap-layer svg { display: block; width: 100%; height: auto; }
.ap-layer-peak .pk { fill: var(--charcoal); } .ap-layer-peak .cu { display: none; }
.ap-layer-curls .pk { display: none; } .ap-layer-curls .cu { fill: var(--viridian); }

/* ---- the ribbon: effect names sliding with the scroll; hover one and it does what it says ---- */
.ap-ribbon { overflow: clip; display: grid; gap: clamp(4px, .8vw, 14px); padding-block: clamp(28px, 4vw, 64px); border-block: 1px solid var(--mist-line); }
.ap-ribbon-row { display: flex; gap: clamp(28px, 3vw, 64px); width: max-content; white-space: nowrap;
  font-size: clamp(56px, 8.4vw, 168px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; --aero-scrub-range: cover 0% cover 100%; }
.ap-ribbon-row.aero-slide-left { --aero-slide-start: 4vw; --aero-slide: 38%; }
.ap-ribbon-row.aero-slide-right { --aero-slide-start: -4vw; --aero-slide: 42%; }
/* Each word is split into letters; the effect runs through them (Aero: the entrances and attention effects stagger
   over split pieces). The outline is a stroke under a fill the colour of the page, so only the outer edge shows,
   not the lines where a variable font's shapes overlap inside a letter. */
.ap-fx { display: inline-block; color: var(--charcoal); cursor: default; transition: color .35s, -webkit-text-stroke-color .35s;
  --aero-stagger: 38ms; --aero-duration: .75s; --aero-easing: cubic-bezier(.16, 1, .3, 1); --aero-distance: 45%; --aero-grow: .2;
  --aero-attention-duration: .9s; }
.ap-fx[data-fx="wave"] { --aero-wave: .3em; --aero-hover-duration: .6s; --aero-stagger: 110ms; }
.ap-fx .aero-piece { transform-origin: 50% 90%; }
.ap-fx.is-line { color: var(--mist); -webkit-text-stroke: 3px var(--viridian); paint-order: stroke fill; }
.ap-fx:hover { color: var(--viridian-deep); -webkit-text-stroke-color: var(--viridian-deep); }
.ap-fx[data-fx="shake"] { --aero-attention-duration: .55s; --aero-shake: .12em; }
.ap-fx[data-fx="pop"] { --aero-attention-duration: .45s; }
.ap-fx[data-fx="float"] { --aero-attention-duration: 2.4s; --aero-stagger: 90ms; }
.ap-fx[data-fx="pulse"] { --aero-attention-duration: 1.4s; --aero-stagger: 70ms; }
/* Aero's fan, lift and scale defaults are sized for cards and photos; on a single letter they'd move a pixel or two.
   Letter-sized, so every word visibly does what it says. */
.ap-fx[data-fx="fan-left"] { --aero-fan-x: 55%; --aero-fan-y: 25%; --aero-fan-rot: 24deg; --aero-duration: .9s; }
.ap-fx[data-fx="lift"] { --aero-fan-y: 70%; --aero-duration: .8s; }
.ap-fx[data-fx="scale-up"] { --aero-scale-from: .3; --aero-distance: 0px; }
.ap-fx[data-fx="pulse"] .aero-piece { --aero-pulse: .15; }

/* ---- line-by-line reveals for headings and intros (Aero's lines split) ---- */
.ap-section h2.aero-split { --aero-distance: 120%; --aero-duration: .9s; --aero-stagger: 90ms; --aero-easing: cubic-bezier(.16, 1, .3, 1); }
.ap-section .intro.aero-split { --aero-distance: 120%; --aero-duration: .8s; --aero-stagger: 70ms; --aero-delay: .18s; --aero-easing: cubic-bezier(.16, 1, .3, 1); }
.ap-mod { --aero-distance: 24px; --aero-stagger: 60ms; }

/* ---- the header shows which part of the page you're in ---- */
/* (Aero's underline: drawn on hover, and held while its section is on screen, .aero-on from page.js.) */
.ap-nav > a.aero-underline { --aero-underline-color: var(--viridian); --aero-underline-offset: 6px; --aero-underline-thickness: 2px; --aero-hover-easing: var(--ease-out); }
.ap-nav > a.aero-underline::after { border-radius: 2px; }
.ap-nav > a.is-here { color: var(--charcoal); }

/* ---- why ---- */
.ap-pill b { margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--viridian-deep); color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.ap-why-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ap-story { margin-top: 28px; display: grid; gap: 16px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--body); --aero-distance: 3vh; }
.ap-story p:first-child { color: var(--charcoal); font-weight: 500; }
.ap-timeline { list-style: none; position: relative; display: grid; gap: 28px; padding-left: 28px; margin-top: clamp(8px, 2vw, 24px); --aero-stagger: 140ms; --aero-distance: 24px; }
.ap-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--mist-line); }
.ap-timeline li { position: relative; display: grid; gap: 2px; }
.ap-timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--mist); border: 2px solid var(--viridian); }
.ap-timeline li:last-child::before { background: var(--viridian); }
.ap-timeline small { font: 500 13px/1.4 var(--mono); color: var(--slate); }
.ap-timeline strong { font-size: 20px; letter-spacing: -.02em; }
.ap-timeline span { color: var(--body); font-size: 15px; }
.ap-principles { list-style: none; margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ap-principles li { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: 24px; background: var(--white); --aero-distance: 3vh; }
.ap-principles strong { font-size: 20px; letter-spacing: -.02em; }
.ap-principles span { color: var(--body); font-size: 16px; }

/* ---- the effect index ---- */
.ap-index-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.ap-search { display: grid; gap: 6px; width: min(100%, 360px); font-size: 14px; font-weight: 600; }
.ap-search input { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mist-line); background: var(--white); font: 400 16px/1 var(--mono); }
.ap-search input:focus-visible { outline: 2px solid var(--viridian); outline-offset: 2px; }
.ap-index { margin-top: clamp(32px, 4vw, 48px); columns: 3 340px; column-gap: 16px; }
.ap-mod { break-inside: avoid; display: grid; gap: 8px; margin-bottom: 16px; padding: 22px 22px 24px; border-radius: 24px; background: var(--white); }
.ap-mod[hidden] { display: none; }
.ap-mod h3 { font-size: 20px; letter-spacing: -.02em; }
.ap-mod h3 a { text-decoration: none; }
.ap-mod h3 i { display: inline-block; font-style: normal; color: var(--viridian); }
.ap-mod p { color: var(--slate); font-size: 15px; }
.ap-mod ul { list-style: none; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.ap-mod li[hidden] { display: none; }
.ap-chip-copy { position: static; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--mist-line); background: var(--cloud); color: var(--charcoal); font: 500 13px/1.2 var(--mono); }
.ap-chip-copy:hover { border-color: var(--viridian); background: var(--white); }
.ap-chip-copy mark { background: color-mix(in srgb, var(--viridian) 22%, transparent); color: inherit; border-radius: 3px; }
.ap-empty { margin-top: 8px; color: var(--body); }
.ap-empty a { color: var(--viridian-deep); font-weight: 600; }

/* ---- used on our own site, and the alternatives ---- */
.ap-used { list-style: none; margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; --aero-stagger: 90ms; }
.ap-used a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 24px; border-radius: 24px; background: var(--white); text-decoration: none; }
.ap-used strong { font-size: 22px; letter-spacing: -.03em; }
.ap-used strong i { display: inline-block; font-style: normal; color: var(--viridian); }
.ap-used span { color: var(--body); font-size: 15px; }
.ap-used code { margin-top: 6px; font: 500 13px/1.4 var(--mono); color: var(--viridian-deep); }
.ap-compare { margin-top: clamp(32px, 4vw, 48px); display: grid; border-top: 1px solid var(--mist-line); }
.ap-compare div { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 8px 32px; padding-block: 22px; border-bottom: 1px solid var(--mist-line); --aero-distance: 2vh; }
.ap-compare dt { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ap-compare dd { color: var(--body); max-width: 70ch; }
.ap-compare .is-aero dt { color: var(--viridian-deep); }
.ap-compare .is-aero dd { color: var(--charcoal); font-weight: 500; }

/* ---- entrances: a grid of real UI pieces, each with its entrance ---- */
.ap-tiles { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.ap-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 12px 12px 10px; border-radius: 28px; background: var(--white); }
.ap-tile-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 280px; padding: 24px; border-radius: 20px; background: var(--cloud); overflow: hidden; }
.ap-tile figcaption > span { display: grid; gap: 2px; min-width: 0; }
.ap-tile figcaption code { font: 600 14px/1.3 var(--mono); color: var(--charcoal); }
.ap-tile figcaption small { font-size: 14px; color: var(--slate); }
.t-phones { grid-column: span 2; grid-row: span 2; }
.t-art { grid-column: span 2; }

/* ShelfSync's screens in a plain phone frame. */
.phone { display: block; width: clamp(130px, 11vw, 236px); padding: 5px; border-radius: 26px; background: var(--charcoal);
  box-shadow: 0 44px 70px -38px var(--shadow), 0 12px 24px -16px var(--shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 21px; }
.ap-phones { display: grid; place-items: center; width: 100%; }
.ap-phones .phone { grid-area: 1 / 1; }
.ap-phones .l { translate: -70% 6%; rotate: -7deg; }
.ap-phones .r { translate: 70% 6%; rotate: 7deg; }
.ap-phones .c { z-index: 1; }
.t-phones .ap-phones .l, .t-phones .ap-phones .r { --aero-fan-x: 0%; --aero-fan-y: 4%; --aero-fan-rot: 0deg; --aero-duration: 1.2s; --aero-delay: .3s; --aero-easing: cubic-bezier(.16, 1, .3, 1); }
.t-phones .ap-phones .c { --aero-fan-y: 16%; --aero-duration: .9s; --aero-easing: cubic-bezier(.16, 1, .3, 1); }

.ap-article { display: grid; gap: 10px; width: 100%; --aero-stagger: 140ms; --aero-distance: 24px; --aero-duration: .7s; }
.ap-article small { font-size: 14px; color: var(--slate); }
.ap-article strong { font-size: clamp(24px, 2vw, 32px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.ap-article p { font-size: 15px; line-height: 1.55; color: var(--body); }

.t-toast .ap-tile-stage { place-items: start center; padding-top: 32px; }
.ap-toast { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; width: min(100%, 340px); padding: 14px 16px; border-radius: 20px;
  background: var(--white); box-shadow: 0 24px 40px -26px var(--shadow); --aero-distance: 44px; --aero-duration: .7s; --aero-delay: .2s; }
.ap-toast .app-icon { border-radius: 11px; }
.ap-toast b { font-size: 15px; font-weight: 600; }
.ap-toast small { margin-left: 8px; font-size: 13px; color: var(--slate); }
.ap-toast em { display: block; font-style: normal; font-size: 15px; line-height: 1.4; color: var(--body); }

.ap-chart { display: grid; gap: 10px; width: 100%; }
.ap-chart small { font-size: 14px; font-weight: 600; color: var(--slate); }
.ap-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; border-bottom: 1px solid var(--mist-line); --aero-stagger: 70ms; }
.ap-bars span { flex: 1; border-radius: 8px 8px 2px 2px; background: color-mix(in srgb, var(--viridian) 55%, var(--cloud));
  transform-origin: 50% 100%; --aero-distance: 0px; --aero-grow: 0; --aero-duration: .8s; --aero-easing: cubic-bezier(.16, 1, .3, 1); }
.ap-bars span:nth-child(5) { background: var(--viridian-deep); }
.ap-days { display: flex; gap: 10px; }
.ap-days span { flex: 1; text-align: center; font: 500 13px/1 var(--mono); color: var(--slate); }

.ap-chat { list-style: none; display: flex; flex-direction: column; gap: 8px; width: 100%; --aero-stagger: 380ms; --aero-distance: 28px; --aero-duration: .55s; }
.ap-chat li { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.ap-chat .in { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; }
.ap-chat .out { align-self: flex-end; background: var(--viridian-deep); color: var(--white); border-bottom-right-radius: 6px; }

.t-art .ap-tile-stage { background: var(--mist); }
.t-art img { width: auto; max-height: 300px; --aero-duration: 1.6s; }

.ap-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--charcoal) 32%, transparent); --aero-duration: .4s; }
.ap-dialog { position: relative; display: grid; gap: 6px; width: min(100%, 300px); padding: 22px; border-radius: 22px; background: var(--white);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .5); --aero-scale-from: .88; --aero-distance: 16px; --aero-delay: .12s; --aero-duration: .45s; --aero-easing: cubic-bezier(.34, 1.56, .64, 1); }
.ap-dialog strong { font-size: 18px; letter-spacing: -.02em; }
.ap-dialog p { font-size: 15px; color: var(--slate); }
.ap-dialog div { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.ap-dialog button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mist-line); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.ap-dialog button:hover { border-color: var(--slate); }
.ap-dialog .go { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }

.ap-files { display: grid; gap: 14px; width: 100%; }
.ap-files small { font-size: 14px; font-weight: 600; color: var(--slate); }
.ap-files ul { list-style: none; display: grid; gap: 16px; --aero-stagger: 180ms; }
.ap-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.ap-files li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-files output { font: 500 13px var(--mono); color: var(--slate); font-variant-numeric: tabular-nums; }
.ap-files i { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--mist-line); overflow: hidden; }
.ap-files b { display: block; height: 100%; border-radius: 999px; background: var(--viridian);
  transform-origin: 0 50%; --aero-distance: 0px; --aero-grow: 0; --aero-duration: 1.1s; --aero-easing: cubic-bezier(.16, 1, .3, 1); }
.ap-files li:first-child b { background: var(--viridian-deep); }

/* ---- coming and going ---- */
.ap-live .ap-tile-stage { min-height: 240px; }
.ap-real-dialog { width: min(92vw, 360px); margin: auto; padding: 24px; border: 0; border-radius: 22px; background: var(--white); color: var(--charcoal);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); --aero-backdrop: rgb(27 29 32 / .4); }
.ap-real-dialog strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.ap-real-dialog p { margin-top: 6px; color: var(--slate); }
.ap-real-dialog div { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }
.ap-real-dialog button, .ap-dialog button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mist-line); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.ap-real-dialog button:hover { border-color: var(--slate); }
.ap-real-dialog .go { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.ap-drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--cloud); color: var(--charcoal); box-shadow: -32px 0 96px rgb(27 29 32 / .2);
  --aero-duration: .6s; --aero-easing: var(--ease-out); --aero-backdrop: rgb(27 29 32 / .36); }
.ap-drawer[open] { display: flex; flex-direction: column; }
.ap-drawer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--mist-line); }
.ap-drawer-bar strong { font-size: 18px; letter-spacing: -.02em; }
.ap-drawer-bar button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mist-line); background: none; font-size: 20px; cursor: pointer; }
.ap-drawer-bar button:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.ap-drawer-body { padding: 28px 24px; overflow-y: auto; display: grid; gap: 24px; align-content: start; }
.ap-drawer-body p { color: var(--body); max-width: 46ch; }
.ap-drawer-body img { width: 100%; border-radius: 20px; background: var(--mist); }
.ap-menu { margin: 0; padding: 6px; border: 1px solid var(--mist-line); border-radius: 16px; background: var(--white); color: var(--charcoal); min-width: 240px;
  box-shadow: 0 24px 40px -24px var(--shadow); --aero-duration: .25s; }
.ap-menu:popover-open { display: grid; }
.ap-menu-item { position: static; display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--charcoal);
  font: 500 15px/1.3 "Inter", ui-sans-serif, system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.ap-menu-item:hover, .ap-menu-item:focus-visible { background: var(--cloud); }
.ap-toast-stage { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 16px; min-height: 300px; padding: 16px 16px 24px; }
.ap-toasts { width: 100%; list-style: none; display: grid; align-content: start; gap: 8px; min-height: 170px; }
.ap-toasts .ap-toast { --aero-distance: 32px; --aero-duration: .55s; }
.ap-toast-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--slate); font-size: 18px; cursor: pointer; }
.ap-toast-x:hover { background: var(--cloud); color: var(--charcoal); }
.ap-toasts .ap-toast { grid-template-columns: 44px minmax(0, 1fr) auto; width: 100%; }

/* ---- attention ---- */
.ap-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-three .ap-tile-stage { min-height: 220px; }
.ap-form { display: grid; gap: 10px; width: min(100%, 320px); }
.ap-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.ap-form input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--mist-line); background: var(--white); font: inherit; font-weight: 400; }
.ap-form input[aria-invalid="true"] { border-color: var(--error); }
.ap-form .ap-btn { justify-self: start; }
.ap-msg { min-height: 1.4em; font-size: 14px; color: var(--slate); }
.ap-msg[data-state="error"] { color: var(--error); }
.ap-msg[data-state="ok"] { color: var(--viridian-deep); }
.ap-three .ap-tile-stage:has(.ap-listrow) { gap: 16px; align-content: center; }
.ap-listrow { display: flex; align-items: center; gap: 12px; width: min(100%, 300px); padding: 12px 14px; border-radius: 18px; background: var(--white); font-weight: 600; }
.ap-listrow .app-icon { border-radius: 11px; }
.ap-badge { margin-left: auto; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--viridian-deep); color: var(--white); font-size: 15px; font-variant-numeric: tabular-nums; }
.ap-sync, .ap-live-dot { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: var(--white); font-weight: 600; }
.ap-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--mist-line); border-top-color: var(--viridian); }
.ap-skeleton { display: grid; gap: 12px; width: min(100%, 300px); padding: 18px; border-radius: 18px; background: var(--white); }
.ap-skeleton i { display: block; height: 14px; border-radius: 999px; background: var(--mist-line); }
.ap-skeleton i:nth-child(1) { width: 60%; height: 18px; } .ap-skeleton i:nth-child(3) { width: 80%; }
.ap-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--viridian); }
.ap-dot .aero-ping { position: absolute; inset: 0; border-radius: 50%; background: var(--viridian); }
.ap-float .app-icon { display: block; border-radius: 16px; box-shadow: 0 24px 30px -20px var(--shadow); }

/* ---- text and numbers ---- */
.ap-text { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.ap-line { font-size: clamp(36px, 4.4vw, 76px); line-height: 1; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; --aero-stagger: 28ms; --aero-duration: .7s; }
.ap-text-main .ap-tile-stage { min-height: 300px; place-items: center start; padding: clamp(24px, 3vw, 48px); }
.ap-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ap-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 24px; border-radius: 28px; background: var(--white); }
.ap-stats dd { font-size: clamp(36px, 3.6vw, 60px); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--viridian-deep); font-variant-numeric: tabular-nums; }
.ap-stats dt { font-size: 15px; color: var(--slate); }
.ap-wave { list-style: none; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--mist-line); }
.ap-wave li { border-bottom: 1px solid var(--mist-line); }
.ap-wave a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 22px; text-decoration: none; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.ap-wave a i { font-style: normal; color: var(--viridian); }
.ap-wave a:hover { color: var(--viridian-deep); }

/* ---- layout ---- */
.ap-sort { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-sort button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mist-line); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.ap-sort button:hover { border-color: var(--slate); }
.ap-sort button[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.ap-sort .ap-tag { margin: 0 0 0 8px; }
.ap-sort-list { list-style: none; margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ap-sort-list a { display: grid; gap: 4px; height: 100%; padding: 12px 12px 18px; border-radius: 22px; background: var(--white); text-decoration: none; }
.ap-sort-list img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 14px; background: var(--mist); margin-bottom: 8px; }
.ap-sort-list span { padding-inline: 6px; font-size: 13px; color: var(--slate); }
.ap-sort-list strong { padding-inline: 6px; font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.ap-pages { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; color: var(--body); max-width: 72ch; }
.ap-pages .ap-link i { margin-right: 4px; }

/* ---- drawn, flipped, underlined, shimmering, ticking ---- */
.ap-draw { margin-top: clamp(32px, 4vw, 56px); display: grid; justify-items: start; gap: 18px; }
.ap-draw-mark { width: min(100%, 640px); }
.ap-draw-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.ap-draw-mark path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-draw-mark .pk { stroke: var(--charcoal); } .ap-draw-mark .cu { stroke: var(--viridian); }
.ap-draw figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ap-draw figcaption code { font: 600 14px/1.3 var(--mono); }
.ap-draw figcaption span { color: var(--slate); font-size: 15px; }
.ap-hover-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.ap-flipcard { position: relative; display: block; min-height: 340px; text-decoration: none; --aero-flip-duration: .7s; }
.ap-flipcard > span { display: grid; align-content: start; gap: 6px; height: 100%; padding: 16px 16px 24px; border-radius: 28px; background: var(--white); }
.ap-flipcard .aero-front img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 20px; background: var(--mist); margin-bottom: 10px; }
.ap-flipcard small { padding-inline: 8px; font-size: 14px; color: var(--slate); }
.ap-flipcard strong { padding-inline: 8px; font-size: clamp(22px, 2vw, 32px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.ap-flipcard .aero-back { align-content: center; gap: 12px; padding: 32px; background: var(--viridian-deep); color: var(--white); }
.ap-flipcard .aero-back small { color: var(--mist); }
.ap-flipcard .aero-back em { padding-inline: 8px; font-style: normal; font-size: 17px; line-height: 1.5; color: var(--mist); max-width: 40ch; }
.ap-flipcard .aero-back b { padding-inline: 8px; margin-top: 8px; font-weight: 600; }
.ap-underlines { list-style: none; display: grid; align-content: center; gap: 18px; padding: 32px; border-radius: 28px; background: var(--white); }
.ap-underlines button { padding: 4px 0; border: 0; background: none; color: var(--charcoal); cursor: pointer; text-align: left;
  font: 600 clamp(22px, 2vw, 30px)/1.2 var(--mono, ui-monospace, monospace); letter-spacing: -.02em;
  --aero-underline-color: var(--viridian); --aero-underline-thickness: 3px; --aero-underline-offset: 2px; }
.ap-underlines button { padding-left: 20px; } /* one left edge for all three; the side bar sits in it */
.ap-underlines .aero-underline::after { left: 20px; }
.ap-underlines .aero-underline-side::after { left: 0; }
.ap-shimmer-card { --aero-shimmer-color: rgb(255 255 255 / .7); }
.ap-bouncer { display: grid; justify-items: center; gap: 8px; color: var(--charcoal); font-weight: 600; text-decoration: none; }
.ap-bouncer i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--viridian); font-style: normal; font-size: 20px; }
.ap-ticker-stage { padding-inline: 0; }
.ap-ticker { width: 100%; --aero-marquee-duration: 28s; }
.ap-ticker li { padding: 10px 16px; margin-right: 10px; border-radius: 999px; background: var(--white); font-size: 15px; white-space: nowrap; }
.ap-ticker li b { margin-right: 6px; font-weight: 500; color: var(--slate); }
.ap-ticker ul { list-style: none; }

/* ---- good to know: a real accordion ---- */
.ap-faq { margin-top: clamp(32px, 4vw, 48px); max-width: 880px; border-top: 1px solid var(--mist-line); }
.ap-faq details { border-bottom: 1px solid var(--mist-line); --aero-distance: 2vh; }
.ap-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary .aero-collapse-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--mist-line); color: var(--viridian); font-weight: 400; font-style: normal; } /* turns with Aero's collapse */
.ap-faq details p { padding-bottom: 22px; color: var(--body); max-width: 62ch; }
.ap-faq .ap-tag { margin-top: 12px; }

/* ---- what it weighs ---- */
/* Get started: the steps on the left, what it weighs beside them. */
.ap-start-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(36px, 5vw, 56px); }
.ap-start-grid .ap-steps { margin-top: 0; }
.ap-weights { position: sticky; top: calc(var(--bar) + 24px); padding: 28px; border-radius: 28px; background: var(--white); }
.ap-weights h3 { font-size: 22px; letter-spacing: -.02em; }
.ap-weights p { margin-top: 6px; color: var(--slate); font-size: 15px; }
.ap-wtotals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ap-wtotals div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--mist); }
.ap-wtotals dt code { font: 500 13px var(--mono); color: var(--slate); }
.ap-wtotals dd { font-size: clamp(24px, 2vw, 32px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--charcoal); }
/* The stylesheet's modules, side by side in proportion; they grow in one after another. */
.ap-wstack { display: flex; gap: 3px; height: 14px; margin-top: 24px; --aero-stagger: 45ms; --aero-duration: .7s; --aero-easing: cubic-bezier(.16, 1, .3, 1); }
.ap-wstack span { flex-basis: 0; min-width: 4px; border-radius: 4px; transform-origin: 0 50%; --aero-distance: 0px; --aero-grow: 0; }
:is(.ap-wstack span, .ap-wkey li) { --c: color-mix(in srgb, var(--viridian) calc(100% - var(--t) * 22%), var(--mist)); }
.ap-wstack span { background: var(--c); }
.ap-wkey { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 16px; font: 500 13px/1.2 var(--mono); }
.ap-wkey li { display: flex; align-items: center; gap: 10px; padding-block: 7px; border-top: 1px solid var(--cloud); }
.ap-wkey li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ap-wkey span { margin-left: auto; color: var(--slate); font-variant-numeric: tabular-nums; }

/* ---- the rest, and getting it ---- */
.ap-more { margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--mist-line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 80px); }
.ap-more div { --aero-distance: 3vh; }
.ap-more dt { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.ap-more dd { margin-top: 8px; color: var(--body); max-width: 50ch; }
.ap-steps { list-style: none; counter-reset: step; margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 28px; --aero-distance: 3vh; }
.ap-steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; align-items: center; }
.ap-steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--viridian-deep);
  font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.ap-steps strong { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ap-steps .ap-code, .ap-steps span { grid-column: 2; }
.ap-steps .ap-code { margin-top: 12px; }
.ap-steps span { margin-top: 8px; color: var(--slate); font-size: 15px; }
.ap-more-links { list-style: none; margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; --aero-distance: 3vh; }
.ap-more-links a { display: grid; align-content: start; height: 100%; padding: 20px 20px 22px; border-radius: 20px; background: var(--white); text-decoration: none; }
.ap-more-links strong { color: var(--viridian-deep); font-weight: 600; }
.ap-more-links span { margin-top: 6px; color: var(--slate); font-size: 15px; line-height: 1.5; }

/* ---- footer: the studio's own ---- */
.ap-foot { margin-top: clamp(72px, 10vw, 140px); padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--slate); }
.ap-cta { padding-block: 28px; border-top: 1px solid var(--mist-line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.ap-cta h2 { font-size: 20px; letter-spacing: -.03em; font-weight: 600; color: var(--charcoal); }
.ap-cta a { font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--viridian); text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.ap-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; }
.ap-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ap-foot a { color: var(--slate); text-decoration: none; }
.ap-foot nav a:hover { color: var(--viridian-deep); }

/* ---- the motion switch in the header: everything holds still, in its final place ---- */
html.ap-still *, html.ap-still *::before, html.ap-still *::after { animation: none !important; transition: none !important; }
html.ap-still .aero-enter { opacity: 1 !important; }
html.ap-still .aero-tilt, html.ap-still .aero-parallax, html.ap-still .aero-hover-target { transform: none !important; }

/* ---- page transitions: Aero's own (this page is a sheet, like ShelfSync); the Thin Air symbol carries across ---- */
@view-transition { navigation: auto; }
.ap-studio .sym { view-transition-name: ta-sym; }
::view-transition-group(ta-sym) { animation-duration: .65s; animation-timing-function: cubic-bezier(.65, 0, .25, 1); }

/* ---- narrower screens ---- */
.hide-md { }
@media (max-width: 1180px) { .hide-md { display: none; } }
@media (max-width: 1100px) {
  .ap-tiles, .ap-three, .ap-sort-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-phones { grid-row: span 1; }
  .t-phones .ap-tile-stage { min-height: 400px; }
  .ap-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ap-play, .ap-hover-row, .ap-cursor, .ap-pass, .ap-text, .ap-why-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-principles, .ap-used { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-pin-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .ap-pin-stage .ap-code { display: none; }
  .ap-meter { padding: 18px 20px; }
  .ap-pass > div { position: static; }
  .ap-more-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-start-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-weights { position: static; }
}
@media (max-width: 860px) {
  .ap-hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .ap-mark-stage { min-height: 300px; }
}
@media (max-width: 600px) {
  .ap-wtotals { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ap-wtotals div { grid-auto-flow: column; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 14px; }
  .ap-wtotals dd { font-size: 20px; }
  .ap-wkey { grid-template-columns: minmax(0, 1fr); }
  .ap-nav { gap: 10px; }
  .ap-nav .ap-btn { display: none; }
  .ap-studio .word, .ap-slash { display: none; }
  .ap-tiles, .ap-three, .ap-principles, .ap-used { grid-template-columns: minmax(0, 1fr); }
  .ap-compare div { grid-template-columns: minmax(0, 1fr); }
  .ap-sort-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ap-sort .ap-tag { flex-basis: 100%; margin: 4px 0 0; }
  .t-phones, .t-art { grid-column: auto; }
  .phone { width: min(30vw, 150px); border-radius: 22px; padding: 4px; }
  .phone img { border-radius: 18px; }
  .ap-phones.big .phone { width: min(30vw, 22vh, 170px); border-radius: 24px; padding: 5px; }
  .ap-phones.big .phone img { border-radius: 19px; }
  .ap-mock { grid-template-columns: minmax(0, 1fr); }
  .ap-mock-card:nth-child(n+2) { display: none; }
  .ap-svc, .ap-more, .ap-more-links { grid-template-columns: minmax(0, 1fr); }
  .ap-row { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .ap-poster, .ap-scene { min-height: 320px; }
  .ap-install { border-radius: 20px; flex-wrap: wrap; padding: 14px 14px 14px 18px; }
  .ap-install code { white-space: normal; overflow-wrap: anywhere; }
  .ap-mark figcaption { flex-wrap: wrap; }
}
