/* Chip Route House — homepage */

.hero {
  position: relative;
  background: var(--accent-deep) url("/assets/hero-band.jpg") center / cover no-repeat;
  color: #f2f7f4;
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--accent-deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8, 48, 30, 0.95) 0%, rgba(10, 60, 38, 0.82) 55%, rgba(12, 74, 46, 0.66) 100%);
}
.hero .wrap { position: relative; }
.hero .kicker { color: #a9d3bc; }
.hero h1 {
  color: #fff;
  max-width: 17ch;
  margin-bottom: var(--s-5);
}
.hero__intro {
  max-width: 62ch;
  font-size: 1.1rem;
  color: #dceae2;
}
.hero__intro strong { color: #fff; font-weight: 600; }

.hero__notice {
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(233, 245, 238, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #dceae2;
  max-width: 62ch;
}
.hero__notice a { color: #b9dcc8; text-decoration: underline; text-underline-offset: 3px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.hero__actions .cta { color: #ffffff; }
.hero__actions .cta--quiet { color: #b9dcc8; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(233, 245, 238, 0.28);
  font-size: 0.82rem;
  color: #b9dcc8;
}
.hero__meta p { margin: 0; }

/* Bento scaffold */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.bento > * { min-width: 0; }
.bento--list { list-style: none; margin: 0; padding: 0; }
.bento--list > li { margin: 0; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.section-head { margin-bottom: var(--s-6); }
.section-head p { color: var(--ink-soft); max-width: 66ch; margin-bottom: 0; }

/* Credibility strip */
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  justify-content: flex-start;
}
.stat-tile b {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-tile span { font-size: 0.9rem; color: var(--ink-soft); }
.stat-tile em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-quiet);
}

/* Figure tiles */
.figure-tile {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fcf5eb;
}
.figure-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  flex: 1;
}
.figure-tile figcaption {
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-quiet);
}

/* Criteria list */
.criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 var(--s-7);
  grid-template-columns: 1fr 1fr;
}
.criteria li {
  margin: 0;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--s-3);
  align-items: baseline;
}
.criteria li:nth-last-child(-n+2) { border-bottom: 0; }
.criteria b {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.criteria strong { font-weight: 600; }
.criteria span { display: block; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

/* Affiliate note beside the showcase */
.ad-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--s-4);
  margin-bottom: var(--s-6);
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 88ch;
}
.ad-note p { margin-bottom: 0; }

/* Operator showcase — ticket-stub cards, two columns */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6) var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.showcase-grid > li { margin: 0; display: flex; }

.op-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.op-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--line);
}

.op-card__id { min-width: 0; }
.op-card__logo {
  box-sizing: content-box;
  display: block;
  height: 32px;
  width: auto;
  max-width: 148px;
  padding: 7px 10px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  object-fit: contain;
  margin-bottom: var(--s-3);
}
.op-card__logo--fallback {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 var(--s-3);
  margin-bottom: var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}
.op-card__id h3 { margin: 0 0 2px; font-size: 1.18rem; }
.op-card__id p { margin: 0; font-size: 0.82rem; color: var(--ink-quiet); }

.op-score { text-align: right; flex: none; }
.op-score b {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.op-score span {
  display: block;
  font-size: 0.7rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--ink-quiet);
  margin-top: 2px;
}

.op-card__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.op-card__body p { font-size: 0.95rem; color: var(--ink-soft); }
.op-card__body .badge-row { margin-top: var(--s-4); }

.op-facts {
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.op-facts div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: var(--s-3);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.op-facts div:last-child { border-bottom: 0; }
.op-facts dt { color: var(--ink-quiet); }
.op-facts dd { margin: 0; color: var(--ink); }

/* Perforated divider before the CTA */
.op-card__perf {
  position: relative;
  margin-top: auto;
  border-top: 1px dashed var(--line-strong);
}
.op-card__perf::before,
.op-card__perf::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
}
.op-card__perf::before { left: -9px; }
.op-card__perf::after { right: -9px; }

.op-card__stub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-4) var(--s-5) var(--s-3);
  background: var(--accent-tint);
}
.op-card__legal {
  padding: var(--s-3) var(--s-5) var(--s-4);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-quiet);
  background: var(--accent-tint);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-top: -1px;
}

/* Sequential entrance for the showcase */
.showcase-grid .op-card { opacity: 1; }
.js .showcase-grid .op-card { opacity: 0; }
.js .showcase-grid.is-ready .op-card {
  animation: card-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 85ms);
}
@keyframes card-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .showcase-grid .op-card { opacity: 1; animation: none; }
}

/* Head-to-head duels */
.duel h3 { margin-bottom: var(--s-1); }
.duel__frame {
  font-size: 0.86rem;
  color: var(--ink-quiet);
  margin-bottom: var(--s-4);
}
.duel table { font-size: 0.9rem; }
.duel caption { text-align: left; font-size: 0; height: 0; }
.duel th,
.duel td {
  padding: 9px var(--s-3) 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.duel thead th {
  font-size: 0.74rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.09em;
  color: var(--ink-quiet);
  font-weight: 600;
}
.duel tbody th { font-weight: 500; color: var(--ink-quiet); width: 30%; }
.duel td { color: var(--ink); width: 35%; }
.duel td:last-child, .duel th:last-child { padding-right: 0; }
.duel tr:last-child th,
.duel tr:last-child td { border-bottom: 0; }
.duel__verdict {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Licensing split */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.split__text { grid-column: span 7; }
.split__aside { grid-column: span 5; }
.split__text p { color: var(--ink-soft); }

.check-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--s-3);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Honesty note */
.honesty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.honesty h3 {
  font-size: 0.8rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.honesty ul { margin: 0; padding-left: 1.1em; }
.honesty li { color: var(--ink-soft); font-size: 0.95rem; }

/* FAQ */
.faq-list { margin: 0; }
.faq-list > div {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.faq-list > div:first-child { padding-top: 0; }
.faq-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-list dt {
  font-weight: 600;
  font-size: 1.06rem;
  margin-bottom: var(--s-2);
}
.faq-list dd { margin: 0; color: var(--ink-soft); max-width: 74ch; }

@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-3 { grid-column: span 1; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split__text, .split__aside { grid-column: auto; }
  .showcase-grid { grid-template-columns: 1fr; }
  .criteria { grid-template-columns: 1fr; }
  .criteria li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .criteria li:last-child { border-bottom: 0; }
  .honesty { grid-template-columns: 1fr; gap: var(--s-5); }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: auto; }
  .hero { padding: var(--s-8) 0 var(--s-7); }
  .op-card__top { flex-direction: row; }
  .op-facts div { grid-template-columns: 100px 1fr; }
  .duel table, .duel tbody, .duel tr, .duel th, .duel td { display: block; width: auto; }
  .duel thead { display: none; }
  .duel tbody tr {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
  }
  .duel tbody tr:last-child { border-bottom: 0; }
  .duel tbody th { border: 0; padding: 0 0 4px; }
  .duel tbody td { border: 0; padding: 0 0 4px; }
  .duel tbody td::before {
    content: attr(data-op) " — ";
    color: var(--ink-quiet);
  }
}
