/* Copyright (c) 2026 Web Upp Limited. Licensed under the GPL-2.0-or-later; see LICENSE. */
/* ---------- Split and full: the words beside or over one photograph ----------
 * Phones: the photograph (the phone crop when there is one) above the words.
 * From 768px, split: the photograph fills the right part of the section
 * (--wu-hero-split, a share of the viewport) and the words sit in the
 * wrap's left part, never under the photograph; full: the photograph fills
 * the section under a wash and the words sit over it in the inverse text.
 * The ground (base, alt, inverse) is the section's, from the shared
 * wu-ground classes, so it shows behind the words. */
.wu-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.wu-hero__wrap {
  position: relative;
  z-index: 1;
  padding-top: var(--wu-hero-pad-top, var(--wu-section-y, 64px));
  padding-bottom: var(--wu-hero-pad-bottom, var(--wu-section-y, 64px));
}

.wu-hero--media .wu-hero__wrap {
  padding-top: var(--wu-hero-pad-top, 32px);
  padding-bottom: var(--wu-hero-pad-bottom, 48px);
}

.wu-hero__text {
  max-width: var(--wu-hero-text-max, 640px);
}

.wu-hero__text > * {
  margin-block: 0;
}

.wu-hero__title {
  max-width: var(--wu-hero-title-max, none);
  font-family: var(--wu-display);
  font-size: var(--wu-hero-title-size, var(--wp--preset--font-size--heading-1));
  font-weight: var(--wu-hero-title-weight, var(--wu-heading-weight, 700));
  line-height: var(--wu-hero-title-line, 1.05);
  letter-spacing: var(--wu-hero-title-tracking, var(--wu-heading-tracking, -0.02em));
  text-wrap: var(--wu-hero-title-wrap, balance);
}

.wu-hero__text > * + .wu-hero__title {
  margin-top: var(--wu-hero-title-top, 16px);
}

.wu-hero__text > .wu-hero__standfirst {
  max-width: var(--wu-hero-standfirst-max, 52ch);
  margin-top: var(--wu-hero-standfirst-top, 20px);
}

.wu-hero__text > .wu-hero__actions {
  margin-top: var(--wu-hero-foot-top, 28px);
}

.wu-hero__text > .wu-hero__note,
.wu-hero__text > .wu-hero__email {
  margin-top: var(--wu-hero-foot-gap, 20px);
}

.wu-hero__note {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.5;
}

.wu-hero__email a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--wu-accent);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.wu-hero__media {
  position: relative;
  order: -1;
  height: var(--wu-hero-photo-phone, min(100vw, 60svh));
  overflow: hidden;
  background: var(--wu-hero-photo-ground, var(--wu-surface-2));
}

.wu-hero__picture {
  display: contents;
}

.wu-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--wu-hero-focus-phone, 50% 50%);
}

/* On the inverse ground (and over the full layout's photograph, below) the
   hero's text, lines, eyebrow, chip and buttons take the inverse ground's
   pair: the slots are remapped on the hero, so every rule that reads them
   follows. A child sets the --wu-hero-inverse-* slots to choose otherwise
   (a coloured button on the dark ground). */
.wu-hero.wu-ground--inverse,
.wu-ihero.wu-ground--inverse {
  --wu-text: var(--wu-inverse-text);
  --wu-muted: var(--wu-hero-inverse-muted, color-mix(in srgb, var(--wu-inverse-text) 78%, transparent));
  --wu-accent: var(--wu-hero-inverse-accent, var(--wu-inverse-text));
  --wu-line: color-mix(in srgb, var(--wu-inverse-text) 25%, transparent);
  --wu-line-strong: color-mix(in srgb, var(--wu-inverse-text) 55%, transparent);
  --wu-chip-bg: transparent;
  --wu-chip-border: color-mix(in srgb, var(--wu-inverse-text) 40%, transparent);
  --wu-button-face: var(--wu-hero-inverse-button-face, var(--wu-inverse-text));
  --wu-button-text: var(--wu-hero-inverse-button-text, var(--wu-inverse-ground));
  --wu-ghost-face-hover: color-mix(in srgb, var(--wu-inverse-text) 10%, transparent);
  --wu-ghost-border-hover: var(--wu-inverse-text);
}

.wu-ground--inverse .wu-hero__title,
.wu-ground--inverse .wu-ihero__title {
  color: var(--wu-inverse-text);
}

@media (min-width: 768px) {
  .wu-hero {
    justify-content: center;
    min-height: var(--wu-hero-page-min, 0px);
  }
  .wu-hero--home {
    min-height: var(--wu-hero-home-min, calc(100svh - var(--wu-header-h)));
  }
  .wu-hero--media .wu-hero__wrap {
    padding-top: var(--wu-hero-pad-top, var(--wu-section-y, 64px));
    padding-bottom: var(--wu-hero-pad-bottom, var(--wu-section-y, 64px));
  }
  .wu-hero--media .wu-hero__media {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .wu-hero--media .wu-hero__img {
    object-position: var(--wu-hero-focus, 50% 50%);
  }
  .wu-hero--split.wu-hero--media .wu-hero__media {
    left: var(--wu-hero-photo-start, 50%);
  }
  .wu-hero--split.wu-hero--media .wu-hero__text {
    max-width: var(--wu-hero-split-text, min(560px, 50vw - max(var(--wu-gutter, 16px), (100vw - var(--wu-wrap, 1240px)) / 2) - 48px));
  }
  .wu-hero--full.wu-hero--media .wu-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--wu-hero-wash, linear-gradient(90deg, color-mix(in srgb, var(--wu-inverse-ground) 80%, transparent) 0%, color-mix(in srgb, var(--wu-inverse-ground) 50%, transparent) 55%, color-mix(in srgb, var(--wu-inverse-ground) 10%, transparent) 100%));
  }
  .wu-hero--full.wu-hero--media .wu-hero__wrap {
    --wu-text: var(--wu-inverse-text);
    --wu-muted: var(--wu-hero-inverse-muted, color-mix(in srgb, var(--wu-inverse-text) 85%, transparent));
    --wu-accent: var(--wu-hero-inverse-accent, var(--wu-inverse-text));
    --wu-line-strong: color-mix(in srgb, var(--wu-inverse-text) 60%, transparent);
    --wu-chip-bg: transparent;
    --wu-chip-border: color-mix(in srgb, var(--wu-inverse-text) 40%, transparent);
    --wu-button-face: var(--wu-hero-inverse-button-face, var(--wu-inverse-text));
    --wu-button-text: var(--wu-hero-inverse-button-text, var(--wu-inverse-ground));
    --wu-ghost-face-hover: color-mix(in srgb, var(--wu-inverse-text) 10%, transparent);
    --wu-ghost-border-hover: var(--wu-inverse-text);
    color: var(--wu-inverse-text);
  }
  .wu-hero--full.wu-hero--media .wu-hero__title {
    color: var(--wu-inverse-text);
  }
}
/* ---------- The trust line and the button icon (every layout) ---------- */
.wu-hero__trust {
  color: var(--wu-hero-trust-colour, var(--wu-muted));
  font: var(--wu-hero-trust-font, 400 15px/1.5 var(--wu-body));
}

.wu-hero .wu-hero__text > .wu-hero__trust {
  margin-top: var(--wu-hero-trust-top, 20px);
}

.wu-ghero .wu-hero__trust {
  margin-top: 22px;
}

.wu-ground--inverse .wu-hero__trust,
.wu-hero--full.wu-hero--media .wu-hero__trust {
  color: var(--wu-hero-trust-colour, var(--wu-inverse-text));
}

.wu-hero__stars {
  color: var(--wu-hero-stars, var(--wu-accent));
  letter-spacing: 2px;
}

.wu-hero__rating {
  font-weight: var(--wu-hero-rating-weight, 600);
}

.wu-button--icon svg {
  width: var(--wu-hero-icon-size, 18px);
  height: var(--wu-hero-icon-size, 18px);
}

.wu-button--icon:hover svg {
  transform: none;
}

/* ---------- Plain: the page intro (webupp/inner-hero's rules) ----------
 * Moved from webupp/inner-hero in 3.4.0 rule for rule; each value a child
 * may want different is read through a --wu-hero-* slot with the inner
 * hero's value as its fallback, so www.webupp.com draws as before. Optional
 * slot --wu-hero-glow (the soft glow behind, transparent when unset). */
.wu-ihero {
  overflow: clip;
  padding-top: var(--wu-hero-top, 72px);
  padding-bottom: var(--wu-hero-bottom, 64px);
}

.wu-ihero .wu-wrap {
  position: relative;
  z-index: 1;
}

/* The glow fades out before the hero's lower edge, so the section's clip
   never shows as a line. */
.wu-ihero > .wu-glows {
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.wu-ihero__glow {
  top: -30%;
  left: 50%;
  width: min(1100px, 120vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--wu-hero-glow, transparent), transparent);
  animation: none;
}

.wu-ihero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1025px) {
  .wu-ihero--object .wu-ihero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
  }
}
.wu-ihero__text {
  max-width: var(--wu-hero-text-max, 760px);
}

.wu-ihero__head > * {
  margin: 0;
}

.wu-ihero__title {
  max-width: var(--wu-hero-title-max, none);
  margin: var(--wu-hero-title-top, 20px) 0 0;
  font-family: var(--wu-display);
  font-size: var(--wu-hero-title-size, clamp(36px, 4.5vw, 56px));
  font-weight: var(--wu-hero-title-weight, 800);
  line-height: var(--wu-hero-title-line, 1.06);
  letter-spacing: var(--wu-hero-title-tracking, -0.03em);
  text-wrap: var(--wu-hero-title-wrap, balance);
}

.wu-ihero__standfirst {
  max-width: var(--wu-hero-standfirst-max, 60ch);
  margin: var(--wu-hero-standfirst-top, 20px) 0 0;
}

.wu-ihero__foot {
  margin-top: var(--wu-hero-foot-top, 32px);
}

.wu-ihero__foot > * + * {
  margin-top: var(--wu-hero-foot-gap, 20px);
}

.wu-ihero__note {
  margin: 0;
}

.wu-ihero__email {
  margin: 0;
  font-family: var(--wu-mono);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wu-ihero__email a {
  color: var(--wu-text);
  text-decoration: underline;
  text-decoration-color: var(--wu-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.wu-ihero__object {
  min-width: 0;
}

/* From 3.4.0: the first-screen height, the rule and the paragraphs under
   the opening (each drawn only when its field asks for it). */
.wu-ihero.wu-hero--home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--wu-hero-home-min, calc(100svh - var(--wu-header-h)));
}

.wu-ihero__more > * {
  margin: 0;
}

.wu-ihero__rule {
  height: var(--wu-hero-rule-width, 1px);
  margin-top: var(--wu-hero-rule-top, 48px);
  background: var(--wu-hero-rule, var(--wu-line));
}

.wu-ihero__intro {
  display: grid;
  gap: 20px;
  margin-top: var(--wu-hero-intro-top, 40px);
  color: var(--wu-muted);
}

.wu-ihero__intro p {
  max-width: 60ch;
  margin: 0;
}

@media (min-width: 1025px) {
  .wu-ihero__intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }
}
.wu-ground--inverse .wu-ihero__intro {
  color: var(--wu-inverse-text);
}

/* ---------- Glow: glows and a picture (webupp/glow-hero's rules) ----------
 * Moved from webupp/glow-hero in 3.4.0, unchanged. */
.wu-ghero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: 56px 72px;
}
@media (min-width: 768px) {
  .wu-ghero {
    padding-block: 72px 96px;
  }
}
@media (min-width: 1025px) {
  .wu-ghero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--wu-header-h));
    padding-block: 64px 88px;
  }
}
.wu-ghero__glow-1 {
  top: -380px;
  left: -320px;
}
.wu-ghero__glow-2 {
  top: 10%;
  left: 30%;
  width: 1000px;
  height: 1000px;
}
.wu-ghero__glow-3 {
  top: -120px;
  right: -360px;
}
@media (max-width: 1024.98px) {
  .wu-ghero__glow-1 {
    width: 640px;
    height: 640px;
    top: -280px;
    left: -300px;
  }
  .wu-ghero__glow-2 {
    width: 720px;
    height: 720px;
    top: 30%;
    left: -10%;
  }
  .wu-ghero__glow-3 {
    width: 640px;
    height: 640px;
    top: 45%;
    right: -320px;
  }
}
.wu-ghero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--wu-ground));
  pointer-events: none;
}
.wu-ghero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1025px) {
  .wu-ghero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
  }
}
.wu-ghero__text > * {
  margin-block: 0;
}
.wu-ghero__chip {
  gap: 10px;
}
.wu-ghero__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wu-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wu-success) 18%, transparent);
}
.wu-ghero__heading {
  margin-top: 28px !important;
}
.wu-ghero__title {
  max-width: 12ch;
  margin: 0;
  font-family: var(--wu-display);
  font-size: var(--wp--preset--font-size--heading-1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.wu-ghero__standfirst {
  max-width: 40ch;
  margin-top: 28px !important;
}
.wu-ghero__actions {
  margin-top: 40px !important;
}
.wu-ghero__note {
  margin-top: 22px !important;
}
.wu-ghero__stack {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
@media (min-width: 1025px) {
  .wu-ghero__stack {
    max-width: none;
    margin-right: -24px;
  }
}
.wu-ghero__plane {
  position: relative;
  aspect-ratio: 1.18/1;
  transform: perspective(1800px) rotateY(-16deg) rotateX(8deg) rotateZ(2deg);
  transform-origin: 60% 50%;
}
@media (max-width: 767.98px) {
  .wu-ghero__plane {
    transform: perspective(1200px) rotateY(-10deg) rotateX(6deg) rotateZ(1.5deg);
  }
}
.wu-ghero__layer {
  position: absolute;
  will-change: transform;
}
.wu-ghero__layer--1 {
  z-index: 3;
  bottom: 2%;
  left: 6%;
  width: 80%;
}
.wu-ghero__layer--2 {
  z-index: 2;
  top: 4%;
  left: -4%;
  width: 58%;
}
.wu-ghero__layer--3 {
  z-index: 1;
  top: 0;
  right: -6%;
  width: 58%;
}
.wu-ghero__layer--2 .upp-frame__image, .wu-ghero__layer--3 .upp-frame__image {
  filter: var(--wu-stack-back-filter, saturate(0.8) brightness(0.8));
}
.wu-ghero__layer--1 .upp-frame__screen {
  aspect-ratio: 16/9.4;
}
.wu-ghero__layer--2 .upp-frame, .wu-ghero__layer--3 .upp-frame {
  --upp-frame-bar: 22px;
}
.wu-ghero__layer--2 .upp-frame__address, .wu-ghero__layer--3 .upp-frame__address {
  display: none;
}
@media (max-width: 767.98px) {
  .wu-ghero .upp-frame {
    --upp-frame-bar: 20px;
    border-radius: 8px;
  }
  .wu-ghero .upp-frame__dots span {
    width: 6px;
    height: 6px;
  }
  .wu-ghero .upp-frame__address {
    padding: 2px 8px;
    font-size: 9px;
  }
}

.wu-ghero__object {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 640px;
  margin-inline: auto;
}
@media (min-width: 1025px) {
  .wu-ghero__object {
    max-width: none;
  }
}