/* SEO-friendly product detail pages. The header and footer come from the shared shell in site.css. */

.product-hero {
  padding: calc(var(--nav-h) + 72px) 0 80px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(25, 55, 98, 0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.product-hero__content h1 {
  max-width: 680px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.04;
}

.product-hero__content .lead {
  max-width: 600px;
  margin-top: 1.25rem;
}

.product-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-hero__visual {
  margin: 0;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.08) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-hero__visual img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.product-hero__visual figcaption {
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.8125rem;
  text-align: center;
}

.product-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.product-benefit {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-benefit h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.product-benefit p {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-benefit ul {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-benefit li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.product-benefit li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.5rem;
  background: var(--orange);
}

a.product-benefit:hover {
  border-color: var(--navy-100);
}

.callout {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: #fff;
}

.callout p {
  max-width: 78ch;
  color: var(--muted);
}

.callout strong {
  color: var(--navy);
}

.product-proof {
  background: var(--surface);
}

.product-proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 3rem;
  margin-top: 2rem;
}

.product-proof__grid li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  color: var(--muted);
}

.product-proof__grid li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
}

.product-cta {
  padding: 72px 0;
  color: #fff;
  background: var(--navy);
}

.product-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.product-cta h2 {
  max-width: 680px;
  color: #fff;
}

.product-cta p {
  max-width: 650px;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

/* About page */
.about-hero .product-hero__content {
  max-width: 860px;
}

.about-hero .product-hero__content h1 {
  max-width: 860px;
}

.product-benefits--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-benefits--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.leader-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.leader-card__photo {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--navy);
}

.leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.leader-card__photo::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: 0;
  width: 44px;
  height: 5px;
  background: var(--orange);
}

.leader-card__initials {
  color: #fff;
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.leader-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.leader-card__name {
  font-size: 1.25rem;
}

.leader-card__title {
  margin-top: 0.4rem;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leader-card__bio {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .product-benefits--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .product-hero__grid,
  .product-benefits,
  .product-benefits--four,
  .product-benefits--two,
  .product-proof__grid,
  .leader-grid {
    grid-template-columns: 1fr;
  }

  .product-hero__content h1 {
    font-size: clamp(2.35rem, 10vw, 4rem);
  }

  .product-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Product video beside its copy (retail page) */
.product-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.product-video__copy p:not(.eyebrow) {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--muted);
}

.product-video__media {
  margin: 0;
}

.product-video__media video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0f2445;
  box-shadow: var(--shadow-lg);
}

.product-video__media figcaption {
  margin-top: 0.75rem;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* A day with the product: time on the left, step on the right */
.day-timeline {
  display: grid;
  gap: 0;
  max-width: 880px;
  margin-top: 2.25rem;
  padding-left: 0;
  list-style: none;
  border-left: 2px solid var(--navy-100);
}

.day-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.9rem 0 0.9rem 1.5rem;
}

.day-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.3rem;
  width: 12px;
  height: 12px;
  background: var(--orange);
}

.day-timeline__time {
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.day-timeline h3 {
  font-size: 1.02rem;
}

.day-timeline p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .product-video__grid {
    grid-template-columns: 1fr;
  }

  .day-timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Video gallery: cards open one shared dialog (js/modules/video-dialog.js) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-card:hover,
.video-card:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.5rem;
  background: #0f2445;
}

.video-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.video-card__play .icon {
  width: 18px;
  height: 18px;
  margin-left: 3px;
}

.video-card__time {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-card__title {
  padding: 0 1rem;
  color: var(--navy);
  font-weight: 700;
}

.video-card__text {
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.video-grid__cta {
  margin-top: 2rem;
  text-align: center;
}

/* Services at the till */
.product-services__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-services__grid h2 {
  margin-bottom: 1rem;
}

.product-services__grid p + p {
  margin-top: 0.85rem;
}

.product-services__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-services__list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  background: #fff;
}

.product-services__list strong {
  color: var(--navy);
}

.product-services__list span {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-services__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Business-type pages, /switch/ and /equipment/ (built by scripts/build-solution-pages.js) */
.product-hero--plain .product-hero__content {
  max-width: 760px;
}

.price-card__yearly {
  margin: -0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.type-shot {
  margin: 1.75rem 0 0;
}

.type-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.type-shot figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.compare-table__row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.compare-table__row:first-child {
  border-top: 0;
}

.compare-table__row--head {
  background: #f6f8fb;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table__row [role="rowheader"] {
  color: var(--navy);
  font-weight: 700;
}

.compare-table__row [role="cell"]:nth-child(2) {
  color: var(--muted);
}

.compare-table__row [role="cell"]:nth-child(3) {
  color: var(--text, #1e293b);
  font-weight: 600;
}

.calc {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calc__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.calc__inputs label {
  display: grid;
  align-content: space-between;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.calc__inputs label:last-child {
  grid-column: 1 / -1;
}

.calc__inputs input,
.calc__inputs select {
  width: 100%;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 500;
}

.calc__inputs input:focus,
.calc__inputs select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.calc__result {
  display: grid;
  gap: 0.35rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}

.calc__label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.calc__big {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.calc__big small,
.calc__big span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.calc__big--lefori strong {
  color: var(--orange);
}

.calc__line {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.calc__result .btn {
  justify-self: start;
  background: #fff;
  color: var(--navy);
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.equip-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.equip-card h3 {
  margin: 0.9rem 0 0.4rem;
}

.equip-card p {
  color: var(--muted);
  line-height: 1.6;
}

.equip-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .calc,
  .calc__inputs {
    grid-template-columns: 1fr;
  }

  .compare-table__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .compare-table__row--head {
    display: none;
  }

  .equip-grid {
    grid-template-columns: 1fr;
  }

  .product-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
