/* Local, scoped refinements for the 2026-10-17 design review. */

/* F01 — the scene header is intentionally inert except for explicit links. */
.spiral-page .scene-header .seo-case-jump {
  pointer-events: auto;
}

/* F03 — keep concept links readable and outside the mobile preview viewport. */
.seo-concept-links {
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  background: rgb(5 5 5 / 93%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.seo-concept-links span {
  color: #d0d0d0;
}

@media (max-width: 767px) {
  .seo-concept-links {
    top: 208px;
    bottom: auto;
    left: 16px;
    right: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  .seo-concept-links a {
    min-width: 0;
    min-height: 52px;
    gap: 3px;
    text-align: center;
  }

  .app .canvas-slot {
    inset: 288px 0 188px;
  }

  .seo-concept-links strong {
    font-size: 13px;
  }

  .seo-concept-links span {
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (min-width: 768px) and (max-height: 600px) and (orientation: landscape) {
  .seo-concept-links {
    top: 145px;
    left: auto;
    right: 20px;
    width: 310px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-concept-links span {
    font-size: 12px;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .seo-concept-links {
    top: 180px;
  }

  .app .canvas-slot {
    inset: 260px 0 172px;
  }
}

@media (max-width: 767px) and (max-height: 540px) and (orientation: landscape) {
  #app .mobile-name {
    top: 122px;
    left: 16px;
    right: auto;
    width: 45%;
    font-size: clamp(32px, 6vw, 36px);
    line-height: 1;
  }

  .seo-concept-links {
    top: 164px;
    left: 16px;
    right: auto;
    width: calc(47% - 32px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
  }

  .seo-concept-links a {
    min-height: 48px;
  }

  .seo-concept-links span {
    font-size: 12px;
    line-height: 1.2;
  }

  .app .canvas-slot {
    inset: 84px 0 100px 47%;
  }

  #app .mobile-hint {
    top: 230px;
    bottom: auto;
  }
}

/* F05 — restore a clear heading scale while leaving hero imagery and controls intact. */
.hero .home-service-heading {
  bottom: 48px;
  width: min(42vw, 560px);
  color: #f2f2f2;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.28;
  text-wrap: balance;
}

@media (max-width: 767px), (max-width: 1000px) and (max-height: 540px) and (orientation: landscape) {
  .hero .home-service-heading {
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: min(90%, 420px);
    font-size: clamp(16px, 4.4vw, 18px);
    line-height: 1.3;
  }
}

/* F06 — readable Price anchors and practical touch targets. */
.pd-section-nav {
  width: max-content;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: 10px;
}

.pd-section-nav::-webkit-scrollbar {
  display: none;
}

.pd-section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
  scroll-margin-inline: 10px;
}

.pd-content .stepper button,
.pd-content .stepper input {
  width: 44px;
  height: 44px;
}

.pd-content .stepper input {
  font-size: 16px;
}

@media (max-width: 700px) {
  .pd-section-nav {
    top: 88px;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px;
  }

  .pd-section-nav a {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .pd-content .mobile-tabs {
    top: 150px;
  }

  .pd-content .quantity-field {
    flex-wrap: wrap;
  }

  .pd-content .stepper {
    margin-left: auto;
  }
}

/* F07 — tablet and phone comparison shows one selected tariff at a time. */
@media (max-width: 900px) {
  .pd-content #comparison .mobile-tabs,
  .pd-content #extras .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
  }

  .pd-content #comparison .mobile-tabs button,
  .pd-content #extras .mobile-tabs button {
    width: auto;
    min-height: 48px;
    padding: 7px 8px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 5px;
    color: #afb4b8;
    background: #191e20;
    font-size: 12px;
    line-height: 1.3;
  }

  .pd-content #comparison .mobile-tabs button[aria-pressed="true"],
  .pd-content #extras .mobile-tabs button[aria-pressed="true"] {
    color: #101315;
    border-color: #b6f24a;
    background: #b6f24a;
  }

  .pd-content #comparison .plan-table [scope="col"],
  .pd-content #extras .plan-table [scope="col"] {
    text-align: center;
  }

  .pd-content #comparison .compare-table thead th {
    position: static;
    top: auto;
  }

  .pd-content #comparison .plan-table tr > :first-child,
  .pd-content #extras .plan-table tr > :first-child {
    width: 48%;
  }

  .pd-content #comparison .plan-table[data-column] tr > :nth-child(n + 2),
  .pd-content #extras .plan-table[data-column] tr > :nth-child(n + 2) {
    display: none;
  }

  .pd-content #comparison .plan-table[data-column="1"] tr > :nth-child(2),
  .pd-content #comparison .plan-table[data-column="2"] tr > :nth-child(3),
  .pd-content #comparison .plan-table[data-column="3"] tr > :nth-child(4),
  .pd-content #comparison .plan-table[data-column="4"] tr > :nth-child(5),
  .pd-content #extras .plan-table[data-column="1"] tr > :nth-child(2),
  .pd-content #extras .plan-table[data-column="2"] tr > :nth-child(3),
  .pd-content #extras .plan-table[data-column="3"] tr > :nth-child(4),
  .pd-content #extras .plan-table[data-column="4"] tr > :nth-child(5) {
    display: table-cell;
  }

  .pd-content #comparison .plan-table[data-column="1"] tr > :nth-child(2),
  .pd-content #comparison .plan-table[data-column="2"] tr > :nth-child(3),
  .pd-content #comparison .plan-table[data-column="3"] tr > :nth-child(4),
  .pd-content #comparison .plan-table[data-column="4"] tr > :nth-child(5),
  .pd-content #extras .plan-table[data-column="1"] tr > :nth-child(2),
  .pd-content #extras .plan-table[data-column="2"] tr > :nth-child(3),
  .pd-content #extras .plan-table[data-column="3"] tr > :nth-child(4),
  .pd-content #extras .plan-table[data-column="4"] tr > :nth-child(5) {
    width: 52%;
  }
}
