/* Home page */
.hero { background: linear-gradient(100deg, #f3f4f5 0%, var(--hero) 55%, #e2e5e8 100%); padding: 56px 0 0; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; margin-bottom: 20px; }
.hero__text > p:not(.meta):not(.hero__actions) { font-size: 1.08rem; color: #3c4148; max-width: 56ch; }
.hero__actions { margin: 24px 0 22px; }
.hero__art { color: var(--ink); }

.xray { width: 100%; height: auto; overflow: visible; }
.xray__ground line { stroke: #c3c8ce; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.xray__body path, .xray__body rect { fill: none; stroke: #1d232b; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.xray__body .xray__glass { fill: rgba(255, 255, 255, 0.55); stroke-width: 1.6; }
.xray__body .xray__thin { stroke-width: 1.4; stroke: #6d747c; }
.xray__body .xray__light { fill: var(--red); stroke: none; }
.xray__inner path, .xray__inner rect, .xray__inner circle { fill: none; stroke: #7c838b; stroke-width: 1.6; stroke-linejoin: round; }
.xray__inner .xray__spring { stroke: var(--red); stroke-width: 2; }
.xray__inner .xray__part { stroke: var(--red); stroke-width: 2; }
.xray__wheel circle { fill: none; stroke: #1d232b; stroke-width: 2.4; }
.xray__wheel circle:first-child, .xray__wheel circle:nth-child(6) { fill: rgba(29, 35, 43, 0.06); }
.xray__wheel .xray__disc { stroke: #7c838b; stroke-width: 1.6; stroke-dasharray: 3 3; }
.xray__wheel .xray__caliper { fill: none; stroke: var(--red); stroke-width: 7; stroke-linecap: round; }
.xray__lead { fill: none; stroke: #1d232b; stroke-width: 1.2; stroke-dasharray: 3 3; }
.xray__dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.xray__labels text { font-family: var(--font); font-size: 15px; font-weight: 700; fill: #1d232b; text-transform: uppercase; letter-spacing: 0.06em; }
@media (prefers-reduced-motion: no-preference) {
  .xray__body path:first-child { stroke-dasharray: 1900; stroke-dashoffset: 1900; animation: draw 1.8s ease-out 0.1s forwards; }
  .xray__inner, .xray__labels { opacity: 0; animation: fadein 0.8s ease-out 1.3s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* Jump strip, like the category strip of the reference */
.jump { transform: translateY(50%); margin-top: -36px; position: relative; z-index: 3; }
.jump ul { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.jump li { margin: 0; }
.jump a { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px; background: #fff; border-radius: 6px; box-shadow: 0 4px 18px rgba(10, 14, 20, 0.12); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; }
.jump__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #1d232b; }
.jump__ic .icon { width: 18px; height: 18px; }
.jump a:hover { color: var(--red-ink); }
.jump a:hover .jump__ic { border-color: var(--red); color: var(--red); }

/* Sections */
.home { padding-top: 40px; }
.home > .sec { max-width: var(--container); margin-inline: auto; padding: 48px 20px; position: relative; isolation: isolate; }
.home > .sec > h2 { text-align: center; font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 28px; }
.home > .sec > :not(h2):not(.item):not(.table-wrap):not(.stores):not(.steps):not(.chips):not(.ig-sum):not(.ig-channels):not(.part-art) { max-width: var(--text); margin-inline: auto; }
.home > .sec::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; }

/* Use cases: cards straddle a white to dark band */
.home > .sec[data-layout="tiles"] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-bottom: 72px; }
.home > .sec[data-layout="tiles"] > h2 { grid-column: 1 / -1; }
.home > .sec[data-layout="tiles"]::before { background: linear-gradient(to bottom, #fff 0, #fff 52%, var(--black) 52%); }
.home .item { background: #fff; border: 1px solid #ececec; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 20px; }
.home .sec[data-layout="tiles"] .item { display: flex; flex-direction: column; align-items: center; text-align: left; }
.home .sec[data-layout="tiles"] .item h3 { text-align: center; font-size: 1.02rem; min-height: 2.4em; display: flex; align-items: center; }
.home .sec[data-layout="tiles"] .item p { font-size: 15px; margin: 0; }
.home .sec[data-layout="tiles"] .item__icon { width: 64px; height: 64px; order: -1; }
.home .sec[data-layout="tiles"] .item__icon .icon { width: 30px; height: 30px; }

/* Comparison table */
.home #ranking-table { scroll-margin-top: 64px; }
.home .table-hint { display: none; font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 8px; }
.table-wrap--compare { box-shadow: var(--shadow); }
.compare { table-layout: fixed; width: 100%; min-width: 1180px; font-size: 13.5px; }
.compare col.w-place { width: 70px; }
.compare col.w-store { width: 118px; }
.compare col.w-tp { width: 112px; }
.compare td, .compare th { padding: 12px 12px; line-height: 1.45; overflow-wrap: break-word; }
.compare thead th { font-size: 11.5px; letter-spacing: 0.05em; padding-block: 14px; vertical-align: bottom; overflow-wrap: normal; white-space: nowrap; }
.compare .c-place { text-align: center; font-weight: 700; font-size: 18px; color: var(--red); background: #fff; }
.compare .c-store { background: #fff; box-shadow: 1px 0 0 var(--line); overflow-wrap: normal; }
.compare thead .c-place, .compare thead .c-store { background: var(--black); color: #fff; font-size: 11.5px; }
.compare tbody tr:nth-child(even) > * { background: #fafafb; }
.compare tbody tr:hover > * { background: var(--red-tint); }
.compare .c-store a { color: var(--ink); font-weight: 700; text-decoration: none; }
.compare .c-store a:hover { color: var(--red-ink); text-decoration: underline; }
.compare .c-tp a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.compare .c-tp strong { font-size: 18px; line-height: 1.1; }
.compare .c-tp span { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.compare .c-tp a:hover span { color: var(--red-ink); }
/* Wide screens: the table fits, no inner scroll, header sticks under the site header */
@media (min-width: 1200px) {
  .home > #ranking-table { max-width: 1400px; }
  .table-wrap--compare { overflow: visible; border-radius: var(--radius); }
  .compare thead th { position: sticky; top: 64px; }
  .compare thead th:first-child { border-top-left-radius: var(--radius); }
  .compare thead th:last-child { border-top-right-radius: var(--radius); }
}
/* Narrow screens: scroll inside the frame, header row and first two columns stay */
@media (max-width: 1199px) {
  .home .table-hint { display: block; }
  .table-wrap--compare { max-height: 82vh; overflow: auto; overscroll-behavior-x: contain; }
  .compare thead th { position: sticky; top: 0; }
  .compare .c-place { position: sticky; left: 0; z-index: 1; }
  .compare .c-store { position: sticky; left: 70px; z-index: 1; }
  .compare thead .c-place, .compare thead .c-store { z-index: 3; }
}

/* Criteria chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 8px auto 20px; max-width: 900px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(10, 14, 20, 0.06); font-weight: 600; font-size: 14px; }
.chips .icon { color: var(--red); }

/* Store cards: like the pricing cards, dark band on top */
.home > #reviews::before { background: linear-gradient(to bottom, var(--black) 0, var(--black) 460px, #fff 460px); }
.home > #reviews > h2 { color: #fff; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.store { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: var(--radius); box-shadow: 0 4px 22px rgba(10, 14, 20, 0.1); padding: 26px 26px 24px; scroll-margin-top: 80px; }
.store__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.store__place { font-size: 40px; font-weight: 700; color: var(--red); line-height: 1; min-width: 44px; }
.store__mono { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: #3a4048; flex: none; }
.store__name { margin: 0; font-size: 1.35rem; text-transform: uppercase; font-weight: 700; }
.store__name a { color: var(--ink); text-decoration: none; }
.store__name a:hover { color: var(--red-ink); text-decoration: underline; }
.store__shot { margin: 0 0 16px; }
.store__shot img, .plate { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); }
.plate { display: flex; flex-direction: column; overflow: hidden; background: var(--navy); }
.plate__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #eceef1; border-bottom: 1px solid var(--line); }
.plate__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c5c9cf; }
.plate__bar i:first-child { background: var(--red); }
.plate__bar span { flex: 1; margin-left: 8px; background: #fff; border-radius: 999px; padding: 2px 12px; font-size: 12px; color: #4a5058; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: #fff;
  background: radial-gradient(circle at 80% 120%, rgba(221, 0, 0, 0.35), transparent 55%), repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 28px), var(--navy); }
.plate__mono { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--red); color: #fff; font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.plate__name { font-weight: 700; font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.plate__url { font-size: 14px; color: #c3c9d0; letter-spacing: 0.04em; }
.store__shot figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.store__bestfor { background: var(--soft); border-radius: 6px; padding: 10px 14px; font-size: 15px; }
.store__summary { font-size: 15px; }
.store__pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 16px; }
.store__label { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; margin-bottom: 6px; }
.pc { list-style: none; padding: 0; margin: 0; }
.pc li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; padding: 7px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.pc li:last-child { border-bottom: 0; }
.pc .mi { margin-top: 3px; }
.pc--pro .mi { color: var(--ok); }
.pc--con .mi { color: var(--warn); }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.facts th { width: 38%; padding-right: 12px; font-weight: 600; color: #3a4048; white-space: nowrap; }
.facts th .mi { color: var(--red); margin-right: 7px; }
.src .mi { width: 13px; height: 13px; vertical-align: 0; }
.src { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; color: var(--red-ink); vertical-align: -5px; }
.src:hover { background: var(--red-tint); }
.store__cta { margin: auto 0 0; text-align: center; }
.store__cta .btn { min-width: 220px; }

/* Landed cost, fit steps, part types */
.home .ig-sum { max-width: none; }
.home > .sec[data-layout="steps"] .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 24px; counter-reset: step; }
.home .steps li { counter-increment: step; position: relative; margin: 0; padding: 22px 18px 18px; border: 1px solid #ececec; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); font-size: 15px; }
.home .steps li::before { content: counter(step); position: absolute; top: -14px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.home .steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -18px; width: 18px; height: 2px; background: var(--red); }
.steps__icon { display: block; color: var(--red); margin-bottom: 8px; }
.steps__icon .icon { width: 26px; height: 26px; }
.home > .sec[data-layout="cols"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home > .sec[data-layout="cols"] > h2, .home > .sec[data-layout="cols"] > .part-art { grid-column: 1 / -1; }
.home .sec[data-layout="cols"] .item { border-top: 3px solid var(--red); }
.home .sec[data-layout="cols"] .item p { font-size: 15px; margin-bottom: 0.6em; }
.home .sec[data-layout="cols"] .item__icon { display: none; }
.part-art { display: flex; justify-content: center; margin-bottom: 8px; }
.exploded { width: 380px; max-width: 100%; height: auto; }
.exploded__axis { stroke: #b9bec4; stroke-width: 1.5; stroke-dasharray: 5 5; }
.exploded__part circle, .exploded__part rect, .exploded__part path { fill: #fff; stroke: #1d232b; stroke-width: 2; }
.exploded__accent path, .exploded__accent circle { stroke: var(--red); fill: var(--red-tint); }
.exploded__labels text { font-family: var(--font); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; fill: #1d232b; text-anchor: middle; }

/* Channels */
.ig-channels ul { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 8px 0 0; }
.ig-channels li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin: 0; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); font-weight: 600; font-size: 14px; line-height: 1.3; color: #4a5058; }
.ig-channels li .icon { width: 26px; height: 26px; color: #7c838b; }
.ig-channels li.in { background: #fff; border-color: var(--red); color: var(--ink); box-shadow: var(--shadow); }
.ig-channels li.in .icon { color: var(--red); }
.home .ig-channels { max-width: none; }

/* FAQ + sources on home */
.home > #faq::before { background: var(--soft); }
.home > #faq .faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0 18px; }

/* CTA band, like the dark promo banner of the reference */
.cta-band { background: var(--black); color: #fff; text-align: center; padding: 64px 0; }
.cta-band__title { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 10px; }
.cta-band__text { max-width: 640px; margin: 0 auto 22px; color: #d5d9de; }
.cta-band :focus-visible { outline-color: #fff; }

@media (max-width: 1099px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
  .hero__art { max-width: 620px; }
  .jump ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home > .sec[data-layout="tiles"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home > .sec[data-layout="tiles"]::before { background: linear-gradient(to bottom, #fff 0, #fff 40%, var(--black) 40%); }
  .stores { grid-template-columns: minmax(0, 1fr); max-width: var(--text); margin-inline: auto; }
  .home > .sec[data-layout="steps"] .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .steps li:not(:last-child)::after { display: none; }
  .ig-channels ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hero { padding-top: 32px; }
  .hero__grid { padding-bottom: 48px; }
  .jump { transform: none; margin: -24px 0 0; }
  .jump ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .jump a { min-height: 48px; font-size: 13px; padding: 6px 10px; }
  .home { padding-top: 8px; }
  .home > .sec { padding: 48px 16px; }
  .home > .sec[data-layout="tiles"], .home > .sec[data-layout="cols"], .home > .sec[data-layout="steps"] .steps, .store__pc, .ig-channels ul { grid-template-columns: minmax(0, 1fr); }
  .home > .sec[data-layout="tiles"]::before { background: linear-gradient(to bottom, #fff 0, #fff 30%, var(--black) 30%); }
  .home > #reviews::before { background: linear-gradient(to bottom, var(--black) 0, var(--black) 300px, #fff 300px); }
  .store { padding: 20px 16px; }
  .store__place { font-size: 32px; min-width: 34px; }
  .facts th { white-space: normal; width: 42%; }
  .compare { min-width: 1360px; font-size: 13px; }
  .compare col.w-place { width: 58px; }
  .compare col.w-store { width: 104px; }
  .compare col.w-tp { width: 104px; }
  .compare .c-store { left: 58px; }
  .compare thead th { font-size: 10.5px; letter-spacing: 0.03em; padding-inline: 10px; }
  .compare .c-place { font-size: 16px; }
}
.ig-channels figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Tablet and small phone refinements */
@media (max-width: 1099px) {
  .hero__art { margin-inline: auto; width: 100%; }
  .hero__text > p:not(.meta):not(.hero__actions) { max-width: 64ch; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .home > .sec[data-layout="tiles"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home > .sec[data-layout="tiles"] > .item { grid-column: span 2; }
  .home > .sec[data-layout="tiles"] > .item:nth-last-child(2) { grid-column: 2 / span 2; }
  .home > .sec[data-layout="tiles"] > .item:last-child { grid-column: 4 / span 2; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .home > .sec[data-layout="tiles"] > .item:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
}
@media (max-width: 480px) {
  .store__name { font-size: 1.1rem; overflow-wrap: anywhere; }
  .store__head { gap: 10px; }
  .store__mono { width: 46px; height: 46px; font-size: 12px; }
}
