/* Unlimited Use Cases preview — card library (design C) */
:root {
  --bg: #f4f4f1;
  --card: #ffffff;
  --ink: #141414;
  --muted: #5c5c57;
  --line: #e4e4de;
  --cobalt: #1d4ed8;
  --cobalt-soft: #e8eefc;
  --amber-soft: #fff4d6;
  --amber-ink: #854f00;
  --teal-soft: #e5f6f1;
  --teal-ink: #0f5c4c;
  --max: 1180px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 8px 24px rgba(20, 20, 20, 0.04);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.top-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 12px;
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
nav.sections { display: flex; gap: 6px; flex-wrap: wrap; }
nav.sections a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}
nav.sections a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 36px 0 8px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5.4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-weight: 800;
  max-width: 16ch;
}
.promise { margin: 0; color: var(--muted); font-size: 18px; max-width: 46ch; }
.meta-line { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.meta-line strong { color: var(--ink); font-weight: 700; }

.search-bar {
  margin: 24px 0 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow);
}
.search-bar label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 8px 0;
  outline: none;
  color: var(--ink);
}
.search-bar .go-unused {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: default;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.chip.is-on, .chip:hover { border-color: var(--cobalt); color: var(--cobalt); background: var(--cobalt-soft); }

.notice {
  background: var(--amber-soft);
  color: var(--amber-ink);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin: 0 0 28px;
}
.notice strong { font-weight: 800; }

.chapter { scroll-margin-top: 84px; margin-bottom: 48px; }
.chapter-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.chapter-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; font-weight: 800; }
.chapter-head p { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.sample-flag {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-ink);
  background: var(--amber-soft);
  padding: 2px 6px;
  border-radius: 6px;
  vertical-align: middle;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.rank { font-size: 12px; font-weight: 700; color: var(--muted); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.03em; line-height: 1.25; font-weight: 800; }
.card .summary { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.badges { display: flex; gap: 8px; }
.badge {
  border-radius: 10px;
  padding: 6px 8px;
  min-width: 72px;
}
.badge.pot { background: var(--teal-soft); color: var(--teal-ink); }
.badge.prof { background: var(--amber-soft); color: var(--amber-ink); }
.badge em { display: block; font-style: normal; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; opacity: 0.8; }
.badge b { font-size: 18px; letter-spacing: -0.04em; font-weight: 800; }
.tools { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 2px; justify-content: flex-end; max-width: 52%; }
.tools li { font-size: 11px; color: var(--muted); }
.tools li + li::before { content: "·"; margin: 0 5px 0 3px; color: #b0b0a8; }

.subscribe {
  background: var(--ink);
  color: #f6f6f3;
  border-radius: 20px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 8px 0 40px;
}
.subscribe h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.04em; font-weight: 800; }
.subscribe p { margin: 0; color: #c8c8c0; }
.signup { display: flex; gap: 8px; flex-wrap: wrap; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup input {
  flex: 1 1 180px;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}
.signup button {
  background: var(--cobalt);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  cursor: default;
}
.fine { margin: 8px 0 0 !important; font-size: 12px !important; color: #9a9a92 !important; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 48px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 820px) {
  .grid, .subscribe, .chapter-head, .top-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .top-row, .chapter-head, .subscribe { display: flex; flex-direction: column; align-items: flex-start; }
  .chapter-head p { text-align: left; }
  .wrap, .top-inner { width: calc(100% - 28px); }
  .subscribe { padding: 24px 20px; }
  .card { min-height: 0; }
  .hero h1 { max-width: none; }
  .foot { flex-direction: column; }
  .tools { max-width: 100%; justify-content: flex-start; }
  .search-bar { padding-right: 8px; }
  .search-bar input { min-width: 0; }
}
@media (max-width: 420px) {
  .search-bar .go-unused { padding: 10px 12px; }
}

/* ---------- build additions ---------- */
:root { --amber: #b45309; --focus: #1d4ed8; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.search-bar { position: sticky; top: 62px; z-index: 20; }
.search-bar input[type="search"]::-webkit-search-cancel-button { display: none; }
.clear { background: var(--bg); color: var(--muted); border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip { font-family: inherit; }
.chapter-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 70ch; }
.chapter-head > div { min-width: 0; }
.chapter-head .count { white-space: nowrap; }
.toolbar { display: flex; justify-content: flex-end; margin: -10px 0 12px; }
.sort { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.sort select { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }
.notice.amber { margin-bottom: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card[hidden] { display: none; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--cobalt); }
.card-top { flex-wrap: wrap; }
.cat.amber { color: var(--amber-ink); background: var(--amber-soft); }
.vidrow { margin: -2px 0 8px; }
.vid { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; color: #fff; background: var(--cobalt); padding: 3px 9px; border-radius: 999px; }
.vid.soft { background: var(--cobalt-soft); color: var(--cobalt); }
.rating { display: flex; flex-direction: column; gap: 6px; }
.rating-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.badge { display: flex; flex-direction: column; }
.badge b { line-height: 1.1; display: inline; }
.badge i { font-style: normal; font-size: 11px; opacity: 0.7; font-weight: 600; margin-left: 1px; }
.badge { position: relative; }
.badge b, .badge i { display: inline; }
.badge em { margin-bottom: 2px; }
.tools { max-width: 48%; }
.srcs { margin: 12px 0 0; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; }
.srcs > span:first-child { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 6px; }
.srcs a { color: var(--cobalt); font-weight: 600; }
.srcs .sep { margin: 0 5px; color: #b0b0a8; }
.srcs .more { color: var(--muted); }

.btn { display: inline-block; background: var(--cobalt); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 10px; text-decoration: none; text-align: center; }
.btn:hover { text-decoration: none; background: #1a43bd; }
.btn.ghost { background: var(--card); color: var(--cobalt); border: 1px solid var(--cobalt); }
.btn.ghost:hover { background: var(--cobalt-soft); }
.btn.small { font-size: 12px; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.btnwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.near { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; max-width: 46ch; }

.dothis, .owns { margin-top: 12px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.dothis h4, .owns h4 { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.dothis-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.dothis-name { font-weight: 800; font-size: 13px; }
.dothis-why { font-size: 12px; color: var(--muted); min-width: 0; }
.dothis .near { margin-top: 6px; }
.own { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.own div { display: flex; flex-direction: column; font-size: 13px; }
.own div span { font-size: 12px; color: var(--muted); }

.card.tool .card-foot { border-top: 0; padding-top: 4px; margin-top: 8px; }
.tp { margin: 6px 0 0; }
.tp ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
.tp li + li { margin-top: 2px; }
.tp b a { color: var(--ink); }
.price { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.card.tool .summary { flex: 0 0 auto; }

.subscribe { background: var(--ink); color: #f6f6f3; border-radius: 20px; padding: 28px 32px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; margin: 22px 0 8px; }
.subscribe.bottom { margin: 8px 0 40px; }
.subscribe h2 { font-size: 26px; }
.signup { display: block; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup button { cursor: pointer; }
.signup button[disabled] { opacity: 0.6; cursor: wait; }
.signup .fine { color: #b0b0a8 !important; }
.status { margin: 8px 0 0; font-size: 13px; font-weight: 700; min-height: 1.2em; }
.status.ok { color: #7ee0b5; } .status.err { color: #ffb4a8; }

.foot { display: block; }
.foot p { margin: 0 0 8px; max-width: 90ch; line-height: 1.5; }
.disclosure strong { color: var(--ink); }

/* item pages */
.article { padding: 22px 0 36px; max-width: 980px; }
.article h1 { margin: 8px 0 8px; font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.04em; line-height: 1.08; font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.crumbs { font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.crumbs span { margin: 0 4px; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.block { margin: 0 0 22px; }
.block h2 { margin: 0 0 6px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.block p { margin: 0; }
.block.guard p { background: var(--amber-soft); color: var(--amber-ink); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.prompt { background: var(--ink); color: #f1f1ec; border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; overflow-wrap: anywhere; }
.plain { margin: 0; padding-left: 18px; }
aside .rating { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.reasons { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.reasons .rl { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.reasons dt { font-weight: 700; font-size: 14px; margin-top: 8px; }
.reasons dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.source-list { margin: 0; padding-left: 20px; }
.source-list li { margin-bottom: 10px; }
.src-meta, .src-note { display: block; font-size: 12px; color: var(--muted); }
.rl { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.tablewrap { overflow-x: auto; }
.rtable { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.rtable th, .rtable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sub { font-size: 14px; margin: 16px 0 6px; }
.caveats { margin-top: 14px; font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.caveats summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.caveats li { margin: 6px 0; }
article.partner { min-height: 0; }
article.partner .summary { flex: 0 0 auto; margin-bottom: 12px; }

@media (max-width: 820px) {
  .grid.three { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .subscribe { grid-template-columns: 1fr; padding: 22px 18px; }
  .subscribe { display: flex; flex-direction: column; align-items: stretch; }
  .signup-row button { flex: 1 1 100%; }
  .search-bar { top: 108px; }
  .toolbar { margin-top: 0; justify-content: flex-start; }
  .dothis-row { grid-template-columns: 1fr auto; }
  .dothis-why { grid-column: 1 / -1; order: 3; }
  .tools { max-width: 100%; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  nav.sections { gap: 2px; }
  nav.sections a { padding: 5px 8px; }
  .chapter-head .count { text-align: left; }
}

.chapter-head .chapter-note { text-align: left; }
.badge .num { display: flex; align-items: baseline; white-space: nowrap; }
.hero h1 { max-width: 22ch; }
@media (max-width: 820px) {
  .top { position: static; }
  .search-bar { position: static; }
}

.card.tool .tool-foot { margin-top: auto; }
.card.tool .tp, .card.tool .price { flex: 0 0 auto; }
.card.tool .tool-foot { padding-top: 12px; }

.article .dothis, .article .owns { margin: 0 0 22px; }

.two aside .btnwrap { margin-bottom: 22px; }
@media (max-width: 820px) { .two aside { order: -1; } .two aside .btnwrap { margin-bottom: 8px; } }

.chapter { scroll-margin-top: 140px; }
@media (max-width: 820px) { .chapter { scroll-margin-top: 16px; } }
