/*
  Apple-inspired refresh for the shop and product pages — the same direction
  as the homepage (src/theme-apple.css): Inter in sentence case instead of the
  condensed all-caps display face, neutral white / #f5f5f7 surfaces, true
  black for dark bands, borderless rounded cards, pill buttons, generous
  spacing. Loaded after products.css and shared/site-nav.css, and only by the
  /products/ pages, so blog and landing pages are untouched.

  The display-face selector list below is generated from every products.css
  and site-nav.css rule that sets Anton (logo wordmarks excluded); repeating
  the same selectors later in the cascade overrides them without !important.
*/

:root {
  --ink: #1d1d1f;
  --charcoal: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --paper: #f5f5f7;
  --cream: #f5f5f7;
  --shadow: none;
  --apple-radius: 22px;
  --apple-section: clamp(64px, 8vw, 112px);
  letter-spacing: -0.011em;
}

body {
  color: var(--ink);
}

/* ---------------------------------------------------------------- Type */

.shop-hero h1,
.shop-hero__metrics strong,
.shop-recommend__head h2,
.recommend-card h3,
.shop-products__head h2,
.shop-bundle__copy h2,
.bundle-list__total strong,
.bundle-list__total span,
.shop-bundle__plus,
.shop-assurance__head h2,
.shop-faq__head h2,
.shop-scenarios__head h2,
.shop-final-cta__copy h2,
.hero h1,
.section-title h2,
.cta-band h2,
.price-row strong,
.placement-panel h3 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.028em;
}

h1, h2, h3 {
  text-wrap: balance;
}

.hero h1,
.shop-hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-title h2,
.shop-recommend__head h2,
.shop-products__head h2,
.shop-bundle__copy h2,
.shop-assurance__head h2,
.shop-faq__head h2,
.shop-scenarios__head h2,
.shop-final-cta__copy h2,
.cta-band h2 {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem);
  line-height: 1.07;
}

/* No forced capitals or wide tracking anywhere but the logo wordmarks. */
body *:not(.k9bar__name strong):not(.footer-logo strong):not(.footer-brand strong) {
  text-transform: none !important;
}

body :is(span, small, p, a, button, li, dt, dd, th, td, summary, figcaption, label, strong) {
  letter-spacing: -0.005em;
}

.k9bar__name strong,
.footer-logo strong,
.footer-brand strong {
  letter-spacing: 0 !important;
}

/* ------------------------------------------------------------- Header */

.k9bar {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.k9bar__nav a {
  color: #424245;
  font-size: 0.86rem;
  font-weight: 500;
}

.k9bar__nav a:hover,
.k9bar__nav a[aria-current] {
  color: var(--ink);
}

.k9bar__order {
  border-radius: 999px;
  font-weight: 600;
}

/* ------------------------------------------------------------ Buttons */

.button {
  min-height: 46px;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.button:hover {
  transform: none;
}

.button--secondary,
.button--ghost {
  border-color: transparent;
  background: none;
  color: var(--red);
}

.button--secondary:hover,
.button--ghost:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------- Cards */

:is(.recommend-card, .product-card, .shop-product, .review-card, .fit-col,
  .spec-table article, .faq-list article, .capability-list > div,
  .assurance-card, .shop-assurance article, .verify-list li) {
  border: 0 !important;
  border-radius: var(--apple-radius);
  box-shadow: none !important;
}

/* ----------------------------------------------------------- Surfaces */

:is(.cta-band, .shop-final-cta) {
  background: #000 !important;
}

/* Dark heroes: flat black, no tinted glows. */
.hero,
.shop-hero {
  background: #000;
}

.shop-hero__media {
  background: #111;
}

/* On black, secondary actions read as light links. */
:is(.hero, .shop-hero, .cta-band, .shop-final-cta) :is(.button--secondary, .button--ghost, .button--ghost-light) {
  color: #f5f5f7;
}

/* In-page section nav: frosted white, not cream. */
.anchor-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.anchor-nav a {
  color: #424245;
  font-weight: 500;
}

/* "Good fit" / placement sections on the multi-zone pages had no styles of
   their own; lay them out as white cards on the light grey surface. */
.shop-fit {
  padding: 72px 0;
  background: #fff;
}

.shop-fit + .shop-fit {
  padding-top: 0;
}

.shop-fit__head {
  margin-bottom: 32px;
}

.shop-fit__head > * {
  max-width: 760px;
}

.shop-fit__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.shop-fit__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.fit-col {
  padding: 28px;
  border-radius: 20px;
  background: #f5f5f7;
}

.fit-col h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.fit-col p {
  margin: 0;
  color: #424245;
  line-height: 1.55;
}

.fit-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-col li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: #424245;
  line-height: 1.5;
}

.fit-check,
.fit-cross {
  flex: none;
  font-weight: 700;
}

.fit-check {
  color: #1d8a3a;
}

.fit-cross {
  color: #86868b;
}

@media (max-width: 760px) {
  .shop-fit {
    padding: 48px 0;
  }

  .fit-col {
    padding: 22px;
  }
}

.verified-reviews {
  background: #f5f5f7;
  border-top: 0;
}

/* Small red kickers: Inter at the base CSS's 950 weight closes up the word
   spaces, so use a normal semibold. */
.eyebrow,
.section-title span {
  font-weight: 600;
  letter-spacing: 0;
}

/* Customer reviews: one horizontal rail instead of a long vertical wall.
   Cards snap into place; arrows (from /shared/compact-lists.js) page on
   desktop, and long reviews collapse behind "Read more". */
.review-rail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}

.review-rail__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-rail__nav {
  display: none;
  gap: 10px;
}

.review-rail.is-ready .review-rail__nav {
  display: flex;
}

.review-rail__btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #e8e8ed;
  color: #1d1d1f;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.review-rail__btn:hover:not(:disabled) {
  background: #d2d2d7;
}

.review-rail__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.verified-reviews__grid,
.verified-reviews__grid[data-rail-track] {
  display: flex;
  gap: 16px;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  margin-inline: -24px;
  padding: 4px 24px 12px;
  scrollbar-width: none;
}

.verified-reviews__grid::-webkit-scrollbar {
  display: none;
}

.verified-reviews__grid:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

.verified-reviews__grid .verified-review-card {
  flex: 0 0 min(360px, 84%);
  scroll-snap-align: start;
  border: 0;
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.verified-review-card footer {
  margin-top: auto;
}

.verified-review-card p.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.review-rail__more {
  margin: -8px 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #0066cc;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (hover: none) {
  .review-rail.is-ready .review-rail__nav {
    display: none;
  }
}

/* FAQ accordions (enhanced by /shared/compact-lists.js). */
.faq-list article {
  padding: 0;
}

.faq-list h3 {
  font-weight: 600;
}

.faq-list article:not(:has(.faq-toggle)) {
  padding: 20px;
}

.faq-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-toggle::after {
  flex: none;
  content: "+";
  color: #86868b;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-list article.is-open .faq-toggle::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p {
  font-weight: 400;
  line-height: 1.55;
}

.faq-answer > :first-child {
  margin-top: 0;
}
