/*
 * media.css: photographs, real product screenshots and the offer blocks.
 *
 * Hand-written on purpose. site.css is a Tailwind build whose source is not in this repo, so
 * new components get their own classes here instead of new utility classes that would not exist
 * in the built file. Colours and fonts come from the variables site.css defines.
 */

/* ---------- device frames around real screenshots ---------- */
.device-phone {
  position: relative;
  width: var(--device-w, 270px);
  max-width: 100%;
  padding: 9px;
  border-radius: 40px;
  background: var(--color-mb-teal-deep);
  box-shadow: 0 30px 70px rgba(12, 42, 45, 0.28), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
}
.device-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: 31px;
  background: var(--color-mb-cream);
}
.device-tablet {
  padding: 11px;
  border-radius: 26px;
  background: var(--color-mb-teal-deep);
  box-shadow: 0 30px 70px rgba(12, 42, 45, 0.24);
}
.device-tablet img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--color-mb-cream);
}
.device-browser {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-mb-grey-light) 80%, transparent);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(12, 42, 45, 0.14);
}
.device-browser::before {
  content: "";
  display: block;
  height: 30px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-mb-grey-light) 60%, transparent);
  background:
    radial-gradient(circle at 18px 15px, #f15a4a 0 4.5px, transparent 5px),
    radial-gradient(circle at 34px 15px, #e8b84a 0 4.5px, transparent 5px),
    radial-gradient(circle at 50px 15px, #4aa987 0 4.5px, transparent 5px),
    var(--color-mb-paper);
}
.device-browser img { display: block; width: 100%; height: auto; }

.shot-note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-mb-grey);
}

/* ---------- home hero ---------- */
.hx {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-top: -3rem;
  padding: 3.5rem 1.25rem 3.5rem;
  transform: translateX(-50%);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(241, 90, 74, 0.13), transparent 54%),
    radial-gradient(ellipse at top right, rgba(29, 94, 99, 0.14), transparent 52%);
}
.hx-inner {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}
.hx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-mb-coral-deep);
}
.hx-kicker::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.hx-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 4.7vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--color-mb-ink);
}
.hx-title span { color: var(--color-mb-teal); }
.hx-lede {
  max-width: 35rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-mb-grey);
}
.hx-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 1.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
}
.hx-btn--primary {
  background: var(--color-mb-teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(12, 42, 45, 0.18);
}
.hx-btn--primary:hover { background: var(--color-mb-teal-dark); transform: translateY(-1px); }
.hx-btn--ghost {
  border: 1px solid var(--color-mb-grey-light);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-mb-ink);
}
.hx-btn--ghost:hover { border-color: var(--color-mb-teal); background: #fff; }
.hx-btn--coral { background: var(--color-mb-coral-deep); color: #fff; box-shadow: 0 14px 30px rgba(200, 58, 45, 0.25); }
.hx-btn--coral:hover { background: #a92f24; transform: translateY(-1px); }
.hx-btn svg { flex: none; }
.hx-aside { margin: 0 0 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--color-mb-grey); }
.hx-aside a { font-weight: 700; color: var(--color-mb-ink); text-decoration: underline; text-decoration-color: rgba(241, 90, 74, 0.6); text-underline-offset: 4px; }
.hx-aside a:hover { color: var(--color-mb-teal); }
.hx-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; font-weight: 600; color: var(--color-mb-grey); }
.hx-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hx-trust svg { color: var(--color-mb-teal); flex: none; }

.hx-stage { position: relative; max-width: 34rem; margin: 0 auto; padding-bottom: 2.5rem; }
.hx-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(12, 42, 45, 0.22);
}
.hx-stage .device-phone { --device-w: 38%; position: absolute; right: 4%; bottom: 0; }
.hx-ticket {
  position: absolute;
  left: 4%;
  bottom: 9%;
  max-width: 46%;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(12, 42, 45, 0.22);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-mb-ink);
}
.hx-ticket b { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.2rem; font-size: 0.8125rem; }
.hx-ticket b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-mb-coral); }
.hx-ticket span { display: block; color: var(--color-mb-grey); }
.hx-qr { display: none; }

/* ---------- three real screens ---------- */
.shots { display: grid; gap: 2.5rem; }
.shot { display: flex; flex-direction: column; align-items: center; text-align: center; }
.shot-frame { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; margin-bottom: 1.5rem; }
.shot .device-phone { --device-w: 230px; }
.shot .device-tablet { width: 100%; max-width: 30rem; }
.shot-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--color-mb-teal);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}
.shot h3 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--color-mb-ink); }
.shot p { max-width: 22rem; margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--color-mb-grey); }

/* ---------- the setup offer ---------- */
.offer {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--color-mb-teal-deep);
  color: #fff;
}
.offer-grid { display: grid; }
.offer-copy { padding: 2.25rem 1.5rem; }
.offer-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-mb-coral-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offer-title { margin: 0 0 1rem; font-family: var(--font-brand); font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.06; letter-spacing: -0.025em; }
.offer-lede { max-width: 34rem; margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(250, 247, 240, 0.82); }
.offer-steps { display: grid; gap: 0.9rem; margin: 0 0 1.75rem; padding: 0; list-style: none; counter-reset: offer; }
.offer-steps li { position: relative; padding-left: 2.75rem; font-size: 0.9688rem; line-height: 1.55; color: rgba(250, 247, 240, 0.9); counter-increment: offer; }
.offer-steps li::before {
  content: counter(offer);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-mb-coral-soft);
}
.offer-steps strong { color: #fff; }
.offer-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.offer-actions .hx-btn--ghost { border-color: rgba(255, 255, 255, 0.28); background: transparent; color: #fff; }
.offer-actions .hx-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.offer-terms { margin: 1.25rem 0 0; font-size: 0.8125rem; line-height: 1.55; color: rgba(250, 247, 240, 0.62); }
.offer-photo { position: relative; min-height: 15rem; }
.offer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 24% center; }
.offer-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--color-mb-teal-deep), transparent 35%); }

/* ---------- dashboard screenshots row ---------- */
.proof-row { display: grid; gap: 2rem; align-items: start; }
.proof-row figure { margin: 0; }
.proof-row figcaption { margin-top: 1rem; }
.proof-row figcaption b { display: block; margin-bottom: 0.25rem; font-size: 1.0625rem; color: var(--color-mb-ink); }
.proof-row figcaption span { font-size: 0.9375rem; line-height: 1.6; color: var(--color-mb-grey); }

/* ---------- venue cards with photographs ---------- */
.venues { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.venue {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-mb-grey-light) 70%, transparent);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.venue:hover { transform: translateY(-3px); border-color: var(--color-mb-teal); box-shadow: 0 16px 36px rgba(12, 42, 45, 0.12); }
.venue img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* A card without a photograph keeps the same picture area, so every card in the row has the same shape. */
.venue-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  aspect-ratio: 3 / 2;
  color: #fff;
  background: linear-gradient(135deg, var(--color-mb-teal), #0c2a2d);
}
.venue-art span { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; }
.venue-body { padding: 0.9rem 1rem 1.1rem; }
.venue-body h3 { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.3rem; font-size: 1rem; font-weight: 700; }
.venue-body h3 svg { flex: none; color: var(--color-mb-coral); }
.venue-body p { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--color-mb-grey); }

/* ---------- guarantee ---------- */
.guarantee {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 46rem;
  margin: 2rem auto 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--color-mb-teal) 28%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--color-mb-teal) 6%, #fff);
}
.guarantee svg { flex: none; margin-top: 0.15rem; color: var(--color-mb-teal); }
.guarantee b { display: block; margin-bottom: 0.2rem; font-size: 1rem; color: var(--color-mb-ink); }
.guarantee span { font-size: 0.9063rem; line-height: 1.55; color: var(--color-mb-grey); }

/* ---------- small Zuzu note (replaces the full-height card on the home page) ---------- */
.zz-slim {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 26px;
  background: var(--color-mb-paper);
}
.zz-slim img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--color-mb-coral-soft); }
.zz-slim h2 { margin: 0 0 0.3rem; font-size: 1.25rem; font-weight: 700; color: var(--color-mb-ink); }
.zz-slim p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--color-mb-grey); }
.zz-slim a { font-weight: 700; color: var(--color-mb-ink); text-decoration: underline; text-decoration-color: rgba(241, 90, 74, 0.6); text-underline-offset: 4px; white-space: nowrap; }

/* ---------- photo banner on inner pages ---------- */
.page-photo { margin: 0 0 2.5rem; }
.page-photo img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 28px; }
.page-photo--tall img { aspect-ratio: 4 / 3; }
.split-media { display: grid; gap: 2rem; align-items: center; }
.split-media .device-phone { margin: 0 auto; }

/* ---------- landing, solutions and country pages: real image beside the headline ---------- */
.lp-media { position: relative; width: 100%; max-width: 34rem; margin: 0 auto; padding-bottom: 2.25rem; }
.lp-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(12, 42, 45, 0.2);
}
.lp-media .device-phone { --device-w: 40%; position: absolute; right: 5%; bottom: 0; }
.lp-shot { margin: 0; text-align: center; }
.lp-shot--phone .device-phone { --device-w: 280px; margin: 0 auto; }
.lp-shot--tablet .device-tablet, .lp-shot--browser .device-browser { text-align: left; }

@media (min-width: 640px) {
  .hx { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hx-actions, .offer-actions { flex-direction: row; flex-wrap: wrap; }
  .venues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zz-slim { flex-direction: row; align-items: center; padding: 1.5rem 2rem; }
  .offer-copy { padding: 3rem 2.5rem; }
}
@media (min-width: 768px) {
  .shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .shot .device-phone { --device-w: 100%; max-width: 230px; }
  .shot .device-tablet { max-width: none; }
  /* One row, one height: each screen sits in a panel of the same size. A phone starts near the top and
     runs off the bottom edge; the wider kitchen screen is centred. */
  .shot-frame {
    height: 25rem;
    min-height: 0;
    align-items: flex-start;
    padding: 2rem 1.25rem 0;
    overflow: hidden;
    background: rgb(255 255 255 / 0.62);
    border: 1px solid rgb(26 26 26 / 0.08);
    border-radius: 1.75rem;
  }
  .shot-frame--wide { align-items: center; padding: 1.25rem; }
  /* Two dashboard screens side by side share one shape, so their frames and captions line up. */
  .proof-row .device-browser img { aspect-ratio: 700 / 427; object-fit: cover; object-position: left top; }
  .proof-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-media { grid-template-columns: 1.1fr 0.9fr; }
}
@media (min-width: 1024px) {
  .hx { padding-top: 5.5rem; padding-bottom: 5rem; }
  .hx-inner { grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; }
  .hx-stage { margin: 0 0 0 auto; }
  .hx-stage .device-phone { --device-w: 46%; }
  .hx-qr {
    position: absolute;
    left: 4%;
    top: 6%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 8.75rem;
    padding: 0.65rem 0.7rem 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(12, 42, 45, 0.22);
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-mb-grey);
    text-decoration: none;
  }
  .hx-qr img { width: 100%; height: auto; border-radius: 6px; }
  .hx-qr b { display: block; margin-bottom: 0.15rem; font-size: 0.8438rem; color: var(--color-mb-ink); }
  .venues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .offer-grid { grid-template-columns: 1.15fr 0.85fr; }
  .offer-copy { padding: 4rem 3.5rem; }
  .offer-photo { min-height: 100%; }
  .offer-photo::after { background: linear-gradient(90deg, var(--color-mb-teal-deep), transparent 40%); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-btn, .venue { transition: none; }
}

/* ---- QR generator: the setup offer shown after a download, and the second button on teal ---- */
.qr-after {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-mb-coral) 45%, transparent);
  border-radius: 1rem;
}
.qr-after[hidden] { display: none; }
.qr-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 1rem;
  transition: background-color .15s;
}
.qr-ghost:hover { background: rgb(255 255 255 / .12); }

/* ---------- the order demo video ---------- */
.demo-video { margin: 0 auto 3.5rem; max-width: 1040px; }
.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--color-mb-cream, #faf7f0);
  border: 1px solid rgb(26 26 26 / .1);
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px rgb(26 26 26 / .12);
}
.demo-video figcaption { margin-top: .9rem; text-align: center; font-size: .875rem; color: var(--color-mb-grey, #6e6c66); }
@media (max-width: 640px) { .demo-video video { border-radius: 1rem; } }
/* Phones play the portrait cut (partials/demo-video.php), so the box is portrait before any script runs. */
@media (max-width: 640px) { .demo-video video { aspect-ratio: 9 / 16; max-width: 22.5rem; margin-inline: auto; object-fit: contain; } }

/* ---------- setup request: the numbered next steps on the confirmation ---------- */
.setup-next { margin-top: 1.25rem; padding-left: 1.25rem; list-style: decimal; font-size: .875rem; color: var(--color-mb-grey, #6e6c66); }
.setup-next li + li { margin-top: .5rem; }
