/* Pagesmith for Confluence. Concept: the page tree. Elbow connectors and indent guides (the shape admins stare at
   in the Confluence sidebar) are the structure; highlighter yellow marks what was found, violet marks what replaces
   it. Geometric sans headlines, system UI body. System fonts only: nothing is downloaded from third parties. */
:root {
  --bg: #fbfaff; --bg-2: #f3f0fd; --sheet: #ffffff; --ink: #1c1640; --ink-2: #4a4470; --ink-3: #736d94;
  --rule: #e4dff5; --rule-2: #efebfa; --brand: #5b3ae6; --brand-2: #4527c9; --brand-soft: #ece7ff;
  --brand-ink: #ffffff; --hl: #ffd64a; --hl-soft: #fff1b8; --ok: #17805a; --ok-soft: #dcf3e9; --warn: #a65400;
  --warn-soft: #fdebd6; --focus: #5b3ae6;
  --night: #1c1640; --night-2: #2a2160; --night-ink: #f3f0ff; --night-ink-2: #c4bce8;
  --shadow-1: 0 1px 2px rgba(28, 22, 64, .06), 0 1px 1px rgba(28, 22, 64, .04);
  --shadow-2: 0 2px 6px rgba(28, 22, 64, .05), 0 18px 40px -18px rgba(28, 22, 64, .25);
  --shadow-3: 0 4px 10px rgba(12, 8, 40, .18), 0 40px 90px -30px rgba(12, 8, 40, .55);
  --display: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110d24; --bg-2: #18132f; --sheet: #1d1738; --ink: #eeeaff; --ink-2: #bdb5e0; --ink-3: #8e86b4;
    --rule: #2e2752; --rule-2: #251f45; --brand: #8f76ff; --brand-2: #a592ff; --brand-soft: #2a2257;
    --brand-ink: #120c2e; --hl: #ffd64a; --hl-soft: #4a3d10; --ok: #4fd1a0; --ok-soft: #12382b; --warn: #ffb25e;
    --warn-soft: #3d2a12; --focus: #a592ff; --night: #0c0920; --night-2: #1b1543;
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-main { background: var(--hl); color: #1c1640; box-shadow: 0 6px 24px -8px rgba(255, 214, 74, .8); }
.btn-main:hover { color: #1c1640; transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(255, 214, 74, .9); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: var(--night-ink); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font: 700 19px/1 var(--display); letter-spacing: -.01em; }
.brand small { font: 500 13px/1 var(--sans); color: var(--night-ink-2); letter-spacing: 0; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--night-ink-2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: #fff; }
.top .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 860px) { .top nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 420px) { .brand small { display: none; } }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(143, 118, 255, .35), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(255, 214, 74, .10), transparent 60%), var(--night);
  color: var(--night-ink); padding: 64px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: center; max-width: 1280px; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; color: #fff;
  text-wrap: balance; }
.hero .sub { margin-top: 20px; font-size: 1.15rem; line-height: 1.5; color: var(--night-ink-2); max-width: 30em; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero .soon { font-size: 14px; color: var(--night-ink-2); }
.chip { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 28px; padding: 10px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; color: var(--night-ink-2); text-decoration: none; }
.chip b { color: #fff; font-weight: 650; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.chip .was { color: var(--hl); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Demo: a mock Confluence window */
.demo-wrap { position: relative; }
.demo-label { position: absolute; top: -28px; right: 4px; font-size: 13px; color: var(--night-ink-2); }
.cf { position: relative; background: #fff; color: #172b4d; border-radius: 14px; box-shadow: var(--shadow-3);
  overflow: hidden; font: 13.5px/1.45 var(--sans); border: 1px solid rgba(255, 255, 255, .25); }
.cf-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-bottom: 1px solid #e6e8ec; }
.cf-dots { display: flex; gap: 6px; }
.cf-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe1e6; }
.cf-prod { font-weight: 650; color: #42526e; }
.cf-search { flex: 1; max-width: 300px; height: 26px; border: 1px solid #dfe1e6; border-radius: 6px; color: #8590a2;
  padding: 3px 10px; font-size: 12.5px; }
.cf-create { background: #1d5bd6; color: #fff; border-radius: 5px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.cf-body { display: grid; grid-template-columns: 184px 1fr; min-height: 500px; }
.cf-side { border-right: 1px solid #e6e8ec; padding: 12px 8px; background: #fafbfc; }
.cf-space { display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 4px 6px 10px; }
.cf-space i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #8f76ff, #5b3ae6); }
.tree { list-style: none; margin: 0; padding: 0; position: relative; }
.tree li { position: relative; }
.tree .node { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: #42526e; }
.tree .node::before { content: ""; width: 11px; height: 13px; border: 1.5px solid #8590a2; border-radius: 2px; flex: none; }
.tree .node.cur { background: #e9f0fe; color: #1d5bd6; font-weight: 600; }
.tree ul { list-style: none; margin: 0 0 0 13px; padding: 0 0 0 10px; border-left: 1.5px solid #dfe1e6; }
.tree .flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 30% { background: #ede8ff; } 100% { background: transparent; } }
.cf-page { padding: 22px 26px; position: relative; }
.cf-page h4 { font: 700 21px/1.2 var(--sans); margin: 0 0 4px; color: #172b4d; }
.cf-meta { color: #6b778c; font-size: 12px; margin-bottom: 14px; }
.cf-page p { margin: 0 0 10px; color: #172b4d; }
.cf-page .t { border-radius: 3px; transition: background .5s; }
.cf-page .t.new { background: var(--brand-soft); color: #3a1fb8; box-shadow: 0 0 0 2px var(--brand-soft); }
.lozenge { display: inline-block; font: 700 10.5px/1 var(--sans); padding: 3px 5px; border-radius: 3px;
  background: #dfd8fd; color: #403294; text-transform: uppercase; vertical-align: 1px; }
.mention { background: #e9f0fe; color: #1d5bd6; border-radius: 10px; padding: 0 6px; }

/* App dialog inside the demo */
.dlg { position: absolute; inset: 56px 14px 14px 198px; background: #fff; border-radius: 10px; box-shadow:
  0 0 0 1px rgba(9, 30, 66, .08), 0 18px 50px -10px rgba(9, 30, 66, .45); display: flex; flex-direction: column;
  overflow: hidden; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.dlg-head b { font: 650 16px/1.2 var(--sans); color: #172b4d; }
.dlg-head span { font-size: 11.5px; color: #6b778c; }
.tabs { display: flex; gap: 2px; padding: 8px 14px 0; border-bottom: 1px solid #e6e8ec; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 7px 8px; font: 500 13px/1 var(--sans);
  color: #42526e; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #1d5bd6; border-bottom-color: #1d5bd6; }
.pane { padding: 12px 18px 16px; overflow-y: auto; flex: 1; min-height: 0; }
.pane[hidden] { display: none; }
.field { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin-bottom: 8px; }
.field label { font-size: 12px; font-weight: 600; color: #42526e; }
.field .in { border: 1.5px solid #dfe1e6; border-radius: 5px; padding: 5px 8px; min-height: 30px; background: #fafbfc;
  font: inherit; color: #172b4d; width: 100%; }
.field select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b778c 50%),
  linear-gradient(135deg, #6b778c 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.note { font-size: 12px; color: #6b778c; margin: 6px 0 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.abtn { border: 0; border-radius: 4px; padding: 7px 12px; font: 600 12.5px/1 var(--sans); cursor: pointer;
  background: #f1f2f4; color: #172b4d; }
.abtn.pri { background: #1d5bd6; color: #fff; }
.abtn:disabled { opacity: .5; cursor: default; }
.summary { font-size: 12.5px; margin-bottom: 8px; color: #172b4d; }
.res { list-style: none; margin: 0; padding: 0; }
.res > li { margin-bottom: 8px; }
.res label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.res input { margin: 3px 0 0; accent-color: #1d5bd6; flex: none; }
.res .pg { font-weight: 600; }
.cnt { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 3px; background: #f1f2f4;
  font-size: 11px; text-align: center; font-weight: 600; color: #42526e; }
.res ul { list-style: none; margin: 3px 0 0 22px; padding: 0; }
.res ul li { font-size: 12.5px; color: #42526e; margin: 2px 0; }
mark.f { background: var(--hl-soft); color: #6b4e00; border-radius: 2px; padding: 0 2px; text-decoration: line-through;
  text-decoration-color: rgba(107, 78, 0, .45); }
@media (prefers-color-scheme: dark) { mark.f { background: #fff1b8; } }
ins.r { text-decoration: none; background: #ece7ff; color: #3a1fb8; border-radius: 2px; padding: 0 2px; font-weight: 600; }
.state { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; margin-left: 6px; white-space: nowrap; }
.state.ok { background: #dcfff1; color: #216e4e; }
.state.held { background: #fff7d6; color: #7f5f01; }
.state.back { background: #e9f0fe; color: #1d5bd6; }
.bar { height: 6px; border-radius: 3px; background: #ebecf0; overflow: hidden; margin: 6px 0 10px; }
.bar i { display: block; height: 100%; width: 0; background: #1d5bd6; transition: width .25s linear; }
.done { background: #f3f0ff; border-radius: 6px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 10px; }
.pane > div > .row + .summary { margin-top: 14px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 10px; }
.cmp h5 { margin: 0 0 4px; font: 600 11.5px/1.2 var(--sans); color: #6b778c; }
.cmp ol { margin: 0; padding-left: 18px; font-size: 12.5px; }
.cmp .mv { color: #3a1fb8; font-weight: 600; }
.sorttree .node { color: #172b4d; }
.date { color: #8590a2; font-size: 11px; margin-left: auto; padding-left: 8px; }
.find { display: grid; gap: 8px; margin: 0; padding: 0; }
.find li { list-style: none; border: 1px solid #e6e8ec; border-radius: 6px; padding: 8px 10px; font-size: 12.5px; }
.find .why { font-size: 11px; font-weight: 600; color: #974f0c; background: #fff4e5; padding: 1px 6px; border-radius: 3px; }
.find .fixrow { display: flex; gap: 6px; margin-top: 6px; }
.find .fixrow .in { flex: 1; border: 1.5px solid #dfe1e6; border-radius: 5px; padding: 4px 8px; font: inherit; min-width: 0; }
@media (max-width: 720px) {
  .cf-body { grid-template-columns: 1fr; min-height: 470px; }
  .cf-side, .cf-search, .cf-create { display: none; }
  .dlg { inset: 52px 10px 10px; }
  .cf-page { display: none; }
  .field { grid-template-columns: 1fr; gap: 3px; }
}

/* Sections with the tree rail */
.sec { padding: 96px 0; position: relative; }
.sec + .sec { padding-top: 24px; }
.sec .wrap { position: relative; }
.rail .wrap::before { content: ""; position: absolute; left: 24px; top: -40px; bottom: -40px; width: 2px;
  background: linear-gradient(var(--rule), var(--rule)); }
.rail .head { position: relative; padding-left: 40px; }
.rail .head::before { content: ""; position: absolute; left: 0; top: -8px; width: 26px; height: 28px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); border-bottom-left-radius: 10px; }
.rail .body { padding-left: 40px; }
.head p { margin-top: 10px; color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }
.body { margin-top: 36px; }
@media (max-width: 720px) {
  .sec { padding: 64px 0; }
  .rail .wrap::before { left: 16px; }
  .rail .head, .rail .body { padding-left: 24px; }
  .rail .head::before { width: 16px; }
  .wrap { padding: 0 16px; }
}

/* Surface used for the small visuals */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* "Leaves the rest alone" */
.anat { padding: 26px 28px 30px; font-size: 15.5px; line-height: 2.9; }
.anat .w { border-radius: 3px; transition: background .4s, color .4s; }
.anat.on .w { background: var(--brand-soft); color: var(--brand-2); font-weight: 600; }
.anat .keep { position: relative; display: inline-block; border-radius: 4px; padding: 0 6px; background: var(--bg-2);
  border: 1px dashed var(--rule); font-size: 14px; line-height: 1.6; }
.anat code { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.anat .keep::after { content: attr(data-k); position: absolute; left: 0; top: 100%; margin-top: 2px; font-size: 11px;
  line-height: 1.2; color: var(--ok); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.anat.on .keep::after { opacity: 1; }
.anat-ctl { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.legend li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.legend b { color: var(--ink); font-weight: 600; }
.dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.dot.ch { background: var(--brand-soft); color: var(--brand); }
.dot.kp { background: var(--ok-soft); color: var(--ok); }
.dot.op { background: var(--hl-soft); color: #7a5b00; }
@media (prefers-color-scheme: dark) { .dot.op { color: var(--hl); } }

/* History & undo */
.hist { padding: 8px; }
.hist li { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 14px 16px; border-radius: 10px; }
.hist li + li { border-top: 1px solid var(--rule-2); }
.hist ul { margin: 0; padding: 0; }
.hist .what { font-weight: 600; }
.hist .what s { color: var(--ink-3); text-decoration-thickness: 1px; }
.hist .meta { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.hist .btn { grid-row: 1 / span 2; grid-column: 2; min-height: 36px; padding: 0 14px; font-size: 13px; }
.hist li.undone { background: var(--bg-2); }
.hist li.undone .what { color: var(--ink-3); }

/* Links diagram */
.links { padding: 22px; }
.links svg { width: 100%; max-width: 540px; height: auto; display: block; margin: 0 auto; }
.links .lbl { font: 600 12.5px var(--sans); fill: var(--ink); }
.links .sub { font: 11px var(--sans); fill: var(--ink-3); }
.links .card { fill: var(--sheet); stroke: var(--rule); stroke-width: 1.5; }
.links .ghost { fill: var(--warn-soft); stroke: var(--warn); stroke-dasharray: 5 4; stroke-width: 1.5; }
.links .live { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.5; }
.links .ln { fill: none; stroke-width: 2; transition: opacity .6s var(--ease); }
.links .ln.bad { stroke: var(--warn); stroke-dasharray: 5 5; }
.links .ln.good { stroke: var(--brand); opacity: 0; }
.links.fixed .ln.bad { opacity: 0; }
.links.fixed .ln.good { opacity: 1; }
.links .tgt { transition: opacity .6s var(--ease); }
.links .tgt-new { opacity: .25; }
.links.fixed .tgt-old { opacity: .25; }
.links.fixed .tgt-new { opacity: 1; }

/* Copy space diagram */
.copy { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 26px; }
.copy .sp { font-weight: 650; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.copy .sp i { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); display: inline-block; }
.copy .sp.b i { background: var(--hl); }
.copy .tree .node { color: var(--ink-2); }
.copy .tree .node::before { border-color: var(--ink-3); }
.copy .tree ul { border-left-color: var(--rule); }
.copy .tree .lk { font-size: 11px; color: var(--brand); margin-left: 4px; }
.copy .arrow { color: var(--ink-3); font-size: 28px; }
.copy.go .b .tree li { animation: grow .5s var(--ease) both; }
@keyframes grow { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.notc { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.notc span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--rule); }
@media (max-width: 560px) { .copy { grid-template-columns: 1fr; } .copy .arrow { transform: rotate(90deg); justify-self: center; } }

/* Sort chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips button { border: 1px solid var(--rule); background: var(--sheet); color: var(--ink-2); border-radius: 999px;
  padding: 8px 14px; font: 500 14px/1 var(--sans); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sortbox { padding: 18px 22px; }
.sortbox .tree .node { font-size: 15px; padding: 6px 8px; color: var(--ink); }
.sortbox .tree .node::before { border-color: var(--ink-3); }
.sortbox .tree ul { border-left-color: var(--rule); }
.sortbox .date { color: var(--ink-3); font-size: 12.5px; }

/* Trust tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { padding: 22px; }
.tile svg { width: 34px; height: 34px; color: var(--brand); margin-bottom: 14px; }
.tile p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Screenshot gallery */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { padding: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--sheet);
  cursor: zoom-in; text-align: left; color: inherit; font: inherit; box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.shot img { aspect-ratio: 1840 / 900; object-fit: cover; width: 100%; }
.shot span { display: block; padding: 10px 14px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }
dialog.lb { padding: 0; border: 0; border-radius: 12px; max-width: min(1200px, 94vw); background: var(--sheet); }
dialog.lb::backdrop { background: rgba(12, 8, 40, .75); }
dialog.lb img { width: 100%; }
dialog.lb form { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 12px; }
dialog.lb p { font-size: 14px; color: var(--ink-2); }

/* Comparison column cards */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.col { padding: 24px 20px; display: flex; flex-direction: column; border-radius: 18px; background: var(--sheet);
  border: 1px solid var(--rule); }
.col.us { background: linear-gradient(160deg, #2a2160, #1c1640 60%); color: #f3f0ff; border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(91, 58, 230, .8), 0 0 0 1px rgba(143, 118, 255, .5); }
.col .nm { font: 650 16px/1.25 var(--display); min-height: 2.5em; }
.col .by { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.col.us .by { color: #c4bce8; }
.col .price { font: 700 2.6rem/1 var(--display); letter-spacing: -.03em; margin-top: 18px; }
.col .per { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.col.us .per { color: #c4bce8; }
.tag { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2); align-self: flex-start; }
.col.us .tag { background: var(--hl); color: #1c1640; }
.col ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; font-size: 14px; }
.col li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.col li .y { color: var(--ok); font-weight: 700; }
.col.us li .y { color: var(--hl); }
.col li .n { color: var(--ink-3); }
.col li.no { color: var(--ink-3); }
.fine { margin-top: 18px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.fine a { color: inherit; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } .col .nm { min-height: 0; } }

/* Pricing strip */
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--rule); border-radius: 16px;
  overflow: hidden; background: var(--sheet); }
.tiers > div { padding: 20px 18px; border-left: 1px solid var(--rule-2); }
.tiers > div:first-child { border-left: 0; background: var(--brand-soft); }
.tiers .u { font-size: 13.5px; color: var(--ink-3); }
.tiers .p { font: 700 1.6rem/1.1 var(--display); margin-top: 6px; letter-spacing: -.02em; }
.tiers .p small { font: 500 13px var(--sans); color: var(--ink-3); letter-spacing: 0; }
.billed { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr 1fr; } .tiers > div { border-top: 1px solid var(--rule-2); }
  .tiers > div:first-child { grid-column: 1 / -1; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600;
  font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 44em; }

/* Final CTA */
.end { background: var(--night); color: var(--night-ink); text-align: left; padding: 80px 0; }
.end .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.end h2 { color: #fff; max-width: 16em; }
.end p { color: var(--night-ink-2); margin-top: 10px; }

/* Guides list on landing */
.glist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.glist a { display: block; padding: 20px; text-decoration: none; color: var(--ink); }
.glist a:hover { border-color: var(--brand); }
.glist b { font: 650 1.05rem/1.3 var(--display); display: block; }
.glist span { display: block; margin-top: 8px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .glist { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot a { color: var(--ink-2); }
.foot .made { margin-left: auto; }
@media (max-width: 600px) { .foot .made { margin-left: 0; width: 100%; } }

/* Article pages */
.art-hero { background: var(--night); color: var(--night-ink); padding: 56px 0 48px; }
.art-hero .crumbs { font-size: 14px; color: var(--night-ink-2); }
.art-hero .crumbs a { color: var(--night-ink-2); }
.art-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); color: #fff; margin-top: 14px; max-width: 22em; text-wrap: balance; }
.art-hero .upd { margin-top: 14px; font-size: 14px; color: var(--night-ink-2); }
.art { max-width: 740px; padding: 48px 24px 72px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.art .answer { font-size: 1.15rem; line-height: 1.6; padding: 20px 22px; border-left: 3px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 12px 12px 0; }
.art h2 { font-size: 1.55rem; margin: 44px 0 12px; }
.art h3 { margin: 28px 0 8px; }
.art p, .art ul, .art ol { margin: 0 0 16px; }
.art li { margin-bottom: 6px; }
.art blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--hl); color: var(--ink-2); }
.art blockquote cite { display: block; font-size: 14px; font-style: normal; color: var(--ink-3); margin-top: 6px; }
.art table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; display: block; overflow-x: auto; }
.art th, .art td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.art code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.art .box { margin: 32px 0; padding: 22px 24px; border-radius: 16px; background: var(--night); color: var(--night-ink); }
.art .box p { color: var(--night-ink-2); }
.art .box b { color: #fff; }
.art .box .btn { margin-top: 8px; }
.art .more { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.art .src { font-size: 14px; color: var(--ink-3); }
@media (max-width: 600px) { .art { padding: 32px 16px 56px; font-size: 16px; } }

/* Guides index */
.gi { max-width: 820px; padding: 40px 24px 80px; margin: 0 auto; }
.gi a.panel { display: block; padding: 22px 24px; text-decoration: none; color: var(--ink); margin-bottom: 14px; }
.gi a.panel b { font: 650 1.2rem/1.3 var(--display); display: block; }
.gi a.panel span { display: block; color: var(--ink-2); margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.art-hero .wrap { max-width: 740px; }
@media (max-width: 520px) { .tiers .p small { display: block; margin-top: 4px; } }
