.product-page {
  --night: #101b32;
  --night-soft: #182641;
  --lime: #d5fc54;
  --light-ink: #dfe8f8;
  --surface: #f5f8ff;
}

.product-page .site-header {
  position: relative;
  z-index: 1;
  color: var(--white);
  background: var(--night);
  border-color: #ffffff20;
}

.product-page .header-inner nav a { color: var(--light-ink); }
.product-page .header-inner .button-light {
  background: transparent;
  color: #fff;
  border-color: #ffffff66;
}

.product-page .button-accent {
  gap: .65rem;
  color: #14210d;
  background: var(--lime);
}

.product-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(70px, 7.5vw, 112px);
  color: #fff;
  background: var(--night);
}

.product-hero .hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: min(82%, 1430px);
  height: 100%;
  object-fit: cover;
  object-position: 66% 53%;
}

.product-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101b32 0%, #101b32 13%, #101b32ed 29%, #101b327d 57%, #101b320c 100%),
    linear-gradient(0deg, #101b3266, transparent 55%);
}

.product-hero .eyebrow {
  color: var(--lime);
  font-size: .88rem;
  margin-bottom: 1rem;
}

.product-hero h1 {
  font-size: clamp(2.65rem, 5.05vw, 4.55rem);
  letter-spacing: -.045em;
  line-height: 1.15;
}

.product-hero .intro {
  max-width: 27rem;
  margin-block: 1.25rem 1.55rem;
  color: var(--light-ink);
}

.product-hero .button-outline,
.product-pricing .button-outline {
  color: #fff;
  background: #111d33a8;
  border-color: #ffffff7a;
}

.product-page :is(.site-header, .product-hero, .product-pricing, .site-footer) :focus-visible {
  outline-color: var(--lime);
}

.screen-section { background: var(--surface); }
.section-heading { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; align-items: baseline; }
.section-heading p { color: var(--muted); font-size: .86rem; }

.screen-section .workflow li,
.screen-gallery figure,
.product-page .use-case-cards article {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.screen-section .workflow li,
.product-page .use-case-cards article {
  display: flex;
  flex-direction: column;
}

.product-page .card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(17px, 2vw, 24px);
}

.screen-section .card-copy > a { margin-top: auto; }
.product-page .feature-image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #e4eaf9;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .2s ease;
}

.feature-image:hover img,
.feature-image:focus-visible img { transform: scale(1.025); }
.feature-image:focus-visible { outline-offset: -4px; }
.feature-image.phone-feature { background: linear-gradient(135deg, #e5f5fc, #e9e7fa); }
.phone-feature img {
  width: min(75%, 270px);
  height: auto;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 24px #25395b24;
}

.screen-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.screen-gallery .feature-image { aspect-ratio: auto; height: clamp(190px, 21vw, 300px); }
.screen-gallery .feature-image img { object-position: left top; }
.screen-gallery figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem .85rem;
  padding: .8rem 1.15rem;
}
.screen-gallery figcaption span { color: var(--muted); font-size: .9rem; }

.product-page .film-player { border-radius: 16px; box-shadow: 0 12px 32px #283e5c24; }
.product-page .video-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.35rem;
}
.video-grid > div:first-child { max-width: 850px; }
.video-grid .video-intro { max-width: 72ch; }
.feature-videos { margin-top: clamp(2rem, 5vw, 4rem); }
.feature-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.feature-video {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.feature-video:hover, .feature-video:focus-visible { border-color: #5672a4; box-shadow: 0 8px 22px #283e5c20; }
.feature-video-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night); }
.feature-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .feature-video-thumb img { transition: transform .3s ease; }
  .feature-video:is(:hover, :focus-visible) .feature-video-thumb img { transform: scale(1.04); }
}
.feature-video-thumb > time {
  position: absolute;
  inset: auto auto 12px 12px;
  padding: .2rem .55rem;
  border-radius: 6px;
  color: #fff;
  background: var(--night);
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
}
.feature-video-thumb > span {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: .22rem .65rem;
  border-radius: 6px;
  color: var(--night);
  background: var(--lime);
}
.feature-video strong { padding: .7rem .9rem .2rem; font-size: 1.05rem; }
.feature-video-caption { padding: 0 .9rem .85rem; color: var(--muted); font-size: .88rem; }
.feature-video-dialog {
  width: min(1440px, calc(100% - 24px), calc((100svh - 80px) * 16 / 9));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: 16px;
  background: var(--night);
  color: #fff;
}
.feature-video-dialog::backdrop { background: #091021c9; }
.feature-video-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
}
.feature-video-dialog h2 { margin: 0; color: inherit; font-size: 1rem; }
.feature-video-dialog button {
  min-height: 44px;
  padding: .3rem .75rem;
  border: 1px solid #ffffff55;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.feature-video-dialog video { display: block; width: 100%; height: auto; max-height: calc(100svh - 90px); background: #000; }
.product-page .use-case-cards article > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product-page .use-case-cards .card-copy { padding-bottom: 1.4rem; }

.product-pricing {
  color: #fff;
  background: radial-gradient(ellipse at 95% 10%, #304880, transparent 68%), var(--night);
}
.product-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block: 1.4rem 1.2rem;
}
.product-plan {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #ffffff40;
  border-radius: 16px;
  background: #ffffff0a;
}
.product-plan h3 { margin: 0; font-size: 1.12rem; }
.product-plan p:last-child, .product-pricing .intake-message, .plan-amount small { color: var(--light-ink); }
.product-plan .plan-amount {
  display: flex;
  gap: .35rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin: .2rem 0 .45rem;
  font-weight: 750;
}
.plan-amount strong {
  color: var(--lime);
  font-size: clamp(2.6rem, 4.3vw, 3.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.product-pricing .intake-message { margin-top: .7rem; font-size: .89rem; }
.intake-message a { margin-inline-start: .25rem; font-weight: 700; }

.product-questions details { border-block-start: 1px solid var(--line); }
.product-questions details:last-child { border-block-end: 1px solid var(--line); }
.product-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem .25rem;
  list-style: none;
  cursor: pointer;
  font-weight: 740;
}
.product-questions summary::-webkit-details-marker { display: none; }
.product-questions summary::after { content: "+"; color: var(--blue); font-size: 1.35rem; line-height: 1; }
.product-questions details[open] summary::after { content: "−"; }
.product-questions details p { padding: 0 .25rem .95rem; color: var(--muted); }
.product-questions details a { color: var(--blue); font-weight: 700; }

@media (max-width: 810px) {
  .product-page .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .product-hero { padding-block: clamp(155px, 45vw, 220px) 38px; }
  .product-hero .hero-photo {
    width: 100%;
    height: clamp(240px, 70vw, 340px);
    object-position: 75% 42%;
  }
  .product-hero::after {
    background: linear-gradient(180deg, #101b3218 0, #101b3240 110px, #101b32 280px);
  }
  .product-hero h1 { font-size: clamp(2.1rem, 8.8vw, 3.25rem); }
  .product-page .workflow, .screen-gallery, .product-plan-grid { grid-template-columns: 1fr; }
  .screen-gallery .feature-image { height: auto; aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-image img { transition: none; }
}
