/* Shared stylesheet for the Feldar team's comparison sites.
   Each site sets its own theme variables in a <style> block via build.py. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/LibreBaskerville-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #161616;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --rule: #e6e3df;
  --rule-strong: #d6d2cc;
  --accent: #2f5d50;
  --head-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 600;
  --head-track: -0.02em;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --frame: radial-gradient(120% 120% at 0% 0%, #f3e3cf 0%, #efe7f3 45%, #dfe9f1 100%);
  --wide: 1080px;
  --text: 680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--text); }

.disclosure { border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.disclosure .wrap { padding-top: 9px; padding-bottom: 9px; }

.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.wordmark { font-family: var(--head-font); font-weight: var(--head-weight); letter-spacing: var(--head-track); font-size: 16px; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

.hero { padding: 64px 0 24px; }
.eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 18px; letter-spacing: 0.01em; }
h1, h2, h3 { font-family: var(--head-font); font-weight: var(--head-weight); letter-spacing: var(--head-track); color: var(--ink); }
h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.1; margin: 0 0 22px; max-width: 18ch; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 660px; margin: 0 0 18px; }
.byline { font-size: 14px; color: var(--muted); margin: 0; }

main > section { padding: 56px 0 8px; }
main > section + section { border-top: 1px solid var(--rule); margin-top: 48px; }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.18; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.3; margin: 32px 0 10px; }
.section-intro { color: var(--ink-2); max-width: var(--text); margin-bottom: 26px; }

.picks { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.picks li { display: grid; grid-template-columns: 40px minmax(150px, 210px) 1fr auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.picks .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.picks .name { font-weight: 600; text-decoration: none; }
.picks .name:hover { text-decoration: underline; }
.picks .for { color: var(--ink-2); }
.picks .price { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-left: 8px; vertical-align: 1px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 12px; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; min-width: 880px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
tbody th { font-weight: 600; white-space: nowrap; }
td.dim { color: var(--muted); }
.table-note { font-size: 13px; color: var(--muted); margin: 0; max-width: var(--text); }
tr[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; align-items: center; }
.filters .label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.chip { font: inherit; font-size: 13.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count { font-size: 13px; color: var(--muted); margin-left: 6px; }

.app { padding: 40px 0 8px; border-top: 1px solid var(--rule); }
.app:first-of-type { border-top: 0; padding-top: 4px; }
.app h3 { font-size: 26px; margin: 0 0 4px; }
.app h3 .num { color: var(--muted); font-weight: 400; margin-right: 10px; font-variant-numeric: tabular-nums; }
.app .bestfor { color: var(--accent); font-weight: 500; margin: 0 0 16px; }
.app > p { max-width: var(--text); }
.facts { display: grid; grid-template-columns: 130px 1fr; margin: 20px 0 8px; max-width: var(--text); border-top: 1px solid var(--rule); }
.facts dt, .facts dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.facts dt { color: var(--muted); }
.official { font-size: 14px; color: var(--muted); margin-top: 12px; }

.shot { margin: 28px 0 8px; padding: clamp(16px, 4vw, 44px); border-radius: 18px; background: var(--frame); }
.shot img { border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 44px rgba(30, 30, 50, .16); }
.shot-caption { font-size: 14px; color: var(--muted); margin: 12px 0 0; max-width: var(--text); }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.cols > div { border-top: 1px solid var(--rule); padding: 18px 0 6px; }
.cols h3 { margin-top: 0; font-size: 18px; }
.cols p { color: var(--ink-2); font-size: 16px; }

.spectrum { margin: 24px 0 8px; }
.spectrum .ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.spectrum ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; }
.spectrum li { padding-top: 14px; }
.spectrum li b { display: block; font-size: 15px; margin-bottom: 4px; }
.spectrum li span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--ink); }
.task { padding: 20px 0 10px; border-bottom: 1px solid var(--rule); }
.task h3 { margin: 0 0 6px; font-size: 19px; }
.task .who { font-size: 14px; color: var(--accent); font-weight: 500; margin: 0 0 8px; }
.task p { font-size: 16px; color: var(--ink-2); margin: 0 0 10px; }

.prompt { font-size: 17px; line-height: 1.7; border-left: 2px solid var(--ink); padding: 4px 0 4px 20px; margin: 20px 0; max-width: var(--text); }
.prompt mark { background: none; color: var(--accent); font-weight: 500; }

ul.clean, ol.clean { padding-left: 20px; max-width: var(--text); }
ul.clean li, ol.clean li { margin-bottom: 8px; }

.faq { border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-weight: 400; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 14px; color: var(--ink-2); max-width: var(--text); }

.sources { font-size: 14.5px; color: var(--ink-2); max-width: 860px; }
.sources dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; border-top: 1px solid var(--rule); }
.sources dt, .sources dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sources dt { font-weight: 600; color: var(--ink); }

.site-foot { margin-top: 72px; border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot p { margin: 0 0 6px; max-width: 580px; }
.site-foot nav { display: flex; gap: 18px; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .site-nav { display: none; }
  .hero { padding-top: 40px; }
  .lead { font-size: 18px; }
  .picks li { grid-template-columns: 30px 1fr; gap: 2px 10px; }
  .picks .for, .picks .price { grid-column: 2; text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .cols, .tasks { grid-template-columns: 1fr; }
  .spectrum ol { grid-template-columns: 1fr; }
  .sources dl { grid-template-columns: 1fr; }
  .sources dt { border-bottom: 0; padding-bottom: 0; }
  main > section { padding-top: 40px; }
}


/* Story tool (aistorywriter.io) */
.tool { border: 1px solid var(--rule-strong); border-radius: 16px; padding: clamp(18px, 3vw, 28px); background: var(--paper); max-width: 820px; }
.tool label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.tool textarea { width: 100%; min-height: 112px; resize: vertical; font: inherit; font-size: 17px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 10px; background: #fff; color: var(--ink); }
.tool textarea:focus, .tool select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tool .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
.tool select { width: 100%; font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid var(--rule-strong); border-radius: 10px; background: #fff; color: var(--ink); }
.tool .go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn { font: inherit; font-size: 15px; font-weight: 600; border-radius: 999px; padding: 11px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; display: inline-block; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.tool .hint { font-size: 13px; color: var(--muted); margin: 0; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; align-items: center; }
.examples .label { font-size: 13px; color: var(--muted); }
.status { font-size: 14px; color: var(--muted); min-height: 1.4em; margin: 14px 0 0; }
.status.err { color: #9b2c2c; }
.story { max-width: 680px; margin: 28px 0 0; }
.story:empty { display: none; }
.story h3 { font-size: 26px; margin: 0 0 16px; }
.story p { font-size: 18px; line-height: 1.7; margin: 0 0 1em; }
.story-actions { display: none; gap: 10px; margin: 8px 0 0; flex-wrap: wrap; }
.story-actions.on { display: flex; }
.cta-line { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .tool .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story p { font-size: 17px; } }

