/* flodash.com.au brand pages: parts the design system doesn't have yet (x- prefix, labelled data-new in the HTML).
   Tokens only. Components come from /public/ds/components.css; never restyle .fd-* here (rules.md CMP-04).
   Animations are kept exactly as on the live site at Rian's request (marked check-allow). */

/* ---------- Home: sliding photo strip straddling the hero and the section below ---------- */
.x-hero-strip {
  position: relative; width: 100%; height: clamp(154px, 21.875vw, 322px); overflow: hidden; pointer-events: none;
  /* Straddles the hero edge by painting its own top half blue, so it never covers hero or section content. */
  background: linear-gradient(var(--color-surface-brand) 50%, transparent 50%);
}
.x-hero-strip__track {
  display: flex; width: max-content; height: 100%;
  /* check-allow MOT-01: live marquee speed (60s loop), kept as is */
  animation: x-marquee 60s linear infinite;
}
.x-hero-strip__card {
  flex: 0 0 auto; height: 100%; margin-right: var(--section-gap); border-radius: var(--radius-panel); overflow: hidden;
  box-shadow: 0 22px 44px -20px color-mix(in srgb, var(--color-surface-inverse) 55%, transparent);
  background: color-mix(in srgb, var(--color-surface-default) 6%, transparent);
}
.x-hero-strip__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-hero-strip__card--p { aspect-ratio: 3 / 4; }
.x-hero-strip__card--s { aspect-ratio: 1 / 1; }
.x-hero-strip__card--l { aspect-ratio: 4 / 3; }
.x-hero-strip__card--top img { object-position: top; }
@keyframes x-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .x-hero-strip__track { animation: none; } }

/* ---------- Home: animated step art (sits inside fd-step-card__art) ---------- */
.x-step-art { position: relative; width: 100%; aspect-ratio: 436 / 332; display: flex; align-items: center; justify-content: center; container-type: inline-size; }
/* step 1: browser window with pricing pills */
.x-step-art__browser { position: relative; width: 88%; aspect-ratio: 369 / 259; }
.x-step-art__browser-shadow { position: absolute; left: 2.2cqw; top: 2.2cqw; width: 100%; height: 100%; background: var(--color-surface-inverse); border-radius: 4.8cqw; }
.x-step-art__browser-window {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  background: var(--color-surface-default); border: max(1px, 0.5cqw) solid var(--color-border-default); border-radius: 4.8cqw; padding: 5cqw;
}
.x-step-art__pills { display: flex; flex-direction: column; gap: 1.2cqw; height: 100%; }
.x-step-art__pill {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; white-space: nowrap;
  font-family: var(--font-primary); font-weight: var(--fw-head); font-size: var(--type-body); line-height: var(--lh-title);
  border: max(1px, 0.25cqw) solid var(--color-border-default); border-radius: var(--radius-pill); padding: 0 2.5cqw;
  background: var(--color-surface-default); color: var(--color-text-brand);
}
.x-step-art__pill--express { align-self: flex-start; min-width: 50%; }
.x-step-art__pill--growth { align-self: flex-start; min-width: 90%; background: var(--color-surface-brand); color: var(--color-text-on-brand); }
.x-step-art__pill--elite { min-width: 100%; }
/* step 2: design canvas with logo selection and pencil */
.x-step-art__shadow, .x-step-art__window { position: absolute; width: 84.77%; height: 77.93%; border-radius: var(--radius-panel); }
.x-step-art__shadow { left: 8.77%; top: 13.42%; background: var(--color-surface-inverse); }
.x-step-art__window { left: 6.65%; top: 10.54%; background: var(--color-surface-default); border: 0.5cqw solid var(--color-border-default); }
.x-step-art__dots { position: absolute; left: 13.3%; top: 19.58%; width: 18.12%; height: auto; }
.x-step-art__pencil { position: absolute; left: 48.62%; top: 8.13%; width: 47.25%; height: auto; }
.x-step-art__logo { position: absolute; left: 13.46%; top: 42.94%; width: 24.77%; height: auto; }
.x-step-art__sel { position: absolute; left: 13.07%; top: 42.47%; width: 25.46%; height: 33.43%; border: 0.34cqw solid var(--color-text-brand); }
.x-step-art__sel-label {
  position: absolute; left: 13.07%; top: 39.12%; transform: translateY(-50%); white-space: nowrap; line-height: 1;
  font-family: var(--font-primary); font-weight: var(--fw-ui); font-size: calc(var(--type-eyebrow) * 0.55); color: var(--color-text-brand);
}
.x-step-art__handle { position: absolute; width: 2.15%; height: auto; }
.x-step-art__handle--tl { left: 12%; top: 41.06%; }
.x-step-art__handle--tr { left: 37.45%; top: 41.06%; }
.x-step-art__handle--bl { left: 12%; top: 74.49%; }
.x-step-art__handle--br { left: 37.45%; top: 74.49%; }
/* step 3: lightning bolt */
.x-step-art__bolt { position: absolute; width: auto; }
.x-step-art__bolt--backing { height: 87%; z-index: 0; }
.x-step-art__bolt--ring { height: 88%; z-index: 1; }
.x-step-art__bolt--fill { height: 76%; z-index: 2; }
.x-step-art__bolt--detail { height: 77%; z-index: 3; }
/* hover animations (desktop with a pointer), as on the live site */
@media (hover: hover) and (min-width: 901px) {
  .x-step-art__pencil { transition: transform var(--motion-duration-base) var(--motion-ease-standard); }
  .x-step-art__pencil--fill {
    clip-path: inset(0 0 100% 0);
    /* check-allow MOT-02: live pencil fill wipes with clip-path, kept as is */
    transition: clip-path var(--motion-duration-slow) var(--motion-ease-standard), transform var(--motion-duration-base) var(--motion-ease-standard);
  }
  .x-step-art:hover .x-step-art__pencil { transform: translate(6px, -6px); }
  .x-step-art:hover .x-step-art__pencil--fill { clip-path: inset(0 0 0 0); }
  .x-step-art:hover .x-step-art__pill {
    background-color: var(--color-surface-default); background-image: linear-gradient(var(--color-surface-brand), var(--color-surface-brand));
    background-repeat: no-repeat; background-position: left; background-size: 0% 100%;
  }
  /* check-allow MOT-01: live pill cycle (3s loop), kept as is */
  .x-step-art:hover .x-step-art__pill--growth { animation: x-pill-g 3s linear infinite; }
  /* check-allow MOT-01: live pill cycle (3s loop), kept as is */
  .x-step-art:hover .x-step-art__pill--elite { animation: x-pill-e 3s linear infinite; }
  /* check-allow MOT-01: live pill cycle (3s loop), kept as is */
  .x-step-art:hover .x-step-art__pill--express { animation: x-pill-x 3s linear infinite; }
  /* check-allow MOT-01: live bolt fill (2.5s loop), kept as is */
  .x-step-art:hover .x-step-art__bolt--fill { animation: x-bolt-fill 2.5s ease-in-out infinite; }
}
/* check-allow MOT-02: live pill cycle animates the fill and text colour, kept as is */
@keyframes x-pill-g { 0%, 28% { background-size: 100% 100%; color: var(--color-text-on-brand); } 36%, 92% { background-size: 0% 100%; color: var(--color-text-brand); } 100% { background-size: 100% 100%; color: var(--color-text-on-brand); } }
/* check-allow MOT-02: live pill cycle animates the fill and text colour, kept as is */
@keyframes x-pill-e { 0%, 28% { background-size: 0% 100%; color: var(--color-text-brand); } 36%, 61% { background-size: 100% 100%; color: var(--color-text-on-brand); } 69%, 100% { background-size: 0% 100%; color: var(--color-text-brand); } }
/* check-allow MOT-02: live pill cycle animates the fill and text colour, kept as is */
@keyframes x-pill-x { 0%, 61% { background-size: 0% 100%; color: var(--color-text-brand); } 69%, 92% { background-size: 100% 100%; color: var(--color-text-on-brand); } 100% { background-size: 0% 100%; color: var(--color-text-brand); } }
/* check-allow MOT-02: live bolt fill wipes with clip-path, kept as is */
@keyframes x-bolt-fill { 0% { clip-path: inset(0 0 100% 0); } 50% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); } }

/* ---------- Pricing: add-ons under the packages ---------- */
.x-addons { display: flex; flex-direction: column; align-items: center; gap: var(--section-gap); width: 100%; }
.x-addons__title { margin: 0; color: var(--color-text-on-brand); text-align: center; }
.x-addons__grid { display: flex; flex-wrap: wrap; gap: var(--section-gap); width: 100%; }
.x-addons__item { flex: 1; min-width: 12.5rem; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; color: var(--color-text-on-brand); }
.x-addons__item p { margin: 0; }
.x-addons__icon { width: 2.4375rem; height: auto; }
@media (max-width: 900px) {
  .x-addons__grid { flex-direction: column; align-items: center; }
  .x-addons__item { max-width: 25rem; }
}

/* ---------- Contact: 3D shapes beside the form (triage 2026-11-28: wait) ---------- */
.x-contact-stage { position: relative; width: 100%; max-width: 40rem; }
.x-contact-stage__shape { position: absolute; width: clamp(7.5rem, 16vw, 16.25rem); height: auto; pointer-events: none; z-index: 0; }
.x-contact-stage__shape--tl { top: 0; left: 0; transform: translate(-70%, -30%); }
.x-contact-stage__shape--br { bottom: 0; right: 0; transform: translate(70%, 30%); }
.x-contact-stage > form { position: relative; z-index: 1; }
@media (max-width: 1024px) { .x-contact-stage__shape { display: none; } }

/* ---------- What we do: demo screenshot straddling the hero and the section below ---------- */
.x-kit-shot {
  position: relative; overflow-x: clip; padding-inline: var(--pad-edge);
  /* Paints its own top half blue (like x-hero-strip), so it sits across the hero edge without covering hero content. */
  background: linear-gradient(var(--color-surface-brand) 55%, transparent 55%);
}
.x-kit-shot__frame { position: relative; max-width: 72rem; margin-inline: auto; aspect-ratio: 1156 / 708; }
.x-kit-shot__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: var(--radius-panel); }
.x-kit-shot__card {
  position: absolute; left: 88.93%; top: 37.57%; width: 25.61%; aspect-ratio: 296 / 442; object-fit: cover; object-position: top;
  border-radius: var(--radius-panel); box-shadow: 0 22px 44px -20px color-mix(in srgb, var(--color-surface-inverse) 55%, transparent);
}
@media (max-width: 1024px) { .x-kit-shot__card { left: auto; right: 0; width: 22%; } }
@media (max-width: 768px) { .x-kit-shot__card { display: none; } }

/* ---------- What we do: demo sites (name, link, long screenshot that scrolls on hover) ---------- */
.x-demos { display: flex; flex-direction: column; gap: var(--section-gap); }
.x-demos__filter { align-self: center; width: min(100%, 24rem); }
.x-demos__row {
  display: grid; grid-template-columns: 3fr 7fr; align-items: center; gap: var(--pad-gutter);
  padding-top: var(--section-gap); border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.x-demos__row[hidden] { display: none; }
.x-demos__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.x-demos__info h3 { margin: 0; }
.x-demos__shot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-panel); overflow: hidden; }
.x-demos__shot img {
  position: absolute; inset: 0 0 auto; width: 100%; height: auto; display: block;
  /* check-allow MOT-01: live 3s hover scroll through the demo screenshot, kept as is */
  transition: transform 3s ease-in-out;
}
.x-demos__shot:hover img { transform: translateY(-60%); }
.x-demos__shot--long img { transition-duration: 6s; } /* check-allow MOT-01: live 6s scroll for the long landing page */
.x-demos__shot--long:hover img { transform: translateY(-79%); }
.x-demos__social { display: grid; grid-template-columns: 27fr 44fr 27fr; align-items: center; gap: var(--space-4); }
.x-demos__social img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border-radius: var(--radius-panel); }
@media (max-width: 768px) {
  .x-demos__row { grid-template-columns: 1fr; }
  .x-demos__shot, .x-demos__social { order: -1; }
  .x-demos__social { grid-template-columns: 1fr 1fr; }
  .x-demos__social-lg { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: reduce) { .x-demos__shot img { transition: none; } .x-demos__shot:hover img { transform: none; } }
