/* Cherry Top photographs (V11, 2026-10-12): a photo-booth strip in the opener and two
   die-cut decals that sit across two section edges further down. Five photos, each used once. */

[hidden] { display: none !important; }

:root {
  --decal-w: 150px;   /* photo width inside the white outline */
  --decal-b: 8px;     /* white die-cut outline */
  --decal-h: calc(var(--decal-w) * 1.27 + var(--decal-b) * 2);
  --cut-shadow: 0 1px 2px rgba(17, 17, 17, .12), 0 16px 28px -18px rgba(17, 17, 17, .45);
}
@media (min-width: 640px) { :root { --decal-w: 184px; --decal-b: 9px; } }
@media (min-width: 1024px) { :root { --decal-w: 228px; --decal-b: 10px; } }

/* ---------- Opener ---------- */
/* The booth strip hangs from under the header on the left (its top runs under the header bar);
   the copy sits to its right at every width. On phones the CTA row runs full width below both. */
.opener { position: relative; overflow: hidden; background: var(--tint); padding: 0 0 52px; }
.opener__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "media head" "cta cta";
  column-gap: 30px;
}
.opener__media { grid-area: media; align-self: start; }
.opener__head { grid-area: head; min-width: 0; padding-top: 26px; }
.opener__cta { grid-area: cta; min-width: 0; margin-top: 30px; }
.opener__tag {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .875rem; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.opener__tag svg { flex: none; width: 18px; height: 18px; margin-top: -2px; color: var(--ink); }
.opener h1 {
  margin-top: 14px;
  font: 500 clamp(2.5rem, 11vw, 3.1rem)/.92 var(--display);
  letter-spacing: -.035em;
}
/* One word on a cherry highlighter swipe (one style for the whole headline, no italic accent). */
.swipe { position: relative; z-index: 0; display: inline-block; }
.swipe::before {
  content: ""; position: absolute; z-index: -1;
  left: -.08em; right: -.1em; top: .4em; bottom: -.02em;
  background: #FF8FAA;
  border-radius: .05em .3em .08em .26em / .2em .12em .3em .1em;
  transform: rotate(-2.2deg) skewX(-10deg);
}
.opener__lead { margin-top: 18px; font-size: .9375rem; line-height: 1.55; }
.opener__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.opener__foot { margin-top: 22px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 539px) { .opener__actions .btn { width: 100%; } }

@media (min-width: 640px) {
  .opener { padding-bottom: 64px; }
  .opener__grid {
    grid-template-areas: "media ." "media head" "media cta" "media .";
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1.3fr);
    column-gap: clamp(48px, 7vw, 128px);
  }
  .opener__media { grid-row: 1 / -1; margin-left: clamp(0px, 3vw, 56px); }
  .opener__head { padding-top: 40px; }
  .opener__cta { margin-top: 32px; }
  .opener__tag { align-items: center; font-size: 1rem; }
  .opener__tag svg { width: 22px; height: 22px; margin-top: -4px; }
  .opener h1 { margin-top: 22px; font-size: clamp(3.4rem, 7.2vw, 6.75rem); letter-spacing: -.04em; }
  .opener__lead { margin-top: 26px; max-width: 42ch; font-size: 1.0625rem; line-height: 1.7; }
  .opener__foot { margin-top: 28px; }
}

/* ---------- Photo-booth strip ---------- */
.booth {
  --shot: clamp(112px, 32vw, 150px);
  --edge: 7px;
  --gap: 5px;
  --hang: 22px;               /* paper hidden under the header */
  width: calc(var(--shot) + var(--edge) * 2);
  margin: calc(var(--hang) * -1) 0 0;
  padding: calc(var(--hang) + var(--edge)) var(--edge) 0;
  background: #fff;
  box-shadow: var(--cut-shadow);
  transform: rotate(-4deg);
  transform-origin: 50% 30%;
  animation: booth-drop 680ms var(--ease-out) both;
}
.booth__frames { display: grid; gap: var(--gap); }
.booth__frames img {
  display: block; width: var(--shot); height: var(--shot);
  object-fit: cover; background: var(--line);
}
.booth__foot {
  display: grid; justify-items: center; gap: 5px;
  padding: 9px 0 11px;
  text-align: center;
}
.booth__logo {
  display: inline-flex; align-items: center; gap: 4px;
  font: 400 .875rem/1 var(--logo); letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
}
.booth__logo .logo-svg { width: auto; height: 20px; }
.booth__names {
  font: 700 .625rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); white-space: nowrap;
}
@keyframes booth-drop {
  from { opacity: 0; transform: translateY(-34%) rotate(-1deg); }
  40% { opacity: 1; }
}
@media (min-width: 640px) {
  .booth { --shot: 176px; --edge: 10px; --gap: 7px; --hang: 28px; }
  .booth__foot { gap: 7px; padding: 12px 0 15px; }
  .booth__logo { font-size: 1.0625rem; }
  .booth__logo svg { width: 18px; height: 18px; }
  .booth__names { font-size: .6875rem; letter-spacing: .16em; }
}
/* Desktop: the frame size follows the screen height so the whole strip sits above the fold
   (never wider than the photos' own pixels: the smallest is 311px). */
@media (min-width: 1024px) {
  .booth { --shot: clamp(180px, calc((100svh - 200px) / 3), 288px); --edge: 11px; --gap: 8px; }
}

/* ---------- "Is this for you?" band ---------- */
.fit-section { padding: 56px 0; background: var(--tint); }
.fit-section__grid { display: grid; gap: 36px; }
.fit-section .fit { min-width: 0; }
.fit-intro h2 {
  margin-top: 14px;
  font: 600 clamp(2.5rem, 4.4vw + .6rem, 4.25rem)/1 var(--display);
  letter-spacing: -.02em;
}
.fit-intro p:last-child { margin-top: 18px; max-width: 40ch; color: var(--muted); }
@media (min-width: 900px) {
  .fit-section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}
@media (min-width: 1024px) {
  .fit-section { padding: 96px 0 80px; }
  .fit-section .fit { padding: 36px; }
}

/* ---------- Die-cut decals across section edges ---------- */
.decal-rail { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 3; }
.decal-rail .wrap { position: relative; height: 0; }
.decal {
  position: absolute; top: 0;
  width: calc(var(--decal-w) + var(--decal-b) * 2);
  margin: 0; padding: var(--decal-b);
  background: #fff;
  box-shadow: var(--cut-shadow);
}
.decal img { display: block; width: var(--decal-w); height: auto; background: var(--tint-border); }

/* A: rounded die-cut, tilted left, on the left edge. */
.decal--a { left: var(--gutter); border-radius: calc(26px + var(--decal-b)); transform: translateY(-42%) rotate(-6deg); }
.decal--a img { border-radius: 26px; }
/* B: a cherry-leaf cut (two round corners, two near-points), tilted right, on the right edge. */
.decal--b {
  --tip: calc(14px + var(--decal-b));
  right: var(--gutter);
  border-radius: 62% var(--tip) 62% var(--tip) / 48% var(--tip) 48% var(--tip);
  transform: translateY(-42%) rotate(5deg);
}
.decal--b img { border-radius: 62% 14px 62% 14px / 48% 14px 48% 14px; }

/* The name as vinyl lettering stuck over the decal's lower edge. */
.decal__name {
  position: absolute; z-index: 1;
  font: 400 1.25rem/1 var(--logo); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  color: var(--accent);
  text-shadow:
    3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff,
    3px 1px #fff, -3px 1px #fff, 3px -1px #fff, -3px -1px #fff,
    1px 3px #fff, -1px 3px #fff, 1px -3px #fff, -1px -3px #fff,
    0 5px 6px rgba(17, 17, 17, .18);
}
.decal--a .decal__name { right: -18px; bottom: -10px; transform: rotate(10deg); }
.decal--b .decal__name { left: -16px; bottom: 4px; transform: rotate(-9deg); }
@media (min-width: 1024px) { .decal__name { font-size: 1.5rem; } }

/* Room for the decals: the host section starts its content below the decal,
   and the section above leaves space for the part that pokes up. Decal B (on the deal) pokes up into
   the opener, so on phones the opener carries the extra space; from 640px the opener's own bottom
   row is already taller than the part that pokes up. */
.section--decal { position: relative; padding-top: calc(var(--decal-h) * .58 + 40px); }
.opener.is-above-decal,
.fit-section.is-above-decal,
.section.is-above-decal { padding-bottom: calc(var(--decal-h) * .42 + 32px); }
@media (min-width: 640px) { .opener.is-above-decal { padding-bottom: 64px; } }
@media (min-width: 1024px) {
  /* Desktop: the decal sits beside the heading instead of above it. */
  .section--decal { padding-top: 112px; }
  .section--decal-a .head { padding-left: calc(var(--decal-w) + var(--decal-b) * 2 + 56px); }
  .section--decal-b .till { margin-top: calc(var(--decal-h) * .58 - 112px + 40px); }
  .fit-section.is-above-decal { padding-bottom: 80px; }
}
@media (min-width: 1280px) {
  /* Wide desktop: the receipt sits beside the leaf decal; the heading and Apply are centred against it,
     and the partner sticker takes the corner under the decal. */
  .section--decal-b .deal {
    grid-template-columns: minmax(0, 1fr) calc(344px + var(--decal-w) + var(--decal-b) * 2 + 60px);
    grid-template-rows: 1fr auto auto 1fr;
  }
  .section--decal-b .till { margin-top: 0; }
  .section--decal-b .deal__head { grid-row: 2; }
  .section--decal-b .deal__go { grid-row: 3; }
  .section--decal-b .deal__partner { grid-column: 2; grid-row: 4; justify-self: end; margin-right: 14px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Narrow desktop: stack the services heading and its line beside the decal. */
  .section--decal-a .head { grid-template-columns: 1fr; gap: 14px; }
  .section--decal-a .head p { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .booth { animation: booth-fade 300ms ease both; }
}
@keyframes booth-fade { from { opacity: 0; } }
