/* Everywhere page. Palette, type and motif: briefs/everywhere.md "Design". */
:root {
  --bg: #FDFDFD; --ink: #0A0A0A; --muted: #50555E; --rule: #E3E5E8; --white: #FFFFFF;
  --teal: #01B1AD; --teal-deep: #00706C; --purple: #6B3FD4; --orange: #FF9F43;
  --teal-tint: #E6F7F6; --purple-tint: #F3EFFC; --orange-tint: #FFF1E3;
  --lk-bg: var(--bg); --lk-panel: var(--teal-tint); --lk-ink: var(--ink); --lk-muted: var(--muted); --lk-line: var(--rule);
  --lk-main: var(--teal); --lk-on-main: var(--ink); --lk-link: var(--teal-deep); --lk-focus: var(--purple); --lk-accent: var(--teal-deep);
  --lk-font-display: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-radius: 12px; --lk-max: 1200px; --lk-gutter: 16px;
  --ev-ease: cubic-bezier(.2, .8, .2, 1);
}
body { font-size: 18px; line-height: 1.6; background: var(--bg); color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
a:hover { color: var(--teal-deep); }
code { font: 500 0.88em/1.4 var(--lk-font-mono); }

/* ---------- Hero: centred type over one generated picture; the section takes the picture's own studio grey ---------- */
.ev-hero { --hero-bg: #F4F4F4; position: relative; overflow: hidden; background: var(--hero-bg); padding-top: clamp(40px, 6vh, 72px); }
.ev-copy { position: relative; z-index: 2; max-width: 1100px; margin-inline: auto; padding: 0 16px; text-align: center; }
.ev-h1 { font-family: var(--lk-font-display); color: var(--ink); }
.ev-name { display: inline-block; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 3px; background: var(--white); font: 700 13px/1 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.1em; text-transform: uppercase; }
.ev-headline { display: block; margin-top: 18px; font: 800 clamp(56px, 7.2vw, 112px)/0.98 var(--lk-font-display); letter-spacing: -0.035em; }
.ev-one { margin: 18px auto 0; max-width: 46ch; font-size: 21px; line-height: 1.45; color: var(--muted); }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 26px; }
.ev-btn { min-height: 0; padding: 16px 32px; border: 0; border-radius: 6px; background: var(--teal); color: var(--ink); font: 600 17px/1.2 var(--lk-font-body); }
.ev-btn:hover { background: var(--teal-deep); color: var(--white); }
.ev-link { font-size: 17px; font-weight: 500; }
.ev-status { flex-basis: 100%; min-height: 0; font-size: 15px; }
.ev-status:empty { display: none; }
.ev-art { position: relative; max-width: 1120px; margin: clamp(20px, 3vh, 36px) auto 0; padding: 0 16px; box-sizing: content-box; }
.ev-art img { display: block; width: 100%; height: auto; --fx: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); --fy: linear-gradient(180deg, transparent, #000 10%); -webkit-mask-image: var(--fx), var(--fy); -webkit-mask-composite: source-in; mask-image: var(--fx), var(--fy); mask-composite: intersect; }

/* ---------- Layout and shared type ---------- */
.ev-wrap { width: 100%; max-width: calc(1200px + 32px); margin-inline: auto; padding-inline: 16px; }
.ev-sections { padding-bottom: 140px; }
.ev-sec { margin-top: 140px; scroll-margin-top: 16px; }
.ev-sec p { max-width: 64ch; }
.ev-sec p + p { margin-top: 1em; }
.ev-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ev-eyebrow { display: inline-flex; align-items: center; margin: 0 0 20px; padding: 9px 16px 9px 14px; border: 2px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink); font: 700 13px/1 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; }
.ev-eyebrow::before { content: ""; width: 7px; height: 7px; margin-right: 28px; border-radius: 50%; background: var(--teal); box-shadow: 11px 0 0 var(--purple), 22px 0 0 var(--orange); }
.ev-h2 { font: 800 clamp(38px, 5.4vw, 76px)/1.02 var(--lk-font-display); letter-spacing: -0.03em; margin-bottom: 24px; text-wrap: balance; }
.ev-h3 { font: 800 26px/1.2 var(--lk-font-display); margin-bottom: 14px; }
.ev-lede { font-size: 22px; line-height: 1.45; color: var(--muted); margin-bottom: 36px; }
.ev-list { list-style: none; }
.ev-list li { position: relative; padding-left: 26px; max-width: 64ch; transition: transform 160ms var(--ev-ease); }
.ev-list li:hover { transform: translateX(4px); }
.ev-list li + li { margin-top: 12px; }
.ev-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 11px; height: 11px; border-radius: 3px; background: var(--teal); transition: transform 160ms var(--ev-ease), border-radius 160ms; }
.ev-list li:hover::before { transform: rotate(45deg) scale(1.15); border-radius: 2px; }
.ev-tile { position: relative; overflow: hidden; border-radius: 24px; padding: 52px 44px 44px; }
.ev-tile .ev-h2 { font-size: clamp(32px, 3.8vw, 52px); }

/* scroll reveal: transform only, so content is always readable */
html.ev-armed .ev-rv:not(.in) { transform: translateY(34px); }
.ev-rv { transition: transform 800ms var(--ev-ease); transition-delay: calc(var(--d, 0) * 1ms); }

/* ---------- What: one card in four contexts ---------- */
#what { align-items: center; }
.ev-what-text { grid-column: span 5; }
.ev-ctxs { grid-column: span 7; min-width: 0; display: grid; grid-template-columns: 1fr 1.7fr 2.3fr 1fr; gap: 14px; align-items: end; padding: 30px 22px 18px; border-radius: 28px; background: var(--purple-tint); background-image: radial-gradient(rgba(107, 63, 212, 0.18) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.ev-ctx { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.ev-ctx figcaption { margin-top: 10px; font: 700 12px/1.2 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-align: center; }
.ev-card { display: grid; gap: 6px; padding: 8px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); box-sizing: border-box; transition: transform 240ms var(--ev-ease), box-shadow 240ms; }
.ev-ctx:hover .ev-card { transform: translateY(-6px); box-shadow: 0 14px 0 -6px rgba(10, 10, 10, 0.14); }
.ev-card .c-img { background: var(--teal); border-radius: 6px; min-height: 28px; display: block; }
.ev-card .c-t { height: 7px; border-radius: 4px; background: var(--purple); display: block; width: 70%; }
.ev-card .c-l { height: 6px; border-radius: 3px; background: var(--rule); display: block; width: 90%; }
.ev-card .c-btn { height: 14px; border-radius: 3px; background: var(--orange); display: block; width: 100%; transition: width 400ms var(--ev-ease); }
.ev-ctx:hover .c-btn { width: 70%; }
.ev-ctx--phone .ev-card, .ev-ctx--inapp .ev-card { aspect-ratio: 9 / 16; grid-template-rows: 1fr auto auto auto; border-radius: 16px; }
.ev-ctx--tablet .ev-card { aspect-ratio: 4 / 5; grid-template-rows: 1fr auto auto auto; }
.ev-ctx--laptop .ev-card { aspect-ratio: 16 / 10; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 1fr auto; border-radius: 8px; }
.ev-ctx--laptop .c-img { grid-row: 1 / 3; }
.ev-ctx--laptop .c-t { align-self: end; }
.ev-ctx--laptop .c-btn { grid-column: 2 / 4; align-self: end; }
.ev-ctx--laptop .c-l { grid-column: 2 / 4; }
.ev-ctx--inapp .ev-bar { display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 12px 12px 0 0; background: var(--ink); color: var(--white); font: 700 11px/1.1 var(--lk-font-body); white-space: nowrap; overflow: hidden; }
.ev-ctx--inapp .ev-bar i { font-style: normal; color: #7FE3DF; }
.ev-ctx--inapp .ev-card { border-top: 0; border-radius: 0 0 14px 14px; aspect-ratio: 9 / 14.5; }
html.ev-armed .ev-ctxs:not(.in) .ev-ctx { transform: translateY(70px); }
.ev-ctxs .ev-ctx { transition: transform 900ms var(--ev-ease), opacity 700ms; }
.ev-ctxs .ev-ctx:nth-child(2) { transition-delay: 110ms; }
.ev-ctxs .ev-ctx:nth-child(3) { transition-delay: 220ms; }
.ev-ctxs .ev-ctx:nth-child(4) { transition-delay: 330ms; }

/* ---------- Why ---------- */
.ev-why-text { grid-column: span 7; background: var(--teal-tint); }
.ev-why-text p { font-size: 20px; position: relative; z-index: 1; }
.ev-scripts { grid-column: span 5; background: var(--purple); color: var(--white); }
.ev-scripts-title { font: 700 14px/1.3 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.ev-script-list { list-style: none; }
.ev-script-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.4); cursor: default; transition: padding 220ms var(--ev-ease), background-color 220ms; }
.ev-script-list li:hover { padding-inline: 12px; background: rgba(255, 255, 255, 0.12); }
.ev-script { font: 800 38px/1.2 var(--lk-font-display); transition: transform 220ms var(--ev-ease); display: inline-block; }
.ev-script-list li:hover .ev-script { transform: scale(1.1); }
.ev-lang { font-size: 15px; text-align: end; }

/* ---------- Try: the switcher ---------- */
.ev-nojs { padding: 18px 22px; border: 2px dashed var(--ink); border-radius: 16px; }
html.lk-js .ev-nojs { display: none; }
.ev-tool[hidden] { display: none; }
.ev-tool { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 28px; padding: 32px; border-radius: 32px; background: var(--ink); color: var(--white); }
.ev-tool a { color: #7FE3DF; }
.ev-panel { display: grid; gap: 22px; align-content: start; }
.ev-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.ev-fs legend, .ev-range-label, .ev-field { font: 700 13px/1.2 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: #C9CDD3; padding: 0; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip { min-height: 44px; padding: 0 16px; border: 2px solid #8B919B; border-radius: 4px; background: transparent; color: var(--white); font: 600 16px/1 var(--lk-font-body); cursor: pointer; transition: transform 140ms var(--ev-ease), background-color 140ms, border-color 140ms; }
.ev-chip:hover { border-color: var(--white); transform: translateY(-2px); }
.ev-chip:active { transform: scale(0.95); }
.ev-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.ev-chip.is-on { background: var(--white); border-color: var(--white); color: var(--ink); }
.ev-controls-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ev-out { font: 800 24px/1.2 var(--lk-font-display); font-variant-numeric: tabular-nums; color: var(--white); }
.ev-range { display: block; width: 100%; height: 32px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.ev-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; }
.ev-check input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.ev-input { min-height: 48px; padding: 0 14px; border: 2px solid #8B919B; border-radius: 12px; background: var(--white); color: var(--ink); font: 500 17px/1 var(--lk-font-body); width: 100%; box-sizing: border-box; }
.ev-input::placeholder { color: #50555E; }
.ev-stage { min-width: 0; border-radius: 24px; padding: 20px 20px 22px; background: var(--purple-tint); background-image: radial-gradient(rgba(107, 63, 212, 0.2) 1.5px, transparent 1.5px); background-size: 18px 18px; color: var(--ink); overflow-x: clip; }
.ev-stagetag { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font: 700 13px/1.2 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; max-width: none; }
.ev-dim { font-variant-numeric: tabular-nums; }
.ev-device { container: dev / inline-size; width: min(var(--w, 360px), 100%); margin-inline: auto; border: 3px solid var(--ink); border-radius: 22px; background: var(--white); padding: 14px; box-sizing: border-box; transition: width 220ms var(--ev-ease); }
.ev-pcard { display: grid; gap: 14px; }
.pc-media { min-height: 96px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--purple)); }
.pc-h { font: 800 24px/1.15 var(--lk-font-display); }
.pc-p { margin: 4px 0 14px; color: var(--muted); max-width: none; }
.pc-btn { display: inline-flex; align-items: center; justify-content: flex-start; width: 11rem; min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--teal); color: var(--ink); font: 700 16px/1.2 var(--lk-font-body); white-space: nowrap; overflow: visible; cursor: default; }
.ev-fixed .pc-btn { justify-content: center; width: 100%; max-width: 100%; height: auto; padding: 12px 22px; white-space: normal; text-align: center; box-sizing: border-box; }
.is-over .pc-btn { outline: 3px dashed #A31621; outline-offset: 3px; }
@container dev (min-width: 420px) { .ev-pcard { grid-template-columns: 34% 1fr; align-items: stretch; } .pc-media { min-height: 140px; } }
@container dev (min-width: 760px) { .pc-h { font-size: 32px; } .pc-media { min-height: 180px; } .ev-pcard { grid-template-columns: 28% 1fr; } }
.ev-verdict { margin-top: 14px; display: inline-block; padding: 8px 14px; border-radius: 10px; font: 700 16px/1.3 var(--lk-font-body); background: var(--white); color: var(--teal-deep); border: 2px solid var(--teal-deep); max-width: none; transition: transform 200ms var(--ev-ease); }
.ev-verdict.bad { color: #A31621; border-color: #A31621; animation: ev-shake 360ms var(--ev-ease); }
.ev-out-row { grid-column: 1 / -1; display: grid; gap: 14px; }
.ev-fee { font-size: 16px; color: #E8EAED; max-width: none; }
.ev-fee .lk-fact small { color: #C9CDD3; }
.ev-toolprompt { margin: 0; padding: 18px 20px; border: 1px solid #50555E; border-radius: 14px; background: #15171B; color: #E8EAED; font: 400 14.5px/1.55 var(--lk-font-mono, ui-monospace, monospace); white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ev-tool .ev-btn { min-height: 52px; }
.ev-tool .lk-copy-status { color: #E8EAED; font-weight: 600; }
@keyframes ev-shake { 0% { transform: translateX(0); } 25% { transform: translateX(-6px); } 55% { transform: translateX(5px); } 80% { transform: translateX(-2px); } 100% { transform: none; } }
.ev-btn:active { transform: scale(0.97); }

/* ---------- Money: the table that turns into cards ---------- */
.ev-money { container: evm / inline-size; max-width: 100%; margin-inline: auto; padding: 14px; border: 3px solid var(--ink); border-radius: 28px; background: var(--white); }
.ev-money .lk-table-wrap { border: 0; border-radius: 16px; }
.ev-money .lk-money { font-size: 16px; }
.ev-money .lk-money th { background: var(--bg); color: var(--ink); border-bottom: 2px solid var(--ink); }
.ev-money .lk-money th:nth-child(3) { background: var(--orange-tint); }
.ev-money .lk-money tbody tr { transition: background-color 140ms; }
.ev-money .lk-money tbody tr:hover td { background: var(--teal-tint); }
.ev-money .lk-money td:first-child { font-weight: 700; }
.ev-money .lk-money a { overflow-wrap: anywhere; }
html.ev-armed .ev-squeeze.in { animation: ev-squeeze 3.6s var(--ev-ease) 500ms 1 both; }
@keyframes ev-squeeze { 0% { max-width: 100%; } 35%, 65% { max-width: 560px; } 100% { max-width: 100%; } }
@container evm (max-width: 820px) {
  .lk-money, .lk-money tbody, .lk-money tr, .lk-money td { display: block; }
  .lk-money thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lk-money tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
  .lk-money tr { padding: 18px; border: 2px solid var(--rule); border-radius: 18px; background: var(--white); transition: transform 180ms var(--ev-ease), border-color 180ms; }
  .lk-money tr:last-child { border: 2px solid var(--rule); }
  .lk-money tr:hover { transform: translateY(-4px); border-color: var(--ink); }
  .lk-money td { padding: 5px 0; border: 0; background: none; }
  .lk-money td:first-child { font: 800 22px/1.2 var(--lk-font-display); padding-bottom: 8px; }
  .lk-money td::before { content: attr(data-label); display: block; font: 700 11px/1.3 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .lk-money td:first-child::before { display: none; }
}

/* ---------- When: the breakpoint ruler ---------- */
.ev-phases { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding-top: 70px; }
.ev-phases::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: var(--ink); transform-origin: left; }
html.ev-armed .ev-phases:not(.in)::before { transform: scaleX(0); }
.ev-phases::before { transition: transform 1300ms var(--ev-ease); }
.ev-phases .lk-phase { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 0 22px 8px 0; border: 0; border-radius: 0; background: none; }
.ev-phases .lk-phase::before { content: ""; position: absolute; left: 0; top: -70px; width: 4px; height: 70px; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 10px); }
.ev-phases .lk-phase::after { content: ""; position: absolute; left: -9px; top: -46px; width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--ink); background: var(--c, var(--teal)); transition: transform 240ms var(--ev-ease); }
.ev-phases .lk-phase:hover::after { transform: scale(1.4); }
.ev-p1 { --c: var(--teal); } .ev-p2 { --c: var(--purple); } .ev-p3 { --c: var(--orange); } .ev-p4 { --c: var(--teal); }
.ev-phases .ev-phase-l { margin: 0; font: 700 14px/1.2 var(--lk-font-mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); padding-left: 22px; }
.ev-phases strong { order: 2; display: block; padding: 0 0 0 22px; border-radius: 0; background: none; color: var(--ink); font: 800 clamp(72px, 10.5vw, 150px)/0.95 var(--lk-font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; transition: transform 300ms var(--ev-ease); transform-origin: left bottom; }
.ev-phases .lk-phase:hover strong { transform: scale(1.06); }
.ev-phases strong::after { content: ""; display: block; height: 12px; width: 56%; margin-top: 10px; border-radius: 6px; background: var(--c, var(--teal)); transition: width 400ms var(--ev-ease); }
.ev-phases .lk-phase:hover strong::after { width: 100%; }
.ev-phases .ev-phase-d { order: 3; margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.45; color: var(--ink); max-width: 30ch; }

/* ---------- Agent and you: laptop and phone ---------- */
.ev-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: end; }
.ev-laptop { grid-column: span 7; }
.ev-phone { grid-column: span 5; }
.ev-lscreen { padding: 44px 40px 36px; border: 10px solid var(--ink); border-bottom-width: 12px; border-radius: 22px 22px 0 0; background: var(--teal-tint); }
.ev-lbase { position: relative; height: 18px; width: 100%; border-radius: 0 0 26px 26px; background: linear-gradient(#2A2D33, var(--ink)); }
.ev-lbase::after { content: ""; position: absolute; left: 50%; top: 0; width: 22%; height: 7px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #50555E; }
.ev-pscreen { position: relative; padding: 64px 26px 40px; border: 10px solid var(--ink); border-radius: 48px; background: var(--orange-tint); }
.ev-pscreen::before { content: ""; position: absolute; left: 50%; top: 14px; width: 84px; height: 22px; transform: translateX(-50%); border-radius: 999px; background: var(--ink); }
.ev-you .ev-list li::before, .ev-phone .ev-list li::before { background: var(--orange); }
.ev-lscreen .ev-h2, .ev-pscreen .ev-h2 { font-size: clamp(32px, 3.6vw, 48px); }
.ev-laptop, .ev-phone { transition: transform 300ms var(--ev-ease); }
html:not(.ev-armed) .ev-laptop:hover, html:not(.ev-armed) .ev-phone:hover, html.ev-armed .ev-laptop.in:hover, html.ev-armed .ev-phone.in:hover { transform: translateY(-6px); }

/* ---------- Checklist: kanban by phase ---------- */
.ev-itemsec ul.lk-items { list-style: none; border: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; align-items: start; font-size: 16px; }
.ev-itemsec li.lk-cat { display: none; }
.ev-kan-heads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ev-kan-heads span { padding: 12px 4px 10px; border-bottom: 6px solid var(--c); font: 800 22px/1.15 var(--lk-font-display); }
.ev-kan-heads span:nth-child(1) { --c: var(--teal); } .ev-kan-heads span:nth-child(2) { --c: var(--purple); } .ev-kan-heads span:nth-child(3) { --c: var(--orange); } .ev-kan-heads span:nth-child(4) { --c: var(--ink); }
.ev-itemsec .lk-filters { margin: 0 0 24px; }
.ev-itemsec > .ev-rv { margin-bottom: 40px; }
.lk-filter { transition: transform 140ms var(--ev-ease), background-color 140ms, border-color 140ms; }
.lk-filter:hover { transform: translateY(-2px); }
.lk-filter:active { transform: scale(0.95); }
.lk-filter:focus-visible { border-radius: 4px; }
.lk-item[hidden] { display: none; }
.ev-itemsec li.lk-item { position: relative; --c: var(--ink); grid-column: var(--col, 1); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "id who" "title title"; gap: 10px 8px; align-items: center; padding: 14px 16px 16px; border: 1px solid var(--rule); border-top: 6px solid var(--c); border-radius: 14px; background: var(--white); transition: transform 180ms var(--ev-ease), box-shadow 180ms, border-color 180ms; }
.ev-itemsec li.lk-item:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 14px 28px rgba(10, 10, 10, 0.12); border-color: var(--c); }
.ev-itemsec li[data-when="early"] { --col: 1; } .ev-itemsec li[data-when="before"] { --col: 2; } .ev-itemsec li[data-when="week"] { --col: 3; } .ev-itemsec li[data-when="after"] { --col: 4; }
.ev-itemsec li[data-category="mobile-and-responsive"] { --c: var(--teal); }
.ev-itemsec li[data-category="pwa-and-app-stores"] { --c: var(--purple); }
.ev-itemsec li[data-category="languages-and-localisation"] { --c: var(--orange); }
.ev-itemsec li[data-category="browsers-and-devices"] { --c: var(--ink); }
.ev-itemsec .lk-id { grid-area: id; font: 700 13px/1.2 var(--lk-font-mono, ui-monospace, monospace); color: var(--ink); letter-spacing: 0.04em; }
.ev-itemsec .lk-title { grid-area: title; font: 700 17px/1.3 var(--lk-font-body); color: var(--ink); }
.ev-itemsec .lk-who { grid-area: who; padding: 4px 10px; border-radius: 3px; font: 700 12px/1.2 var(--lk-font-body); background: var(--teal-tint); color: var(--teal-deep); }
.ev-itemsec li[data-who="founder"] .lk-who { background: var(--orange-tint); color: #7A3E00; }
.ev-itemsec .lk-when { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- End: the device wall ---------- */
.ev-end-text { grid-column: span 7; background: var(--purple-tint); }
.ev-end-art { grid-column: span 5; align-self: stretch; margin: 0; padding: 0; min-height: 320px; display: flex; align-items: flex-end; background: #F4F4F4; }
.ev-end-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* ---------- Run: a terminal, then two lists ---------- */
.ev-runsec { max-width: 1000px; margin-inline: auto; }
.ev-prompt { margin-bottom: 56px; max-width: none; }
.ev-prompt .lk-prompt-text { position: relative; border: 0; border-radius: 20px; background: var(--ink); color: #E6FFFD; font-size: 17px; padding: 26px 26px 26px 58px; box-shadow: 10px 10px 0 var(--teal); transition: box-shadow 200ms var(--ev-ease), transform 200ms var(--ev-ease); }
.ev-prompt .lk-prompt-text:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0 var(--teal); }
.ev-prompt .lk-prompt-text::before { content: "$"; position: absolute; left: 26px; top: 26px; color: #7FE3DF; font-weight: 700; }
.ev-prompt .lk-prompt-row { margin-top: 14px; }
.ev-prompt .lk-btn { transition: transform 140ms var(--ev-ease), background-color 140ms; }
.ev-run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.ev-run-grid .ev-list { counter-reset: q; }
.ev-run-grid .ev-list:not(.ev-files) li { counter-increment: q; padding-left: 44px; }
.ev-run-grid .ev-list:not(.ev-files) li::before { content: counter(q); top: 0.1em; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 14px/28px var(--lk-font-body); text-align: center; }
.ev-run-grid .ev-list:not(.ev-files) li:hover::before { transform: scale(1.15); background: var(--purple); border-radius: 50%; }
.ev-files li { padding: 12px 14px 12px 14px; border-radius: 12px; background: var(--teal-tint); }
.ev-files li::before { display: none; }
.ev-files li:hover { transform: translateX(6px); }
.ev-files code { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; overflow-wrap: anywhere; }
.ev-note { margin-top: 18px; font-size: 16px; color: var(--muted); }
.lk-run-note { margin-top: 28px; color: var(--muted); }

/* ---------- Terms: swipe flashcards ---------- */
.ev-termsec dl.lk-terms { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 22px; counter-reset: t; scrollbar-width: thin; scrollbar-color: var(--ink) var(--rule); }
.ev-termsec dl.lk-terms > div { position: relative; flex: 0 0 min(300px, 80%); min-height: 210px; scroll-snap-align: start; padding: 28px 24px 24px; border-radius: 22px; background: var(--teal-tint); counter-increment: t; transition: transform 220ms var(--ev-ease), box-shadow 220ms; }
.ev-termsec dl.lk-terms > div:nth-child(3n+2) { background: var(--purple-tint); }
.ev-termsec dl.lk-terms > div:nth-child(3n) { background: var(--orange-tint); }
.ev-termsec dl.lk-terms > div:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 18px 30px rgba(10, 10, 10, 0.14); }
.ev-termsec dl.lk-terms > div::after { content: counter(t, decimal-leading-zero) / ""; position: absolute; right: 18px; top: 16px; font: 700 13px/1 var(--lk-font-mono, ui-monospace, monospace); color: var(--ink); }
.ev-termsec .lk-terms dt { font: 800 28px/1.1 var(--lk-font-display); letter-spacing: -0.02em; margin-bottom: 10px; padding-right: 28px; overflow-wrap: anywhere; }
.ev-termsec .lk-terms dd { color: var(--ink); font-size: 17px; line-height: 1.45; margin-top: 0; }
.ev-deckbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ev-deckhint { font-size: 15px; color: var(--muted); margin-right: auto; max-width: none; }
.ev-deckbtn { width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); color: var(--ink); font: 700 20px/1 var(--lk-font-body); cursor: pointer; transition: transform 140ms var(--ev-ease), background-color 140ms; }
.ev-deckbtn:hover { background: var(--teal); transform: translateY(-2px); }
.ev-deckbtn:active { transform: scale(0.92); }

/* ---------- Next ---------- */
.ev-nextsec .lk-next { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.ev-nextsec .lk-next > div { padding: 36px 32px; border-radius: 24px; background: var(--purple-tint); transition: transform 200ms var(--ev-ease); }
.ev-nextsec .lk-next > div + div { background: var(--teal-tint); }
.ev-nextsec .lk-next > div:hover { transform: translateY(-5px); }
.lk-next h3 { color: var(--ink); font-size: 13px; }
.ev-nextsec .lk-next p { font: 800 30px/1.15 var(--lk-font-display); letter-spacing: -0.02em; }
.ev-nextsec .lk-next li { font: 800 30px/1.15 var(--lk-font-display); letter-spacing: -0.02em; }
.ev-nextsec .lk-next li + li { margin-top: 10px; }
.ev-nextsec .lk-next a { color: var(--ink); text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--teal); transition: text-decoration-color 140ms; }
.ev-nextsec .lk-next a:hover { text-decoration-color: var(--purple); color: var(--ink); }
.lk-footer { padding-bottom: 84px; }

/* ---------- Docked switcher ---------- */
.ev-dock { position: fixed; z-index: 40; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 8px 8px 8px 18px; border-radius: 6px; background: var(--ink); color: var(--white); font: 600 14px/1.2 var(--lk-font-body); box-shadow: 0 10px 30px rgba(10, 10, 10, 0.3); overflow: hidden; }
.ev-dock-w { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-dock-s { color: #C9CDD3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ev-dock a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 4px; background: var(--teal); color: var(--ink); font-weight: 700; text-decoration: none; transition: transform 140ms var(--ev-ease), background-color 140ms; }
.ev-dock a:hover { background: var(--white); color: var(--ink); transform: translateY(-1px); }
.ev-dock a:active { transform: scale(0.95); }
.ev-dock::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0)); }
@supports (animation-timeline: scroll()) {
  .ev-dock::after { transform: scaleX(0); animation: ev-prog linear both; animation-timeline: scroll(root); }
  .ev-h2 { animation: ev-h2in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes ev-prog { to { transform: scaleX(1); } }
@keyframes ev-h2in { from { letter-spacing: 0.01em; } to { letter-spacing: -0.03em; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .ev-what-text, .ev-ctxs, .ev-why-text, .ev-scripts, .ev-end-text, .ev-end-art, .ev-laptop, .ev-phone { grid-column: 1 / -1; }
  .ev-tool { grid-template-columns: 1fr; }
  .ev-run-grid { grid-template-columns: 1fr; }
  .ev-pair { align-items: stretch; }
  .ev-itemsec ul.lk-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-itemsec li.lk-item { grid-column: auto; }
  .ev-kan-heads { display: none; }
  .ev-phases .ev-phase-d { font-size: 15px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; line-height: 1.55; }
  .ev-hero { padding-top: 28px; }
  .ev-headline { margin-top: 14px; font-size: 52px; line-height: 1.02; }
  .ev-one { margin-top: 14px; font-size: 18px; }
  .ev-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; }
  .ev-actions .ev-btn { width: 100%; }
  .ev-link { text-align: center; }
  .ev-art { margin-top: 24px; }
  .ev-sec { margin-top: 84px; }
  .ev-sections { padding-bottom: 84px; }
  .ev-h2 { font-size: 34px; margin-bottom: 16px; }
  .ev-tile .ev-h2, .ev-lscreen .ev-h2, .ev-pscreen .ev-h2 { font-size: 30px; }
  .ev-h3 { font-size: 22px; }
  .ev-lede { font-size: 18px; margin-bottom: 24px; }
  .ev-tile { padding: 34px 22px 28px; }
  .ev-ctxs { padding: 22px 12px 14px; gap: 8px; }
  .ev-script { font-size: 32px; }
    .ev-tool { padding: 18px 14px; border-radius: 24px; }
  .ev-stage { padding: 14px 10px 16px; }
  .ev-device { padding: 10px; }
  .ev-money { padding: 8px; border-radius: 20px; }
  .ev-phases { grid-template-columns: 1fr; padding-top: 0; padding-left: 34px; row-gap: 30px; }
  .ev-phases::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 6px; height: auto; transform-origin: top; }
  html.ev-armed .ev-phases:not(.in)::before { transform: scaleY(0); }
  .ev-phases .lk-phase { padding: 0; }
  .ev-phases .lk-phase::before { display: none; }
  .ev-phases .lk-phase::after { left: -34px; top: 8px; }
  .ev-phases .ev-phase-l, .ev-phases strong, .ev-phases .ev-phase-d { padding-left: 0; }
  .ev-phases strong { font-size: 84px; }
  .ev-lscreen { padding: 28px 18px 24px; border-width: 8px; }
  .ev-pscreen { padding: 56px 18px 30px; border-width: 8px; border-radius: 40px; }
  .ev-itemsec ul.lk-items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 18px; align-items: stretch; }
  .ev-itemsec li.lk-item { flex: 0 0 78%; scroll-snap-align: start; }
  .ev-itemsec li[data-when="early"] { order: 1; } .ev-itemsec li[data-when="before"] { order: 2; } .ev-itemsec li[data-when="week"] { order: 3; } .ev-itemsec li[data-when="after"] { order: 4; }
  .ev-end-art { min-height: 0; padding: 0; }
  .ev-end-art img { height: auto; }
  .ev-termsec .lk-terms dt { font-size: 26px; }
  .ev-nextsec .lk-next p, .ev-nextsec .lk-next li { font-size: 26px; }
  .ev-prompt .lk-prompt-text { padding: 22px 18px 22px 44px; font-size: 15px; box-shadow: 6px 6px 0 var(--teal); }
  .ev-prompt .lk-prompt-text::before { left: 18px; top: 22px; }
  .ev-dock { gap: 10px; padding-left: 14px; font-size: 13px; }
}
html:not(.lk-js) .ev-device { width: min(360px, 100%); }
@media (prefers-reduced-motion: reduce) {
  .ev-device { transition: none; }
  .ev-rv, .ev-ctxs .ev-ctx, .ev-phases::before { transition: none; }
  .ev-squeeze, .ev-verdict.bad, .ev-dock::after, .ev-h2 { animation: none; }
  html.ev-armed .ev-rv:not(.in), html.ev-armed .ev-ctxs:not(.in) .ev-ctx { transform: none; opacity: 1; }
  html.ev-armed .ev-phases:not(.in)::before { transform: none; }
}
html.lk-reduced .ev-device, html.lk-reduced .ev-rv, html.lk-reduced .ev-ctx, html.lk-reduced .ev-phases::before { transition: none; }
html.lk-reduced .ev-squeeze, html.lk-reduced .ev-verdict.bad, html.lk-reduced .ev-h2 { animation: none; }
html.lk-reduced .ev-rv:not(.in), html.lk-reduced .ev-ctxs:not(.in) .ev-ctx { transform: none; opacity: 1; }
html.lk-reduced .ev-phases:not(.in)::before { transform: none; }
.ev-dock[hidden] { display: none; }

/* ---------- Shared copy dock: page palette; the switcher dock rises above it on narrow screens ---------- */
:root { --lk-dock-bg: var(--teal); --lk-dock-ink: var(--ink); }
@media (max-width: 760px) { .ev-dock { bottom: 72px; } }
