/* Polanthos — shared styles for SEO landing & comparison pages */
:root {
  --paper: #f4efe5;
  --paper-soft: #fbf8f0;
  --paper-deep: #e9dfcf;
  --ink: #171717;
  --muted: #77716a;
  --muted-2: #9a9288;
  --amber: #efa43b;
  --amber-dark: #cf8123;
  --line: rgba(23,23,23,.10);
  --shadow: 0 24px 80px rgba(40, 31, 18, .14);
  --shadow-soft: 0 16px 48px rgba(40, 31, 18, .10);
  --radius: 34px;
  --max: 1100px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 6%, rgba(239,164,59,.17), transparent 28rem),
    radial-gradient(circle at 2% 40%, rgba(255,255,255,.74), transparent 30rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::selection { background: rgba(239,164,59,.32); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Nav */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 100; pointer-events: none; }
.nav-inner {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(251,248,240,.78);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border-radius: 999px;
  box-shadow: 0 10px 36px rgba(43, 32, 19, .08);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.nav-links a { padding: 10px 12px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.nav-links a:hover { background: rgba(23,23,23,.05); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 720;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 32px rgba(23,23,23,.16); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(23,23,23,.20); }
.btn-secondary { background: rgba(255,255,255,.54); color: var(--ink); border-color: rgba(23,23,23,.08); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* Page hero */
.page {
  padding: 132px 0 24px;
}
.breadcrumb { font-size: 13px; color: var(--muted-2); margin-bottom: 22px; letter-spacing: -.01em; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 7px; opacity: .5; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); border-radius: 99px; }

.page h1 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 86px);
  line-height: .94;
  letter-spacing: -.06em;
  max-width: 900px;
}
.page .lead {
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
  max-width: 720px;
  letter-spacing: -.02em;
}
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.microproof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.microproof span { padding: 9px 12px; background: rgba(255,255,255,.5); border: 1px solid rgba(23,23,23,.07); border-radius: 999px; }

/* Sections */
section { padding: clamp(54px, 7vw, 92px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head.center { margin: 0 auto 38px; text-align: center; }
h2 { font-family: var(--serif); font-size: clamp(32px, 5vw, 58px); line-height: .98; letter-spacing: -.05em; }
.section-copy { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); letter-spacing: -.015em; }

/* Prose */
.prose { max-width: 760px; }
.prose p { margin-top: 18px; font-size: 18px; line-height: 1.62; color: #3a352f; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 40px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.035em; line-height: 1.1; }
.prose ul { margin: 18px 0 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 30px; font-size: 18px; line-height: 1.55; color: #3a352f; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.prose a { color: var(--amber-dark); font-weight: 640; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 720; color: var(--ink); }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.5);
  box-shadow: var(--shadow-soft);
}
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
table.compare thead th { font-weight: 800; letter-spacing: -.01em; font-size: 14px; background: rgba(255,255,255,.4); }
table.compare thead th.us { color: var(--amber-dark); }
table.compare tbody th { font-weight: 720; color: var(--ink); }
table.compare td.us { font-weight: 700; background: rgba(239,164,59,.10); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }
.yes { color: var(--amber-dark); font-weight: 760; }
.no { color: var(--muted-2); }

/* Card grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 42% 58% 54% 46% / 56% 44% 56% 44%;
  background: var(--amber);
  font-weight: 820;
  margin-bottom: 22px;
}
.card h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.08; letter-spacing: -.035em; }
.card p { margin-top: 11px; color: var(--muted); line-height: 1.55; font-size: 16px; }

/* Ranked list (best-of pages) */
.rank { display: grid; gap: 16px; margin-top: 30px; }
.rank-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}
.rank-item.featured { background: rgba(255,255,255,.74); border-color: rgba(239,164,59,.4); }
.rank-num {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 42% 58% 50% 50% / 50% 45% 55% 50%;
  background: var(--paper-soft);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 26px;
}
.rank-item.featured .rank-num { background: var(--amber); color: var(--ink); }
.rank-body h3 { font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -.035em; }
.rank-body .tag { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-dark); vertical-align: middle; }
.rank-body p { margin-top: 10px; color: var(--muted); line-height: 1.58; font-size: 16.5px; }
.rank-meta { margin-top: 12px; font-size: 14px; color: var(--muted-2); }
.rank-meta b { color: var(--ink); font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; margin-top: 26px; display: grid; gap: 12px; }
.faq details {
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  padding: 4px 22px;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 720;
  font-size: 18px;
  letter-spacing: -.02em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-dark); font-size: 24px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); line-height: 1.6; font-size: 16.5px; }

/* CTA */
.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 44px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 34px 90px rgba(23,23,23,.24);
  margin-top: 8px;
}
.cta-card::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -90px; bottom: -110px;
  border-radius: 45% 55% 60% 40% / 48% 42% 58% 52%;
  background: var(--amber);
  opacity: .9;
}
.cta-card h2 { color: #fff; max-width: 620px; }
.cta-card p { margin-top: 14px; color: rgba(255,255,255,.72); max-width: 560px; font-size: 18px; line-height: 1.55; }
.cta-card .btn { position: relative; z-index: 1; background: #fff; color: var(--ink); }

/* Related links */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.related a {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.7);
  font-weight: 680;
  letter-spacing: -.02em;
  transition: transform .2s ease, background .2s ease;
}
.related a:hover { transform: translateY(-2px); background: rgba(255,255,255,.74); }
.related a span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Footer */
footer { padding: 40px 0 46px; color: var(--muted); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 920px) {
  .nav-links a:not(.mobile-keep) { display: none; }
  .grid-3, .grid-2, .related { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card .btn { width: fit-content; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-inner { width: calc(100% - 20px); padding-left: 14px; }
  .brand span { font-size: 15px; }
  .nav .btn { min-height: 40px; padding: 0 13px; }
  .page { padding-top: 110px; }
  .page h1 { font-size: clamp(38px, 11vw, 60px); }
  .page-actions { flex-direction: column; }
  .page-actions .btn { width: 100%; }
  section { padding: 52px 0; }
  .rank-item { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
