/* eggsbay guides: the comparison hub and the per-service pages.
   Same identity as the home page (cream, teal, gold; Young Serif over Hanken Grotesk).

   Production serves this file as immutable for a year, so each guide page links it as
   guide.css?v=N. Bump N on every page whenever this file changes. */

:root {
  --bg: oklch(0.98 0.008 100);
  --paper: oklch(1 0 0);
  --rule: oklch(0.88 0.01 100);
  --ink: oklch(0.22 0.02 240);
  --ink-mute: oklch(0.45 0.015 240);
  --ink-soft: oklch(0.58 0.012 240);
  --broody-teal: oklch(0.38 0.065 198);
  --broody-teal-deep: oklch(0.27 0.05 198);
  --broody-gold: oklch(0.72 0.17 82);
  --cream: oklch(0.965 0.03 90);
  --good: oklch(0.42 0.08 160);
  --caution: oklch(0.47 0.11 55);
  --flag: oklch(0.5 0.17 27);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Young Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.site-wordmark .mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--broody-gold), oklch(0.88 0.16 85));
  display: grid;
  place-items: center;
  color: var(--broody-teal-deep);
  font-size: 18px;
  font-weight: 700;
  font-family: 'Hanken Grotesk', sans-serif;
}
.site-nav { font-size: 15px; color: var(--ink-soft); display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Article */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 32px) 96px;
}
.breadcrumbs { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.breadcrumbs a { color: inherit; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

h1 {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
}
h2 {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.18;
  margin: 56px 0 14px;
  text-wrap: balance;
  scroll-margin-top: 84px;
}
h3 { font-size: 19px; line-height: 1.3; margin: 26px 0 8px; }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
a.inline, main p a, main li a { color: var(--broody-teal); text-underline-offset: 3px; }
strong { font-weight: 600; }

.lede { font-size: 20px; color: var(--ink-mute); margin-bottom: 18px; }
.byline { font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }

/* The short answer */
.answer {
  background: var(--cream);
  border-radius: 14px;
  padding: 22px 24px 8px;
  margin: 0 0 8px;
}
.answer h2 { margin-top: 0; font-size: 24px; }
.answer ul { padding-left: 20px; }

/* Comparison table: a real table on wide screens, one card per option on phones. */
.compare-wrap { margin: 22px calc(-1 * clamp(0px, 8vw, 110px)) 8px; }
table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
}
table.compare caption { text-align: left; font-size: 14px; color: var(--ink-soft); padding: 0 2px 10px; caption-side: bottom; padding-top: 10px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
table.compare thead th { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; background: oklch(0.975 0.01 100); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody th { font-weight: 700; white-space: nowrap; }
table.compare tbody th a { color: var(--ink); text-decoration: none; }
table.compare tbody th small { display: block; font-weight: 400; color: var(--ink-soft); white-space: normal; font-size: 13px; margin-top: 2px; }
table.compare tr.ours { background: oklch(0.975 0.025 90); }
table.compare .flag { display: block; margin-top: 6px; color: var(--flag); font-weight: 600; }
table.compare .flag.midway { margin-bottom: 6px; } /* more of the cell's text follows the warning */

@media (max-width: 760px) {
  .compare-wrap { margin-left: 0; margin-right: 0; }
  table.compare, table.compare tbody, table.compare tr, table.compare td, table.compare th { display: block; width: 100%; }
  table.compare { border: 0; background: none; overflow: visible; }
  table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compare caption { display: block; width: 100%; padding: 0 2px 12px; }
  table.compare tbody tr { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; margin-bottom: 14px; padding: 4px 0; }
  table.compare tbody tr.ours { background: oklch(0.975 0.025 90); }
  table.compare tbody th { white-space: normal; font-size: 18px; border-bottom: 1px solid var(--rule); }
  table.compare td { border-bottom: 0; padding: 8px 14px; }
  table.compare td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
}

/* Pros and cons for buyers and sellers */
.option-summary { color: var(--ink-mute); }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 6px; }
@media (max-width: 680px) { .verdicts { grid-template-columns: 1fr; } }
.verdict { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px 6px; }
.verdict h3 { margin: 0 0 8px; font-size: 17px; }
.verdict h4 { margin: 12px 0 4px; font-size: 14px; letter-spacing: 0.01em; }
.verdict h4.good { color: var(--good); }
.verdict h4.caution { color: var(--caution); }
.verdict ul { font-size: 16px; line-height: 1.5; padding-left: 18px; }
.more { font-size: 16px; }

/* Broody call to action */
.cta-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px;
  margin: 26px 0;
}
.cta-card img { width: 76px; height: 76px; }
.cta-card h3 { margin: 0 0 6px; font-family: 'Young Serif', serif; font-weight: 400; font-size: 23px; line-height: 1.2; }
.cta-card p { color: var(--ink-mute); font-size: 16.5px; margin-bottom: 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--broody-teal-deep);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.cta-button.secondary { background: none; color: var(--broody-teal-deep); box-shadow: inset 0 0 0 1.5px var(--broody-teal-deep); }
@media (max-width: 520px) { .cta-card { grid-template-columns: 1fr; } .cta-card img { width: 60px; height: 60px; } }

/* FAQ */
.faq-item { border-top: 1px solid var(--rule); padding: 16px 0 4px; }
.faq-item h3 { margin: 0 0 6px; font-size: 18px; }
.faq-item p { color: var(--ink-mute); }

/* Related pages */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.related a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.related a span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }

.sources { font-size: 15px; color: var(--ink-soft); }
.sources a { color: inherit; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); }
.site-footer p { max-width: 980px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px); font-size: 14px; color: var(--ink-soft); }
.site-footer a { color: inherit; }
