/* Dezio website: shared by index, terms and privacy. The tokens are in tokens.css. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-size: 16px; line-height: 24px; }
a { color: var(--text); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.btn.big { height: 44px; padding: 0 20px; font-size: 15px; }
.ic, .key svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(20, 20, 21, .9); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 16px; font-weight: 500; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.top nav a:not(.btn) { color: var(--text-2); font-size: 14px; text-decoration: none; transition: color var(--fast) var(--ease); }
.top nav a:not(.btn):hover { color: var(--text); }

/* hero: the copy on the left, the player on the right */
.hero { display: flex; align-items: center; min-height: calc(100vh - 57px); padding: 48px 0 64px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy > * { animation: rise var(--enter) var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 48ms; }
.hero-copy > :nth-child(3) { animation-delay: 96ms; }
.hero-copy > :nth-child(4) { animation-delay: 144ms; }
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.03em; }
.hero-copy > p:not(.facts) { max-width: 36rem; margin: 24px 0 32px; color: var(--text-2); font-size: 18px; line-height: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { margin: 24px 0 0; color: var(--text-3); font-size: 14px; line-height: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* the player: Dezio's now-playing panel, working */
.carousel { min-width: 0; perspective: 1200px; animation: rise var(--enter) var(--ease) 192ms backwards; }
.slides { display: grid; }
.slide { --x: 0px; grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transform: translateX(var(--x)); transition: opacity var(--enter) var(--ease), transform var(--enter) var(--ease), visibility var(--enter); }
.slide.on { visibility: visible; opacity: 1; transform: none; }
.deck { --rx: 0deg; --ry: 0deg; position: relative; display: grid; align-content: start; gap: 16px; height: 100%; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 32px 64px rgba(0, 0, 0, .4);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 420ms var(--ease), border-color var(--menu) var(--ease); }
.deck.tilting { border-color: var(--line-2); transition: transform 80ms linear, border-color var(--menu) var(--ease); }
.deck::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .07), transparent 70%); transition: opacity var(--menu) var(--ease); }
.deck.tilting::after { opacity: 1; }

.car-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.car-dots { flex: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.car-dot { position: relative; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.car-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--raised-2); transition: background-color var(--fast) var(--ease); }
.car-dot:hover::before { background: var(--text-3); }
.car-dot i { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.car-dot.on i { transform: scaleX(1); }
.car-dot.timing i { animation: fill 10s linear; }
.carousel.held .car-dot.timing i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.car-label { margin: 8px 0 0; color: var(--text-3); font-size: 13px; line-height: 20px; text-align: center; }

.slide-head { display: flex; align-items: center; gap: 12px; }
.slide-head .ic { width: 18px; height: 18px; flex: none; color: var(--text-3); }
.slide-head > div { flex: 1; min-width: 0; display: grid; }
.slide-head small { color: var(--text-3); font-size: 13px; line-height: 20px; }
.slide-head strong { overflow: hidden; font-size: 20px; font-weight: 500; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; }

.handheld { padding: 12px; border-radius: 12px; background: var(--ink); }
.handheld canvas { display: block; width: 100%; border-radius: 4px; image-rendering: pixelated; }
.ranks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.ranks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.ranks b { color: var(--text-3); font: 400 12px/20px var(--mono); }
.ranks i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--raised-2); transform-origin: left; }
.ranks li:first-child i { background: var(--accent); }
.ranks .r100 { transform: scaleX(1); } .ranks .r70 { transform: scaleX(.7); } .ranks .r48 { transform: scaleX(.48); } .ranks .r35 { transform: scaleX(.35); } .ranks .r24 { transform: scaleX(.24); }
.chess { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.board { display: grid; grid-template-columns: repeat(8, 1fr); overflow: hidden; border-radius: 6px; }
.board span { display: grid; place-items: center; aspect-ratio: 1; background: #3a3a3e; color: #fff; font-size: clamp(14px, 2vw, 24px); line-height: 1; }
.board span.lt { background: #77777d; }
.board span.last { background: var(--violet); }
.board span.b { color: #111; }
.chess-side { min-width: 104px; color: var(--text-3); font-size: 13px; line-height: 20px; }
.chess-side p { margin: 0 0 8px; }
.chess-side b { display: block; color: var(--text); font-weight: 500; }
.moves { font-family: var(--mono); font-size: 12px; }
.table { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; border-radius: 12px; background: var(--ink); }
.table small { display: block; margin-bottom: 8px; color: var(--text-3); font-size: 13px; }
.hand { display: flex; }
.card { display: grid; align-content: space-between; width: 72px; height: 100px; padding: 8px; border-radius: 8px; background: #f4f2ee; color: #1b1b1d; font: 500 20px/1 var(--font); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.card + .card { margin-left: -24px; transform: rotate(5deg); }
.card i { justify-self: end; font-style: normal; font-size: 24px; }
.card.red { color: #c7302f; }
.card.down { background: var(--cobalt); box-shadow: inset 0 0 0 4px #f4f2ee, 0 4px 12px rgba(0, 0, 0, .4); }
.job { display: grid; gap: 8px; padding: 16px; border-radius: 12px; background: var(--ink); }
.job p:first-child { display: flex; justify-content: space-between; margin: 0; font-size: 14px; }
.job b { color: var(--text-2); font: 400 12px/22px var(--mono); }
.job .bar i { background: var(--accent); transform: scaleX(0); transition: transform 200ms linear; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 13px; }
.sources li { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; }
.log { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.log li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log b { font-weight: 500; }
.log span { grid-row: 2; color: var(--text-3); font-size: 13px; }
.log time { color: var(--text-3); font: 400 12px/20px var(--mono); }
.quote { display: grid; grid-template-columns: 2fr 3fr; align-items: center; min-height: 200px; overflow: hidden; border-radius: 12px; background: #000; color: #fff; text-align: center; }
.quote-face { align-self: stretch; background: linear-gradient(to right, #8b8b8f, #000); }
.quote p { margin: 0 16px 8px; font-size: 18px; line-height: 26px; }
.quote small { color: #8a8a8a; font-size: 13px; }
.chat { display: grid; gap: 12px; }
.bubble { display: grid; gap: 2px; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--raised); color: var(--text-2); font-size: 15px; }
.bubble b { color: var(--text); font-size: 13px; font-weight: 500; }
.bubble.me { background: var(--ink); box-shadow: inset 3px 0 0 var(--violet); }
.weather { display: flex; align-items: baseline; gap: 16px; }
.temp { margin: 0; font-size: 56px; font-weight: 400; line-height: 64px; letter-spacing: -.03em; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--text-3); font-size: 13px; text-align: center; }
.days li { padding: 12px 0; border-radius: 8px; background: var(--ink); }
.days b { display: block; margin-top: 4px; color: var(--text); font: 400 16px/24px var(--font); }
.deck-top { display: flex; align-items: center; gap: 16px; }
.cover { width: 96px; height: 96px; flex: none; border-radius: 8px; }
.deck-title { display: grid; min-width: 0; }
.deck-title small { color: var(--text-3); font-size: 13px; line-height: 20px; }
.deck-title strong { overflow: hidden; font-size: 20px; font-weight: 500; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; }
.deck-title span { color: var(--text-2); font-size: 14px; line-height: 20px; }
.vu { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 96px; }
.vu i { display: block; height: 100%; border-radius: 2px; background: var(--cobalt); transform: scaleY(.04); transform-origin: bottom; transition: transform 120ms linear; }
.vu i.mid { background: var(--violet); }
.vu i.high { background: var(--orchid); }
.deck.paused .vu i { transform: scaleY(.04) !important; transition-duration: 420ms; transition-timing-function: var(--ease); }
.deck-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--text-3); font: 400 12px/16px var(--mono); font-variant-numeric: tabular-nums; }
.bar { height: 4px; overflow: hidden; border-radius: 2px; background: var(--raised-2); }
.bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(.3); transition: transform 300ms linear; }
.deck-meta { margin: 0; color: var(--text-3); font-size: 13px; line-height: 20px; }
.deck-meta b { color: var(--text-2); font-weight: 400; }
.deck-buttons { display: flex; gap: 8px; }
.key { display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--text-2); cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.key svg { width: 18px; height: 18px; }
.key:hover { background: var(--raised-2); color: var(--text); }
.key:active { transform: scale(.95); }
.key.lead { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.key.lead:hover { background: #dc92f0; }
.key[aria-pressed="true"] { color: var(--accent); }

/* features */
.features { padding: 80px 0; border-top: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.features-head { position: sticky; top: 96px; }
.features-head h2 { font-size: 32px; line-height: 40px; letter-spacing: -.01em; }
.features-head p { margin: 12px 0 0; color: var(--text-2); }
.item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.item:first-child { padding-top: 0; }
.item:last-child { border-bottom: 0; }
.item .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--text-3); transition: color var(--fast) var(--ease); }
.item:hover .ic { color: var(--accent); }
.item h3 { font-size: 16px; line-height: 24px; }
.item p { max-width: 36rem; margin: 4px 0 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.js .item { opacity: 0; transform: translateY(8px); transition: opacity var(--enter) var(--ease), transform var(--enter) var(--ease); }
.js .item.in { opacity: 1; transform: none; }

.callout { display: flex; align-items: center; gap: 24px; margin-bottom: 80px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.callout > div { flex: 1; min-width: 0; }
.callout h2 { font-size: 24px; line-height: 32px; }
.callout p { margin: 4px 0 0; color: var(--text-2); }

/* footer */
footer { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; line-height: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 16px; }
footer a { color: var(--text-2); }

/* legal pages */
.doc { max-width: 720px; padding: 48px 0 80px; }
.doc h1 { font-size: 36px; line-height: 44px; }
.doc .updated { margin: 8px 0 32px; color: var(--text-3); }
.doc h2 { margin: 32px 0 8px; font-size: 20px; line-height: 28px; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin: 4px 0; }

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 48px; }
  .hero-grid, .features-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features-head { position: static; }
  .callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .top nav a.optional { display: none; }
  .hero h1 { font-size: 36px; }
  .item { grid-template-columns: 18px minmax(0, 1fr); }
  .item code { grid-column: 2; justify-self: start; }
  .vu { height: 64px; }
  .cover { width: 72px; height: 72px; }
  .card { width: 60px; height: 84px; }
  .table { padding: 12px; }
  .chess { grid-template-columns: minmax(0, 1fr); }
  .chess-side { display: none; }
  .deck-title strong { font-size: 18px; line-height: 24px; }
}
