/* ===========================================================================
   IWAE. The apps index (.ap-*, with the shared .iw-btn / .iw-logo pieces: light cards) and the product page (.iw):
   a warm paper page read like an annotated document. Colors come from the app: logo blue, teal thread,
   warm paper, memo yellow.
=========================================================================== */
:root {
    --iw-blue: #103870; --iw-teal: #40c0b8; --iw-teal-d: #1f9c94; --iw-paper: #e8e8e0; --iw-yellow: #ffd84a;
    --iw-win: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.5 10.5 4.4v7H3zm8.5-1.2L21 3v8.4h-9.5zM3 12.6h7.5v7L3 18.5zm8.5 0H21V21l-9.5-1.3z'/%3E%3C/svg%3E");
    --iw-night: #0b0d11; --iw-mute: #8f98a8;
    /* one vertical scale (8px grid) for every page below */
    --sp-sec: clamp(72px, 8vw, 112px);   /* section padding; also the final call */
    --sp-head: clamp(40px, 4vw, 48px);   /* section title/intro -> first block */
    --sp-row: clamp(48px, 6vw, 80px);    /* between flow rows */
    --sp-card: clamp(16px, 2vw, 24px);   /* card/panel padding */
    --sp-gap: 16px;                      /* grid gaps; eyebrow/logo-less title -> text */
    --sp-logo: 24px;                     /* logo -> title, stacked text -> media */
    --sp-btns: 32px;                     /* text -> buttons */
}

/* ---------- buttons and logo (apps card; the product page re-tints the buttons for paper) ---------- */
.iw-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.iw-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px;
    font-size: 16px; font-weight: 700; white-space: nowrap; color: var(--iw-paper); text-decoration: none;
    border: 1px solid #3a4458; transition: transform .2s, background .2s, border-color .2s;
}
.iw-btn:hover { transform: translateY(-2px); background: rgba(232, 232, 224, .08); border-color: #5a6578; color: #fff; }
.iw-btn i, .iw-btn svg { width: 18px; height: 18px; }
.iw-dl::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--iw-win) center / contain no-repeat; mask: var(--iw-win) center / contain no-repeat; }
.iw-btn small { padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .14); font-size: 12px; font-weight: 600; }
.iw-btn-main { background: var(--iw-yellow); border-color: var(--iw-yellow); color: #241c00; box-shadow: 0 10px 30px -10px rgba(255, 216, 74, .55); }
.iw-btn-main:hover { background: #ffe06b; border-color: #ffe06b; color: #241c00; }

/* the two pieces fly in and lock, as in the app's About dialog */
.iw-logo { position: relative; flex: none; width: 76px; aspect-ratio: 1; }
.iw-logo img { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.iw-logo .b { animation: iw-lb 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.iw-logo .f { animation: iw-lf 1.6s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes iw-lb { from { transform: translate(-26%, 4%) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes iw-lf { from { transform: translate(34%, -6%) rotate(9deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }

/* ===========================================================================
   Product page (.iw): warm paper, highlighter marks, margin notes joined by a teal thread
=========================================================================== */
.iw {
    --pg: #f8f5ec; --sheet: #fffdf8; --desk: #ece6d5; --memo: #fff6cf; --mark: rgba(255, 216, 74, .72);
    --ink: var(--f-ink); --ink2: var(--f-ink-2); --hair: #ddd6c3; --mono: ui-monospace, "SF Mono", Menlo, monospace;
    background: var(--pg); color: var(--ink); overflow-x: clip;
}
main:has(.iw) { max-width: none; padding: 0; margin: 0; }
body:has(.iw) { background: #f8f5ec; }
.iw { word-break: keep-all; overflow-wrap: break-word; }
.iw-in { max-width: 1080px; margin: 0 auto; padding-inline: 32px; }
.iw h1, .iw h2, .iw h3 { margin: 0; padding: 0; border: 0; color: var(--ink); text-wrap: initial; }
.iw-sec { padding-top: var(--sp-sec); }
.iw-sec h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
/* everything below the first screen is laid out and painted only when it comes near */
.iw-sec, .iw-end { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* the highlighter: painted left to right once (hero on load, the rest when the passage is read) */
.iw-hl {
    background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88% / 0% .5em; border-radius: .15em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .9s cubic-bezier(.4, 0, .2, 1);
}
.on .iw-hl, .iw-hl.on { background-size: 100% .5em; }
.iw-hero .iw-hl { transition: none; animation: iw-paint 1s .6s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes iw-paint { to { background-size: 100% .46em; } }

/* buttons on paper */
.iw .iw-btn { background: #ebe5d4; border-color: transparent; color: var(--ink); }
.iw .iw-btn:hover { background: #e2dbc6; color: var(--ink); }
.iw .iw-btn-main { background: var(--iw-yellow); box-shadow: none; color: #241c00; }
.iw .iw-btn-main:hover { background: #ffe06b; }
.iw .iw-btns { gap: 12px; }
.iw-note-line { margin: var(--sp-gap) 0 0; font-size: 13.5px; color: var(--f-ink-3); }

/* ---------- hero: centered, one phrase highlighted, then the live demo ---------- */
.iw-hero { padding: clamp(48px, 7vw, 88px) 0 0; text-align: center; }
.iw-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 99px; background: #ede7d6; font: 700 11.5px/1 var(--mono); letter-spacing: .14em; color: var(--ink2); }
.iw-chip .iw-logo { width: 34px; }
.iw-hero h1 { margin-top: var(--sp-logo); font-size: clamp(42px, 8vw, 92px); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; }
html[lang="en"] .iw-hero h1 { font-size: clamp(34px, 6.4vw, 76px); letter-spacing: -.04em; }
.iw-lead { margin: var(--sp-logo) auto 0; max-width: 620px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.75; color: var(--ink2); }
.iw-hero .iw-btns { justify-content: center; margin-top: var(--sp-btns); }

/* ---------- the live demo: a PDF on a desk, memo cards in the margin ---------- */
.iw-stage {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 72px; align-items: center;
    max-width: 1080px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 32px; box-sizing: border-box; border-radius: 28px; background: var(--desk); text-align: left;
}
.iw-paper { position: relative; height: 560px; overflow: hidden; border-radius: 10px; background: #fbf9f2; color: #262a33; }
.iw-pbar { position: absolute; inset: 0 0 auto 0; z-index: 2; height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #e6e2d4; font-size: 12px; color: #6a6d74; }
.iw-doc { height: 100%; overflow-y: auto; padding: 56px 40px 60px; font-size: 14px; line-height: 1.78; scrollbar-width: none; }
.iw-doc::-webkit-scrollbar { display: none; }
.iw-doc p { margin: 0 0 12px; }
.iw .iw-banner { margin-bottom: 18px; padding: 20px 22px; border-radius: 6px; background: #2350d0; color: #fff; }
.iw-banner small { font-size: 10px; letter-spacing: .14em; opacity: .8; }
.iw .iw-banner h2 { margin: 6px 0 4px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.iw-banner p { margin: 0; font-size: 11px; opacity: .75; }
.iw .iw-doc h3 { margin: 26px 0 12px; padding-bottom: 5px; border-bottom: 1.5px solid #2350d0; font-size: 16px; color: #2350d0; }
.iw-chart { display: flex; align-items: flex-end; gap: 22px; height: 110px; margin: 18px 30px 6px; border-bottom: 1px solid #bbb; }
.iw-chart i { flex: 1; border-radius: 2px 2px 0 0; background: #6f8de0; }
.iw-chart i:nth-child(2) { background: #4d6fd8; } .iw-chart i:nth-child(3) { background: #3659cf; }
.iw-cap { margin-bottom: 14px; text-align: center; font-size: 11px; color: #777; }
.iw-s {
    cursor: pointer; border-radius: 3px; border-bottom: 1.5px dotted rgba(35, 80, 208, .45); -webkit-box-decoration-break: clone; box-decoration-break: clone;
    background: linear-gradient(rgba(255, 208, 58, .62), rgba(255, 208, 58, .62)) no-repeat 0 100% / 0% 100%;
    transition: background-size .55s cubic-bezier(.4, 0, .2, 1), background-color .2s;
}
.iw-s:hover { background-color: rgba(35, 80, 208, .08); }
.iw-s.on { background-size: 100% 100%; border-bottom-color: transparent; }
.iw-s.hot { background-image: linear-gradient(rgba(255, 190, 20, .95), rgba(255, 190, 20, .95)); }
.iw-s.flash { animation: iw-flash 1.5s ease; }
@keyframes iw-flash { 0%, 100% { background-color: transparent; } 20%, 60% { background-color: rgba(64, 192, 184, .35); } }

.iw-lane { position: relative; z-index: 3; align-self: center; height: 560px; display: flex; flex-direction: column; gap: 12px; }
.iw-lh { display: flex; justify-content: space-between; padding: 6px 2px 2px; font-size: 13px; color: var(--ink2); }
.iw-lh b { color: var(--ink); }
.iw-cards { display: flex; flex-direction: column; gap: 12px; }
.iw-card { position: relative; padding: 14px 16px 12px; border-radius: 12px; background: var(--memo); color: #20242c; cursor: pointer; animation: iw-cin .6s cubic-bezier(.2, .9, .3, 1) both; transition: background .2s; }
.iw-card:hover, .iw-card.hot { background: #d9f0ec; }
.iw-card.out { animation: iw-cout .4s ease forwards; }
@keyframes iw-cin { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes iw-cout { to { opacity: 0; transform: translateX(30px); } }
.iw-card p { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.iw-q { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 11.5px; color: #7b808a; }
.iw-q i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--iw-yellow); }
.iw-q span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.iw-q b { padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .06); color: #555; font-weight: 700; }
.iw-tag { display: inline-block; margin-bottom: 5px; padding: 1px 6px; border-radius: 4px; background: #e1ecf8; color: #2f6fb5; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.iw-empty { padding: 22px 16px; border-radius: 12px; background: rgba(255, 253, 248, .6); text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--ink2); }
.iw-hint { position: absolute; left: 0; bottom: -6px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); transition: opacity .4s; }
.iw-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--iw-teal-d); }
.iw-hint.gone { opacity: 0; }

/* the thread: one teal line from each sentence to its card */
.iw-th { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.iw-th path { fill: none; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .9s cubic-bezier(.5, 0, .2, 1), opacity .2s, stroke-width .2s; }
.iw-th .t { stroke: var(--iw-teal-d); stroke-width: 2.4; }
.iw-th .h { stroke: #fbf9f2; stroke-width: 6; }
.iw-th g.on path { stroke-dashoffset: 0; opacity: 1; }
.iw-th g.dim .t { opacity: .35; }
.iw-th g.on.hot .t { stroke-width: 3.6; }
.iw-th circle { fill: var(--iw-teal-d); opacity: 0; transition: opacity .3s .6s; }
.iw-th g.on circle { opacity: 1; }
.iw-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; opacity: 0; pointer-events: none; transition: transform .7s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.iw-cursor.show { opacity: 1; }
.iw-cursor.click::after { content: ""; position: absolute; left: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--iw-teal-d); animation: iw-rip .5s ease-out; }
@keyframes iw-rip { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- a calm statement ---------- */
.iw-say { margin: 0 auto; max-width: 860px; padding-inline: 32px; text-align: center; font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.6; letter-spacing: -.03em; color: var(--ink2); }
.iw-say .iw-hl { color: var(--ink); }

/* ---------- numbered steps ---------- */
.iw-steps { margin: var(--sp-head) 0 0; padding: 0; list-style: none; }
.iw-steps li { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 46%); gap: 0 clamp(20px, 3vw, 40px); align-items: center; padding: 40px 0; border-top: 1px solid var(--hair); }
.iw-steps li:last-child { border-bottom: 1px solid var(--hair); }
.iw-num { font: 500 clamp(36px, 5vw, 56px)/1 var(--mono); letter-spacing: -.04em; color: var(--iw-teal-d); }
.iw-steps h3 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.03em; }
.iw-steps p { margin: 12px 0 0; font-size: 16px; line-height: 1.75; color: var(--ink2); }
.iw-fig { margin: 0; overflow: hidden; border-radius: 12px; background: #1b1d22; }
.iw-fig video, .iw-fig img { display: block; width: 100%; height: auto; }

/* ---------- the annotated document: paragraphs in the page, notes in the margin ---------- */
.iw-sheet { position: relative; margin-top: var(--sp-head); padding: clamp(24px, 5vw, 56px); border-radius: 24px; background: var(--sheet); }
.iw-sheet > h2 { margin-bottom: 8px; }
.iw-rows { display: grid; gap: clamp(40px, 5vw, 56px); margin-top: var(--sp-head); }
.iw-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 32%, 340px); column-gap: clamp(40px, 7vw, 80px); align-items: start; }
.iw-para h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 800; line-height: 1.5; letter-spacing: -.025em; }
.iw-para p { margin: 10px 0 0; font-size: 16px; line-height: 1.8; color: var(--ink2); }
.iw-note { border-radius: 12px; background: var(--memo); }
.iw-media { position: relative; aspect-ratio: var(--ar); margin: 8px 8px 0; overflow: hidden; border-radius: 8px; background: #16181d; }
.iw-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iw-note .iw-q { margin: 0; padding: 10px 14px 12px; }
.iw-fth { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.iw-fth path { fill: none; stroke: var(--iw-teal-d); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s .2s cubic-bezier(.5, 0, .2, 1); }
.iw-fth path.on { stroke-dashoffset: 0; }
.iw-fth circle { fill: var(--iw-teal-d); }
/* themes: dark and light halves with a divider that sweeps once */
@property --p { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.iw-k-split .iw-media { --p: 50%; }
.iw-k-split.play .iw-media { animation: iw-sweep 7s ease-in-out 1; }
.iw-k-split .iw-media img:last-of-type { clip-path: inset(0 0 0 var(--p)); }
.iw-k-split .iw-media::after { content: ""; position: absolute; inset: 0 auto 0 var(--p); width: 2px; margin-left: -1px; background: var(--iw-teal-d); }
@keyframes iw-sweep { 0%, 100% { --p: 50%; } 30% { --p: 18%; } 70% { --p: 82%; } }

/* ---------- my folder, my files ---------- */
.iw-sec .iw-lede { max-width: 640px; margin: var(--sp-gap) 0 0; font-size: 17px; line-height: 1.75; color: var(--ink2); }
.iw-local { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: var(--sp-head); }
.iw-points { margin: 0; padding: 0; list-style: none; }
.iw-points li { padding: 22px 0; border-top: 1px dotted #bdb6a2; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.iw-points li:last-child { border-bottom: 1px dotted #bdb6a2; }
.iw-vault { display: grid; gap: var(--sp-gap); padding: var(--sp-card); border-radius: 22px; background: var(--desk); }
.iw-tree { margin: 0; padding: 18px 22px; border-radius: 12px; background: var(--sheet); font: 14.5px/1.8 var(--mono); color: var(--ink2); }
.iw-tree b { color: var(--ink); } .iw-tree i { font-style: normal; color: #8a6d00; } .iw-tree em { font-style: normal; padding: 1px 3px; border-radius: 3px; background: var(--mark); color: var(--ink); }
.iw-diag { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.iw-box { padding: 12px 14px; border-radius: 10px; background: var(--sheet); font-size: 13px; line-height: 1.5; color: var(--ink2); }
.iw-box b { display: block; margin-bottom: 2px; font: 700 12px var(--mono); color: var(--ink); }
.iw-box-note { background: var(--memo); }
.iw-wire { position: relative; height: 2px; background: var(--iw-teal-d); }
.iw-wire small { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; color: var(--iw-teal-d); }
.iw-wire::before, .iw-wire::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--iw-teal-d); }
.iw-wire::before { left: -4px; } .iw-wire::after { right: -4px; }

/* ---------- how it is built: a colophon ---------- */
.iw-colo { max-width: 860px; margin: var(--sp-head) 0 0; }
.iw-colo div { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 4px 32px; padding: 16px 0; border-top: 1px dotted #bdb6a2; }
.iw-colo div:last-child { border-bottom: 1px dotted #bdb6a2; }
.iw-colo dt { font: 700 14.5px/1.6 var(--mono); letter-spacing: -.01em; color: var(--ink); }
.iw-colo dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink2); }

/* ---------- ending: open the PDF you were reading ---------- */
.iw-end { padding: var(--sp-sec) 32px; }
.iw-endcard { max-width: 1016px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px; border-radius: 28px; background: var(--desk); text-align: center; }
.iw-endcard .iw-logo { width: 72px; margin: 0 auto var(--sp-logo); }
.iw-endcard h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.iw-endcard p { margin: var(--sp-gap) 0 0; font-size: 16px; color: var(--ink2); }
.iw-endcard .iw-btns { justify-content: center; margin-top: var(--sp-btns); }
.iw-endcard .iw-btn { background: #f8f5ec; }
.iw-endcard .iw-btn:hover { background: #fff; }
.iw-endcard .iw-btn-main { background: var(--iw-yellow); }
.iw-endcard .iw-btn-main:hover { background: #ffe06b; }
.iw-endcard .iw-note-line { margin-top: var(--sp-gap); font-size: 13.5px; }

/* ===========================================================================
   Apps index
=========================================================================== */
.ap-head { max-width: 1180px; margin: 0 auto; padding: 0 0 24px; }
.ap-head h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; color: var(--f-ink); }
.ap-head p { margin: var(--sp-gap) 0 0; font-size: 17px; color: var(--f-ink-2); }
.ap-list { display: grid; gap: var(--sp-gap); max-width: 1180px; margin: 0 auto; padding-bottom: var(--sp-logo); }
.ap-card {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); overflow: hidden; border-radius: 22px; color: var(--f-ink);
    background: #fff; box-shadow: inset 0 0 0 1px #e7e4dc;
}
.ap-card .iw-btn:not(.iw-btn-main) { background: #f1efe8; border-color: transparent; color: var(--f-ink); }
.ap-card .iw-btn:not(.iw-btn-main):hover { background: #e7e4db; color: var(--f-ink); }
.ap-card .iw-btn-main { box-shadow: none; }
.ap-card .iw-btn.rt-soon { background: transparent; border-color: #b4b0a6; }
.ap-body { padding: 22px 26px; }
.ap-id { display: flex; align-items: center; gap: 16px; }
.ap-body .iw-logo { width: 52px; flex: none; margin: 0; }
.ap-body h2 { margin: 0; padding: 0; border: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--f-ink); }
.ap-tag { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--iw-teal-d); }
.ap-text { margin: 12px 0 16px; max-width: 520px; font-size: 14.5px; line-height: 1.65; color: var(--f-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-body .iw-btns { gap: 8px; flex-wrap: nowrap; }
.ap-body .iw-btn.ap-gh { width: 38px; padding: 0; justify-content: center; }
.ap-gh svg { width: 18px; height: 18px; flex: none; }
.ap-body .iw-btn { height: 38px; padding: 0 14px; gap: 8px; font-size: 13.5px; }
.ap-poster { display: block; position: relative; overflow: hidden; }
.ap-poster img { position: absolute; left: 0; top: 28px; width: 150%; max-width: none; height: auto; border-radius: 10px 0 0 0; box-shadow: 0 0 0 1px rgba(20, 30, 50, .12), -12px -4px 24px -8px rgba(20, 30, 50, .16); transform-origin: 0 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ap-card:hover .ap-poster img { transform: translate(-2%, -2%); }
@media (max-width: 640px) { .ap-card { grid-template-columns: minmax(0, 1fr); } .ap-poster { display: none; } .ap-body { padding: 20px; } .ap-body .iw-btns { flex-wrap: wrap; } .ap-body .ap-meta { display: block; margin: 2px 0 0; vertical-align: 0; } .ap-body .iw-logo { align-self: flex-start; } }
.ap-meta { margin-left: 12px; white-space: nowrap; font-size: 12.5px; font-weight: 500; letter-spacing: 0; vertical-align: 4px; color: var(--iw-mute); }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
    .iw-stage { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 40px; padding: 24px; }
}
@media (max-width: 900px) {
    .iw-steps li { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 44%); padding: 32px 0; }
    .iw-local { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .iw-stage { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: var(--sp-gap); min-width: 0; padding: 16px; border-radius: 20px; }
    .iw-stage > * { min-width: 0; max-width: 100%; }
    .iw-paper { height: 430px; } .iw-doc { padding: 52px 22px 40px; font-size: 13.5px; }
    .iw-lane { height: auto; width: 100%; }
    .iw-cards { flex-direction: row; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .iw-card { flex: 0 0 250px; scroll-snap-align: start; }
    .iw-hint { position: static; }
    /* margin notes drop under their paragraph, still joined by a short thread */
    .iw-row { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
    .iw-fth { display: none; }
    .iw-note { position: relative; margin-top: 16px; }
    .iw-note::before { content: ""; position: absolute; left: 22px; top: -16px; width: 2px; height: 16px; background: var(--iw-teal-d); }
}
@media (max-width: 560px) {
    .iw-in { padding-inline: 20px; } .iw-say { padding-inline: 20px; } .iw-end { padding-inline: 20px; }
    .iw-steps li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 20px; } .iw-steps .iw-fig { grid-column: 1 / -1; }
    .iw-sheet { margin-inline: -8px; padding: 24px 20px; border-radius: 18px; }
    .iw-num { font-size: 30px; } .iw-steps li { align-items: start; } .iw-chip { font-size: 10px; letter-spacing: .06em; }
    .iw-colo div { grid-template-columns: minmax(0, 1fr); }
    .iw-diag { grid-template-columns: 1fr 44px 1fr; } .iw-wire small { display: none; }
    .iw .iw-btn { padding: 0 16px; font-size: 15px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .iw-logo img, .iw-hero .iw-hl, .iw-card, .iw-k-split.play .iw-media { animation: none; }
    .iw-hl { background-size: 100% .5em; transition: none; }
    .iw-fth path { stroke-dashoffset: 0; transition: none; }
    .ap-poster img { transition: none; }
}
