/* Talion: fonts, tokens, header and footer, then the 8 site section types (templates/sections/).
   Layout and interactions follow restless.ai section by section; the paintings and the serif line are the
   contralabs touch. */

/* ---------------------------------------------------------------- Fonts (all OFL, files in /fonts) */
@font-face { font-family: 'Geist'; src: url(/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
/* One weight in the file; the range stops the browser from faking bold on a 500 title. */
@font-face { font-family: 'Geist Pixel'; src: url(/fonts/geist-pixel-square.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif-italic.woff2) format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

/* ---------------------------------------------------------------- Tokens */
:root {
  --ink: #141414;
  --ink-2: #55554f;
  --ink-3: #8b8b84;
  --paper: #f8f8f6;
  --white: #fff;
  --line: #ececE6;
  /* Palette C, Lapis: four card colours, the band, the brand colour on ink, and a green kept for positive states
     (confirmed, given, on plan) so they always read as good. Gold doubles as the warning colour, coral as the bad one. */
  --lapis: #b4c3ff;
  --gold: #f4cf66;
  --coral: #ffa58c;
  --mint: #ade6cd;
  --band: var(--lapis);
  --accent: var(--lapis);
  --ok: #c4f27a;
  --maxw: 1156px;
  --pad: 20px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Geist Pixel', 'Geist Mono', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --fs-hero: clamp(42px, 5.6vw, 80px);
  --fs-h2: clamp(34px, 3.06vw, 44px);
  --gap: clamp(112px, 14vw, 200px);
  --c: var(--band);
}
@media (min-width: 768px) { :root { --pad: 32px; } }

/* A section's card colour (the choice field "Card colour"). */
.c-lapis { --c: var(--lapis); }
.c-gold { --c: var(--gold); }
.c-coral { --c: var(--coral); }
.c-mint { --c: var(--mint); }

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, figure, pre { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--pad)); margin-inline: auto; }
.px { font-family: var(--pixel); }
mark { background: var(--c); color: inherit; padding: 0 .12em; }
.is-flash { animation: flash .7s ease-out; }
@keyframes flash { from { color: var(--accent); } }
/* On white (the dashboard) a lime text flash would vanish: flash the background instead. */
.dash .is-flash { animation-name: flashbg; }
@keyframes flashbg { from { background-color: var(--accent); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Small solid squares on corners: the restless signature. */
.btn--ink::after, .prompt::after, .hero .hl__box::after, .chip::after, .deco::after {
  content: ''; position: absolute; width: 6px; height: 6px; background: var(--ink);
}

/* ---------------------------------------------------------------- Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--ink); font: 450 13px/20px var(--sans); white-space: nowrap; transition: background .15s, color .15s; }
.btn svg { width: 12px; height: 12px; }
.btn--line:hover { background: var(--ink); color: var(--accent); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::after { right: -7px; bottom: -7px; }
.btn--ink:hover { color: var(--accent); }
.btn--c { background: var(--c); }
.btn--c:hover { background: var(--ink); color: var(--c); }

/* Copy buttons say so for a moment (js/main.js adds .is-copied). */
.is-copied { position: relative; }
.is-copied > svg { visibility: hidden; }
.is-copied::after { content: 'Copied'; position: absolute; right: 12px; font: 12px/1 var(--mono); color: var(--accent); }

/* Dropdowns on the prompt and install bars: pick what the bar shows and copies (js/main.js). */
.drop { position: relative; flex: none; display: flex; border-right: 1px solid rgba(250, 250, 247, .18); }
.drop__btn { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.drop__btn:hover { color: var(--accent); }
.drop__chev { width: 12px !important; height: 12px !important; opacity: .7; transition: transform .2s; }
.drop__btn[aria-expanded="true"] .drop__chev { transform: rotate(180deg); }
.drop__menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: none; min-width: 100%; width: max-content; padding: 6px; border: 1px solid rgba(250, 250, 247, .16); background: var(--ink); }
.drop.is-open .drop__menu { display: block; animation: pop .15s ease-out; }
.drop--up .drop__menu { top: auto; bottom: calc(100% + 6px); }
.drop__menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; color: var(--paper); font-size: 13px; text-align: left; }
.drop__menu button::before { content: ''; width: 6px; height: 6px; background: transparent; }
.drop__menu button:hover { background: rgba(250, 250, 247, .08); }
.drop__menu [aria-checked="true"] { color: var(--accent); }
.drop__menu [aria-checked="true"]::before { background: currentColor; }
.pick { display: block; }
[data-pickset]:not(.is-live) .pick + .pick, .is-live .pick:not(.is-on) { display: none; }
[data-mode="1"] .cli__dollar { display: none; }

/* ---------------------------------------------------------------- Header (templates/page.html) */
.top { background: var(--band); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font: 500 22px/1 var(--sans); letter-spacing: -.02em; }
.brand__mark { width: 19px; height: 19px; fill: var(--ink); }
.nav { display: flex; gap: 28px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hdr__cta { display: flex; gap: 12px; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 34px; border: 1px solid var(--ink); }
.burger span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mnav { display: grid; padding: 8px 0 24px; }
.mnav a { padding: 14px 0; border-bottom: 1px solid rgba(20, 20, 20, .15); font-size: 18px; }
.mnav .btn { margin-top: 20px; height: 48px; justify-content: center; font-size: 15px; border-bottom: 1px solid var(--ink); }
@media (max-width: 999px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: flex; }
  .hdr { height: 68px; }
}
@media (min-width: 1000px) { .mnav { display: none !important; } }

/* ---------------------------------------------------------------- Titles */
/* Line 2 of every title sits in an ink box in the section's colour. */
.hl { display: inline-flex; align-items: stretch; }
.hl__box { position: relative; background: var(--ink); color: var(--c); padding: 0 .16em .04em; }
.h2 { font: 500 var(--fs-h2)/1.16 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.h2__a { display: block; }
.h2 .hl { margin: .06em 0 0 .32em; }
.h2 .hl::after { content: ''; flex: none; width: .2em; margin-left: .17em; background: var(--ink); }
.h2--sm { --fs-h2: clamp(30px, 2.6vw, 36px); }
.lead { margin-top: 24px; max-width: 440px; font-size: 17px; line-height: 24px; }
.head2 { display: grid; gap: 24px; align-items: end; }
.head2 .lead { margin-top: 0; }
@media (min-width: 900px) { .head2 { grid-template-columns: minmax(0, 1fr) 380px; } }

/* ---------------------------------------------------------------- Hero */
.hero { background: var(--band); padding-top: clamp(32px, 4vw, 56px); overflow-x: clip; }
.hero__grid { display: grid; gap: 28px; align-items: start; }
.hero__grid > * { min-width: 0; }
.hero__title { display: grid; gap: .04em; font: 500 var(--fs-hero)/1.06 var(--sans); letter-spacing: -.02em; }
.hero__line { display: flex; align-items: center; gap: .3em; }
.hero .hl__box { padding: 0 .15em .02em; }
.hero .hl__box::after { right: -8px; bottom: -8px; width: 8px; height: 8px; }
.rule { position: relative; flex: 1 1 0; min-width: 24px; height: 1px; background: var(--ink); }
.rule::after { content: ''; position: absolute; top: -5px; right: 16%; width: 40px; height: 10px; background: var(--ink); }
.rule--short { flex: 0 0 clamp(16px, 7vw, 96px); min-width: 0; }
.rule--short::after { right: auto; left: 30%; width: 24px; }
.hero__side { max-width: 420px; }
.hero__intro { font-size: 17px; line-height: 24px; }
.prompt { position: relative; display: flex; height: 48px; margin-top: 28px; max-width: 380px; background: var(--ink); color: var(--paper); }
.prompt::after { top: -7px; right: -7px; }
.prompt svg, .cli svg { flex: none; width: 16px; height: 16px; }
.prompt__copy { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 16px; text-align: left; }
.prompt__copy:hover { color: var(--accent); }
.prompt__copy .pick { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__alt { margin-top: 10px; overflow-wrap: anywhere; font-size: 13px; color: rgba(20, 20, 20, .6); }
.cmd { font: 500 13px var(--mono); color: var(--ink); text-align: left; }
.cmd:hover { text-decoration: underline; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
  .hero__side { padding-top: 6px; }
}

/* The sample board: three lanes of listings drifting left, one lit up with a message; hover lights any card. */
.board { --row: 100px; position: relative; height: calc(var(--row) * 4); margin-top: 36px; border: 1px solid var(--ink); }
.board::before { /* dotted rules between the lanes, out to the edges of the window */
  content: ''; position: absolute; inset: 0 auto 0 calc(50% - 50vw); width: 100vw; pointer-events: none;
  background: radial-gradient(circle, rgba(20, 20, 20, .45) .9px, transparent 1.3px) 0 0 / 6px var(--row);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.board__lanes { position: absolute; inset: 0; overflow: hidden; }
.board__track { display: grid; grid-template-rows: repeat(3, 40px); grid-auto-flow: column; grid-auto-columns: max-content; gap: calc(var(--row) - 40px) 88px; width: max-content; padding: calc(var(--row) - 20px) 88px 0 0; }
/* The lanes never stop: hovering lights the card under the pointer while it drifts past. */
.board.is-live .board__track { animation: drift 22s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
.bcard { position: relative; display: flex; align-items: center; gap: 10px; min-width: 200px; height: 40px; padding: 0 10px; border: 1px solid var(--ink); background: var(--band); font: 500 13px/20px var(--mono); white-space: nowrap; transition: background .2s, color .2s; }
.bcard::before { content: ''; position: absolute; right: calc(100% + 1px); top: 50%; width: 88px; border-top: 1px solid var(--ink); }
.bcard:nth-child(3n + 2) { translate: 44px 0; }
.bcard:nth-child(3n) { translate: -28px 0; }
.bcard__size, .bcard__price { padding: 1px 6px; border: 1px solid var(--ink); font-size: 12px; line-height: 16px; }
.bcard__repo:not(:empty)::after { content: '·'; margin-left: 10px; }
.bcard__size:empty, .bcard__repo:empty, .bcard__price:empty { display: none; }
.bcard.is-on { z-index: 2; background: var(--ink); color: var(--paper); }
.bcard.is-on .bcard__size, .bcard.is-on .bcard__price { border-color: var(--accent); color: var(--accent); }
.bcard.is-on::after { /* pixel debris around the lit card */
  content: ''; position: absolute; left: 30%; top: calc(100% + 12px); width: 5px; height: 5px; background: var(--ink);
  box-shadow: 44px 9px var(--ink), 118px -3px var(--ink), -34px 16px var(--ink), 76px 26px var(--ink), 160px 32px var(--ink), -60px -70px var(--ink), 210px -58px var(--ink);
}
.toast { position: absolute; left: -32px; bottom: calc(100% + 14px); width: 310px; padding: 10px 14px 10px 42px; background: var(--ink); color: var(--paper); font: 400 13px/20px var(--sans); white-space: normal; animation: pop .25s ease-out; }
.toast::before { content: ''; position: absolute; left: 14px; top: 13px; width: 14px; height: 14px; border: 2px dotted var(--accent); }
.toast b { display: block; font-weight: 500; }
.toast span { color: rgba(250, 250, 247, .55); }
.board__tag { position: absolute; z-index: 3; top: -16px; right: 12px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--ink); color: var(--accent); font: 450 12px/16px var(--sans); }
.board__tag svg { width: 16px; height: 16px; }
.board__events { display: none; }
@media (max-width: 699px) { .board { --row: 80px; } }

/* ---------------------------------------------------------------- Four points (ends the band) */
.points { position: relative; background: var(--band); padding: 64px 0 72px; }
/* The band breaks into pixels onto the page, like the paintings: img/dissolve.svg masks a strip of band colour, solid at
   the top and thinning out downward. The footer has the same strip turned over, rising into the page. */
.points::after, .ftr::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; height: 48px; background: var(--band); pointer-events: none; -webkit-mask: url(/img/dissolve.svg) 0 0 / 480px 48px repeat-x; mask: url(/img/dissolve.svg) 0 0 / 480px 48px repeat-x; }
.points::after { top: 100%; }
.points__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px 40px; }
.point p { max-width: 270px; margin-top: 22px; }
.point b { font-weight: 500; }
.ico { display: block; width: 24px; height: 22px; background: var(--ink); -webkit-mask: var(--i) left center / contain no-repeat; mask: var(--i) left center / contain no-repeat; }
.ico--give { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 11' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h2v1h-2zM4 1h4v1h-4zM3 2h6v1h-6zM2 3h2v1h-2zM5 3h2v1h-2zM8 3h2v1h-2zM5 4h2v1h-2zM5 5h2v1h-2zM5 6h2v1h-2zM0 8h1v1h-1zM11 8h1v1h-1zM0 9h1v1h-1zM11 9h1v1h-1zM0 10h12v1h-12z'/%3E%3C/svg%3E"); }
.ico--plan { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v1h-2zM4 0h7v1h-7zM0 1h2v1h-2zM0 3h2v1h-2zM4 3h7v1h-7zM0 4h2v1h-2zM0 6h2v1h-2zM4 6h5v1h-5zM0 7h2v1h-2z'/%3E%3C/svg%3E"); }
.ico--merge { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1h-2zM1 1h2v1h-2zM6 1h2v1h-2zM1 2h2v1h-2zM6 2h2v1h-2zM1 3h2v1h-2zM5 3h2v1h-2zM1 4h2v1h-2zM4 4h2v1h-2zM1 5h4v1h-4zM1 6h3v1h-3zM1 7h2v1h-2zM1 8h2v1h-2z'/%3E%3C/svg%3E"); }
.ico--ratio { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h7v1H0zM8 0h2v1H8zM0 1h7v1H0zM2 2h3v1H2zM2 3h3v1H2zM2 4h3v1H2zM6 4h3v1H6zM2 5h3v1H2zM6 5h3v1H6zM2 6h3v1H2zM6 6h3v1H6zM6 7h3v1H6zM6 8h3v1H6zM4 9h7v1H4zM1 10h2v1H1zM4 10h7v1H4z'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- Feature sections */
.feat { background: var(--paper); padding-top: var(--gap); }
.feat__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(28px, 3vw, 40px); }
.chip { position: relative; display: inline-block; padding: 2px 6px; background: var(--ink); color: var(--c); font: 500 12px/16px var(--mono); text-transform: uppercase; }
.chip::after { right: -6px; bottom: -6px; width: 5px; height: 5px; }
.deco { position: relative; width: 40px; height: 20px; margin-top: 10px; background: var(--ink); }
.deco::after { right: -6px; top: -6px; width: 5px; height: 5px; }
.split { display: grid; gap: 48px; align-items: start; }
/* 5/7 like restless: the text never needs more than 440px, the card gets room for a painting and a panel. */
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
  .split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 899px) { .split--rev > .xcard { order: 2; } }

/* Cards: the section's colour between two ink bars, a pattern, a painting breaking into pixels, an ink panel. */
.xcard { position: relative; border: solid var(--ink); border-width: 16px 1px; background: var(--c); }
.xcard__in { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 40px) clamp(16px, 3.5vw, 32px); }
.xcard--rings .xcard__in { background: repeating-radial-gradient(circle at 70% 45%, transparent 0 33px, rgba(20, 20, 20, .85) 33px 34px); }
.xcard--grid .xcard__in { background: url(/img/grid.svg) center / 100% 100% no-repeat; }
.xcard--arcs .xcard__in { background: repeating-radial-gradient(circle at 100% 0, transparent 0 150px, rgba(20, 20, 20, .5) 150px 151px); }
.xcard--rays .xcard__in { background: repeating-radial-gradient(circle at 50% 135%, transparent 0 92px, var(--ink) 92px 93px); }
.xcard--slant .xcard__in { background: repeating-linear-gradient(118deg, transparent 0 190px, var(--ink) 190px 191px) left / 48% 100% no-repeat; }
@media (max-width: 899px) { .xcard--slant .xcard__in { background: none; } }
/* A painting fills one side of the card at full height; the panel sits on the other side, over its pixels. */
.xcard--art .xcard__in { display: flex; align-items: center; min-height: 520px; }
.art-r .xcard__in { justify-content: flex-start; }
.art-l .xcard__in { justify-content: flex-end; }
.xcard__pic { position: absolute; top: 0; height: 100%; }
.xcard__pic img { width: auto; height: 100%; max-width: none; }
.art-r .xcard__pic { right: 0; }
.art-l .xcard__pic { left: 0; }
.xcard--art .panel { z-index: 1; width: min(310px, 100%); }
/* Each painting keeps its subject clear: Justice's head above the calculator, Euclid's slate below the plan. */
.xcard--rings .xcard__in { align-items: flex-end; }
.xcard--grid .xcard__in { align-items: flex-start; }
.xcard__credit { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 1px 6px; background: var(--ink); color: rgba(250, 250, 247, .8); font: 11px/16px var(--mono); }
@media (max-width: 599px) {
  .xcard--art .xcard__in, .xcard--dash .xcard__in { display: block; min-height: 0; padding-top: 0; }
  .xcard__pic { position: relative; display: flex; height: 300px; margin-inline: calc(-1 * clamp(16px, 3.5vw, 32px)); }
  .art-r .xcard__pic { justify-content: flex-end; }
  .xcard--art .panel, .xcard--dash .dash { position: relative; width: 100%; margin-top: -56px; }
  .xcard__credit { top: 270px; bottom: auto; }
}

.panel { position: relative; background: var(--ink); color: var(--paper); padding: 20px 22px; }
.panel .muted { color: rgba(250, 250, 247, .5); }
.panel__row { display: flex; justify-content: space-between; gap: 12px; }
.panel__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--c); font: 12.5px/20px var(--mono); }
.tag { padding: 0 6px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.tag--c { background: var(--c); color: var(--ink); }
.tag--line { margin-left: auto; border: 1px solid rgba(250, 250, 247, .35); }

/* Ratio: the calculator on the painting's pixels, the Latin caption under the card. */
.xcard--rings { margin-bottom: 48px; }
.ratio-n { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.ratio-n__v { font: 500 32px/36px var(--sans); letter-spacing: -.02em; }
.ratio-n__s { color: var(--ok); }
.ratio-n__s.is-low { color: var(--gold); }
.meter { display: grid; gap: 4px; margin-top: 12px; }
.meter i { display: block; width: 100%; height: 6px; background: var(--ok); transition: width .4s; }
.meter i + i { width: 62%; background: rgba(250, 250, 247, .45); }
.ledger li { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ledger span { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.ledger__sum { padding-top: 10px; border-top: 1px dashed rgba(250, 250, 247, .2); font-weight: 500; }
.ledger__sum span { color: var(--ok); }
.sw { flex: none; width: 8px; height: 8px; }
.sw--c { background: var(--ok); }
.sw--line { border: 1px solid var(--ok); }
.sw--dash { background: rgba(250, 250, 247, .55); }
.sw--dim { background: rgba(250, 250, 247, .22); }
.tiers { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.tiers .muted { margin-right: auto; }
.tiers b { padding: 0 6px; border: 1px solid rgba(250, 250, 247, .25); color: rgba(250, 250, 247, .35); font: 500 12px/18px var(--mono); transition: background .2s, color .2s, border-color .2s; }
.tiers b.is-on { border-color: var(--ok); background: var(--ok); color: var(--ink); }
.calc__btns { display: grid; grid-template-columns: 56px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; margin-top: 16px; font-size: 12px; color: rgba(250, 250, 247, .55); }
.calc__btns button { padding: 4px 0; border: 1px solid rgba(250, 250, 247, .28); color: var(--paper); font: 500 12px/16px var(--mono); transition: background .15s, color .15s; }
.calc__btns button:hover:not(:disabled) { border-color: var(--ok); background: var(--ok); color: var(--ink); }
.calc__btns button:disabled { opacity: .3; cursor: not-allowed; }
.calc__reset { margin-top: 12px; font-size: 12px; color: rgba(250, 250, 247, .55); text-decoration: underline; text-underline-offset: 3px; }
.calc__reset:hover { color: var(--accent); }
.caption { position: absolute; top: calc(100% + 30px); left: 0; right: 0; font: italic 400 18px/1.3 var(--serif); color: var(--ink-2); }
.tools__label { margin-top: 48px; color: var(--ink-2); }
.tools { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; }
.tools li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tools li::before { content: ''; width: 10px; height: 10px; background: var(--ink); box-shadow: 3px 3px 0 var(--c); }

/* Plan first: one panel per step, swapped by the open step (the first shows when scripts are off). */
.panel--plan { width: min(330px, 100%); padding: 0; font: 400 12.5px/20px var(--mono); }
.pstep + .pstep { display: none; }
.panel--plan.is-live .pstep { display: none; }
.panel--plan.is-live .pstep.is-on { display: block; animation: pop .3s ease-out; }
.pbody { display: grid; gap: 6px; padding: 16px; }
.pbody .c { color: var(--paper); }
.pbody .ok { color: rgba(250, 250, 247, .85); }
.pbody .ok::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--ok); }
.pbody .dim { color: rgba(250, 250, 247, .55); }
.due { margin-top: 8px; color: rgba(250, 250, 247, .6); }
.due b { color: var(--c); font-weight: 500; }
.diff { display: flex; gap: 10px; }
.diff span:first-child { flex: 1; }
.add { color: var(--ok); }
.del { color: var(--coral); }
.vest { height: 6px; margin: 4px 0; background: rgba(250, 250, 247, .12); }
.vest i { display: block; width: 4%; height: 100%; background: var(--ok); }
.plan { display: grid; gap: 14px; padding: 16px; }
.plan li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 10px; align-items: start; }
.plan__k { color: var(--c); }
.plan__s { grid-column: 2; font-size: 12px; white-space: nowrap; }
.plan__s::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: currentColor; }
.is-ok .plan__s { color: var(--ok); }
.is-no .plan__s { color: var(--coral); }
.plan__q { grid-column: 2; margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--coral); color: rgba(250, 250, 247, .6); quotes: none; }
.plan__files { padding: 12px 16px; border-top: 1px dashed rgba(250, 250, 247, .15); color: rgba(250, 250, 247, .6); }
.plan__files span { margin-right: 8px; color: var(--c); }
.steps { margin-top: 44px; }
.step { padding: 15px 0; border-top: 1px solid rgba(20, 20, 20, .12); }
.step:first-child { border-top: 0; padding-top: 0; }
.step summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; line-height: 22px; list-style: none; cursor: pointer; }
.step summary::-webkit-details-marker { display: none; }
.step summary b { font-weight: 500; }
.step summary:hover b, .step[open] summary b { background: var(--c); }
.step summary span { color: var(--ink-3); font-size: 14px; }
.step p { max-width: 440px; margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.step .btn { margin-top: 16px; height: 30px; }
.step a[href=""] { display: none; }

/* Credit: tier rows reprice the ledger ring, which lights one step at a time (js/main.js). */
.split__text > .feat__top { margin-bottom: 32px; }
.rows { display: grid; gap: 6px; margin-top: 36px; }
.rows button { display: flex; align-items: flex-start; gap: 14px; width: calc(100% + 20px); margin: 0 -10px; padding: 8px 10px; text-align: left; }
.rows__k { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ink); font: 500 13px/1 var(--mono); transition: background .2s, color .2s; }
.rows__t b { display: block; justify-self: start; font-weight: 500; }
.rows__t span { font-size: 13px; color: var(--ink-2); }
.rows li.is-on .rows__k { background: var(--ink); color: var(--c); }
.rows li.is-on b { display: inline; background: var(--c); }
.rows li.is-on .rows__t span { display: block; }
.flow { position: relative; display: grid; grid-template: repeat(4, 1fr) / repeat(4, 1fr); gap: clamp(14px, 2.6vw, 30px); aspect-ratio: 1; }
.flow__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__wire line { stroke: var(--ink); stroke-width: 1; }
.flow__core { position: relative; grid-area: 2 / 2 / 4 / 4; display: grid; place-content: center; justify-items: center; gap: 12px; margin: 16%; background: var(--ink); }
.flow__core svg { width: clamp(36px, 4.6vw, 56px); fill: var(--c); }
.flow__core span { font: 12px/1 var(--mono); color: rgba(250, 250, 247, .6); }
.node { position: relative; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--c); transition: background .3s, color .3s; }
.node span { position: absolute; top: -9px; left: 50%; translate: -50% 0; padding: 0 5px; border: 1px solid var(--ink); background: var(--c); font: 400 11px/16px var(--sans); white-space: nowrap; transition: inherit; }
.node b { font: 400 clamp(13px, 1.5vw, 19px)/1 var(--pixel); }
.node.is-on, .node.is-on span { background: var(--ink); color: var(--c); }
.node:nth-child(3) { grid-area: 1 / 1; }
.node:nth-child(4) { grid-area: 1 / 2; }
.node:nth-child(5) { grid-area: 1 / 3; }
.node:nth-child(6) { grid-area: 1 / 4; }
.node:nth-child(7) { grid-area: 2 / 4; }
.node:nth-child(8) { grid-area: 3 / 4; }
.node:nth-child(9) { grid-area: 4 / 4; }
.node:nth-child(10) { grid-area: 4 / 3; }
.node:nth-child(11) { grid-area: 4 / 2; }
.node:nth-child(12) { grid-area: 4 / 1; }
.node:nth-child(13) { grid-area: 3 / 1; }
.node:nth-child(14) { grid-area: 2 / 1; }

/* For owners: the plan page in short on Perugino's keys; each list row lights its part (js/main.js). */
.panel--review { width: min(320px, 100%); padding: 0; font-size: 13px; }
.rpart { padding: 12px 16px; border-top: 1px dashed rgba(250, 250, 247, .14); transition: opacity .25s, background .25s; }
.panel__bar + .rpart { border-top: 0; }
.rpart__h { margin-bottom: 4px; color: rgba(250, 250, 247, .5); font: 11px/16px var(--mono); text-transform: uppercase; }
.rline { display: grid; gap: 6px; margin-top: 8px; }
.rbtns { display: flex; gap: 6px; }
.rbtns button { padding: 2px 8px; border: 1px solid rgba(250, 250, 247, .28); color: var(--paper); font-size: 12px; }
.rbtns button:first-child[aria-pressed="true"] { border-color: var(--ok); background: var(--ok); color: var(--ink); }
.rbtns button:last-child[aria-pressed="true"] { border-color: var(--coral); background: var(--coral); color: var(--ink); }
.rfile { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font: 12px/18px var(--mono); }
.rfile em { flex: none; padding: 0 6px; color: var(--ink); font-style: normal; font-size: 11px; }
.f-ok { background: var(--ok); }
.f-warn { background: var(--gold); }
.f-bad { background: var(--coral); }
.f-plain { background: rgba(250, 250, 247, .85); }
.panel--review.has-hot .rpart:not(.is-hot) { opacity: .28; }
.rpart.is-hot { background: rgba(250, 250, 247, .06); }
.hotlist { margin-top: 36px; }
.hotlist button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 12px 0; border-top: 1px solid rgba(20, 20, 20, .1); text-align: left; }
.hotlist li:first-child button { border-top: 0; }
.hotlist b { justify-self: start; padding: 0 2px; margin-left: -2px; font-weight: 500; transition: background .2s; }
.hotlist span { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.hotlist svg { grid-area: 1 / 2 / 3 / 3; align-self: center; width: 14px; opacity: .4; transition: opacity .2s, transform .2s; }
.hotlist .is-hot b { background: var(--c); }
.hotlist .is-hot svg { opacity: 1; transform: translateX(3px); }

/* Dashboard: Massys' moneylender, the app's dashboard over him, four tabs under the card (js/main.js). */
.xcard--wide { margin-top: 48px; }
.xcard--dash .xcard__in { display: flex; justify-content: flex-end; align-items: flex-end; min-height: 600px; padding-bottom: 0; }
.xcard--dash .xcard__pic { left: 0; }
.browser { position: relative; border: 1px solid var(--ink); border-bottom: 0; background: var(--white); }
.browser::before, .browser::after { content: ''; position: absolute; top: -5px; width: 9px; height: 9px; background: var(--ink); }
.browser::before { left: -5px; }
.browser::after { right: -5px; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e0e0da; }
.browser__bar span { margin: 0 auto; padding: 2px 14px; background: #f1f1ec; color: var(--ink-2); font: 12px/18px var(--mono); }
.dash { z-index: 1; width: min(760px, 70%); }
.dash__top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dash__brand { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dash__brand svg { width: 15px; fill: var(--ink); }
.toggle { display: flex; margin: 0 auto; padding: 3px; background: #f1f1ec; }
.toggle button { padding: 4px 12px; color: var(--ink-2); font-size: 12px; }
.toggle [aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dash__user { color: var(--ink-3); font: 12px var(--mono); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tile { padding: 14px 18px; border-right: 1px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile span { display: block; color: var(--ink-3); font-size: 12px; }
.tile b { display: block; margin-top: 4px; font: 500 22px/28px var(--sans); letter-spacing: -.01em; }
.tile em { color: #3c7a10; font-style: normal; font-size: 12px; }
.tile em.is-low { color: #a35d00; }
.tile__bar { display: block; height: 4px; margin-top: 8px; background: var(--ok); }
.tile__bar--r { width: 62%; background: var(--ink); }
.dview { display: grid; gap: 14px; padding: 16px 18px 22px; }
.dview + .dview, .dash.is-own .dview { display: none; }
.dash.is-own .dview + .dview { display: grid; animation: pop .25s ease-out; }
.dash.is-give .dview:first-of-type { animation: pop .25s ease-out; }
.dbox { border: 1px solid var(--line); }
.dbox__h { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.dbox__h span { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.drow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #f3f3ee; font-size: 13px; }
.dbox__h + .drow { border-top: 0; }
.drow .tag { border: 1px solid var(--ink); font: 11px/16px var(--mono); }
.drow__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px/18px var(--mono); }
.st { padding: 1px 6px; background: #f1f1ec; font-style: normal; font-size: 11px; white-space: nowrap; }
.st--ok { background: var(--ok); }
.st--warn { background: var(--gold); }
.st--done { background: var(--ink); color: var(--ok); }
.cd { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.cd b { color: var(--ink); font: 500 12px var(--mono); }
.dbtn { padding: 3px 10px; border: 1px solid var(--ink); background: var(--white); font-size: 12px; }
.dbtn:hover { background: var(--ink); color: var(--accent); }
.dbtn.is-done { background: var(--ok); }
.dzone { transition: opacity .25s, box-shadow .25s; }
.dash.has-zone .dzone:not(.is-zone) { opacity: .35; }
.dzone.is-zone { box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 599px) { .xcard--dash .xcard__in { display: block; min-height: 0; padding-top: 0; } }
@media (max-width: 699px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .drow { flex-wrap: wrap; }
  .drow__t { flex-basis: 60%; }
  .dash__user { display: none; }
}
.tabs { display: grid; gap: 0 28px; margin-top: 32px; }
@media (min-width: 900px) { .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tab { position: relative; padding: 18px 0; border-top: 1px solid rgba(20, 20, 20, .15); }
.tab::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--ink); }
.tab.is-on::before { width: 100%; transition: width 6s linear; }
.tab.is-held::before { transition: none; }
.tab__btn { font-size: 15px; line-height: 22px; text-align: left; }
.tab__btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.tab__text { display: none; margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.tab.is-on .tab__text, .tabs:not(.is-live) .tab:first-child .tab__text { display: block; }
.tabs:not(.is-live) .tab:first-child::before { width: 100%; }

/* Get started: the terminal over the card's left side. */
.start__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.start__grid > * { min-width: 0; }
.term { position: relative; z-index: 2; background: var(--ink); color: var(--paper); font: 400 13px/20px var(--mono); }
.term__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 12px; border-bottom: 1px solid rgba(250, 250, 247, .08); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin: 0 auto; padding: 1px 10px; background: rgba(250, 250, 247, .08); font-size: 12px; }
.term__replay { display: grid; place-items: center; width: 26px; height: 26px; color: rgba(250, 250, 247, .6); }
.term__replay:hover { color: var(--accent); }
.term__replay svg { width: 14px; height: 14px; }
.term__body { padding: 24px clamp(16px, 3vw, 28px) 28px; }
.term__top { display: flex; align-items: center; gap: 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(250, 250, 247, .1); }
.term__art { flex: none; width: clamp(64px, 7.5vw, 92px); fill: var(--accent); }
.term__steps { padding-left: 24px; border-left: 1px solid rgba(250, 250, 247, .2); }
.term__steps li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border: 1px solid currentColor; border-radius: 50%; }
.term__steps span { color: rgba(250, 250, 247, .45); }
.term__log { margin-top: 18px; font: inherit; white-space: pre-wrap; color: rgba(250, 250, 247, .7); }
.term__log .c { color: var(--paper); }
.term__log .g { color: var(--ok); }
.term__log .w { color: var(--gold); }
.term__log .ln.is-off { visibility: hidden; }
.start__text { max-width: 420px; padding: 8px 0; }
.start__text .chip { margin-bottom: 22px; }
.note { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; }
.note svg { flex: none; width: 14px; height: 14px; }
.cli { position: relative; display: inline-flex; max-width: 100%; height: 40px; margin-top: 28px; background: var(--ink); color: var(--paper); }
.cli .drop__btn { padding: 0 12px; }
.cli__cmd { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; font: 13px var(--mono); }
.cli__cmd .pick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); }
.cli__dollar { color: rgba(250, 250, 247, .45); }
.cli__cmd:hover .pick { text-decoration: underline; }
@media (min-width: 900px) {
  .start__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .term { grid-area: 1 / 1 / 2 / 7; align-self: start; min-height: 440px; }
  .start__card { grid-area: 1 / 4 / 2 / 13; margin-top: 96px; }
  .start__in { display: flex; justify-content: flex-end; min-height: 400px; }
  .start__text { width: calc(55% - 20px); }
}
@media (max-width: 899px) { .start__card { margin-top: -1px; } }

/* ---------------------------------------------------------------- Footer (templates/page.html) */
.ftr { position: relative; margin-top: var(--gap); padding: 72px 0 40px; background: var(--band); }
.ftr::before { bottom: calc(100% - 1px); transform: scaleY(-1); }
.ftr__top { display: grid; gap: 48px; }
@media (min-width: 900px) { .ftr__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.ftr__tag { font: 500 clamp(28px, 2.6vw, 36px)/1.15 var(--sans); letter-spacing: -.02em; }
.ftr__sub { max-width: 290px; margin-top: 16px; font-size: 13px; color: rgba(20, 20, 20, .7); }
.ftr__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; }
.ftr__h { margin-bottom: 14px; font-weight: 500; }
.ftr__cols a { display: block; margin-top: 10px; font-size: 13px; color: rgba(20, 20, 20, .75); }
.ftr__cols a:hover { color: var(--ink); text-decoration: underline; }
.rule-dash { position: relative; height: 1px; margin: 56px 0; background: var(--ink); }
.rule-dash i { position: absolute; top: -4px; left: 38%; width: 28px; height: 9px; background: var(--ink); }
.rule-dash i + i { left: 84%; }
.rule-dash i:only-child { left: 50%; }
.ftr__giant { display: flex; align-items: center; justify-content: space-between; gap: .18em; font: 500 min(300px, calc((100vw - 2 * var(--pad)) / 3.9))/.8 var(--sans); letter-spacing: -.045em; }
.ftr__giant svg { flex: none; width: .74em; fill: var(--ink); }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; font-size: 13px; color: rgba(20, 20, 20, .7); }
.ftr__latin { font: italic 400 19px/1 var(--serif); color: var(--ink); }
