/* ==========================================================================
   Candy Doodle — shared design system (all seven pages)
   ========================================================================== */

/* --- Tokens --- */
:root {
  --pink-pale: #FDEAF2;
  --pink-light: #FADCE8;
  --pink-mid: #F48FB9;
  --pink: #F06AA8;
  --pink-hot: #E8409A;
  --magenta: #D6246E;
  /* Deeper magenta for TEXT: --magenta is only 3.8-4.2:1 on the pale pinks,
     failing AA at body size. This gives 4.9-6.3:1. */
  --magenta-text: #B81B5C;
  /* Band background: white on --pink-hot is only 3.73:1, so small text on a
     hot band can never pass AA. This deeper tone gives white 4.84:1. */
  --band-hot: #D6246E;
  --purple-light: #B583D8;
  --purple: #9B5FC0;
  --purple-deep: #6B2D8F;
  --purple-ink: #4A1D66;
  --amber: #D99A3C;
  --amber-light: #E8B563;
  --white: #FFFFFF;

  --font-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-pad: clamp(4rem, 8vw, 7rem);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-card: var(--radius-lg);
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(74, 29, 102, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 29, 102, 0.12);
  --shadow-lg: 0 16px 48px rgba(74, 29, 102, 0.16);

  --container-max: 72rem;
  --header-height: 4.5rem;

  --focus-ring: 3px solid var(--amber);
  --focus-offset: 2px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* --- Self-hosted fonts --- */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/baloo-2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--purple-ink);
  background-color: var(--pink-pale);
  min-height: 100vh;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--magenta-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--purple-deep);
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 2rem + 2.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--purple-deep);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* --- Focus visible --- */
:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.btn--primary {
  background-color: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}

.btn--primary:hover {
  background-color: var(--magenta);
  color: var(--white);
}

.btn--secondary {
  background-color: var(--white);
  color: var(--purple-deep);
  border-color: var(--purple);
}

.btn--secondary:hover {
  background-color: var(--pink-light);
  color: var(--purple-deep);
}

.btn--large {
  min-height: 3rem;
  padding: 0.75rem 2rem;
  font-size: 1.0625rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --- Wordmark (3D bubble logo) --- */
.wordmark {
  /* Was inline-flex for the old text+lolly lockup. The logo is now a single
     image, and as a flex item `width:auto` + `max-width:100%` resolved
     circularly and collapsed the logo to 0px wide at some widths. Plain
     inline-block sizes off the image's own aspect ratio and cannot collapse. */
  display: inline-block;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.wordmark__candy {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  color: var(--pink);
  text-shadow:
    1px 1px 0 var(--magenta),
    2px 2px 0 var(--magenta),
    3px 3px 0 var(--magenta),
    4px 4px 0 var(--magenta),
    5px 5px 0 var(--magenta),
    6px 6px 0 var(--magenta),
    8px 10px 12px rgba(74, 29, 102, 0.25);
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
}

.wordmark__doodle {
  font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2rem);
  color: var(--purple);
  margin-left: 0.15em;
  margin-top: -0.15em;
  text-shadow:
    1px 1px 0 var(--purple-deep),
    2px 2px 0 var(--purple-deep),
    3px 3px 0 var(--purple-deep),
    4px 4px 0 var(--purple-deep),
    5px 5px 0 var(--purple-deep),
    6px 6px 0 var(--purple-deep),
    8px 10px 12px rgba(74, 29, 102, 0.25);
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
}

.wordmark__lolly {
  flex-shrink: 0;
  width: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  height: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  color: var(--pink-hot);
}

.wordmark--hero .wordmark__candy {
  font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.wordmark--hero .wordmark__doodle {
  font-size: clamp(2.25rem, 1.8rem + 2.5vw, 4rem);
}

.wordmark--hero .wordmark__lolly {
  width: clamp(2.5rem, 2rem + 2vw, 4rem);
  height: clamp(2.5rem, 2rem + 2vw, 4rem);
}

/* --- Real logo artwork ---------------------------------------------------
   The wordmark is now the client's actual logo PNG (transparent), not a CSS
   reconstruction. .wordmark stays as the positioning wrapper. ------------- */
.wordmark__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  flex: 0 0 auto;
  /* The logo has its own generous transparent padding; never let a parent
     crop it. */
  object-fit: contain;
}

.site-header .wordmark__img {
  height: clamp(2.35rem, 1.9rem + 1.5vw, 3.1rem);
}

.site-footer .wordmark__img {
  height: clamp(2.6rem, 2.2rem + 1.2vw, 3.4rem);
}

.wordmark--hero .wordmark__img {
  width: min(100%, 27rem);
  filter: drop-shadow(0 0.5rem 1.1rem rgba(107, 45, 143, 0.2));
}

/* The old CSS-built wordmark parts are retired; keep them out of the flow in
   case any stale markup survives a future edit. */
.wordmark__text,
.wordmark__lolly {
  display: none;
}

/* --- Pill feature badges --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: var(--magenta);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--white);
  border-radius: 50%;
  color: var(--purple-deep);
  flex-shrink: 0;
}

.pill__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* --- Medallion (circle icon) --- */
.medallion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.medallion__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--pink-light);
  border: 3px solid var(--purple);
  border-radius: 50%;
  color: var(--purple-deep);
  flex-shrink: 0;
}

.medallion__ring svg {
  width: 2.5rem;
  height: 2.5rem;
}

.medallion__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin: 0;
}

.medallion__text {
  font-size: 0.9375rem;
  max-width: 16rem;
}

.medallion-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .medallion-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--pink-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.card__media picture,
.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  margin-bottom: var(--space-sm);
}

.card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card__link:hover .card__title {
  color: var(--magenta);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Section layout --- */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__header--left {
  text-align: left;
  margin-inline: 0;
}

/* --- Eyebrow & lede --- */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta-text);
  margin-bottom: var(--space-sm);
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  color: var(--purple-ink);
  max-width: 38rem;
}

.lede--center {
  margin-inline: auto;
  text-align: center;
}

/* --- Colour bands — seamless vertical blends via --bg-a/b/c --- */
.band {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--bg-a, var(--pink-pale)) 0%,
    var(--bg-b, var(--pink-pale)) 18%,
    var(--bg-b, var(--pink-pale)) 82%,
    var(--bg-c, var(--pink-pale)) 100%
  );
}

.band--pale,
.band--pink,
.band--paper,
.band--hot,
.band--purple {
  background: linear-gradient(
    180deg,
    var(--bg-a, var(--pink-pale)) 0%,
    var(--bg-b, var(--pink-pale)) 18%,
    var(--bg-b, var(--pink-pale)) 82%,
    var(--bg-c, var(--pink-pale)) 100%
  );
}

.band--night {
  background: linear-gradient(
    180deg,
    var(--bg-a, var(--pink-pale)) 0%,
    var(--bg-b, #4A1D66) 120px,
    var(--bg-b, #4A1D66) calc(100% - 120px),
    var(--bg-c, var(--pink-pale)) 100%
  );
  color: var(--white);
}

.band--night h2,
.band--night h3,
.band--night .eyebrow,
.band--night .lede {
  color: var(--white);
}

.band--night .machine-callout {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: var(--white);
}

.band--night .machine-callout span {
  color: var(--white);
}

.band--hot {
  color: var(--white);
}

.band--hot h2,
.band--hot h3 {
  color: var(--white);
}

.band--purple {
  color: var(--white);
}

/* A light-background card sitting inside a coloured band must not inherit the
   band's white text colour — that renders white-on-white and the card reads as
   empty. This bit the personalised process timeline: four white cards with
   invisible copy. Reset text colour for any pale surface inside a dark band. */
.band--hot [class*="card"],
.band--hot .notch-panel,
.band--hot .process-timeline__step,
.band--purple [class*="card"],
.band--purple .notch-panel,
.band--purple .process-timeline__step {
  color: var(--purple-ink);
}

.band--hot [class*="card"] :is(h2, h3, h4),
.band--hot .notch-panel :is(h2, h3, h4),
.band--hot .process-timeline__step :is(h2, h3, h4),
.band--purple [class*="card"] :is(h2, h3, h4),
.band--purple .notch-panel :is(h2, h3, h4),
.band--purple .process-timeline__step :is(h2, h3, h4) {
  color: var(--purple-deep);
}

.band--purple h2,
.band--purple h3 {
  color: var(--white);
}

.band--purple a:not(.btn) {
  color: var(--pink-light);
}

/* --- Wave dividers --- */
.wave {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave--flip {
  transform: scaleY(-1);
}

/* --- Seigaiha scallop pattern --- */
.seigaiha {
  position: relative;
}

.seigaiha::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cpath d='M0 30 Q15 0 30 30 T60 30' fill='none' stroke='%23B583D8' stroke-width='1.5' opacity='0.35'/%3E%3Cpath d='M0 30 Q15 10 30 30 T60 30' fill='none' stroke='%23F48FB9' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 60px 30px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.seigaiha > * {
  position: relative;
  z-index: 1;
}

/* --- Confetti decorative scatter --- */
.confetti {
  position: relative;
}

.confetti__item {
  position: absolute;
  pointer-events: none;
  opacity: 0.45;
}

.confetti__item--star {
  width: 1rem;
  height: 1rem;
  color: var(--purple);
}

.confetti__item--heart {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--pink-hot);
}

.confetti__item--drop {
  width: 0.75rem;
  height: 1rem;
  color: var(--purple-light);
}

/* --- Notch / ticket panel --- */
.notch-panel {
  position: relative;
  background: var(--white);
  padding: var(--space-xl);
  border: 3px solid var(--purple);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.notch-panel::before,
.notch-panel::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--bg-b, var(--pink-pale));
  border: 3px solid var(--purple);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.notch-panel::before {
  left: -0.75rem;
}

.notch-panel::after {
  right: -0.75rem;
}

/* --- Media frame --- */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--pink-light);
}

.media-frame img,
.media-frame video {
  width: 100%;
  object-fit: cover;
}

.media-frame--square img {
  aspect-ratio: 1;
}

.media-frame--wide img,
.media-frame--wide video {
  aspect-ratio: 16 / 9;
}

/* Portrait source images (the 3:4 flat-lays) keep their own shape rather than
   being cropped to a letterbox strip. */
.media-frame--portrait img {
  aspect-ratio: 3 / 4;
}

/* A wide gallery tile spans two columns and shows its 16:9 source uncropped.
   This class was used in the markup but never defined, so the process shots
   were being squeezed into square tiles. */
.gallery-grid__item--wide {
  grid-column: span 2;
}

.gallery-grid__item--wide img {
  aspect-ratio: 16 / 9;
}

/* --- Gallery grid + lightbox --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-grid__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--pink-light);
  cursor: pointer;
  background: var(--white);
}

.gallery-grid__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-grid__item:hover img,
.gallery-grid__item:focus-visible img {
  transform: scale(1.03);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .gallery-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

.gallery-strip__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--pink-light);
}

.gallery-strip__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(74, 29, 102, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: var(--space-sm);
  background: var(--white);
  color: var(--purple-deep);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__caption {
  margin-top: var(--space-md);
  color: var(--white);
  text-align: center;
  font-size: 0.9375rem;
}

/* --- Accordion (FAQ) --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 48rem;
  margin-inline: auto;
}

.accordion__item {
  background: var(--white);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  min-height: 3rem;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--purple-deep);
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:hover {
  background: var(--pink-pale);
}

.accordion__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--transition-fast);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  padding: 0 var(--space-lg) var(--space-lg);
}

.accordion__panel[hidden] {
  display: none;
}

/* details/summary accordion variant */
.accordion-details {
  background: var(--white);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 3rem;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--purple-deep);
  cursor: pointer;
  list-style: none;
}

.accordion-details summary::-webkit-details-marker {
  display: none;
}

.accordion-details summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--magenta);
  line-height: 1;
}

.accordion-details[open] summary::after {
  content: '−';
}

.accordion-details__body {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* --- Form --- */
.form {
  max-width: 36rem;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--purple-deep);
}

.form__label span {
  font-weight: 400;
  color: var(--purple-ink);
  font-size: 0.875rem;
}

.form__input,
.form__select,
.form__textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--purple-ink);
  background: var(--white);
  border: 2px solid var(--pink-mid);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--purple);
}

.form__textarea {
  min-height: 8rem;
  resize: vertical;
}

.form__error {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--magenta);
}

.form__error:empty {
  display: none;
}

.form__input.is-invalid,
.form__select.is-invalid,
.form__textarea.is-invalid {
  border-color: var(--magenta);
}

.form__hint {
  font-size: 0.875rem;
  color: var(--purple-ink);
  margin-top: var(--space-xs);
}

/* --- Site header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 234, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pink-light);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(253, 234, 242, 0.96);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: block;
  padding: var(--space-sm) 0.25rem;
  font-weight: 600;
  color: var(--purple-ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  min-height: 2.75rem;
  line-height: 2.75rem;
}

.site-nav__link:hover {
  color: var(--magenta-text);
}

.site-nav__link[aria-current="page"] {
  color: var(--magenta-text);
  border-bottom-color: var(--pink-hot);
  font-weight: 700;
}

.site-nav__cta {
  margin-left: var(--space-sm);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: var(--space-sm);
  background: var(--white);
  border: 2px solid var(--purple);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--purple-deep);
}

.nav-toggle__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: 999;
  background: var(--pink-pale);
  padding: var(--space-lg);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__link {
  display: block;
  padding: var(--space-md);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--purple-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--pink-light);
  min-height: 2.75rem;
}

.mobile-nav__link[aria-current="page"] {
  color: var(--magenta);
  font-weight: 700;
}

.mobile-nav__cta {
  margin-top: var(--space-lg);
}

/* --- Site footer --- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #5a2878 0%, var(--purple-deep) 3.5rem);
  color: var(--white);
  padding-block: var(--space-2xl);
}

.site-footer a {
  color: var(--pink-light);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav li {
  margin-bottom: var(--space-sm);
}

.site-footer__nav a {
  text-decoration: none;
  font-weight: 600;
}

.site-footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
}

.site-footer__social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer__legal {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.9375rem;
}

.site-footer__legal-links {
  margin-bottom: var(--space-sm);
}

.site-footer__legal-links a {
  text-decoration: none;
  font-weight: 600;
}

.site-footer__legal-links a:hover {
  text-decoration: underline;
}

.site-footer .wordmark__candy,
.site-footer .wordmark__doodle {
  -webkit-text-stroke-color: var(--purple-deep);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad);
  background: linear-gradient(
    180deg,
    var(--bg-a, var(--pink-pale)) 0%,
    var(--bg-b, var(--pink-pale)) 18%,
    var(--bg-b, var(--pink-pale)) 82%,
    var(--bg-c, var(--pink-pale)) 100%
  );
}

.hero--gradient {
  background:
    radial-gradient(55rem 38rem at 80% 10%, rgba(181, 131, 216, 0.22), transparent 58%),
    radial-gradient(48rem 32rem at 8% 90%, rgba(244, 143, 185, 0.2), transparent 58%),
    linear-gradient(
      180deg,
      var(--bg-a, var(--pink-pale)) 0%,
      var(--bg-b, #F5E0F0) 42%,
      var(--bg-c, var(--white)) 100%
    );
}

.hero--compact {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.hero--compact .split > .phone-frame {
  width: min(100%, 16rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero--compact .split > .phone-frame {
    margin-inline: 0;
    margin-left: auto;
  }
}

.hero--compact .page-lede {
  max-width: 42rem;
}

.hero--legal {
  text-align: center;
}

.hero--legal__inner {
  max-width: 72ch;
  margin-inline: auto;
}

.hero--legal .eyebrow {
  display: block;
}

.hero--legal h1 {
  margin-bottom: var(--space-sm);
}

.legal-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--purple-ink);
  opacity: 0.85;
}

.legal {
  max-width: 72ch;
  margin-inline: auto;
}

.legal > :first-child {
  margin-top: 0;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  color: var(--purple-deep);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal h3 {
  font-size: 1.0625rem;
  color: var(--purple-deep);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal p,
.legal li {
  line-height: 1.65;
}

.legal ol {
  padding-left: 1.5rem;
  margin-block: var(--space-md);
}

.legal ol li {
  margin-bottom: var(--space-sm);
}

.legal ul:not(.legal-table) {
  padding-left: 1.25rem;
  margin-block: var(--space-md);
}

.legal ul:not(.legal-table) li {
  margin-bottom: var(--space-xs);
}

.legal-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--space-md);
}

.legal-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--pink-light);
}

.legal-table th {
  background: var(--pink-pale);
  font-weight: 700;
  color: var(--purple-deep);
}

.legal-table tbody tr:nth-child(even) {
  background: rgba(253, 234, 242, 0.45);
}

.form__hint a {
  color: var(--magenta-text);
  font-weight: 600;
  text-decoration: underline;
}

/* Two-column hero: copy left, framed media right (matches their flyer layout). */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.02fr 0.98fr;
    gap: var(--space-3xl);
  }
}

/* Framed media panel — contains the video instead of letting it swamp the copy. */
.hero__media {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 1.5rem 3rem rgba(107, 45, 143, 0.22);
  border: 0.4rem solid var(--white);
  background: var(--pink-light);
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 800;
  color: var(--magenta);
  margin: var(--space-md) 0;
  letter-spacing: 0.02em;
}

.hero__media--3d .hero3d,
.hero__media--3d .hero3d__fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--magenta-text);
  margin-bottom: var(--space-lg);
}

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

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--pink-pale);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--purple-ink);
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-step {
  text-align: center;
}

.flow-step__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-md);
  color: var(--amber);
}

.sugar-line-icon {
  width: 100%;
  height: 100%;
}

.sugar-line-icon .sugar-line {
  fill: none;
  stroke: url(#cd-amber-stroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-frame {
  width: min(100%, 13.5rem);
  margin: 0 auto var(--space-md);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 0.35rem solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--pink-light);
}

.phone-frame picture,
.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.machine-teaser__visual {
  max-width: 28rem;
  margin-inline: auto;
}

.machine-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.machine-stage > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(20, 5, 40, 0.45));
}

.machine-stage::after {
  content: '';
  position: absolute;
  bottom: 4%;
  left: 50%;
  z-index: 0;
  width: 70%;
  height: 18%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(20, 5, 40, 0.35) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.machine-spotlight {
  display: grid;
  gap: var(--space-xl);
  max-width: 42rem;
  margin-inline: auto;
}

.machine-spotlight__stage {
  max-width: 28rem;
  margin-inline: auto;
}

.machine-spotlight__visual {
  position: relative;
  max-width: 36rem;
  margin-inline: auto;
}

.machine-spotlight__visual picture,
.machine-spotlight__visual img {
  width: 100%;
  height: auto;
}

.machine-spotlight__callouts {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.machine-callout {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  box-shadow: none;
}

.machine-callout span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.15rem;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--pink-pale);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-lg);
}

.contact-channels__email {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 700;
  margin: 0;
}

.contact-channels__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-channels__social a {
  font-weight: 600;
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.form-success {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: #e8f8ee;
  border: 2px solid #3d9a62;
  border-radius: var(--radius-sm);
  color: var(--purple-ink);
}

.form-fallback {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: #fff4e5;
  border: 2px solid var(--amber);
  border-radius: var(--radius-sm);
  color: var(--purple-ink);
}

.hero__positioning {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  max-width: 38rem;
  margin-bottom: var(--space-md);
}

/* --- Step strip --- */
.step-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .step-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  text-align: center;
}

.step-card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 3px solid var(--purple);
}

.step-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.step-card__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--magenta-text);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* --- Split layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

/* --- CTA band with background image --- */
.cta-band {
  position: relative;
  padding-block: clamp(4rem, 3rem + 4vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(107, 45, 143, 0.85),
    rgba(74, 29, 102, 0.92)
  );
}

.cta-band__content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.cta-band__content h2 {
  color: var(--white);
}

.cta-band__content .lede {
  color: var(--pink-light);
  margin-inline: auto;
}

/* --- Process detail (how-it-works) --- */
.process-step {
  margin-bottom: var(--space-2xl);
}

.process-step:last-child {
  margin-bottom: 0;
}

.bring-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .bring-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bring-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--pink-pale);
  border-radius: var(--radius-md);
  border: 2px solid var(--pink-light);
}

.bring-list svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--purple);
}

/* --- Reveal on scroll --- */
.reveal {
  /* visible by default — no JS required */
}

.js-ready .reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.25rem);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .js-ready .reveal:not(.is-visible),
  .js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .gallery-grid__item:hover img {
    transform: none;
  }
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}


/* Footer column headings inherited the global purple heading colour while the
   footer background is that same purple — "Explore" and "Follow us" were
   invisible on every page. */
.site-footer :is(h2, h3, h4) {
  color: var(--pink-light);
}


/* Section eyebrows and ledes keep their magenta/ink colour on pale backgrounds,
   but on a coloured band that lands at 1.3:1 (magenta on hot pink) and is
   effectively unreadable. Scoped to .section__header so cards inside a band —
   which need DARK text on their light panel — are unaffected. */
.band--hot .section__header .eyebrow,
.band--hot .section__header .lede,
.band--purple .section__header .eyebrow,
.band--purple .section__header .lede {
  color: var(--white);
}


/* The nav gained a 7th item ("For Business"), which wrapped the desktop nav onto
   two rows between 1024px and ~1200px. Tighten the spacing in that range only;
   above 1200px the original roomier spacing applies. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-nav {
    gap: var(--space-sm);
  }

  .site-nav__list {
    gap: 0.35rem;
  }

  .site-nav__link {
    font-size: 0.875rem;
    padding-inline: 0.1rem;
  }

  .site-nav__cta {
    padding-inline: var(--space-sm);
    font-size: 0.875rem;
    white-space: nowrap;
  }
}


/* ---------------------------------------------------------------------------
   Legibility pass. Every rule below exists because a measured WCAG contrast
   check found real text under 4.5:1 on the live site.
   --------------------------------------------------------------------------- */

/* The hot band is now the deeper --band-hot, so a --magenta button or pill sitting
   on it would be nearly the same colour. Switch those to deep purple: white on
   --purple-deep is 8.76:1 and it reads clearly against the magenta band. */
.band--hot .btn--primary,
.band--hot .pill,
.band--hot .process-timeline__number {
  background-color: var(--purple-deep);
  border-color: var(--purple-deep);
}

/* Content lists whose items carry their own pale background: their text was
   inheriting the band's white and rendering at 1.15:1 — effectively invisible.
   These are the three such lists on the site. */
.bring-list li,
.use-case-list li,
.artwork-list li {
  color: var(--purple-ink);
}

.bring-list li :is(h3, h4, strong),
.use-case-list li :is(h3, h4, strong),
.artwork-list li :is(h3, h4, strong) {
  color: var(--purple-deep);
}


/* --- Real product video ---------------------------------------------------
   Genuine 9:16 footage from the client, with burned-in captions and audio.
   Muted + playsinline so it can autoplay, controls so a viewer can unmute.
   Held in a phone-shaped frame beside copy rather than run full-bleed, because
   a portrait clip stretched across a wide band crops to a useless slice. */
.video-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .video-split {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.video-frame {
  position: relative;
  margin-inline: auto;
  width: min(100%, 19rem);
  aspect-ratio: 9 / 16;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 0.4rem solid var(--white);
  box-shadow: 0 1.5rem 3rem rgba(107, 45, 143, 0.28);
  background: var(--pink-light);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Showcase pin: let the page gradient show through (showcase.css sets a solid fill). */
.showcase {
  background: linear-gradient(
    180deg,
    var(--bg-a, var(--pink-pale)) 0%,
    var(--bg-b, var(--pink-pale)) 18%,
    var(--bg-b, var(--pink-pale)) 82%,
    var(--bg-c, var(--pink-pale)) 100%
  );
}

.showcase__pin {
  background: transparent !important;
}
