/* Splurge or Skip — shared stylesheet
   Palette, type and spacing per project spec (2026-09-01) */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F7F5;
  --text: #1F2124;
  --text-secondary: #5C6066;
  --border: #E3E3E0;
  --action: #E8871E;
  --action-hover: #C96F12;
  --pick: #0F5C4A;
  --pick-bg: #EAF4F1;
  --max-width: 1100px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

@media (min-width: 700px) {
  .wrap { padding: 0 32px; }
}

section, .section {
  padding: 40px 0;
}

@media (min-width: 900px) {
  section, .section { padding: 64px 0; }
}

.section-alt {
  background: var(--bg-alt);
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: 30px;
  font-weight: 700;
}

@media (min-width: 700px) {
  h1 { font-size: 40px; }
}

h2 {
  font-size: 26px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
  max-width: 70ch;
}

.text-secondary { color: var(--text-secondary); }

/* Disclosure bar — block 1 */
.disclosure-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.disclosure-bar a { text-decoration: underline; color: var(--text-secondary); }

/* Header — block 2 */
.hero { padding: 40px 0 8px; }

@media (min-width: 900px) { .hero { padding: 56px 0 8px; } }

.hero .subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 62ch;
}

.hero .updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  background: var(--action);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
}

@media (min-width: 640px) {
  .btn { width: auto; }
}

.btn:hover, .btn:focus-visible { background: var(--action-hover); }

.btn:focus-visible {
  outline: 3px solid #1F2124;
  outline-offset: 2px;
}

/* Quick verdict — block 3 */
.verdict-box {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
}

.verdict-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: baseline;
}

.verdict-row:first-child { border-top: none; padding-top: 0; }

.verdict-label {
  font-weight: 700;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--pick);
  border-radius: 4px;
  padding: 3px 9px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-value { background: #4B5563; }
.badge-skip { background: #9A5B12; }

/* Comparison table — block 4 */
.table-scroll { overflow-x: visible; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

table.compare th, table.compare td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  vertical-align: middle;
}

table.compare th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}

table.compare td.price { white-space: nowrap; font-weight: 600; }

/* Mobile: table becomes stacked cards */
@media (max-width: 780px) {
  table.compare, table.compare thead, table.compare tbody,
  table.compare th, table.compare td, table.compare tr {
    display: block;
  }
  table.compare thead { display: none; }
  table.compare tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
  }
  table.compare td {
    border: none;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
  }
  table.compare td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
  }
  table.compare td.cell-name {
    font-size: 18px;
    font-weight: 700;
    justify-content: flex-start;
  }
  table.compare td.cell-name::before { content: none; }
  table.compare td.cell-btn {
    display: block;
    padding-top: 12px;
  }
  table.compare td.cell-btn::before { content: none; }
}

/* Product sections — block 5 */
.product {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

@media (min-width: 900px) { .product { padding: 56px 0; } }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 760px) {
  .product-grid { grid-template-columns: 280px 1fr; gap: 40px; }
}

.product-image {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 16px;
}

.product-image .placeholder {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-meta {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

@media (min-width: 560px) {
  .product-lists { grid-template-columns: 1fr 1fr; }
}

.product-lists h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.product-lists ul {
  margin: 0;
  padding-left: 20px;
}

.product-lists li { margin-bottom: 6px; }

.pros h3 { color: var(--pick); }
.cons h3 { color: #9A5B12; }

/* How to choose / FAQ */
.faq-item { margin-bottom: 20px; }
.faq-item h3 { font-size: 18px; margin-bottom: 6px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

footer .footer-links a {
  margin-right: 16px;
  color: var(--text);
  text-decoration: underline;
}

footer .disclosure-full {
  max-width: 70ch;
  margin-bottom: 16px;
}

/* Focus visibility, universal */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Simple page header for about/contact/privacy */
.simple-page h1 { margin-bottom: 8px; }
.simple-page .updated { margin-bottom: 32px; }
