.page-home {
  overflow-x: hidden;
}

.page-home .hero-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.96) 0%, rgba(30, 58, 95, 0.88) 100%);
  background-color: var(--color-navy);
  overflow: hidden;
  padding-bottom: 1.25rem;
}

.page-home .hero-breadcrumb {
  padding-top: 0.875rem;
  position: relative;
  z-index: 3;
}

.page-home .hero-breadcrumb .breadcrumb__link,
.page-home .hero-breadcrumb .breadcrumb__current {
  color: var(--color-pale);
  font-size: var(--size-caption);
}

.page-home .hero-breadcrumb .breadcrumb__link:hover {
  color: var(--color-primary);
}

.page-home .hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  padding-top: clamp(1.5rem, 5vw, 3.25rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 992px) {
  .page-home .hero-shell {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 3rem;
  }
}

.page-home .hero-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255, 107, 0, 0.55);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.page-home .hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--color-primary);
  transform: rotate(45deg);
}

.page-home .hero-title {
  margin: 0 0 1rem;
  font-size: var(--size-h1);
  line-height: 1.15;
  color: var(--color-white);
}

.page-home .hero-desc {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--color-pale);
  font-size: var(--size-body);
  line-height: 1.7;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .hero-btn--ghost {
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-white);
}

.page-home .hero-btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
}

.page-home .hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.page-home .hero-coord {
  position: absolute;
  right: 1rem;
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(11, 27, 43, 0.8);
  border-left: 3px solid var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.page-home .hero-coord__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.8;
}

.page-home .hero-legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--color-line);
}

.page-home .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--size-caption);
  color: var(--color-pale);
}

.page-home .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}

.page-home .legend-dot--orange {
  background: var(--color-primary);
}

.page-home .legend-dot--red {
  background: var(--color-red);
}

.page-home .legend-dot--white {
  background: var(--color-white);
}

.page-home .legend-link {
  color: var(--color-pale);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .legend-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.page-home .hero-speedline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-home .highlights {
  background: var(--color-body);
}

.page-home .highlights-head,
.page-home .coverage-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.page-home .bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page-home .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .bento-card--main {
    grid-column: span 7;
  }

  .page-home .bento-card--fav {
    grid-column: span 5;
  }

  .page-home .bento-card--faq,
  .page-home .bento-card--ios,
  .page-home .bento-card--match {
    grid-column: span 4;
  }
}

.page-home .bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  min-height: 200px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-home .bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.page-home .bento-card--main {
  padding-bottom: 2.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), 0 100%);
}

.page-home .bento-card--fav,
.page-home .bento-card--faq {
  background: var(--color-white);
}

.page-home .bento-card--ios {
  background: var(--color-pale);
}

.page-home .bento-card--match {
  background: var(--color-primary);
  color: var(--color-navy);
}

.page-home .bento-card__index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.25;
  pointer-events: none;
}

.page-home .bento-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
  padding-right: 2.5rem;
}

.page-home .bento-card__text {
  margin: 0;
  font-size: var(--size-caption);
  line-height: 1.6;
}

.page-home .bento-card__points {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding-left: 1rem;
  font-size: var(--size-caption);
  line-height: 1.5;
}

.page-home .bento-card__points li::marker {
  color: var(--color-primary);
}

.page-home .bento-card__link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--size-caption);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-home .bento-card__link:hover {
  border-bottom-color: var(--color-primary);
}

.page-home .bento-card--main .bento-card__link {
  color: var(--color-primary-hover);
}

.page-home .bento-card--main .bento-card__link:hover {
  border-bottom-color: var(--color-primary-hover);
}

.page-home .bento-card--match .bento-card__link {
  color: var(--color-navy);
}

.page-home .bento-card__link--onor {
  border-bottom-color: var(--color-navy);
}

.page-home .fav-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  cursor: pointer;
  user-select: none;
  align-self: flex-start;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .fav-demo__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 1.8;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.page-home .fav-demo__text {
  font-size: var(--size-caption);
  color: var(--color-navy);
  transition: color 0.2s ease;
}

.page-home .fav-demo__toast {
  position: absolute;
  right: -0.5rem;
  bottom: -2rem;
  z-index: 4;
  padding: 0.25rem 0.5rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.6875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-home .fav-demo:hover,
.page-home .fav-demo:focus {
  border-color: var(--color-primary);
  background: var(--color-primary);
  outline: none;
}

.page-home .fav-demo:hover .fav-demo__icon,
.page-home .fav-demo:focus .fav-demo__icon {
  fill: var(--color-white);
  stroke: var(--color-white);
}

.page-home .fav-demo:hover .fav-demo__text,
.page-home .fav-demo:focus .fav-demo__text {
  color: var(--color-white);
}

.page-home .fav-demo:hover .fav-demo__toast,
.page-home .fav-demo:focus .fav-demo__toast {
  opacity: 1;
}

.page-home .rule-guide {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.page-home .rule-guide::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.18), transparent 65%);
  pointer-events: none;
}

.page-home .rule-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .page-home .rule-grid {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }
}

.page-home .section-kicker--onlight {
  color: var(--color-primary);
}

.page-home .rule-title {
  margin: 0 0 0.875rem;
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  color: var(--color-white);
}

.page-home .rule-text {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--color-pale);
  line-height: 1.7;
}

.page-home .rule-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  max-width: 22rem;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-home .rule-search:hover,
.page-home .rule-search:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.page-home .rule-search__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-pale);
  stroke-width: 1.8;
}

.page-home .rule-search__text {
  flex: 1;
  color: var(--color-pale);
  font-size: var(--size-caption);
}

.page-home .rule-search__kbd {
  flex: 0 0 auto;
  padding: 0 0.375rem;
  border: 1px solid var(--color-line);
  color: var(--color-pale);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.page-home .rule-media {
  text-align: center;
}

.page-home .rule-img {
  width: 160px;
  height: 160px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--color-line);
}

@media (min-width: 768px) {
  .page-home .rule-img {
    width: 220px;
    height: 220px;
  }
}

.page-home .fav-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .page-home .fav-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.page-home .fav-media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--color-line);
}

.page-home .fav-text {
  margin: 0 0 1.25rem;
  color: var(--color-navy);
  line-height: 1.7;
}

.page-home .fav-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--color-navy);
  font-size: var(--size-caption);
  line-height: 1.6;
}

.page-home .fav-list li::marker {
  color: var(--color-primary);
}

.page-home .fav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .match-panel {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.page-home .match-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-red));
}

.page-home .match-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .page-home .match-grid {
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
  }
}

.page-home .match-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  color: var(--color-white);
}

.page-home .match-text {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--color-pale);
  line-height: 1.7;
}

.page-home .match-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .page-home .match-metrics {
    grid-template-columns: 1fr;
  }
}

.page-home .match-metric {
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-primary);
}

.page-home .match-metric__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--color-white);
}

.page-home .match-metric__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--color-pale);
}

.page-home .match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .match-media {
  margin: 0;
}

.page-home .match-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: clip-path 0.3s ease;
}

.page-home .match-media:hover .match-img {
  clip-path: polygon(0 0, 100% 4%, 96% 100%, 4% 100%);
}

@media (min-width: 992px) {
  .page-home .match-img {
    aspect-ratio: 8 / 5;
  }
}

.page-home .match-media figcaption {
  margin-top: 0.625rem;
  text-align: right;
  color: var(--color-pale);
  font-size: 0.75rem;
}

.page-home .coverage-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .page-home .coverage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-home .coverage-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .coverage-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.page-home .coverage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-body);
  color: var(--color-primary);
}

.page-home .coverage-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.page-home .coverage-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.page-home .coverage-card__text {
  margin: 0;
  font-size: var(--size-caption);
  line-height: 1.6;
  color: var(--color-navy);
}

.page-home .coverage-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

.page-home .coverage-trust__item {
  position: relative;
  padding-left: 1rem;
  font-size: var(--size-caption);
  color: var(--color-navy);
  font-weight: 700;
}

.page-home .coverage-trust__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  transform: translateY(-50%) rotate(45deg);
}

.page-home .ios-entry {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.14), transparent 55%), var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.page-home .ios-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .page-home .ios-grid {
    grid-template-columns: 1fr 0.7fr;
    align-items: center;
  }
}

.page-home .ios-title {
  margin: 0 0 0.875rem;
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  color: var(--color-white);
}

.page-home .ios-text {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--color-pale);
  line-height: 1.7;
}

.page-home .ios-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.page-home .ios-pill {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-line);
  color: var(--color-pale);
  font-size: var(--size-caption);
}

.page-home .ios-decor {
  position: relative;
  min-height: 120px;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.02);
}

.page-home .ios-decor svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .home-sitemap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.page-home .home-sitemap__label {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-pale);
}

.page-home .home-sitemap__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-sitemap__link {
  color: var(--color-navy);
  font-size: var(--size-caption);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .home-sitemap__link:hover {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .page-home .hero-title {
    font-size: 1.9rem;
  }

  .page-home .hero-desc {
    font-size: var(--size-caption);
  }

  .page-home .rule-title,
  .page-home .match-title,
  .page-home .ios-title {
    font-size: 1.55rem;
  }

  .page-home .bento-card--main {
    clip-path: none;
  }

  .page-home .fav-media__img {
    aspect-ratio: 3 / 2;
  }

  .page-home .hero-coord {
    bottom: 1rem;
    font-size: 0.6875rem;
  }
}
