/* Shared layout for the free-list pages (/uncensored-ai/, /citadel/). Structure 1:1 with hft.md; each page sets its theme tokens. */
@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/host-grotesk-latin-wght-normal.woff2) format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--page-base); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--page); pointer-events: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--on); color: var(--on-ink); padding: 10px 14px; border-radius: 12px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 16px; display: inline-flex; align-items: center; gap: 9px; }
.brand img, .brand .mark { width: 30px; height: 30px; border-radius: var(--r-av, 9px); display: grid; place-items: center; font-size: 12px; font-weight: 700; object-fit: cover; }
.brand .mark { background: var(--on); color: var(--on-ink); }
.bar-follow { font-size: 14px; font-weight: 600; text-decoration: none; height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--on); color: var(--on-ink); }

/* Hero: compact, like hft.md */
.hero { padding: 18px 0 18px; max-width: 860px; }
@media (min-width: 760px) { .hero { padding: 56px 0 30px; } }
.eyebrow { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px var(--dot-ring); }
h1 { margin: 0; font-size: clamp(34px, 9.6vw, 76px); line-height: 1.02; letter-spacing: var(--h-track); font-weight: var(--h-weight); text-wrap: balance; }
.h-soft { color: var(--grey-h); }
.lede { margin: 12px 0 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 620px; text-wrap: pretty; }
.stats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-2); }
.stats li { padding: 5px 10px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--glass-border); }
.stats a { color: inherit; text-underline-offset: 3px; }

/* Filter panel: the catalog */
.panel {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
  padding: 16px 0 16px;
}
@media (min-width: 760px) { .panel { padding: 22px 0; } }
.step { padding: 0 16px; }
@media (min-width: 760px) { .step { padding: 0 22px; } }
.step + .step { margin-top: 14px; }
.qrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.q { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: -0.02em; }
.qlink { font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; white-space: nowrap; }
.hint { margin: -2px 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.hint[hidden] { display: none; }

.seg { display: flex; padding: 4px; border-radius: var(--r-pill); background: var(--seg); margin: 0 0 10px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; height: 38px; padding: 0 8px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.seg button .n { font-weight: 500; font-size: 12.5px; color: var(--grey); font-variant-numeric: tabular-nums; }
.seg button[aria-pressed='true'] { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-shadow); }
@media (min-width: 760px) { .seg { display: inline-flex; } .seg button { flex: none; padding: 0 20px; } }

/* chips scroll sideways in one row on a phone, wrap on a computer */
.chips {
  display: flex; gap: 7px; align-items: center;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 2px 16px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
  mask: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask: none; mask: none; } }
.grp { flex: none; font-size: 11.5px; color: var(--grey); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 0 2px 0 4px; white-space: nowrap; }
.chip {
  flex: none; white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--chip);
  height: 38px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.chip .n { font-size: 12.5px; color: var(--grey); font-variant-numeric: tabular-nums; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed='true'] { background: var(--on); color: var(--on-ink); border-color: var(--on); }
.chip[aria-pressed='true'] .n { color: var(--on-ink); opacity: .7; }

.tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; padding: 0 16px; }
@media (min-width: 760px) { .tools { padding: 0 22px; } }
.search { position: relative; min-width: 0; }
.search input { width: 100%; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--input); padding: 0 14px 0 40px; font-size: 16px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--ring); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--grey); pointer-events: none; z-index: 1; }
.sort { position: relative; display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--input); }
.sort select { -webkit-appearance: none; appearance: none; border: 0; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0 32px 0 14px; height: 42px; outline: none; cursor: pointer; max-width: 46vw; }
.sort::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.count { margin: 18px 2px 12px; font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }

/* Cards: windows with a coloured top and a folder-tab notch (Yarik's refs) */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--card); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } }
.card.will-in { opacity: 0; transform: translateY(10px); }
.card.is-in { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card.is-in { animation: none; } .card.will-in { opacity: 1; transform: none; } .card { transition: none; } }

.win {
  position: relative; height: 92px; padding: 14px 16px; color: var(--win-ink, #fff);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  background: var(--win-bg);
  --nw: 112px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 100% calc(100% - 23.5px) no-repeat, linear-gradient(#000 0 0) bottom left / calc(100% - var(--nw) - 23.5px) 24px no-repeat, var(--notch-piece) right var(--nw) bottom 0 / 24px 24px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 100% calc(100% - 23.5px) no-repeat, linear-gradient(#000 0 0) bottom left / calc(100% - var(--nw) - 23.5px) 24px no-repeat, var(--notch-piece) right var(--nw) bottom 0 / 24px 24px no-repeat;
}
:root { --notch-piece: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 0H24A12 12 0 0 0 12 12A12 12 0 0 1 0 24Z'/%3E%3C/svg%3E"); }
.win::after { content: ''; position: absolute; inset: 0; background: var(--win-sheen); pointer-events: none; }
.win > * { position: relative; z-index: 1; }
.big { font-size: 40px; line-height: .9; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.big small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .85; margin-top: 5px; }
.win-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; font-weight: 600; text-align: right; }
.win-r .pill { padding: 3px 9px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; }
.win-r .pill.best { background: #fff; color: #111; border-color: #fff; }
.arrow { position: absolute; right: 16px; top: 76px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-rb, 50%); color: var(--ink); background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: transform .25s var(--ease); }
.arrow svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .arrow:hover { transform: translate(2px, -2px); } }

.face { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
@media (min-width: 760px) { .face { padding: 14px 18px 18px; } }
.head { display: flex; gap: 11px; align-items: center; min-width: 0; padding-right: 30px; }
.av { flex: none; width: 40px; height: 40px; border-radius: var(--r-av, 12px); display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: var(--win-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.head-t { min-width: 0; }
.card h2 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.by { margin: 2px 0 0; font-size: 13.5px; color: var(--grey); overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.b { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--badge); color: var(--ink-2); line-height: 1.3; }
.b.tint { background: var(--tint-bg); color: var(--tint-ink); }
.b.dim { background: transparent; color: var(--grey); padding-left: 2px; }
.scores { margin: 0; display: grid; gap: 8px; }
.sc { display: grid; grid-template-columns: 100px 1fr 46px; align-items: center; gap: 10px; font-size: 13.5px; }
.sc dt { color: var(--grey); }
.sc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.bar { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--bar-bg); }
.good { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.good b { color: var(--ink); font-weight: 650; }
.fit { margin: 0; font-size: 13.5px; color: var(--ink-2); background: var(--fitbox); border-radius: var(--r-sm); padding: 9px 12px; line-height: 1.4; }
.fit.ok { background: var(--ok-bg); color: var(--ok-ink); }
.untested { margin: 0; font-size: 13.5px; color: var(--grey); }
.cmd { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--code); padding: 5px 5px 5px 0; min-width: 0; }
.cmd code { flex: 1; min-width: 0; padding: 0 0 0 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; white-space: nowrap; overflow-x: auto; scrollbar-width: none; color: var(--ink); }
.cmd code::-webkit-scrollbar { display: none; }
.copy { flex: none; height: 34px; border: 1px solid var(--line); background: var(--card-solid); border-radius: calc(var(--r-sm) - 4px); padding: 0 12px; font-size: 13px; font-weight: 650; min-width: 70px; transition: background .2s var(--ease), color .2s var(--ease); }
.copy.is-done { background: var(--on); color: var(--on-ink); border-color: var(--on); }
.acts { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); background: var(--chip);
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--on); color: var(--on-ink); border-color: var(--on); box-shadow: var(--btn-glow); flex: 1; }
.lnk { flex: none; font-size: 15px; font-weight: 600; text-decoration: none; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); height: 46px; }
.lnk svg { width: 11px; height: 11px; }
.empty { display: none; margin: 30px 0; color: var(--grey); text-align: center; }
.empty.is-on { display: block; }

/* The back of a card: How to use it (flips in place, like hft.md) */
.back { display: none; padding: 16px; flex-direction: column; gap: 14px; }
.card.is-flipped .win, .card.is-flipped .face, .card.is-flipped .arrow { display: none; }
.card.is-flipped .back { display: flex; animation: rise .35s var(--ease) both; }
.back-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.back-h h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.x { flex: none; width: 38px; height: 38px; border-radius: var(--r-rb, 50%); border: 1px solid var(--line); background: var(--card-solid); font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0; color: var(--ink); }
.tabs { display: flex; padding: 4px; border-radius: var(--r-pill); background: var(--seg); gap: 2px; }
.tabs button { flex: 1; border: 0; background: transparent; height: 36px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tabs button[aria-selected='true'] { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-shadow); }
.steps { margin: 0; padding: 0 0 0 20px; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.steps li::marker { color: var(--ink); font-weight: 700; }
.steps .cmd { margin-top: 8px; }
.steps a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.note { margin: 0; font-size: 13.5px; color: var(--grey); }

/* Resource cards (Citadel, like hft.md/jane-street) */
.rtype { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card .rtitle { font-size: 19px; line-height: 1.22; padding-right: 30px; }
.what { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.5; }
.why { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.why b { font-weight: 650; color: var(--ink); }
.tag { font-size: 12.5px; color: var(--grey); }
.rfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rfoot .btn { flex: none; }

/* FAQ */
.faq { margin-top: 56px; max-width: 780px; }
.faq h2 { margin: 0 0 10px; font-size: clamp(26px, 5vw, 36px); letter-spacing: var(--h-track); font-weight: var(--h-weight); line-height: 1.1; }
.faq details { border-top: 1px solid var(--line); padding: 15px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--grey); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* Footer: don't forget me later */
.keep { margin-top: 48px; padding: 28px 22px; border-radius: var(--r-lg); background: var(--keep); color: var(--keep-ink); display: grid; gap: 14px; position: relative; overflow: hidden; }
@media (min-width: 760px) { .keep { padding: 44px; } }
.keep::before { content: ''; position: absolute; inset: 0; background: var(--keep-glow); pointer-events: none; }
.keep > * { position: relative; }
.keep h2 { margin: 0; font-size: clamp(27px, 5vw, 46px); line-height: 1.05; letter-spacing: var(--h-track); font-weight: var(--h-weight); max-width: 620px; text-wrap: balance; }
.keep p { margin: 0; color: var(--keep-grey); max-width: 560px; }
.keep-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.keep .btn { flex: none; }
.keep .btn.primary { background: var(--keep-ink); color: var(--keep); border-color: var(--keep-ink); box-shadow: var(--keep-btn-glow); }
.keep .btn.ghost { background: transparent; color: var(--keep-ink); border-color: var(--keep-line); }
.foot { padding: 22px 2px calc(110px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--grey); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }

/* Follow popup (Yarik's ref): glass, very round, glowing edge, square avatar, round controls, glowing button.
   Bottom sheet on a phone, bottom-right card on a computer, like hft.md */
.fc {
  position: fixed; z-index: 40;
  left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  padding: 16px; display: grid; gap: 12px;
  border-radius: var(--r-pop);
  background: var(--pop-bg); color: var(--pop-ink);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid var(--pop-edge);
  box-shadow: var(--pop-glow);
  transform: translateY(24px); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .3s var(--ease), visibility 0s linear .5s;
}
.fc.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .3s var(--ease), visibility 0s; }
@media (min-width: 640px) { .fc { left: auto; right: 20px; bottom: 20px; width: 380px; padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .fc, .fc.is-open { transition: none; transform: none; } }
.pop-top { display: flex; gap: 13px; align-items: center; }
.pop-top img, .pop-top .pav { width: 58px; height: 58px; border-radius: var(--r-pav); flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: var(--pop-chip); border: 1px solid var(--pop-edge); }
.pop-t { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.pop-h { margin: 2px 0 0; font-size: 14.5px; color: var(--pop-tint); font-weight: 600; }
.pop-d { margin: 0; font-size: 14px; color: var(--pop-grey); line-height: 1.45; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pop-ctl { display: flex; gap: 8px; }
.rb { width: 42px; height: 42px; border-radius: var(--r-rb, 50%); display: grid; place-items: center; background: var(--pop-chip); border: 1px solid var(--pop-edge); color: var(--pop-ink); padding: 0; font-size: 18px; line-height: 1; transition: background .2s var(--ease), transform .12s var(--ease); }
.rb:active { transform: scale(.94); }
.rb svg { width: 15px; height: 15px; }
.rb.is-done { background: var(--pop-ink); color: var(--pop-bg-solid); }
.fol { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--r-fol, 999px); text-decoration: none; font-weight: 700; font-size: 15.5px; background: var(--fol-bg); color: var(--fol-ink); border: 1px solid var(--fol-edge); box-shadow: var(--fol-glow); white-space: nowrap; transition: transform .15s var(--ease); }
.fol:active { transform: scale(.97); }
@media (max-width: 759px) { .tools { grid-template-columns: 1fr 1fr; } .sort select { max-width: none; width: 100%; } .sort { width: 100%; } }
.back > *, .back [role='tabpanel'] { min-width: 0; }
.steps { grid-template-columns: minmax(0, 1fr); }
.steps li { min-width: 0; overflow-wrap: anywhere; }

/* Computer: cards as compact as hft.md's (same width and density), our look */
@media (min-width: 760px) {
  .wrap { max-width: 1164px; }
  .grid { gap: 14px; }
  .card { border-radius: 20px; }
  .win { height: 62px; padding: 11px 14px; --nw: 92px; }
  .big { font-size: 30px; }
  .big small { font-size: 11px; margin-top: 3px; }
  .win-r .pill { font-size: 11px; padding: 2px 8px; }
  .arrow { top: 48px; right: 12px; width: 30px; height: 30px; }
  .arrow svg { width: 11px; height: 11px; }
  .face { padding: 10px 16px 16px; gap: 10px; }
  .head { gap: 10px; padding-right: 26px; }
  .av { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }
  .card h2 { font-size: 15.5px; }
  .by { font-size: 12.5px; }
  .b { font-size: 11.5px; padding: 3px 8px; }
  .scores { gap: 6px; }
  .sc { grid-template-columns: 88px 1fr 42px; gap: 8px; font-size: 12.5px; }
  .bar { height: 5px; }
  .good { font-size: 13.5px; line-height: 1.45; }
  .fit { font-size: 12.5px; padding: 8px 10px; border-radius: 10px; }
  .untested { font-size: 12.5px; }
  .cmd { padding: 4px 4px 4px 0; border-radius: 12px; }
  .cmd code { font-size: 12px; padding-left: 10px; }
  .copy { height: 30px; font-size: 12.5px; min-width: 62px; border-radius: 8px; }
  .acts { gap: 8px; }
  .acts .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
  .lnk { font-size: 13.5px; height: 38px; }
  .back { padding: 14px 16px 16px; gap: 12px; }
  .back-h h3 { font-size: 16px; }
  .x { width: 32px; height: 32px; font-size: 16px; }
  .tabs button { height: 32px; font-size: 13px; }
  .steps { font-size: 13.5px; gap: 10px; }
  .card .rtitle { font-size: 17px; padding-right: 26px; }
  .what { font-size: 14px; }
  .why { font-size: 13px; }
  .rfoot .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
}

/* Hover: the card lifts and tilts a little toward the pointer, a soft light follows it (mouse only) */
.card.is-in { animation: rise .6s var(--ease) backwards; }
@media (hover: hover) and (pointer: fine) {
  .card { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .4s var(--ease); will-change: transform; }
  .card:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); box-shadow: var(--shadow-hover); transition: transform .18s ease-out, box-shadow .4s var(--ease); }
  .card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), var(--glare, rgba(255, 255, 255, .5)), transparent 45%); mix-blend-mode: soft-light; z-index: 3; }
  .card:hover::after { opacity: 1; }
  .card:hover .arrow { transform: translate(2px, -2px); }
  .card:hover .win::after { opacity: 1.15; }
  .card.is-flipped:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transform: none !important; } }

/* Phone: shorter cards. "Good for" in two lines with more, the command lives in How to use it */
.more { display: none; align-self: flex-start; margin-top: -8px; border: 0; background: none; padding: 0; font-size: 13.5px; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 759px) {
  .good { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .good.is-open { display: block; }
  .more { display: inline-block; }
  .face > .cmd { display: none; }
}
.av.logo { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.av.logo img { width: 22px; height: 22px; display: block; }
@media (min-width: 760px) { .av.logo img { width: 20px; height: 20px; } }

/* Sticky bar: appears once the filter panel has scrolled away */
.stick {
  position: fixed; z-index: 35; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px;
  max-width: 1164px; margin: 0 auto;
  padding: 6px; border-radius: var(--r-pill);
  background: var(--stick-bg, var(--glass)); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--shadow);
  transform: translateY(calc(-100% - 20px)); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.stick.is-on { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stick { transition: none; } }
.stick-in { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mseg { display: flex; flex: 1; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--seg); min-width: 0; }
.mseg button { flex: 1; border: 0; background: transparent; height: 34px; padding: 0 6px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.mseg button .n { font-size: 11.5px; font-weight: 500; color: var(--grey); }
.mseg button[aria-pressed='true'] { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-shadow); }
.stick-q { flex: none; height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--chip); display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; max-width: 42%; }
.stick-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stick-q svg { width: 15px; height: 15px; flex: none; }
.stick-q.icon { width: 40px; padding: 0; justify-content: center; }
.stick .stick-chips { flex: 1; margin: 0; padding: 0 4px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-mask: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 20px), transparent); mask: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 20px), transparent); }
.stick .stick-chips .chip { height: 34px; padding: 0 12px; font-size: 13.5px; }
@media (min-width: 760px) {
  .stick { top: 12px; left: 24px; right: 24px; }
  .mseg { flex: none; }
  .mseg button { padding: 0 16px; }
  .stick-in { justify-content: space-between; }
}

/* ---------- Hero with the memory slider and the censored / uncensored example ---------- */
.hero-split { max-width: none; display: grid; gap: 18px; padding-bottom: 22px; }
.hero-split h1 { font-size: clamp(34px, 9.4vw, 66px); }
@media (min-width: 980px) {
  .hero-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 48px; }
}

.memfit {
  margin-top: 18px; padding: 16px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow);
  display: grid; gap: 10px; max-width: 560px;
}
.mf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mf-q { margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.mf-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--seg); gap: 2px; }
.mf-seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mf-seg button[aria-pressed='true'] { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-shadow); }
.mf-num { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mf-num b { font-size: clamp(56px, 16vw, 84px); line-height: .9; font-weight: 700; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 1.2ch; }
.mf-num span { font-size: 15px; line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.mf-range { position: relative; padding: 6px 0 2px; }
.mf-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.mf-range input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #6d4dff var(--p, 0%), rgba(20, 20, 40, .1) var(--p, 0%)); }
.mf-range input::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #6d4dff var(--p, 0%), rgba(20, 20, 40, .1) var(--p, 0%)); }
.mf-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 1px solid rgba(20, 20, 40, .12); box-shadow: 0 2px 8px rgba(40, 30, 90, .25), 0 0 0 5px rgba(124, 92, 255, .14); transition: transform .15s var(--ease); }
.mf-range input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid rgba(20, 20, 40, .12); box-shadow: 0 2px 8px rgba(40, 30, 90, .25), 0 0 0 5px rgba(124, 92, 255, .14); }
.mf-range input:active::-webkit-slider-thumb { transform: scale(1.12); }
.mf-range input:focus-visible { outline: none; }
.mf-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(124, 92, 255, .3); }
.mf-ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--grey); font-variant-numeric: tabular-nums; padding: 0 2px; }
.mf-ticks span { min-width: 0; text-align: center; transition: color .2s var(--ease); white-space: nowrap; }
.mf-ticks span.on { color: var(--ink); font-weight: 700; }
.mf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.mf-logos { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.mf-logos span { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; animation: logo-in .35s var(--ease) both; animation-delay: var(--d, 0ms); }
.mf-logos img { width: 17px; height: 17px; }
@keyframes logo-in { from { opacity: 0; transform: translateY(4px) scale(.9); } to { opacity: 1; transform: none; } }
.mf-go { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--on); color: var(--on-ink); font-size: 14px; font-weight: 650; box-shadow: var(--btn-glow); }
.mf-go:active { transform: scale(.97); }

/* the same question to two AIs */
.hero-art { min-width: 0; }
.duo { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch; }
.duo::-webkit-scrollbar { display: none; }
.chat { flex: 0 0 84%; scroll-snap-align: center; border-radius: 22px; padding: 14px; display: grid; gap: 8px; align-content: start; border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.chat.no { background: rgba(255, 255, 255, .5); }
.chat.yes { background: rgba(255, 255, 255, .86); box-shadow: 0 1px 2px rgba(20, 20, 50, .05), 0 20px 44px -18px rgba(91, 63, 214, .45); border-color: rgba(124, 92, 255, .28); }
.chat-h { margin: 0 0 2px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.chat-h img { width: 16px; height: 16px; }
.ch-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(20, 20, 40, .25); }
.msg { margin: 0; font-size: 13.5px; line-height: 1.45; padding: 9px 12px; border-radius: 16px; max-width: 92%; }
.msg.me { justify-self: end; background: var(--on); color: var(--on-ink); border-bottom-right-radius: 6px; }
.chat.no .msg.me { background: rgba(20, 20, 40, .55); }
.msg.ai { justify-self: start; background: rgba(20, 20, 40, .05); color: var(--ink); border-bottom-left-radius: 6px; }
.chat.no .msg.ai { color: var(--grey); font-style: normal; }
.chat.yes .msg.ai { background: linear-gradient(135deg, rgba(124, 92, 255, .1), rgba(244, 114, 182, .08)); }
.duo-note { margin: 0 2px; font-size: 12px; color: var(--grey); }
@media (min-width: 980px) {
  .duo { display: grid; overflow: visible; margin: 0; padding: 0; gap: 0; position: relative; }
  .chat { width: 88%; }
  .chat.no { transform: rotate(-2.5deg) translateX(-4%); opacity: .85; }
  .chat.yes { justify-self: end; margin-top: -22px; transform: rotate(1.5deg); position: relative; z-index: 1; }
  .msg { font-size: 14px; }
  .duo-note { margin-top: 16px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .mf-logos span { animation: none; } }
@media (min-width: 980px) { .chat.yes { margin-top: 14px; } .chat.no { transform: rotate(-2deg) translateX(-3%); } }
@media (max-width: 759px) {
  .memfit { padding: 14px; gap: 8px; margin-top: 14px; }
  .mf-top { flex-wrap: nowrap; }
  .mf-q { font-size: 13.5px; }
  .mf-seg button { height: 28px; padding: 0 10px; font-size: 12.5px; }
  .mf-num b { font-size: 58px; }
  .mf-num span { font-size: 14px; }
  .mf-ticks { font-size: 11px; }
  .mf-go { height: 36px; font-size: 13.5px; }
  .duo { align-items: flex-start; }
  .chat { flex-basis: 80%; padding: 12px; gap: 6px; border-radius: 20px; }
  .msg { font-size: 13px; padding: 8px 11px; }
  .hero-split { gap: 14px; }
}

/* Computer: the whole page as compact as hft.md (panel, chips, search, hero), measured against hft.md at 1440 px */
@media (min-width: 760px) {
  .topbar { height: 56px; }
  .brand { font-size: 15px; }
  .brand img, .brand .mark { width: 28px; height: 28px; }
  .bar-follow { height: 34px; padding: 0 14px; font-size: 13px; }
  .eyebrow { font-size: 12px; padding: 4px 10px; margin-bottom: 10px; }
  h1, .hero-split h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; }
  .lede { font-size: 16px; margin-top: 10px; }
  .hero { padding: 36px 0 22px; }
  .hero-split { padding-top: 36px; gap: 40px; }

  .panel { padding: 16px 0; border-radius: 18px; }
  .step { padding: 0 16px; }
  .step + .step { margin-top: 12px; }
  .qrow { margin-bottom: 8px; }
  .q { font-size: 15px; }
  .qlink { font-size: 12.5px; }
  .hint { font-size: 12.5px; }
  .seg { padding: 3px; margin-bottom: 8px; }
  .seg button { height: 30px; padding: 0 14px; font-size: 13px; }
  .seg button .n { font-size: 11.5px; }
  .chips { gap: 6px; }
  .chip { height: 32px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
  .chip .n { font-size: 11.5px; }
  .grp { font-size: 10.5px; padding: 0 2px 0 4px; }
  .tools { padding: 0 16px; margin-top: 12px; gap: 8px; }
  .search input { height: 40px; font-size: 14px; padding-left: 38px; }
  .search svg { left: 13px; width: 15px; height: 15px; }
  .sort { height: 40px; }
  .sort select { height: 38px; font-size: 13.5px; padding: 0 30px 0 14px; }
  .sort::after { right: 13px; width: 6px; height: 6px; }
  .count { font-size: 13px; margin: 16px 2px 10px; }

  .memfit { padding: 14px; gap: 8px; border-radius: 20px; max-width: 500px; margin-top: 16px; }
  .mf-q { font-size: 13.5px; }
  .mf-seg button { height: 28px; padding: 0 11px; font-size: 12.5px; }
  .mf-num b { font-size: 56px; }
  .mf-num span { font-size: 14px; }
  .mf-ticks { font-size: 11px; }
  .mf-logos span { width: 26px; height: 26px; border-radius: 8px; }
  .mf-logos img { width: 15px; height: 15px; }
  .mf-go { height: 34px; padding: 0 14px; font-size: 13px; }
  .chat { padding: 12px; gap: 6px; border-radius: 18px; }
  .chat-h { font-size: 12px; }
  .msg { font-size: 13px; padding: 8px 11px; }
  .duo-note { font-size: 11.5px; }

  .stick { padding: 5px; }
  .mseg button { height: 30px; font-size: 12.5px; }
  .stick-q { height: 34px; font-size: 12.5px; }
  .stick-q.icon { width: 34px; }
  .stick .stick-chips .chip { height: 30px; font-size: 12.5px; }

  .faq summary { font-size: 15.5px; }
  .faq p { font-size: 14.5px; }
  .keep h2 { font-size: clamp(26px, 3.4vw, 40px); }
  .keep .btn { height: 40px; font-size: 14px; }
}
