/* azurka.win decks (/how-it-works, /details): one 1280x720 canvas scaled to the window; stacked on phones. */
:root {
  --ink: #15153D;
  --ink-2: #3A3A5C;
  --muted: #6B6B80;
  --violet: #7C3AED;
  --violet-2: #5B21B6;
  --violet-soft: #EDE6FD;
  --blue: #2563EB;
  --blue-soft: #E3ECFF;
  --green: #16A34A;
  --green-soft: #DCF5E4;
  --amber: #D97706;
  --amber-soft: #FDF0D5;
  --red: #DC2626;
  --red-soft: #FDE2E2;
  --card: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.74);
  --line: rgba(124, 58, 237, 0.12);
  --shadow: 0 24px 48px -20px rgba(76, 52, 160, 0.26), 0 6px 16px -8px rgba(76, 52, 160, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #F6F4FD;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: var(--violet-2); }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 55% at 100% 0%, #D9CCFB 0%, rgba(217,204,251,0) 70%),
    radial-gradient(50% 45% at 0% 100%, #E4DAFD 0%, rgba(228,218,253,0) 70%),
    linear-gradient(160deg, #FBFAFF 0%, #F1EDFC 100%);
}
.bg svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 26%; }

/* ---------- top bar ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 5;
  display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand svg { width: 26px; height: 26px; }
.bar .sep { color: #B9B4D3; }
.bar .where { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .spacer { flex: 1; }
.count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(124,58,237,.18); background: var(--glass);
  color: var(--violet-2); display: grid; place-items: center; cursor: pointer; }
.nav-btn:hover { background: #fff; }
.nav-btn:disabled { opacity: .35; cursor: default; }
.nav-btn svg { width: 16px; height: 16px; }
.progress { position: fixed; left: 0; top: 0; height: 3px; background: linear-gradient(90deg, #6D28D9, #8B5CF6); transition: width .35s ease; z-index: 6; }

/* ---------- deck: one 1280×720 canvas scaled to the window ---------- */
.deck { position: fixed; inset: 56px 0 0 0; }
.canvas { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px;
  transform: translate(-50%, -50%) scale(var(--s, 1)); }
.slide { position: absolute; inset: 0; padding: 40px 64px 48px; display: none; flex-direction: column; }
.slide.on { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .slide.on { animation: in .45s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--violet); }
.kicker .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--violet-soft); color: var(--violet-2); font-size: 13px; letter-spacing: 0; }
h1 { margin: 0; font-size: 84px; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { margin: 12px 0 0; font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.lead { margin: 14px 0 0; font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 980px; }
.grad { background: linear-gradient(90deg, #6D28D9, #8B5CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.body { flex: 1; min-height: 0; margin-top: 28px; }

/* ---------- building blocks ---------- */
.panel { background: var(--glass); border: 1px solid rgba(255,255,255,0.95); border-radius: 20px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cards { display: grid; gap: 18px; height: 100%; }
.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tool { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tool h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.tool h3 .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--violet-soft); color: var(--violet-2); display: grid; place-items: center; }
.tool h3 .ic svg { width: 18px; height: 18px; }
.tool p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.tool ul { margin: 2px 0 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tool li { margin: 2px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.tag.ai { background: var(--violet-soft); color: var(--violet-2); }
.tag.gate { background: var(--amber-soft); color: #92400E; }
.tag.free { background: var(--green-soft); color: #166534; }
.note { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #F6F2FF; border: 1px solid rgba(124,58,237,.22); box-shadow: 0 12px 28px -16px rgba(76,52,160,.35);
  font-size: 15.5px; line-height: 1.45; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.note b { color: var(--ink); }
.note svg { flex: none; width: 20px; height: 20px; color: var(--violet); margin-top: 1px; }

/* title slide */
.title-wrap { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 10fr); gap: 36px; align-items: center; height: 100%; }
.title-wrap h1 { font-size: 68px; }
.title-wrap .sub { margin-top: 22px; font-size: 22px; line-height: 1.35; color: var(--muted); font-weight: 500; }
.hint { margin-top: 36px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
kbd { font: 600 12px/1 "Inter", sans-serif; padding: 5px 8px; border-radius: 7px; background: #fff; border: 1px solid #DDD7F2; box-shadow: 0 1px 0 #DDD7F2; color: var(--ink-2); }

/* what it is */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.pillar { padding: 24px; }
.pillar .big { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #8B3FE0, #5B21B6); }
.pillar .big svg { width: 24px; height: 24px; }
.pillar h3 { margin: 16px 0 8px; font-size: 22px; letter-spacing: -0.015em; }
.pillar p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.fact { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(124,58,237,.12); font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.fact b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* AI-native SDLC diagram (four lanes) */
.sdlc-wrap { margin-top: 18px; display: flex; justify-content: center; }
.sdlc { width: 100%; height: 100%; box-sizing: border-box; padding: 14px 18px 8px; background: #fff; border-radius: 18px; border: 1px solid rgba(124,58,237,.12); box-shadow: var(--shadow); font-family: "Inter", system-ui, sans-serif; }
.sdlc .t1 { font-size: 15px; font-weight: 600; fill: #0b0d12; }
.sdlc .t2 { font-size: 12px; fill: #667593; }
.sdlc .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* architecture */
.arch { position: relative; height: 100%; }
.arch svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arch svg.wires path { stroke: #B7A2F5; stroke-width: 2; fill: none; }
.arch svg.wires path.dash { stroke-dasharray: 6 6; }
.arch svg.wires circle { fill: #B7A2F5; }
.node { position: absolute; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(124,58,237,.12); }
.node h4 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.node p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.node.hero { background: linear-gradient(145deg, #8B3FE0, #5B21B6); color: #fff; border: 0; }
.node.hero p { color: rgba(255,255,255,.85); }
.node.soft { background: var(--violet-soft); }
.node .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.legend { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* context repo */
.ctx { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.tree { padding: 14px 22px; font-size: 14.5px; }
.tree .row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tree .row:last-child { border-bottom: 0; }
.tree code { font: 600 14.5px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--violet-2); }
.tree span { color: var(--ink-2); line-height: 1.4; }
.why { display: flex; flex-direction: column; gap: 14px; }
.why .tool { padding: 18px 20px; }

/* run pipeline */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.fstep { position: relative; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fstep .no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(145deg, #8B3FE0, #5B21B6); }
.fstep h4 { margin: 4px 0 0; font-size: 18px; letter-spacing: -0.01em; }
.fstep p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fstep:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 33px; width: 10px; height: 2px; background: #B7A2F5; }

.actlist { display: flex; flex-direction: column; gap: 12px; }
.act { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 16px; }
.act .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-2); display: grid; place-items: center; }
.act .ic svg { width: 20px; height: 20px; }
.act h4 { margin: 0; font-size: 17px; }
.act p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }


/* screenshots */
.shot { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(124,58,237,.16);
  box-shadow: 0 30px 60px -24px rgba(60,40,140,.45), 0 8px 20px -10px rgba(60,40,140,.22); cursor: zoom-in;
  display: flex; flex-direction: column; min-height: 0; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.shot:hover, .shot:focus-visible { border-color: rgba(124,58,237,.45); box-shadow: 0 36px 70px -24px rgba(60,40,140,.55), 0 10px 24px -10px rgba(60,40,140,.28); outline: none; }
.shot .wb { flex: none; height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: linear-gradient(#FCFBFF, #F2EFFB); border-bottom: 1px solid rgba(124,58,237,.12); }
.shot .wb i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.shot .wb i:nth-child(1) { background: #F87171; } .shot .wb i:nth-child(2) { background: #FBBF24; } .shot .wb i:nth-child(3) { background: #34D399; }
.shot .wb span { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top left; }
.shot::after { content: "Click to zoom"; position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: #fff; background: rgba(91,33,182,.85); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
.vis { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; height: 100%; }
.vis.wide { grid-template-columns: 400px minmax(0, 1fr); }
.vis.rev { grid-template-columns: minmax(0, 1fr) 380px; }
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mini { padding: 14px 16px; }
.mini h3 { margin: 0 0 4px; font-size: 16.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.mini p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.mini .tags { padding-top: 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235B21B6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { color: var(--ink); }
.vlegend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vlegend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.vlegend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.steps7 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps7 li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.72); border: 1px solid #fff; box-shadow: 0 4px 12px -8px rgba(76,52,160,.3); font-size: 14.5px; font-weight: 600; }
.steps7 .k { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #8B3FE0, #5B21B6); }
.steps7 small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stack { position: relative; height: 100%; }
.stack .shot { position: absolute; }
.stack .s1 { right: 0; top: 0; width: 78%; height: 66%; }
.stack .s2 { left: 0; bottom: 0; width: 82%; height: 70%; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; height: 100%; }
.pair > div { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pair .shot { flex: 1; }
.cap h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.cap p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); min-height: 63px; }
.hero-shots { position: relative; height: 560px; }
.hero-shots .shot { position: absolute; }
.hero-shots .back { width: 440px; height: 285px; right: -30px; top: 30px; transform: rotate(3.5deg); }
.hero-shots .front { width: 530px; height: 335px; left: -24px; bottom: 56px; transform: rotate(-2.5deg); }
.hero-shots .chip { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero-shots .chip i { width: 10px; height: 10px; border-radius: 50%; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px;
  background: rgba(21,21,61,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100% - 44px); border-radius: 12px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); background: #fff; }
.lightbox p { margin: 0; color: #fff; font-size: 14px; font-weight: 600; opacity: .9; text-align: center; }
.demo-note { position: fixed; right: 16px; bottom: 10px; z-index: 4; font-size: 11.5px; color: var(--muted); }

/* closing */
.end { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.end h1 { font-size: 92px; }
.end .sub { margin-top: 18px; font-size: 26px; color: var(--muted); font-weight: 500; }
.cta { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(145deg, #8B3FE0, #5B21B6); color: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 18px 36px -14px rgba(91,33,182,.6); }
.cta svg { width: 18px; height: 18px; }

/* ---------- narrow / portrait: slides stack and scroll, no scaling ---------- */
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  body { overflow: auto; }
  .bar { position: sticky; background: rgba(246,244,253,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0 16px; }
  .bar .where, .bar .sep, .count, .nav-btn { display: none; }
  .progress { display: none; }
  .deck { position: static; }
  .canvas { position: static; width: auto; height: auto; transform: none; }
  .slide, .slide.on { position: static; display: flex; padding: 40px 16px 32px; animation: none; border-bottom: 1px solid var(--line); }
  h1 { font-size: 46px; }
  h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .body { margin-top: 20px; }
  .c2, .c3, .c4, .pillars, .facts, .title-wrap, .ctx, .flow { grid-template-columns: 1fr; }
  .title-wrap h1 { font-size: 42px; }
  .title-wrap .sub { font-size: 19px; }
  .hint { display: none; }
  .tree .row { grid-template-columns: 1fr; gap: 2px; }
  .fstep:not(:last-child)::after { display: none; }
  .end h1 { font-size: 52px; }
  .end .sub { font-size: 19px; }
  .arch { height: auto; display: flex; flex-direction: column; gap: 12px; }
  .arch svg.wires { display: none; }
  .sdlc-wrap { overflow-x: auto; justify-content: flex-start; }
  .sdlc { min-width: 860px; height: auto; }
  .node { position: static; width: auto !important; }
}
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .vis, .vis.wide, .vis.rev, .pair { grid-template-columns: 1fr; height: auto; }
  .shot img { flex: none; height: auto; object-fit: contain; }
  .stack { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .stack .shot, .hero-shots .shot { position: static; width: auto !important; height: auto !important; transform: none !important; }
  .hero-shots { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .hero-shots .back, .hero-shots .chip { display: none; }
  .shot::after { display: none; }
  .demo-note { position: static; display: block; padding: 16px; text-align: center; }
}

/* ---------- contents menu (top bar) ---------- */
.bar .link { font-size: 13px; font-weight: 600; color: var(--violet-2); text-decoration: none; padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(124,58,237,.18); background: var(--glass); white-space: nowrap; }
.bar .link:hover { background: #fff; }
.toc { position: fixed; top: 52px; right: 24px; z-index: 20; width: 320px; max-height: min(70vh, 560px); overflow: auto; padding: 8px;
  border-radius: 16px; background: rgba(255,255,255,.96); border: 1px solid rgba(124,58,237,.16); box-shadow: var(--shadow); display: none; }
.toc.on { display: block; }
.toc button { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; font: 600 14px/1.3 "Inter", sans-serif; color: var(--ink-2); text-align: left; cursor: pointer; }
.toc button:hover { background: var(--violet-soft); }
.toc button.on { background: var(--violet-soft); color: var(--violet-2); }
.toc button i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
[data-go] { cursor: pointer; }
.steps7 li[data-go]:hover { background: #fff; border-color: rgba(124,58,237,.35); }

/* ---------- concept deck ---------- */
.body.mid { display: flex; flex-direction: column; justify-content: center; }
.pains { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.pain { padding: 22px; }
.pain .x { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.pain .x svg { width: 22px; height: 22px; }
.pain h3 { margin: 16px 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.pain p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.answer { margin-top: 22px; padding: 18px 22px; border-radius: 16px; color: #fff; font-size: 19px; line-height: 1.4; font-weight: 500;
  background: linear-gradient(145deg, #8B3FE0, #5B21B6); box-shadow: 0 18px 36px -16px rgba(91,33,182,.6); display: flex; gap: 14px; align-items: center; }
.answer svg { flex: none; width: 26px; height: 26px; }
.answer b { font-weight: 700; }

.loop { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 44px; }
.lnode { position: relative; padding: 22px; }
.lnode .big { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #8B3FE0, #5B21B6); }
.lnode .big svg { width: 24px; height: 24px; }
.lnode h3 { margin: 14px 0 6px; font-size: 21px; letter-spacing: -0.015em; }
.lnode p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lnode:not(:last-child)::after { content: ""; position: absolute; right: -36px; top: 38px; width: 26px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16' fill='none' stroke='%239F85F0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 8h23M18 2l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.loopback { position: relative; height: 38px; margin: 0 12.5%; border: 2px dashed #B7A2F5; border-top: 0; border-radius: 0 0 20px 20px; }
.loopback::before { content: ""; position: absolute; left: -8px; top: -3px; border: 7px solid transparent; border-top: 0; border-bottom: 10px solid #9F85F0; }
.loopback span { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); padding: 5px 16px; border-radius: 999px; white-space: nowrap;
  background: #F6F2FF; border: 1px solid rgba(124,58,237,.22); font-size: 14.5px; font-weight: 600; color: var(--violet-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 44px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-radius: 16px; background: rgba(255,255,255,.62); border: 1px solid rgba(124,58,237,.12); }
.stat b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(90deg, #6D28D9, #8B5CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 15.5px; line-height: 1.35; color: var(--ink-2); }

.rail7 { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 12px; }
.rail7::before { content: ""; position: absolute; left: 7%; right: 7%; top: 31px; height: 2px; background: #B7A2F5; }
.rs { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rs .ring { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid #B7A2F5; display: grid; place-items: center; color: var(--violet-2);
  box-shadow: 0 8px 18px -8px rgba(76,52,160,.4); }
.rs .ring svg { width: 26px; height: 26px; }
.rs .no { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.rs h3 { margin: 2px 0 12px; font-size: 16.5px; letter-spacing: -0.01em; white-space: nowrap; }
.rs .q { flex: 1; width: 100%; padding: 14px 10px; border-radius: 14px; background: var(--glass); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); display: grid; place-items: center; min-height: 118px; }

.qva { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qva .row { padding: 14px 18px; }
.qva .lb { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qva .tx { margin-top: 6px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.qva .vd { display: inline-flex; align-items: center; gap: 9px; }
.qva .vd i { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.qva .more { margin: 4px 2px 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.stops { display: inline-flex; gap: 5px; margin-left: 4px; }
.stops i { width: 18px; height: 5px; border-radius: 3px; background: #D9CDFA; }
.stops i.on { background: var(--violet); }

.inside { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.inside span { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(124,58,237,.14); color: var(--ink-2); }

.recap { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.recap span { padding: 11px 18px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid #fff; box-shadow: 0 10px 24px -14px rgba(76,52,160,.45); font-size: 17px; font-weight: 600; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.cta-row .cta { margin-top: 0; cursor: pointer; border: 0; font-family: inherit; }
.cta.ghost { background: rgba(255,255,255,.85); color: var(--violet-2); box-shadow: none; border: 1px solid rgba(124,58,237,.28); }

@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  /* the page scrolls as a whole, so the bar (and its contents menu) stays in reach */
  html, body { height: auto; min-height: 100%; }
  .bar .link { display: none; }
  .bar .toc-btn { display: grid; }
  .toc { top: 52px; right: 12px; left: 12px; width: auto; max-height: 70vh; }
  .pains, .loop, .stats, .rail7 { grid-template-columns: 1fr; }
  .loop { gap: 14px; }
  .lnode:not(:last-child)::after, .rail7::before, .loopback::before { display: none; }
  .loopback { height: auto; margin: 14px 0 0; border: 0; }
  .loopback span { position: static; transform: none; display: block; white-space: normal; text-align: center; }
  .stats { margin-top: 22px; }
  .rs { flex-direction: row; text-align: left; gap: 12px; align-items: center; flex-wrap: wrap; }
  .rs .ring { width: 44px; height: 44px; flex: none; }
  .rs .ring svg { width: 20px; height: 20px; }
  .rs .no { display: none; }
  .rs h3 { margin: 0; }
  .rs .q { flex: 1 0 100%; min-height: 0; padding: 12px 14px; place-items: start; text-align: left; }
  .answer { font-size: 17px; }
  .recap span { font-size: 15px; }
  .slide { scroll-margin-top: 56px; }
}

/* a screenshot shown whole (not cropped to its cell) */
.shot.whole { align-self: start; }
.shot.whole img { flex: none; height: auto; object-fit: contain; }
