/* ============================================================
   THE TECH JURY — site styles
   Dark, confident editorial design. Verdict/courtroom motif.
   One shared stylesheet for every page. No frameworks.
   ============================================================ */

:root {
  --ink: #0d1015;          /* page background */
  --ink-2: #12161e;        /* raised panels */
  --ink-3: #171c26;        /* cards */
  --line: #262d3b;         /* hairline borders */
  --paper: #f2ede3;        /* primary text — warm paper white */
  --paper-dim: #b9bdc9;    /* secondary text */
  --paper-faint: #8a90a0;  /* tertiary text */
  --brass: #c9a24b;        /* gavel brass — primary accent */
  --brass-bright: #e3bc63;
  --verdict: #3fae6a;      /* winner green */
  --against: #c4554d;      /* con red, muted */
  --radius: 10px;
  --maxw: 1120px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--brass-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: #14100a;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 16, 21, 0.96);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brass);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-faint);
  font-weight: 600;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
}
.main-nav a {
  color: var(--paper-dim);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.main-nav a:hover { color: var(--paper); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--brass-bright); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 12px; padding: 10px 0 6px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(201, 162, 75, 0.13), transparent 60%),
    var(--ink);
}
.hero .kicker,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brass);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 16em;
  font-weight: 700;
}
.hero h1 em { color: var(--brass-bright); font-style: normal; }
.hero .lede {
  max-width: 38em;
  margin: 0 auto 30px;
  color: var(--paper-dim);
  font-size: 1.12rem;
}
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid var(--brass);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brass); color: #171106; }
.btn-primary:hover { background: var(--brass-bright); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 44em; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 10px;
  line-height: 1.2;
}
.section-head p { color: var(--paper-dim); margin: 0; }

/* ---------- Verdict cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.verdict-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verdict-card .case-no {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  font-weight: 700;
}
.verdict-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
}
.verdict-card h3 a { color: var(--paper); }
.verdict-card h3 a:hover { color: var(--brass-bright); text-decoration: none; }
.verdict-card p { color: var(--paper-dim); font-size: 0.94rem; margin: 0; flex: 1; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--paper-faint);
}
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  font-weight: 600;
}

/* ---------- Steps / criteria ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step .step-no {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--paper-dim); font-size: 0.95rem; }

.criteria-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.criteria-list li {
  border-left: 3px solid var(--brass);
  background: var(--ink-2);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  font-size: 0.97rem;
}
.criteria-list li span {
  display: block;
  font-weight: 400;
  color: var(--paper-dim);
  font-size: 0.88rem;
  margin-top: 3px;
}

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--ink-2);
  color: var(--paper);
  display: block;
}
.cat-card:hover { border-color: var(--brass); text-decoration: none; }
.cat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.cat-card span { color: var(--paper-dim); font-size: 0.9rem; }

/* ---------- Signup placeholder ---------- */
.signup-band {
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
}
.signup-band h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 1.7rem;
}
.signup-band p { color: var(--paper-dim); max-width: 34em; margin: 0 auto 22px; }
.signup-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.signup-form input[type="email"] {
  flex: 1 1 240px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
}
.signup-form input::placeholder { color: var(--paper-faint); }
.signup-form button {
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: #171106;
  font: inherit;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.75;
}
.coming-soon-note { font-size: 0.85rem; color: var(--brass); margin-top: 14px; font-weight: 600; }

/* ---------- Verdict page anatomy ---------- */
.case-head { padding: 48px 0 8px; }
.case-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 20em;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--paper-faint);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.case-meta strong { color: var(--paper-dim); font-weight: 600; }

.video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  margin: 26px 0 8px;
}
.video-frame .play-glyph {
  width: 74px; height: 74px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brass-bright);
  font-size: 1.6rem;
  margin: 0 auto 14px;
  padding-left: 5px;
}
.video-frame p { color: var(--paper-dim); margin: 0 0 6px; }
.video-frame .fineprint { font-size: 0.82rem; color: var(--paper-faint); }
.video-frame.embed { padding: 0; display: block; overflow: hidden; }
.video-frame.embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.contenders {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 30px 0;
}
@media (max-width: 720px) {
  .contenders { grid-template-columns: 1fr; }
  .vs-badge { margin: 0 auto; }
}
.contender {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contender.winner { border-color: var(--brass); }
.contender h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 4px;
}
.contender .maker { color: var(--paper-faint); font-size: 0.9rem; margin: 0 0 14px; }
.contender .price-line { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; }
.contender .price-line span { color: var(--paper-faint); font-weight: 400; font-size: 0.88rem; }
.vs-badge {
  align-self: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  color: var(--brass-bright);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.winner-ribbon {
  display: inline-block;
  background: var(--brass);
  color: #171106;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons h4 { margin: 10px 0 6px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pros-cons ul { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; color: var(--paper-dim); }
.pros-cons li { padding: 3px 0 3px 22px; position: relative; }
.pros-cons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--verdict); font-weight: 700; }
.pros-cons .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--against); font-weight: 700; }

/* scorecard */
.scorecard {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
  font-size: 0.97rem;
}
.scorecard caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding-bottom: 12px;
  color: var(--paper);
}
.scorecard th, .scorecard td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: center;
}
.scorecard th { background: var(--ink-2); font-weight: 700; }
.scorecard th:first-child, .scorecard td:first-child { text-align: left; }
.scorecard tbody th { font-weight: 600; color: var(--paper-dim); }
.scorecard .total-row td, .scorecard .total-row th {
  background: rgba(201, 162, 75, 0.1);
  font-weight: 800;
  font-size: 1.05rem;
}
.scorecard .win-cell { color: var(--brass-bright); font-weight: 800; }
.score-note { color: var(--paper-faint); font-size: 0.86rem; }

/* verdict stamp block */
.verdict-block {
  border: 2px solid var(--brass);
  border-radius: 14px;
  padding: 34px 30px;
  margin: 40px 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(201, 162, 75, 0.1), transparent 65%),
    var(--ink-2);
  position: relative;
}
.verdict-block .stamp {
  position: absolute;
  top: -15px;
  left: 26px;
  background: var(--ink);
  padding: 0 12px;
  font-family: var(--font-display);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 700;
  font-size: 0.95rem;
}
.verdict-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 4px 0 12px;
  line-height: 1.25;
}
.verdict-block p { color: var(--paper-dim); margin: 0 0 12px; }
.verdict-block p:last-child { margin-bottom: 0; }
.verdict-block strong { color: var(--paper); }

/* affiliate slots */
.affiliate-slot {
  display: block;
  text-align: center;
  border: 1.5px dashed rgba(201, 162, 75, 0.55);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--brass-bright);
  font-weight: 700;
  margin-top: 16px;
  background: rgba(201, 162, 75, 0.05);
}
.affiliate-slot:hover { text-decoration: none; background: rgba(201, 162, 75, 0.1); }
.affiliate-slot small {
  display: block;
  font-weight: 600;
  color: var(--paper-faint);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-top: 3px;
  text-transform: uppercase;
}
.affiliate-note {
  font-size: 0.85rem;
  color: var(--paper-faint);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 34px;
}

/* ---------- Prose pages (about / legal) ---------- */
.prose { max-width: 46em; padding: 48px 0 64px; }
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 38px 0 10px;
  line-height: 1.3;
}
.prose p, .prose li { color: var(--paper-dim); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--paper); }
.prose .updated { color: var(--paper-faint); font-size: 0.88rem; margin-bottom: 26px; }
.callout {
  border-left: 3px solid var(--brass);
  background: var(--ink-2);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
}
.callout p { margin: 0; color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 44px 0 34px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--paper-dim); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--brass-bright); }
.footer-brand p { color: var(--paper-dim); font-size: 0.94rem; max-width: 30em; margin: 10px 0 0; }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--paper-faint);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: space-between;
}
.footer-legal p { margin: 0; }
