/* Page-level blocks: hero, inner banner, benefits, testimonials, pricing, lightbox. */

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

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--c-hero-from), var(--c-hero-to));
  color: var(--c-white);
  overflow: hidden;
}

/* The faint dot field the live hero carries, drawn rather than downloaded. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.13) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--sp-6);
  padding-top: clamp(3rem, 1rem + 6vw, 7rem);
}

.hero__copy {
  padding-bottom: clamp(3rem, 1rem + 6vw, 7rem);
}

.hero h1 {
  color: var(--c-white);
  margin-bottom: var(--sp-5);
}

.hero__lead {
  max-width: 34rem;
  margin-bottom: var(--sp-6);
  color: rgb(255 255 255 / 0.92);
}

.hero__media {
  align-self: end;
  justify-self: center;
  line-height: 0;
}

.hero__media img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__copy {
    padding-bottom: var(--sp-6);
  }

  .hero__media {
    justify-self: start;
  }

  .hero__media img {
    max-width: 320px;
  }
}

/* ---------- Inner page banner ---------- */

.page-banner {
  background: var(--c-blue);
  color: var(--c-white);
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem);
  text-align: center;
}

.page-banner h1 {
  color: var(--c-white);
  margin-bottom: var(--sp-3);
}

.page-banner .breadcrumb {
  justify-content: center;
  color: rgb(255 255 255 / 0.85);
}

.page-banner .breadcrumb a {
  color: var(--c-white);
}

/* ---------- Split block (problem statement) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-7);
}

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

/* ---------- Benefits ---------- */

.benefits {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2.2fr;
  align-items: center;
  gap: var(--sp-7);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
  background: var(--c-white);
}

.benefit {
  padding: var(--sp-5);
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.benefit__num {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--fs-card);
  font-weight: 700;
  color: var(--c-blue);
}

.benefit h3 {
  font-size: var(--fs-lead);
  margin-bottom: var(--sp-2);
}

.benefit p {
  margin: 0;
  font-size: var(--fs-small);
}

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

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

/* ---------- Testimonials ---------- */

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  /* Below the desktop breakpoint the track overflows and snaps. 1fr here
     would divide the visible width between the cards instead of letting them
     scroll, which squeezes them to half a screen each. */
  grid-auto-columns: min(86%, 360px);
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track > * {
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .carousel__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

.testimonial {
  padding: var(--sp-5);
}

.testimonial__quote {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.testimonial__person img {
  width: 40px;
  height: 40px;
}

.testimonial__name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-navy);
  font-size: var(--fs-small);
}

.testimonial__role {
  font-size: 0.9rem;
  color: var(--c-ink-soft);
}

/* ---------- Pricing ---------- */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

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

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

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: linear-gradient(180deg, var(--c-white) 55%, var(--c-pale-blue));
}

.plan__name {
  text-align: center;
  font-size: var(--fs-lead);
  margin-bottom: var(--sp-2);
}

.plan__flag {
  display: block;
  text-align: center;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-orange);
  min-height: 1.5em;
}

.plan__price {
  text-align: center;
  margin-bottom: var(--sp-5);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-navy);
}

.plan__period {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-ink-soft);
}

/* The monthly rate, struck through, shown only alongside the yearly price so
   the saving is visible rather than implied. */
.plan__was {
  margin-right: var(--sp-2);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-ink-soft);
  text-decoration: line-through;
}

/* The saving, in money, shown only on the yearly view. Reads as a gain rather
   than a caveat, so it carries the accent colour. */
.plan__saving {
  margin-top: calc(var(--sp-5) * -1);
  margin-bottom: var(--sp-5);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-orange);
}

/* ---------- Billing period switch ---------- */

/* A segmented control, not a tick. Two labelled choices, the selected one
   filled, so there is never a question which period is on screen. */
.billing-switch {
  display: flex;
  justify-content: center;
  gap: 0;
  width: fit-content;
  margin: 0 auto var(--sp-6);
  padding: 4px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-white);
}

.billing-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.billing-switch label {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-blue-dark);
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.billing-switch input:checked + label {
  color: var(--c-white);
  background: var(--c-blue);
}

/* Keyboard focus has to be visible on the label, since the input is hidden. */
.billing-switch input:focus-visible + label {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

.billing-switch__save {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--c-orange);
}

.billing-switch input:checked + label .billing-switch__save {
  color: var(--c-white);
}

@media (max-width: 400px) {
  .billing-switch label {
    padding: var(--sp-2) var(--sp-3);
  }
}

/* ---------- Video lightbox ---------- */

.lightbox {
  width: min(90vw, 960px);
  padding: 0;
  background: #000;
  border: 0;
  border-radius: var(--radius-card);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.72);
}

.lightbox__frame {
  aspect-ratio: 16 / 9;
}

.lightbox__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-white);
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Long-form prose (legal pages) ---------- */

.prose {
  max-width: 68ch;
  margin-inline: auto;
}

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-7);
}

.prose h3 {
  font-size: var(--fs-card);
  margin-top: var(--sp-6);
}

.prose p,
.prose li {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.pricing__link {
  margin: var(--sp-6) 0 0;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--c-orange);
}

.pricing__link a {
  color: var(--c-orange);
  font-weight: 600;
}

/* The two testimonial cards sit centred and narrower than the container,
   matching the live layout rather than stretching the full 1320px. */
.carousel {
  max-width: 1100px;
  margin-inline: auto;
}

/* ---------- How it works ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}

.feature {
  padding: var(--sp-5);
}

.feature h3 {
  font-size: var(--fs-lead);
  margin-bottom: var(--sp-3);
}

.feature p {
  margin: 0;
  font-size: var(--fs-small);
}

/* ---------- Get help ---------- */

.video-btn {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-small);
}

.help-contact {
  margin-top: var(--sp-7);
  text-align: center;
  font-size: var(--fs-small);
}

/* ---------- Contact ---------- */

.contact-list {
  margin: var(--sp-6) 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

.contact-list__label {
  display: block;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  margin-bottom: var(--sp-1);
}

/* ---------- Legal prose ---------- */

.prose__meta {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  margin-bottom: var(--sp-6);
}

.prose__toc {
  margin-bottom: var(--sp-6);
}

.prose__toc li {
  font-size: var(--fs-small);
  margin-bottom: var(--sp-2);
}
