/* ============================================================
   TechSifted v2 — Homepage (option3-brief-full.jsx ported faithfully)
   ============================================================ */

.hp-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  border-bottom: 1px solid var(--line);
}
.hp-hero-left {
  padding: 72px 56px 64px;
  border-right: 1px solid var(--line);
}
.hp-hero-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
}
.hp-hero-date .blue { color: var(--brand); font-weight: 600; }
.hp-hero h1 {
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
  text-wrap: balance;
  color: var(--ink);
}
.hp-hero h1 em {
  color: var(--brand);
  font-style: italic;
  font-weight: 800;
}
.hp-hero-p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 0 32px;
}
.hp-hero-btn-row {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.hp-btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.hp-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #d1d5db;
  padding: 13px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.hp-hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hp-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hp-stat-num.good { color: var(--good); }
.hp-stat-num.bad  { color: var(--bad); }
.hp-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.hp-hero-right {
  background: var(--ink);
  color: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.hp-panel-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
  font-weight: 700;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}
.hp-panel-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  line-height: 1.2;
  color: #fff;
}
.hp-pick-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-2);
  flex: 1;
}
.hp-pick-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-2);
}
.hp-pick-rank {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-light);
  font-weight: 700;
}
.hp-pick-name { font-size: 15px; font-weight: 600; color: #fff; }
.hp-pick-cat {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hp-pick-score {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--good-light);
  background: var(--good-bg);
  padding: 4px 8px;
  border-radius: 4px;
}
/* Score chips are colour-coded by value. Previously every score rendered in the
   green "good" style, so a 4.1/10 looked like a recommendation. */
.hp-pick-score.mid { color: var(--warn); background: var(--warn-bg); }
.hp-pick-score.low { color: var(--bad);  background: var(--bad-bg); }
.hp-panel-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--brand-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ============ FEATURE ROW ============ */
.hp-feature-row {
  padding: 64px 56px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.hp-section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.hp-section-h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: var(--ink);
}
.hp-section-line {
  width: 40px;
  height: 3px;
  background: var(--brand);
  margin-bottom: 24px;
}
.hp-big-card { display: flex; flex-direction: column; gap: 16px; }
.hp-big-img {
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e3a8a, #312e81);
}
.hp-big-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.hp-side-card {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 76px;
}
.hp-side-img {
  aspect-ratio: 16/10;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #475569);
}
.hp-side-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.hp-card-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.hp-big-title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.hp-big-title a, .hp-side-title a { color: inherit; text-decoration: none; }
.hp-side-title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.hp-card-dek {
  font-size: 14.5px;
  color: var(--ink-4);
  line-height: 1.55;
  margin: 0;
}
.hp-card-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 12px; color: var(--muted);
}
.hp-card-meta strong { color: var(--ink); }
.hp-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #cbd5e1, #64748b);
  flex-shrink: 0;
}
.hp-score-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: -0.01em;
}
.hp-verdict-chip {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.hp-verdict-chip.worth { background: #dcfce7; color: #15803d; }
.hp-verdict-chip.skip  { background: #fee2e2; color: #b91c1c; }
.hp-verdict-chip.maybe { background: #fef3c7; color: #a16207; }

/* ============ CATEGORY BAND ============ */
.hp-cat-band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}
.hp-cat-card {
  background: var(--bg-2);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.hp-cat-card:last-child { border-right: none; }
.hp-cat-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.hp-cat-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hp-cat-count { font-size: 13px; color: var(--muted); }

/* ============ TWO-COLUMN: LATEST + SIDEBAR ============ */
.hp-two-col {
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  border-bottom: 1px solid var(--line);
}
.hp-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.hp-latest-card { display: flex; flex-direction: column; gap: 12px; }
.hp-latest-card .hp-side-img { aspect-ratio: 4/3; }
.hp-latest-card .hp-side-title { font-size: 19px; }

.hp-load-more-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.hp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 24px;
  align-self: start;
}
.hp-side-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: #fff;
}
.hp-side-head {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.hp-side-box.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.hp-side-box.dark .hp-side-head { color: var(--brand-light); }

.hp-trending-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
}
.hp-trending-row:last-child { border-bottom: none; }
.hp-trending-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}
.hp-trending-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.hp-tool-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.hp-tool-row:last-child { border-bottom: none; }
.hp-tool-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.hp-tool-cat  { font-size: 12px; color: var(--muted); }
.hp-tool-link { font-size: 12px; color: var(--brand); font-weight: 600; text-decoration: none; }

.hp-side-box.dark .hp-news-title {
  font-size: 17px; font-weight: 700; line-height: 1.3;
  margin-bottom: 10px; letter-spacing: -0.015em;
}
.hp-side-box.dark .hp-news-sub {
  font-size: 13px; color: var(--muted-2);
  margin-bottom: 16px; line-height: 1.5;
}
.hp-side-box.dark input {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.hp-side-box.dark button {
  width: 100%;
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ============ COMPARE BAND ============ */
.hp-compare-band {
  background: var(--ink);
  color: #fff;
  padding: 64px 56px;
}
.hp-compare-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
}
.hp-compare-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.hp-compare-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: #fff;
}
.hp-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hp-compare-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ink-2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.hp-compare-kicker {
  font-size: 11px;
  color: var(--brand-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-mono);
}
.hp-compare-card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
  color: #fff;
}
.hp-compare-vs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
.hp-compare-chip {
  background: var(--ink-2);
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
}
.hp-compare-verdict {
  border-top: 1px solid var(--ink-2);
  padding-top: 14px;
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.5;
}
.hp-compare-winner { color: var(--good-light); font-weight: 700; }

/* ============ NEWS WIRE ============ */
.hp-wire {
  padding: 64px 56px;
  border-bottom: 1px solid var(--line);
}
.hp-wire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.hp-wire-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
}
.hp-wire-row.left  { padding-right: 32px; }
.hp-wire-row.right { padding-left: 32px; border-left: 1px solid var(--line); margin-left: -1px; }
.hp-wire-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hp-wire-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--ink);
}
.hp-wire-title a { color: inherit; text-decoration: none; }
.hp-wire-dek {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ============ NEWSLETTER (full-width) ============ */
.hp-newsletter {
  padding: 80px 56px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hp-news-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.hp-news-h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--ink);
}
.hp-news-p {
  font-size: 16px;
  color: var(--ink-4);
  line-height: 1.55;
  max-width: 460px;
  margin: 0;
}
.hp-news-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.hp-news-form-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.hp-news-input-row {
  display: flex; gap: 8px; margin-top: 8px;
}
.hp-news-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}
.hp-news-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hp-news-stats {
  display: flex; gap: 24px; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--muted);
}
.hp-news-stats b { color: var(--ink); }

/* ============ MOBILE ============ */
@media (max-width: 980px) {
  .hp-hero,
  .hp-feature-row,
  .hp-cat-band,
  .hp-two-col,
  .hp-compare-grid,
  .hp-wire-grid,
  .hp-newsletter,
  .hp-latest-grid {
    grid-template-columns: 1fr !important;
  }
  .hp-hero-left { padding: 40px var(--gutter-mobile); border-right: none; }
  .hp-hero-right { padding: 32px var(--gutter-mobile); }
  .hp-hero h1 { font-size: 40px; }
  .hp-feature-row { padding: 40px var(--gutter-mobile); }
  .hp-cat-card { border-right: none; border-bottom: 1px solid var(--line); }
  .hp-two-col { padding: 40px var(--gutter-mobile); gap: 32px; }
  .hp-compare-band { padding: 40px var(--gutter-mobile); }
  .hp-wire { padding: 40px var(--gutter-mobile); }
  .hp-wire-row.right { padding-left: 0; border-left: none; margin-left: 0; }
  .hp-newsletter { padding: 48px var(--gutter-mobile); }
  .hp-news-h2 { font-size: 32px; }
}
