/* ============================================
   BUILDERS COMPARED - GLOBAL STYLES
============================================ */

:root {
  /* Brand colors - same emerald palette as Pigeon */
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-soft: #F0EBE0;
  --ink: #0E1F1C;
  --ink-soft: #2A3D38;
  --ink-mute: #6B7872;
  --accent: #1F6B5C;
  --accent-bright: #2BA68A;
  --accent-soft: rgba(31, 107, 92, 0.08);
  --gold: #C8932E;
  --gold-bright: #E0A93B;
  --line: rgba(14, 31, 28, 0.10);
  --line-strong: rgba(14, 31, 28, 0.18);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { color: var(--ink-soft); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* HEADER */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  align-self: center;
}
.logo .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
.header-nav { display: flex; gap: 2rem; }
.header-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .header-nav { display: none; }
}

/* DISCLOSURE BAR */
.disclosure-bar {
  background: var(--bg-soft);
  padding: 0.6rem var(--gutter);
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.disclosure-bar a {
  color: var(--accent);
  text-decoration: underline;
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

/* DISCLOSURE MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 31, 28, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.modal h3 { margin-bottom: 1rem; }
.modal p { font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); }

/* HERO */
.hero {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-inner {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #E8DDC9 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 3rem);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-inner::before {
  content: '';
  position: absolute;
  right: -150px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(43, 166, 138, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
  max-width: 540px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero p {
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 0.75rem;
}
.last-updated {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.7);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.last-updated::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg { width: 100%; max-width: 280px; height: auto; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 260px; margin: 0 auto; order: -1; }
}

/* PRODUCT CARDS LIST */
.products {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px -10px rgba(31, 107, 92, 0.15);
  transform: translateY(-2px);
}
.rank-tag {
  position: absolute;
  top: 0;
  left: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.4rem 0.9rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rank-tag.recommended { background: var(--gold); }
.rank-tag.editor { background: var(--ink); color: var(--accent-bright); }
.product-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem 1.75rem 1.75rem;
  align-items: center;
}
.product-rank-num {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-mute);
  background: var(--bg-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.product-logo {
  background: var(--bg-soft);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}
.product-logo svg,
.product-logo img {
  width: 100%;
  height: 100%;
  max-width: 130px;
  object-fit: contain;
}
.product-content h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.product-features li::before {
  content: '✓';
  color: var(--accent-bright);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.product-score {
  text-align: center;
}
.score-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ink);
  line-height: 1;
  font-weight: 600;
}
.score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 0.25rem;
  display: block;
}
.score-stars {
  display: flex;
  gap: 1px;
  justify-content: center;
  margin-top: 0.4rem;
}
.score-stars svg { width: 13px; height: 13px; color: var(--gold-bright); }
.review-link {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: underline;
}
.product-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.btn-visit {
  background: var(--accent);
  color: var(--bg);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-visit:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(31, 107, 92, 0.5);
}
.btn-visit .arrow { transition: transform 0.25s; }
.btn-visit:hover .arrow { transform: translateX(3px); }
.start-link {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.promo-text {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
  margin-top: 0.7rem;
  background: var(--accent-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.01em;
}

@media (max-width: 920px) {
  .product-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo score"
      "content content"
      "cta cta";
    padding: 2.5rem 1.25rem 1.5rem;
  }
  .product-logo { grid-area: logo; aspect-ratio: 1; max-height: 110px; }
  .product-score { grid-area: score; }
  .product-content { grid-area: content; }
  .product-cta { grid-area: cta; }
}

/* PHONE BREAKPOINT */
@media (max-width: 600px) {
  /* Header: compact spacing, hide nav text but keep logo */
  .header-inner { padding: 1rem; gap: 0.5rem; }
  .logo { font-size: 1.15rem; }
  .header-nav { gap: 0.9rem; }
  .header-nav a { font-size: 0.82rem; }

  /* Hero: stack visual + content */
  .hero { padding: 1rem; }
  .hero-inner {
    padding: 1.75rem 1.25rem;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }
  .hero h1 { font-size: 1.8rem; line-height: 1.15; }
  .hero p { font-size: 0.95rem; }
  .hero-visual { max-width: 220px; margin: 0 auto; }
  .hero-visual svg { max-width: 220px; }

  /* Disclosure bar: smaller text */
  .disclosure-bar {
    font-size: 0.72rem;
    padding: 0.55rem 0.85rem;
    line-height: 1.4;
  }

  /* Products: single column inside cards */
  .products { padding: 0 1rem; gap: 1.25rem; }
  .product-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "score"
      "content"
      "cta";
    padding: 2.5rem 1.25rem 1.5rem;
    gap: 1rem;
    text-align: center;
  }
  .product-logo { max-height: 90px; max-width: 130px; margin: 0 auto; }
  .product-score { text-align: center; }
  .product-score .score-stars { justify-content: center; }
  .product-content h3 { font-size: 1.1rem; }
  .product-content p { font-size: 0.88rem; }
  .product-features li { font-size: 0.88rem; text-align: left; }
  .product-cta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
  .btn-visit { width: 100%; max-width: 280px; padding: 0.9rem 1.5rem; }
  .rank-tag { font-size: 0.7rem; padding: 0.35rem 0.7rem; }

  /* Why section: stack */
  .why-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .why-item { padding: 1rem 0.5rem; }
  .why-icon { width: 44px; height: 44px; margin-bottom: 0.75rem; }
  .why-item h3 { font-size: 1.05rem; }
  .why-item p { font-size: 0.88rem; }

  /* How we pick: 1 column */
  .criteria-grid { grid-template-columns: 1fr !important; }

  /* FAQ */
  .faq { padding: 0 1rem; }
  .faq-q span:first-child { font-size: 0.95rem; padding-right: 0.5rem; }
  .faq-a p { font-size: 0.88rem; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    text-align: left;
  }
  .footer h4 { font-size: 0.95rem; }
  .footer-disclaimer { font-size: 0.75rem; padding: 1rem; }
  .footer-bottom { font-size: 0.78rem; padding: 1rem; }

  /* Cookie banner: bottom of screen, full width */
  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    max-width: none;
    padding: 1rem;
  }
  .cookie-banner p { font-size: 0.82rem; }
  .cookie-actions { gap: 0.5rem; }
  .cookie-btn { flex: 1; padding: 0.6rem 0.5rem; font-size: 0.85rem; }
}

/* INFO/FAQ SECTION */
.info-section {
  background: var(--bg-card);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.info-section h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}
.info-section .sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--ink-soft);
}

/* WHY SECTION (v1 style - centered cards with icon-only) */
.why-section {
  background: var(--bg-card);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.why-section .why-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.why-section h2 { margin-bottom: 0.75rem; }
.why-section .why-header p { color: var(--ink-soft); }
.why-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 100%; height: 100%; }
.why-item h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.why-item p { font-size: 0.95rem; }
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 500;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--accent);
  transition: all 0.3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--accent); color: var(--bg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
}
.faq-item.open .faq-a { max-height: 500px; margin-top: 1rem; }
.faq-a p { font-size: 0.97rem; line-height: 1.7; }

/* HOW WE PICK */
.how-pick {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.how-pick .container { max-width: 920px; }
.how-pick h2 { color: var(--bg); text-align: center; margin-bottom: 0.75rem; }
.how-pick .sub { color: rgba(250, 250, 247, 0.7); text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.criterion {
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.criterion-num {
  font-family: var(--font-display);
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  font-style: italic;
}
.criterion h4 { color: var(--bg); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.criterion p { color: rgba(250, 250, 247, 0.75); font-size: 0.92rem; }
@media (max-width: 720px) {
  .criteria-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
.footer {
  background: var(--bg-soft);
  padding: 3rem var(--gutter) 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer a { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-disclaimer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
  line-height: 1.6;
}
.footer-bottom {
  background: var(--ink);
  color: rgba(250, 250, 247, 0.6);
  text-align: center;
  padding: 1rem var(--gutter);
  font-size: 0.8rem;
  margin: 0 calc(-1 * var(--gutter));
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 480px;
  background: var(--ink);
  color: var(--bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  z-index: 90;
  display: none;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.4);
}
.cookie-banner.show { display: block; animation: slideUp 0.5s cubic-bezier(0.16,1,0.3,1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner p { color: rgba(250, 250, 247, 0.85); font-size: 0.88rem; margin-bottom: 1rem; }
.cookie-banner p a { color: var(--accent-bright); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.cookie-btn.accept { background: var(--accent-bright); color: var(--ink); }
.cookie-btn.accept:hover { background: var(--bg); }
.cookie-btn.decline { background: rgba(255,255,255,0.1); color: var(--bg); }
.cookie-btn.decline:hover { background: rgba(255,255,255,0.2); }
