/* /free-ai/: a directory in three colours (ink ground, paper text, orange action). One face everywhere: Fraunces with soft serifs. */
:root {
  --ink: #111110;
  --paper: #f0f0ee;
  --orange: #ff5b24;
  --p2: rgba(240, 240, 238, 0.66);
  --s1: rgba(240, 240, 238, 0.045);
  --s2: rgba(240, 240, 238, 0.08);
  --s3: rgba(240, 240, 238, 0.13);
  --m: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --display: 'Fraunces', Georgia, serif;
  --text: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.5 var(--text); font-optical-sizing: auto; font-variation-settings: 'SOFT' 100, 'WONK' 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
ul { list-style: none; margin: 0; padding: 0; }
button, input { font-variation-settings: 'SOFT' 100, 'WONK' 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); font: 500 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: transform 0.18s var(--ease), background-color 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.or { background: var(--orange); color: var(--ink); }
.btn.ghost { background: var(--s2); color: var(--paper); }
.btn.ghost:hover { background: var(--s3); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 12px var(--m); background: var(--ink); }
.mark { font: 500 24px/1 var(--display); text-decoration: none; }
.links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.links a { text-decoration: none; color: var(--p2); transition: color 0.2s; }
.links a:hover { color: var(--paper); }

/* ---------- hero: text left, a wall of the makers' logos right ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: clamp(48px, 9vh, 104px) var(--m) clamp(48px, 8vh, 88px); max-width: 1320px; margin: 0 auto; }
.hero h1 { font-size: clamp(48px, 1.4rem + 4.4vw, 92px); max-width: 12ch; }
.lede { margin-top: 22px; max-width: 46ch; font-size: clamp(18px, 1rem + 0.4vw, 21px); line-height: 1.45; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 36px; margin-top: 40px; }
.stats dt { font-size: 14px; color: var(--p2); }
.stats dd { margin-top: 4px; font: 500 34px/1 var(--display); }
.stats dd small { font: 400 15px/1 var(--text); color: var(--p2); }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wall span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: var(--paper); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.45s); transition: background-color 0.3s; }
.wall span:hover { transform: translateY(-4px) scale(1.03); }
.wall img { width: 44%; height: auto; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- find your model: three taps, or a prompt for your own AI ---------- */
.find { max-width: 1320px; margin: 0 auto; padding: 24px var(--m) 72px; }
.find h2 { font-size: clamp(38px, 1.4rem + 2.4vw, 60px); }
.find-sub { margin-top: 10px; color: var(--p2); max-width: 60ch; }
.find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 28px; }
.pick, .ask { border-radius: 20px; background: var(--s1); padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pick h3, .ask h3 { font: 500 28px/1.05 var(--display); }
.q-t { font: 500 15px/1.2 var(--text); margin-bottom: 8px; }
.q-hint { margin-top: 8px; font-size: 14px; color: var(--p2); }
.pick-out .card { background: var(--s2); animation: none; }
.pick-out .best { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 500 15px/1 var(--text); color: var(--orange); }
.alts { margin-top: 10px; display: grid; gap: 6px; }
.alts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--s1); font-size: 15px; }
.alts li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alts li small { color: var(--p2); margin-left: 6px; }
.alts .btn { flex: none; min-height: 36px; font-size: 14px; padding: 0 12px; }
.install { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--s1); font-size: 15px; }
.install b { font-weight: 500; }
.install code, .prompt code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.install code { font-size: 13.5px; color: var(--p2); overflow-wrap: anywhere; flex: 1 1 220px; }
.install .btn { min-height: 36px; font-size: 14px; padding: 0 12px; }
.ask-t { color: var(--p2); font-size: 16px; max-width: 58ch; }
.prompt { margin: 0; max-height: 340px; overflow: auto; padding: 16px; border-radius: 14px; background: var(--ink); white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: var(--paper); }
.prompt:focus { outline: 2px solid var(--orange); }
.ask-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-act .btn { flex: 1 1 auto; }
@media (max-width: 1020px) { .find-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .find { padding-top: 8px; padding-bottom: 48px; } .find h2 { font-size: 32px; } .prompt { max-height: 260px; } }

/* ---------- directory ---------- */
.dir { max-width: 1320px; margin: 0 auto; padding: 24px var(--m) 96px; }
.dir-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.dir h2 { font-size: clamp(38px, 1.4rem + 2.4vw, 60px); }
.dir-sub { margin-top: 8px; font-size: 15px; color: var(--p2); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--s1); }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--p2); font: 500 15px/1 var(--text); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tabs button span { margin-left: 4px; opacity: 0.7; }
.tabs button[aria-selected='true'] { background: var(--paper); color: var(--ink); }
.dir-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.filters { position: sticky; top: 84px; display: grid; gap: 14px; }
.search input { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--s2); color: var(--paper); font: 400 16px/1 var(--text); }
.search input::placeholder { color: var(--p2); }
.search input:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.f-wrap summary { list-style: none; display: none; }
.f-wrap summary::-webkit-details-marker { display: none; }
.fg + .fg { margin-top: 20px; }
.fg h3 { font: 500 15px/1.2 var(--text); margin-bottom: 8px; }
.fg-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--s1); color: var(--paper); font: 400 14px/1 var(--text); cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.15s var(--ease); }
.chip:hover { background: var(--s2); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--orange); color: var(--ink); font-weight: 500; }
.note { font-size: 15px; color: var(--p2); margin-bottom: 14px; min-height: 22px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(282px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--s1); transition: background-color 0.25s, transform 0.25s var(--ease); animation: card-in 0.4s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
.card:hover { background: var(--s2); transform: translateY(-2px); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.c-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); overflow: hidden; }
.logo img { width: 22px; height: 22px; }
.logo.mono { background: var(--s3); color: var(--paper); font: 500 18px/1 var(--display); }
.c-by { font-size: 14px; color: var(--p2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { margin-left: auto; flex: none; padding: 5px 8px; border-radius: 7px; background: var(--s2); font: 500 13px/1 var(--text); white-space: nowrap; }
.badge.hot { background: var(--orange); color: var(--ink); }
.c-name { font: 500 20px/1.2 var(--text); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.c-desc { font-size: 15px; line-height: 1.45; color: var(--p2); flex: 1; }
.c-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.c-facts dt { color: var(--p2); }
.c-facts dd { text-align: right; }
.c-act { display: flex; gap: 6px; margin-top: 2px; }
.c-act .btn { flex: 1; min-height: 42px; font-size: 15px; padding: 0 12px; }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--s2); }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 3px; background: var(--orange); }
.bar b { position: absolute; top: -4px; bottom: -4px; left: var(--o); width: 2px; background: var(--paper); }
.copy.done { background: var(--orange); color: var(--ink); }
.empty { grid-column: 1 / -1; padding: 28px; border-radius: 16px; background: var(--s1); color: var(--p2); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; font-size: 15px; color: var(--p2); }

/* ---------- FAQ ---------- */
.faq { max-width: 1320px; margin: 0 auto; padding: 40px var(--m) 110px; display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 40px; }
.faq h2 { font-size: clamp(38px, 1.4rem + 2.4vw, 60px); }
.faq-list { display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: var(--s1); padding: 0 20px; transition: background-color 0.2s; }
.faq details[open], .faq details:hover { background: var(--s2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font: 500 18px/1.3 var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 26px/0.9 var(--text); color: var(--orange); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; max-width: 66ch; color: var(--p2); }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a { color: var(--paper); }

.foot { padding: 72px var(--m) 40px; background: var(--s1); }
.foot .big { font: 500 clamp(64px, 14vw, 230px)/0.85 var(--display); letter-spacing: -0.04em; }
.foot-t { margin-top: 28px; max-width: 70ch; color: var(--p2); font-size: 15px; }
.foot-t a { color: var(--paper); }

/* follow card */
.follow { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 12px; width: min(380px, calc(100vw - 24px)); padding: 12px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); transform: translateY(calc(100% + 24px)); transition: transform 0.6s var(--ease); } /* taste-skill-ignore: floating card */
.follow.open { transform: none; }
.follow img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.follow-t { flex: 1; min-width: 0; }
.follow-t b { display: block; font: 500 19px/1.1 var(--display); }
.follow-t span { font-size: 14px; color: rgba(17, 17, 16, 0.66); }
.follow .btn { flex: none; }
.follow-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(17, 17, 16, 0.07); font-size: 20px; cursor: pointer; }

@media (max-width: 1020px) {
  .links { display: none; }
  .top .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .wall { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
  .wall span { border-radius: 12px; animation: none; }
  .wall span:nth-child(n+9) { display: none; }
  .dir-body { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .f-wrap summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--s1); cursor: pointer; font-weight: 500; }
  .f-wrap[open] summary { margin-bottom: 14px; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 20px; padding-bottom: 20px; gap: 18px; }
  .hero h1 { font-size: 38px; }
  .lede { font-size: 16px; margin-top: 10px; }
  .cta { margin-top: 16px; }
  .cta .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: 15px; }
  .stats { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px 12px; margin-top: 18px; }
  .stats dt { font-size: 12.5px; }
  .stats dd { font-size: 24px; }
  .stats dd small { display: block; margin-top: 2px; font-size: 12.5px; }
  .dir { padding-top: 8px; }
  .dir h2 { font-size: 32px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 0 8px; font-size: 14px; }
  .tabs button span { display: block; margin: 4px 0 0; }
  .cards { grid-template-columns: 1fr; }
  .follow .follow-t span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall span, .card { animation: none; }
  .follow { transition: none; }
}
