/* ---------- Warranty page (layout primitives live in support.css) ---------- */

/* ---------- Hero seal ---------- */

.warranty-stage .support-stage-img {
  left: 56%;
}

.w-seal {
  position: absolute;
  left: 2%;
  bottom: 9%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(28, 32, 46, 0.86), rgba(10, 12, 18, 0.9));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 8px rgba(255, 255, 255, 0.025),
    0 40px 80px -30px rgba(0, 0, 0, 0.95);
  transform: translate3d(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 22px), 0);
  transition: transform 0.6s var(--ease-out);
  animation: s-fade-up 1s var(--ease-out) 0.5s both;
}

.w-seal-ring {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  fill: rgba(245, 242, 237, 0.62);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  animation: w-spin 26s linear infinite;
}

@keyframes w-spin {
  to { transform: rotate(360deg); }
}

.w-seal-core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 112px;
  height: 112px;
  align-content: center;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 40px -14px rgba(255, 86, 56, 0.9);
  color: #fff;
}

.w-seal-core strong {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.w-seal-core span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

/* ---------- Stats strip ---------- */

.w-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--s-hair-2);
  border-bottom: 1px solid var(--s-hair);
}

.w-stat {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 30px 28px;
}

.w-stat + .w-stat {
  border-left: 1px solid var(--s-hair);
}

.w-stat-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--s-ink);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.w-stat:first-child .w-stat-value > span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.w-stat-value small {
  color: var(--s-dim);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.w-stat-label {
  color: var(--s-dim);
  font-size: 0.86rem;
}

/* ---------- Coverage ---------- */

.w-coverage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

.w-figure {
  position: relative;
  min-height: 440px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.w-figure img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: saturate(0.9) contrast(1.05) brightness(0.85);
  transform: scale(calc(1.06 + var(--py, 0) * 0.01)) translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px), 0);
  transition: transform 0.8s var(--ease-out);
}

.w-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0) 35%, rgba(6, 7, 11, 0.92)),
    linear-gradient(90deg, rgba(255, 106, 61, 0.18), transparent 60%);
  mix-blend-mode: normal;
}

.w-figure figcaption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
}

.w-figure figcaption .s-mono {
  color: rgba(255, 255, 255, 0.62);
}

.w-figure figcaption strong {
  max-width: 360px;
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.w-figure-credit {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 7, 11, 0.5);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.w-figure:hover .w-figure-credit,
.w-figure:focus-within .w-figure-credit {
  opacity: 1;
}

.w-figure-credit a:hover {
  color: #fff;
}

.w-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--s-hair-2);
}

.w-cover {
  position: relative;
  padding: 30px 26px 30px 28px;
  border-bottom: 1px solid var(--s-hair);
  isolation: isolate;
  overflow: hidden;
}

.w-cover:nth-child(odd) {
  border-right: 1px solid var(--s-hair);
}

.w-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 138, 76, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.w-cover:hover::before {
  opacity: 1;
}

.w-cover:hover .s-icon {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 12px 26px -12px rgba(255, 86, 56, 0.9);
  transform: rotate(-6deg) scale(1.05);
}

.w-cover h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
}

.w-cover p {
  margin: 0;
  color: var(--s-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- Claim timeline ---------- */

.w-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

/* Rail + animated progress fill */
.w-steps::before,
.w-steps::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 24px;
  right: calc((100% - 84px) / 4 - 24px);
  height: 1px;
  background: var(--s-hair-2);
}

.w-steps::after {
  height: 2px;
  top: 22.5px;
  background: linear-gradient(90deg, var(--amber), var(--orange) 50%, var(--orange-2));
  box-shadow: 0 0 14px rgba(255, 110, 64, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease-out) 0.3s;
}

.w-steps.in-view::after {
  transform: scaleX(1);
}

.w-steps.reveal {
  transform: none;
}

.w-step {
  position: relative;
  padding-right: 8px;
}

.w-step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--s-hair-2);
  color: var(--s-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.w-steps.in-view .w-step-dot {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 0 6px var(--bg), 0 14px 30px -10px rgba(255, 86, 56, 0.85);
}

.w-steps.in-view .w-step:nth-child(1) .w-step-dot { transition-delay: 0.3s; }
.w-steps.in-view .w-step:nth-child(2) .w-step-dot { transition-delay: 0.75s; }
.w-steps.in-view .w-step:nth-child(3) .w-step-dot { transition-delay: 1.2s; }
.w-steps.in-view .w-step:nth-child(4) .w-step-dot { transition-delay: 1.65s; }

.w-step h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.w-step p {
  margin: 0;
  color: var(--s-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- Prepare checklist ---------- */

.w-prepare {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  margin-top: 64px;
  padding: 40px;
  border-radius: 26px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 122, 69, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px var(--s-hair);
}

.w-prepare-head h3 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.w-prepare-head > p {
  margin: 0;
  color: var(--s-dim);
  font-size: 0.92rem;
  line-height: 1.8;
}

.w-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 28px;
}

.w-progress-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.w-progress-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.w-progress-text {
  color: var(--s-dim);
  font-size: 0.84rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.w-progress-text [data-check-count] {
  color: var(--amber);
  font-weight: 700;
}

.w-prepare.is-complete .w-progress-fill {
  background: linear-gradient(90deg, #8af0bf, var(--green));
}

.w-prepare.is-complete .w-progress-text [data-check-count] {
  color: var(--green);
}

.w-checklist {
  display: grid;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.w-check {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 6px;
  border: 0;
  border-bottom: 1px solid var(--s-hair);
  background: none;
  color: var(--s-ink);
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease, padding 0.4s var(--ease-out);
}

.w-checklist li:first-child .w-check {
  border-top: 1px solid var(--s-hair);
}

.w-check:hover {
  padding-left: 12px;
}

.w-check:focus-visible {
  outline: 2px solid #ffb48a;
  outline-offset: -2px;
  border-radius: 8px;
}

.w-check-box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--ease-spring);
}

.w-check-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 11.5 3 3 6-7'/%3E%3C/svg%3E") center / 100% no-repeat;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.4s var(--ease-spring);
}

.w-check:hover .w-check-box {
  box-shadow: inset 0 0 0 1.5px rgba(255, 138, 76, 0.7);
}

.w-check[aria-pressed="true"] {
  color: var(--s-dim);
}

.w-check[aria-pressed="true"] .w-check-box {
  background: var(--accent-gradient);
  box-shadow: 0 8px 18px -8px rgba(255, 86, 56, 0.9);
  transform: scale(1.05);
}

.w-check[aria-pressed="true"] .w-check-box::after {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Exclusions ---------- */

.w-exclusions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--s-hair-2);
}

.w-exclusions li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--s-hair);
  color: var(--s-ink);
  font-size: 0.96rem;
  line-height: 1.65;
}

.w-x {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--s-hair-2);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.5s var(--ease-out);
}

.w-x::before,
.w-x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  border-radius: 2px;
  background: var(--s-dim);
  transform: rotate(45deg);
  transition: background-color 0.3s ease;
}

.w-x::after {
  transform: rotate(-45deg);
}

.w-exclusions li:hover .w-x {
  background: rgba(255, 93, 77, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 93, 77, 0.45);
  transform: rotate(90deg);
}

.w-exclusions li:hover .w-x::before,
.w-exclusions li:hover .w-x::after {
  background: var(--red);
}

.w-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 32px 0 0;
  padding: 22px 24px;
  border-left: 2px solid var(--yellow);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(244, 197, 66, 0.08), rgba(244, 197, 66, 0.015));
  color: var(--s-dim);
  font-size: 0.92rem;
  line-height: 1.8;
}

.w-note strong {
  color: var(--s-ink);
}

.w-note svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--yellow);
}

/* ---------- Warranty FAQ ---------- */

.w-faq {
  margin-top: 96px;
  border-top: 1px solid var(--s-hair);
}

.w-faq .faq-group-head .inline-link {
  margin-top: 22px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .warranty-stage {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .w-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .w-stat:nth-child(3) {
    border-left: 0;
  }

  .w-stat:nth-child(n + 3) {
    border-top: 1px solid var(--s-hair);
  }

  .w-coverage {
    grid-template-columns: 1fr;
  }

  .w-figure {
    min-height: 340px;
  }

  .w-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .w-steps::before,
  .w-steps::after {
    display: none;
  }

  .w-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 22px;
    padding-bottom: 30px;
  }

  .w-step:not(:last-child)::before,
  .w-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 48px;
    bottom: 0;
    left: 23.5px;
    width: 1px;
    background: var(--s-hair-2);
  }

  .w-step:not(:last-child)::after {
    left: 23px;
    width: 2px;
    background: linear-gradient(180deg, var(--orange), var(--amber));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s var(--ease-out);
  }

  .w-steps.in-view .w-step::after {
    transform: scaleY(1);
  }

  .w-steps.in-view .w-step:nth-child(1)::after { transition-delay: 0.45s; }
  .w-steps.in-view .w-step:nth-child(2)::after { transition-delay: 0.9s; }
  .w-steps.in-view .w-step:nth-child(3)::after { transition-delay: 1.35s; }

  .w-step-dot {
    grid-row: span 2;
    margin: 0;
  }

  .w-step h3 {
    margin-top: 12px;
  }

  .w-prepare {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
  }

  .w-exclusions {
    grid-template-columns: 1fr;
  }

  .w-faq {
    margin-top: 72px;
  }
}

@media (max-width: 600px) {
  .w-seal {
    width: 148px;
    height: 148px;
    left: 0;
  }

  .w-seal-ring {
    font-size: 11.5px;
  }

  .w-seal-core {
    width: 88px;
    height: 88px;
  }

  .w-seal-core strong {
    font-size: 2.2rem;
  }

  .w-seal-core span {
    font-size: 0.62rem;
  }

  .w-stat {
    padding: 22px 16px;
  }

  .w-figure {
    min-height: 300px;
    border-radius: 20px;
  }

  .w-figure figcaption {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .w-figure figcaption strong {
    font-size: 1.12rem;
  }

  .w-cover-grid {
    grid-template-columns: 1fr;
  }

  .w-cover:nth-child(odd) {
    border-right: 0;
  }

  .w-cover {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px 0;
  }

  .w-cover .s-icon {
    grid-row: span 2;
  }

  .w-cover h3 {
    margin: 2px 0 6px;
  }

  .w-prepare {
    margin-top: 40px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .w-prepare .primary-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .w-seal,
  .w-seal-ring {
    animation: none;
  }
}
