/* ==========================================================================
   AI Tool Hut - shared stylesheet
   Editorial "review desk" identity: warm paper, ink serif mastheads,
   rust accent, ruled dividers. Deliberately unlike the vendors reviewed.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #FBF7EF;
  --paper-2: #F4EDE0;
  --card: #FFFDF8;
  --ink: #17130E;
  --ink-2: #453B30;
  --ink-3: #6E6151;
  --rust: #B34418;
  --rust-dark: #8E3411;
  --moss: #2C5A4A;
  --gold: #C98A1B;
  --gold-bright: #A8690A;
  --line: #E2D6C2;
  --line-strong: #C9B99E;
  --shadow: 0 1px 0 var(--line-strong), 0 12px 30px -22px rgba(23, 19, 14, .5);
  --radius: 4px;
  --wrap: 1120px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% -5%, rgba(201, 138, 27, .10), transparent 45%),
    radial-gradient(circle at 92% 4%, rgba(179, 68, 24, .08), transparent 40%);
  background-repeat: no-repeat;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1.1em; }
a { color: var(--rust-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
strong { font-weight: 700; }
.mono { font-family: var(--mono); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); max-width: 62ch; }
.small { font-size: 14px; color: var(--ink-3); }
.tiny { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

/* ---------- skip link + header ---------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.masthead .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.wordmark .mark {
  width: 52px; height: 52px; flex: none;
  display: block; border-radius: 8px; object-fit: contain;
}
.footmark .mark {
  width: 42px; height: 42px; flex: none;
  display: inline-block; vertical-align: middle; border-radius: 7px; object-fit: contain; margin-right: 10px;
}
.wordmark .words { font-family: var(--serif); font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.wordmark .words em { font-style: normal; color: var(--rust); }

.sitenav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.sitenav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 8px 11px; border-radius: 3px;
}
.sitenav a:hover { background: var(--paper-2); color: var(--ink); }
.sitenav a[aria-current="page"] { color: var(--rust-dark); box-shadow: inset 0 -2px 0 var(--rust); border-radius: 0; }

/* nav dropdown group: the three use-case pages */
.navgroup { position: relative; }
.navgroup > summary {
  list-style: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 11px; border-radius: 3px; white-space: nowrap;
}
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary::after { content: " \25BE"; color: var(--ink-3); font-size: 11px; }
.navgroup > summary:hover { background: var(--paper-2); color: var(--ink); }
.navgroup.here > summary { color: var(--rust-dark); box-shadow: inset 0 -2px 0 var(--rust); border-radius: 0; }
.navgroup .navmenu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 268px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.navgroup .navmenu a { padding: 10px 12px; border-radius: 3px; }

.navtoggle {
  display: none; margin-left: auto;
  font-family: var(--mono); font-size: 13px;
  background: var(--card); border: 1px solid var(--line-strong);
  color: var(--ink); padding: 8px 12px; border-radius: 3px; cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 13px 22px; border-radius: 3px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: #fff; border-color: var(--rust-dark); box-shadow: 0 2px 0 var(--rust-dark); }
.btn-primary:hover { background: var(--rust-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-sm { font-size: 14px; padding: 9px 15px; }

/* ---------- page furniture ---------- */

.page-head { padding: 58px 0 34px; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-bottom: 0; }

.breadcrumb { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--rust); }

section { padding: 54px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.section-head { max-width: 68ch; margin-bottom: 30px; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }

.prose { max-width: 68ch; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; color: var(--ink-2); }
.prose li strong { color: var(--ink); }

/* ---------- cards and grids ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: 15.5px; }
.card .num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold-bright); letter-spacing: .1em; display: block; margin-bottom: 12px; }

/* ---------- verdict panel (homepage) ---------- */

.verdict {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.verdict h2, .verdict h3 { color: var(--paper); }
.verdict p { color: #D9CDBB; }
.verdict .kicker { color: var(--gold); }
.verdict a:not(.btn) { color: #F0C97A; }
.verdict-rows { list-style: none; margin: 0; padding: 0; }
.verdict-rows li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15.5px; line-height: 1.5; color: #EDE4D3; }
.verdict-rows li:last-child { border-bottom: 0; }
.verdict-rows .lbl { flex: none; width: 108px; font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); padding-top: 3px; -webkit-font-smoothing: antialiased; }

/* ---------- disclosure ---------- */

.disclosure {
  background: #FFF6E4;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.disclosure strong { color: var(--ink); }
.disclosure p:last-child { margin-bottom: 0; }

.callout {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--moss);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--ink-2);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* ---------- pricing table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--paper-2); font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
table.compare tbody th { font-weight: 600; color: var(--ink); width: 210px; }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }
table.compare .yes { color: var(--moss); font-weight: 600; }
table.compare .no { color: var(--ink-3); }

.was { text-decoration: line-through; color: var(--ink-3); font-size: 14px; display: block; }
.now { font-family: var(--serif); font-weight: 800; font-size: 26px; color: var(--ink); display: block; line-height: 1.2; }
.permo { font-size: 14px; color: var(--ink-2); }

/* ---------- plan cards ---------- */

.plans { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.plan.featured { border-color: var(--rust); box-shadow: 0 2px 0 var(--rust), 0 14px 34px -24px rgba(23, 19, 14, .6); }
.plan .flag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 10px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .sub { font-size: 14.5px; color: var(--ink-3); margin-bottom: 18px; }
.plan .price { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.plan ul.feat { list-style: none; margin: 0 0 20px; padding: 0; font-size: 14.5px; }
.plan ul.feat li { padding: 6px 0 6px 22px; position: relative; color: var(--ink-2); }
.plan ul.feat li::before { content: "+"; position: absolute; left: 0; top: 5px; color: var(--moss); font-family: var(--mono); font-weight: 500; }
.plan .plan-cta { margin-top: auto; }
.plan .plan-cta .btn { width: 100%; }
.plan .coupon-note { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; text-align: center; }

/* ---------- testimonials ---------- */

.quotes { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--ink); }
.quote .attrib { display: flex; align-items: center; gap: 11px; }
.quote .initials {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper-2);
  border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
}
.quote .who { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.quote .role { font-size: 13px; color: var(--ink-3); }

/* ---------- screenshot proof figure ---------- */

.proofshot { margin: 0; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.proofshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2); }
.proofshot figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.proofshot figcaption strong { color: var(--ink-2); }

/* ---------- step list (use-case pages) ---------- */

ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
ol.steps > li { position: relative; padding: 0 0 20px 46px; counter-increment: step; }
ol.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--gold-bright);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 4px 7px; background: var(--card);
}
ol.steps > li h3 { font-size: 18px; margin-bottom: .3em; }
ol.steps > li p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 0; }

/* ---------- comparison two-column ---------- */

.versus { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.versus-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.versus-col.alt { background: var(--paper-2); }
.versus-col h3 { display: flex; align-items: baseline; gap: 10px; }
.versus-col h3 .tagmark { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); }
.versus-col ul { list-style: none; margin: 0; padding: 0; }
.versus-col ul li { padding: 9px 0 9px 20px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.versus-col ul li:last-child { border-bottom: 0; }
.versus-col ul li::before { content: "\2014"; position: absolute; left: 0; color: var(--line-strong); }

/* ---------- FAQ ---------- */

.faq { max-width: 78ch; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 10px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 0;
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--rust); font-size: 20px; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- final CTA ---------- */

.final { background: var(--paper-2); border-top: 1px solid var(--line-strong); border-bottom: 0; text-align: center; }
.final .wrap { max-width: 760px; }
.final .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* ---------- footer ---------- */

.sitefoot { background: var(--ink); color: #C9BDAB; padding: 46px 0 34px; font-size: 14.5px; }
.sitefoot a { color: #EAD9BE; text-decoration: none; }
.sitefoot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 30px; }
.sitefoot h4 { color: var(--paper); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot ul li { margin-bottom: 9px; }
.sitefoot .footmark { font-family: var(--serif); font-weight: 800; font-size: 19px; color: var(--paper); margin-bottom: 10px; }
.sitefoot .footmark em { font-style: normal; color: var(--gold); }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; font-size: 13px; line-height: 1.65; color: #A2947F; }
.foot-legal p { margin: 0 0 10px; max-width: 90ch; }
.foot-legal p:last-child { margin-bottom: 0; }
.foot-legal strong { color: #E4D6BE; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .navtoggle { display: block; }
  .sitenav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-strong);
    padding: 8px 16px 16px;
  }
  .sitenav.open { display: flex; }
  .sitenav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .navgroup > summary { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .navgroup .navmenu {
    position: static; min-width: 0; border: 0; box-shadow: none;
    background: transparent; padding: 0 0 0 14px;
  }
  .navgroup .navmenu a { padding: 11px 6px; }
  .grid-2, .grid-3, .grid-4, .quotes, .versus, .plans { grid-template-columns: minmax(0, 1fr); }
  section { padding: 40px 0; }
  .page-head { padding: 40px 0 28px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .verdict { padding: 22px; }
  .verdict-rows li { flex-direction: column; gap: 2px; }
  .verdict-rows .lbl { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
