/* Articles: the list page and every article. Loaded only on those pages, after style.css. */

/* reading progress and the gentle reveal */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; pointer-events: none; }
.read-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.top nav a[aria-current="page"] { color: var(--ink); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--faint); font-size: 0.9rem; }

/* ── The list page ─────────────────────────────────────────────────────────────────────────────── */
.al-hero { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 104px) 0 clamp(30px, 4vw, 52px); }
.al-hero::before { content: ""; position: absolute; inset: -60px 0 auto 0; height: 540px; background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--blue) 15%, transparent), transparent 70%); pointer-events: none; }
.al-hero > .wrap { position: relative; z-index: 1; }
.al-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 14px auto 16px; max-width: 13em; }
.al-hero .lead { margin: 0 auto; max-width: 32em; text-wrap: balance; }
.al-grid { display: grid; gap: 28px; padding-bottom: clamp(48px, 6vw, 80px); }
.al-card { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease; }
.al-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.al-thumb { position: relative; overflow: hidden; background: #0b1020; min-height: 340px; }
.al-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.al-card:hover .al-thumb img { transform: scale(1.05); }
.al-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.al-body p { font-size: 0.98rem; line-height: 1.6; }
.al-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.12; }
.al-body p { color: var(--muted); }
.al-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 800; color: var(--blue-ink); }
.al-more svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.al-card:hover .al-more svg { transform: translateX(6px); }
.al-note { text-align: center; color: var(--muted); padding: 8px 0 clamp(64px, 8vw, 110px); }
.al-note p { max-width: 30em; margin-inline: auto; }
@media (max-width: 860px) { .al-card { grid-template-columns: 1fr; } .al-thumb { min-height: 0; aspect-ratio: 1200 / 630; } }

/* ── An article ────────────────────────────────────────────────────────────────────────────────── */
.a-hero { position: relative; overflow: hidden; padding: clamp(34px, 5vw, 64px) 0 0; }
.a-hero::before { content: ""; position: absolute; inset: -60px 0 auto 0; height: 560px; background: radial-gradient(55% 70% at 50% 0%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); pointer-events: none; }
.a-hero-in { position: relative; z-index: 1; width: min(860px, 100% - 40px); margin-inline: auto; }
.crumbs { font-size: 0.9rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.a-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.06; margin: 14px 0 18px; }
.a-hero .standfirst { font-size: clamp(1.1rem, 2.2vw, 1.34rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #0b1020; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1rem; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 55%, transparent); }
.byline strong { display: block; font-size: 0.98rem; }
.byline strong a { color: inherit; text-decoration: none; }
.byline strong a:hover { text-decoration: underline; }
.byline span { font-size: 0.88rem; color: var(--faint); }
.a-cover { position: relative; z-index: 1; width: min(1040px, 100% - 40px); margin: 38px auto 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #0b1020; animation: bob 9s ease-in-out infinite; }
.a-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: clamp(36px, 5vw, 72px); justify-content: center; padding-block: clamp(44px, 6vw, 80px) 24px; }
.toc-side { position: sticky; top: 96px; align-self: start; font-size: 0.9rem; }
.toc-side strong { display: block; margin-bottom: 10px; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-side a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color 0.2s ease, border-color 0.2s ease; }
.toc-side a:hover { color: var(--ink); }
.toc-side a.on { color: var(--ink); border-left-color: var(--blue); font-weight: 700; }
.toc-inline { display: none; margin: 0 0 30px; padding: 4px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.toc-inline summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-family: var(--display); }
.toc-inline ol { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.toc-inline a { color: var(--muted); text-decoration: none; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 720px); } .toc-side { display: none; } .toc-inline { display: block; } }

.prose { font-size: 1.1rem; line-height: 1.8; counter-reset: sec; min-width: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose p + p { margin-top: 18px; }
.prose h2 { counter-increment: sec; font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.12; margin: 72px 0 16px; letter-spacing: -0.03em; scroll-margin-top: 90px; }
.prose h2::before { content: "0" counter(sec); display: block; margin-bottom: 8px; font: 800 0.8rem var(--font); letter-spacing: 0.16em; color: var(--blue-ink); }
.prose h3 { font-size: 1.2rem; margin: 0 0 6px; }
.prose a { text-underline-offset: 3px; }
.prose .lead-in { font-size: 1.2rem; color: var(--ink); }

.answer { position: relative; margin: 0 0 40px; padding: 26px 28px; border-radius: 24px; background: linear-gradient(135deg, var(--blue-soft), color-mix(in srgb, var(--cyan) 14%, var(--bg))); border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); }
.answer .label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 8px; }
.answer p { color: var(--ink); font-size: 1.12rem; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.chips svg { width: 16px; height: 16px; color: var(--blue); }

.pull { margin: 44px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--blue); border-image: linear-gradient(180deg, var(--blue), var(--cyan)) 1; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.28; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.pull cite { display: block; margin-top: 12px; font: 600 0.88rem var(--font); letter-spacing: 0; color: var(--faint); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 30px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 20px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.1rem, 4.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }

/* figures */
.fig { margin: 40px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 18px; }
.fig-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 18px; }
.fig-no { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.fig-title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.fig figcaption { margin-top: 16px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.b-blue { background: var(--blue); }
.b-orange { background: #ff8a3d; }
.b-cyan { background: var(--cyan); }

/* figure 1: a day of battery level */
.habit-rows { display: flex; flex-direction: column; gap: 14px; }
.habit-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
.habit-label strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.habit-label span { font-size: 0.82rem; color: var(--muted); }
.habit-chart { display: block; width: 100%; height: auto; border-radius: 12px; }
.habit-chart .hi { fill: rgba(255, 107, 61, 0.16); }
.habit-chart .mid { fill: rgba(52, 199, 89, 0.12); }
.habit-chart .lo { fill: rgba(245, 165, 36, 0.17); }
.habit-chart .line { fill: none; stroke: var(--c); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--c) 45%, transparent)); }
.habit-axis { display: grid; grid-template-columns: 200px 1fr; gap: 18px; margin-top: 8px; font-size: 0.78rem; color: var(--faint); }
.habit-axis div { display: flex; justify-content: space-between; }
.zone-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 0.84rem; color: var(--muted); }
.zone-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.z-low { background: #f5a524; }
.z-mid { background: #34c759; }
.z-high { background: #ff6b3d; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js .fig:not(.in) .habit-chart .line { stroke-dashoffset: 1; }
.js .fig.in .habit-chart .line { animation: draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) both; animation-delay: calc(var(--i) * 0.4s); }
@media (max-width: 760px) {
  .habit-row, .habit-axis { grid-template-columns: 1fr; gap: 6px; }
  .habit-axis > span { display: none; }
}

/* figure 2: half and half is one cycle */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cy { position: relative; text-align: center; padding: 18px 12px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.cy:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 38px; width: 10px; height: 10px; border-top: 2.5px solid var(--faint); border-right: 2.5px solid var(--faint); transform: rotate(45deg); z-index: 1; }
.pbat { display: flex; gap: 3px; width: 100%; max-width: 124px; height: 30px; margin: 0 auto 14px; padding: 4px; border: 2px solid var(--faint); border-radius: 9px; position: relative; }
.pbat::after { content: ""; position: absolute; right: -7px; top: 8px; width: 4px; height: 10px; border-radius: 0 3px 3px 0; background: var(--faint); }
.pbat i { flex: 1; border-radius: 2px; background: #34c759; }
.cy-use .pbat i:nth-child(n + 6) { background: var(--line); }
.cy b { display: block; font-size: 0.95rem; }
.cy > span { display: block; margin-top: 3px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.cy.total { background: linear-gradient(135deg, var(--blue-soft), var(--bg)); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); display: flex; flex-direction: column; justify-content: center; }
.cy.total .big { font-family: var(--display); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes seg-off { from { background: #34c759; } to { background: var(--line); } }
@keyframes seg-on { from { background: var(--line); } to { background: #34c759; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.js .fig.in .cy-use i:nth-child(n + 6) { animation: seg-off 0.45s ease both; animation-delay: calc(0.5s + (10 - var(--n)) * 0.12s); }
.js .fig.in .cy-charge i:nth-child(n + 6) { animation: seg-on 0.45s ease both; animation-delay: calc(2s + (var(--n) - 6) * 0.12s); }
.js .fig.in .cy-use.second i:nth-child(n + 6) { animation-delay: calc(3.4s + (10 - var(--n)) * 0.12s); }
.js .fig.in .cy.total .big { animation: pop 0.6s cubic-bezier(0.34, 1.45, 0.64, 1) 4.7s both; }
.js .fig:not(.in) .cy-charge i:nth-child(n + 6) { background: var(--line); }
@media (max-width: 760px) { .cycle { grid-template-columns: 1fr 1fr; } .cy:nth-child(2)::after { display: none; } }

/* figure 3: inside the cell */
.ctabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ctab { font: inherit; font-weight: 700; font-size: 0.88rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.ctab:hover { color: var(--ink); }
.ctab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 35%, transparent); }
.cell { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.cell svg { display: block; width: 100%; height: auto; }
.cell .sheet { fill: var(--faint); opacity: 0.55; }
.cell .lattice { fill: var(--blue); opacity: 0.4; }
.cell .elyte { fill: rgba(52, 212, 238, 0.09); }
.cell .sei { fill: #f5a524; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(1.4); }
.cell .ox { fill: #ff6b3d; opacity: 0; }
.cell .plate { fill: #e5e7eb; stroke: #9ca3af; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cell .ion { fill: var(--cyan); filter: drop-shadow(0 0 5px var(--cyan)); }
.cell-l { position: absolute; bottom: 10px; transform: translateX(-50%); font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cell-l .x { }
.cell-tag { position: absolute; top: 12px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: #fff; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; }
.fig[data-state="sei"] .tag-sei { opacity: 1; background: #d98a00; }
.fig[data-state="ox"] .tag-ox { opacity: 1; background: #e5532a; }
.fig[data-state="plate"] .tag-plate { opacity: 1; background: #6b7280; }
.cell-note p { display: none; margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--ink); }
.cell-note { margin-top: 16px; }
.fig[data-state="sei"] .n-sei, .fig[data-state="ox"] .n-ox, .fig[data-state="plate"] .n-plate { display: block; }
.fig[data-state="sei"] .sei { transform: scaleX(2.6); }
.fig[data-state="ox"] .ox { opacity: 0.85; }
.fig[data-state="plate"] .plate { opacity: 1; }
@keyframes drift { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(-300px); opacity: 0; } }
@keyframes thicken { 0% { transform: scaleX(1.2); } 85%, 100% { transform: scaleX(3.4); } }
@keyframes glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes stack { 0% { opacity: 0; transform: scale(0.2); } 18%, 100% { opacity: 1; transform: scale(1); } }
.js .cell .ion { animation: drift 3.4s linear infinite; animation-delay: calc(var(--k) * -0.42s); }
.js .fig[data-state="ox"] .cell .ion { animation-play-state: paused; opacity: 0.3; }
.js .fig[data-state="plate"] .cell .ion { animation-duration: 1.5s; animation-delay: calc(var(--k) * -0.19s); }
.js .fig[data-state="sei"] .cell .sei { animation: thicken 5s ease-in-out infinite; }
.js .fig[data-state="ox"] .cell .ox { animation: glow 2s ease-in-out infinite; animation-delay: calc(var(--k) * 0.25s); }
.js .fig[data-state="plate"] .cell .plate { animation: stack 4.5s ease-out infinite; animation-delay: calc(var(--k) * 0.45s); }
.js .fig:not(.in) .cell .ion, .js .fig:not(.in) .cell .sei, .js .fig:not(.in) .cell .ox, .js .fig:not(.in) .cell .plate { animation-play-state: paused; }

/* figure 4 and 5: bars that rise */
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.vplot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 30px; }
.vgroup { display: flex; flex-direction: column; align-items: center; }
.vbars { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 220px; width: 100%; border-bottom: 1.5px solid var(--line); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.vbar { position: relative; width: clamp(34px, 11vw, 64px); height: calc(var(--v) * 1%); border-radius: 9px 9px 0 0; transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 0.09s); }
.vbar b { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 0.92rem; color: var(--ink); transition: opacity 0.5s ease 0.7s; }
.vlabel { margin-top: 8px; font-weight: 700; font-size: 0.95rem; }
.vaxis { text-align: center; margin-top: 4px; font-size: 0.8rem; color: var(--faint); }
.hhead { display: grid; grid-template-columns: minmax(84px, 150px) 1fr; gap: 12px; font-size: 0.8rem; font-weight: 600; color: var(--faint); margin-bottom: 8px; }
.hrow { display: grid; grid-template-columns: minmax(84px, 150px) 1fr; gap: 12px; align-items: center; padding-block: 6px; }
.hl { font-weight: 700; font-size: 0.92rem; text-align: right; line-height: 1.25; }
.htrack { display: flex; align-items: center; gap: 10px; }
.hbar { display: block; height: 28px; width: calc(var(--v) * 100% / 700); border-radius: 7px; transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 0.09s); }
.htrack b { font-size: 0.95rem; transition: opacity 0.5s ease 0.7s; }
.js .fig:not(.in) .vbar { transform: scaleY(0.001); }
.js .fig:not(.in) .hbar { transform: scaleX(0.001); }
.js .fig:not(.in) .vbar b, .js .fig:not(.in) .htrack b { opacity: 0; }

/* the comparison cards */
.score { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.sc { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.sc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sc h3 { font-size: 1.1rem; line-height: 1.2; margin: 12px 0 14px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.badge.good { background: rgba(52, 199, 89, 0.16); color: #1c8a3a; }
.badge.warn { background: rgba(245, 165, 36, 0.2); color: #9a5b00; }
.badge.bad { background: rgba(255, 107, 61, 0.16); color: #c23d12; }
:root[data-theme="dark"] .badge.good { color: #6ee08c; }
:root[data-theme="dark"] .badge.warn { color: #f5c26b; }
:root[data-theme="dark"] .badge.bad { color: #ff9b78; }
.sc dl { margin: 0; display: grid; gap: 10px; }
.sc dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.sc dd { margin: 2px 0 0; font-size: 0.95rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 760px) { .score { grid-template-columns: 1fr; } }

/* steps and the settings illustration */
.mock { max-width: 480px; margin: 6px auto 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 0.9rem; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.mock-row:last-of-type { border-bottom: 0; }
.mock-row.col { display: block; }
.mock-row small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.switch { flex: none; position: relative; width: 46px; height: 27px; border-radius: 99px; background: #34c759; transition: background 0.4s ease 0.4s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 21px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: left 0.4s ease 0.4s; }
.js .fig:not(.in) .switch { background: var(--line); }
.js .fig:not(.in) .switch::after { left: 2px; }
.slider { position: relative; margin: 22px 8px 6px; height: 6px; border-radius: 99px; background: var(--line); }
.slider::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 99px; background: var(--blue); }
.slider i { position: absolute; top: 50%; left: var(--p, 0%); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28); transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1) 1s; }
.slider { --p: 0%; --w: 0%; }
.js .fig:not(.in) .slider { --p: 100%; --w: 100%; }
.slider-ends { display: flex; justify-content: space-between; margin: 0 2px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.mock-val { float: right; font-weight: 800; color: var(--blue-ink); }

.steps { counter-reset: st; list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: st; position: relative; padding: 18px 22px 18px 72px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.steps li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.steps li::before { content: counter(st); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.08rem; margin: 0 0 4px; }
.steps p { margin: 0; font-size: 1rem; line-height: 1.65; }

.prose .faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 4px 22px; margin-bottom: 10px; }
.prose .faq summary { padding: 16px 0; font-size: 1.05rem; }
.prose .faq p { margin: 0 0 18px; font-size: 1rem; line-height: 1.7; }
.srcs { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.srcs a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; color: var(--ink); font-size: 0.94rem; line-height: 1.4; font-weight: 600; transition: border-color 0.2s ease, transform 0.2s ease; }
.srcs a:hover { border-color: var(--blue); transform: translateY(-2px); }
.srcs small { display: block; margin-bottom: 4px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-ink); }
.note { font-size: 0.94rem; color: var(--muted); }
@media (max-width: 760px) { .srcs { grid-template-columns: 1fr; } }

.a-cta { position: relative; overflow: hidden; margin: 64px 0 0; padding: clamp(30px, 5vw, 48px); border-radius: 28px; background: radial-gradient(70% 120% at 100% 0%, rgba(10, 132, 255, 0.5), rgba(10, 132, 255, 0) 60%), linear-gradient(135deg, #0b1020, #14224f); color: #fff; }
.a-cta img { width: 60px; height: 60px; border-radius: 15px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(10, 132, 255, 0.5); }
.a-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 12px !important; }
.a-cta h2::before { display: none !important; }
.a-cta p { color: #c3cbe8; max-width: 34em; }
.a-cta .cta-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 22px; }
.a-cta .btn-ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.a-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.a-end { padding-bottom: clamp(56px, 7vw, 96px); }

@media (max-width: 760px) {
  .prose { font-size: 1.04rem; }
  .prose h2 { margin-top: 56px; }
  .fig { padding: 16px 14px 14px; border-radius: 20px; }
  .answer { padding: 22px 20px; }
  .cell-l { font-size: 0.68rem; bottom: 6px; }
  .cell-l .x { display: none; }
  .cell-tag { font-size: 0.68rem; padding: 4px 9px; top: 8px; }
  .steps li { padding: 16px 16px 16px 62px; }
  .steps li::before { left: 16px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .a-cover { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .fig .line, .js .fig .cell *, .js .fig .cy * { animation: none !important; }
  .js .fig:not(.in) .vbar, .js .fig:not(.in) .hbar { transform: none; }
  .js .fig:not(.in) .vbar b, .js .fig:not(.in) .htrack b { opacity: 1; }
  .js .fig:not(.in) .habit-chart .line { stroke-dashoffset: 0; }
  .js .fig:not(.in) .slider { --p: 0%; --w: 0%; }
  .js .fig:not(.in) .switch { background: #34c759; }
  .js .fig:not(.in) .switch::after { left: 21px; }
  .js .fig:not(.in) .cy-charge i:nth-child(n + 6) { background: #34c759; }
}
