/* =====================================================
   Features Page — Locate My Table
   Sections: hero (.st-fp-hero), at a glance (.st-fp-overview),
   a closer look (.st-fp-details, rows .st-fp-row with .st-fp-art
   illustrations), questions (.st-fp-faq), call to action (.st-fp-cta).
   Same type scale, eyebrow and gold highlight as the homepage.
   All values use CSS custom properties only.
   ===================================================== */

/* =====================================================
   Shared section heading parts (this page only)
   ===================================================== */

.st-fp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.st-fp-eyebrow::before,
.st-fp-eyebrow--center::after {
    content: "";
    width: var(--space-8);
    height: 1px;
    background-color: var(--color-accent);
}

.st-fp-heading {
    margin-top: var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.st-fp-highlight {
    font-style: italic;
    color: var(--color-accent-dark);
}

.st-fp-intro {
    margin-top: var(--space-4);
    font-size: var(--text-body-lg);
    color: var(--color-muted);
}

.st-fp-head {
    max-width: var(--measure-text);
    margin-inline: auto;
    margin-bottom: var(--space-12);
    text-align: center;
}

.st-fp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.st-fp-actions--center {
    justify-content: center;
}

/* =====================================================
   Hero
   ===================================================== */

.section-hero.st-fp-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(var(--color-accent-rgb), 0.16), transparent 70%),
        linear-gradient(to bottom, transparent 62%, var(--color-white) 62%);
    /* RULE 14: body already offsets the fixed header */
    padding-top: var(--space-16);
    padding-bottom: var(--section-py);
}

.st-fp-hero__deco {
    position: absolute;
    pointer-events: none;
}

.st-fp-hero__deco--ring {
    top: var(--space-20);
    left: 8%;
    width: var(--space-12);
    height: var(--space-12);
    border-radius: var(--radius-full);
    border: 2px solid rgba(var(--color-accent-rgb), 0.5);
    animation: st-fp-drift 9s ease-in-out infinite;
}

.st-fp-hero__deco--dots {
    top: var(--space-24);
    right: 6%;
    width: var(--space-24);
    height: var(--space-20);
    background-image: radial-gradient(rgba(var(--color-primary-rgb), 0.16) 1.5px, transparent 2px);
    background-size: var(--space-4) var(--space-4);
    animation: st-fp-drift 11s ease-in-out -4s infinite reverse;
}

.st-fp-hero__content {
    position: relative;
    max-width: calc(var(--measure-text) * 1.3);
    margin-inline: auto;
    text-align: center;
}

.st-fp-hero__heading {
    margin-top: var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.st-fp-hero__intro {
    max-width: var(--measure-text);
    margin: var(--space-6) auto 0;
    font-size: var(--text-body-lg);
    color: var(--color-muted);
}

.st-fp-hero .st-fp-actions {
    margin-top: var(--space-10);
}

/* ---- Jump links ---- */

.st-fp-hero__jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.st-fp-hero__jump-label {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-muted);
}

.st-fp-hero__jump-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
}

.st-fp-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--color-accent-rgb), 0.4);
    background-color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    text-decoration: none;
    transition: background-color var(--ease-base), border-color var(--ease-base), color var(--ease-base);
}

.st-fp-hero__chip svg {
    color: var(--color-accent-dark);
    transition: transform var(--ease-base), color var(--ease-base);
}

.st-fp-hero__chip:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.st-fp-hero__chip:hover svg {
    color: var(--color-accent-light);
    transform: translateY(2px);
}

/* ---- Wide photo with floating cards ---- */

.st-fp-hero__visual {
    position: relative;
    margin-top: var(--space-16);
}

.st-fp-hero__frame {
    position: relative;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) * 1.5);
    background:
        radial-gradient(ellipse 60% 70% at 50% 40%, rgba(var(--color-accent-rgb), 0.25), transparent 70%),
        var(--color-tint);
    box-shadow: var(--shadow-xl);
}

/* Soft navy fade at the bottom so the floating card sits on calm ground */
.st-fp-hero__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.35), transparent 45%);
    pointer-events: none;
}

.st-fp-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    animation: st-fp-settle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.st-fp-hero__float {
    position: absolute;
    z-index: var(--z-raised);
    height: auto;
    filter: drop-shadow(0 var(--space-3) var(--space-6) rgba(var(--color-text-rgb), 0.18));
}

.st-fp-hero__float--result {
    left: calc(var(--space-6) * -1);
    bottom: calc(var(--space-8) * -1);
    width: 220px;
    animation: st-fp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both, st-fp-bob 6s ease-in-out 1.4s infinite;
}

.st-fp-hero__float--qr {
    right: calc(var(--space-6) * -1);
    top: calc(var(--space-8) * -1);
    width: 132px;
    animation: st-fp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both, st-fp-bob 7s ease-in-out -2s infinite;
}

/* =====================================================
   At a Glance: four-column card grid
   ===================================================== */

.section-overview {
    background-color: var(--color-white);
    padding-block: var(--section-py);
}

.st-fp-overview__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
    list-style: none;
}

.st-fp-overview__card {
    position: relative;
    overflow: hidden;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base), background-color var(--ease-slow);
}

/* Gold line grows along the bottom on hover */
.st-fp-overview__card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease-slow);
}

.st-fp-overview__card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-accent-rgb), 0.45);
    background-color: var(--color-bg);
    box-shadow: var(--shadow-lg);
}

.st-fp-overview__card:hover::after {
    transform: scaleX(1);
}

.st-fp-overview__icon {
    display: grid;
    place-items: center;
    width: var(--space-12);
    height: var(--space-12);
    border-radius: var(--radius-lg);
    color: var(--color-accent-dark);
    background-color: rgba(var(--color-accent-rgb), 0.14);
    transition: color var(--ease-base), background-color var(--ease-base), transform var(--ease-base);
}

.st-fp-overview__card:hover .st-fp-overview__icon {
    color: var(--color-white);
    background-color: var(--color-primary);
    transform: rotate(-6deg) scale(1.06);
}

.st-fp-overview__title {
    margin-top: var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    color: var(--color-text);
}

.st-fp-overview__desc {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-muted);
}

/* =====================================================
   A Closer Look: alternating rows
   ===================================================== */

.section-details {
    overflow-x: clip;
    background-color: var(--color-bg);
    padding-block: var(--section-py);
}

.st-fp-details__list {
    display: grid;
    gap: var(--space-20);
}

.st-fp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-16);
    /* Jump link target clears the fixed header */
    scroll-margin-top: calc(var(--header-h) + var(--space-8) + var(--wp-admin--admin-bar--height, 0px));
}

.st-fp-row--flip .st-fp-row__text {
    order: 2;
}

.st-fp-row__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.st-fp-row__num {
    display: grid;
    place-items: center;
    width: var(--space-10);
    height: var(--space-10);
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--color-accent-rgb), 0.5);
    background-color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: 0;
    color: var(--color-primary);
}

.st-fp-row__title {
    margin-top: var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
}

.st-fp-row__desc {
    margin-top: var(--space-4);
    max-width: var(--measure-text);
    color: var(--color-muted);
}

.st-fp-row__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-6);
    margin-top: var(--space-6);
    list-style: none;
}

.st-fp-row__point {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

.st-fp-row__check {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: var(--space-5);
    height: var(--space-5);
    margin-top: 0.05em;
    border-radius: var(--radius-full);
    color: var(--color-white);
    background-color: var(--color-accent-dark);
}

/* ---- Illustration panel ---- */

.st-fp-row__art {
    position: relative;
    padding: var(--space-8);
    border-radius: calc(var(--radius-xl) * 1.5);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
    background:
        radial-gradient(ellipse 80% 60% at 50% 60%, rgba(var(--color-accent-rgb), 0.16), transparent 70%),
        linear-gradient(165deg, var(--color-white) 0%, var(--color-tint) 100%);
    box-shadow: var(--shadow-lg);
}

.st-fp-row__art::before {
    content: "";
    position: absolute;
    inset: var(--space-4);
    border-radius: var(--radius-xl);
    background-image: radial-gradient(rgba(var(--color-primary-rgb), 0.07) 1px, transparent 1.5px);
    background-size: var(--space-4) var(--space-4);
    pointer-events: none;
}

.st-fp-art {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* =====================================================
   Illustration artwork (shared by the hero cards and rows)
   Colours come from brand tokens only.
   ===================================================== */

.st-fp-art__card {
    fill: var(--color-white);
    stroke: var(--color-border);
    stroke-width: 1.5;
}

.st-fp-art__card--active {
    stroke: rgba(var(--color-accent-rgb), 0.6);
}

.st-fp-art__card--float {
    stroke: rgba(var(--color-accent-rgb), 0.45);
}

.st-fp-art__head,
.st-fp-art__navy,
.st-fp-art__side,
.st-fp-art__phone,
.st-fp-art__notch {
    fill: var(--color-primary);
}

.st-fp-art__screen,
.st-fp-art__row-bg {
    fill: var(--color-bg);
}

.st-fp-art__chrome {
    fill: var(--color-tint);
}

.st-fp-art__line {
    fill: rgba(var(--color-text-rgb), 0.14);
}

.st-fp-art__line--dark {
    fill: rgba(var(--color-text-rgb), 0.6);
}

.st-fp-art__line--white {
    fill: var(--color-white);
    fill-opacity: 0.85;
}

.st-fp-art__line--gold {
    fill: var(--color-accent);
}

.st-fp-art__line--side {
    fill: var(--color-white);
    fill-opacity: 0.28;
}

.st-fp-art__line--side.is-active {
    fill: var(--color-accent-light);
    fill-opacity: 1;
}

.st-fp-art__avatar,
.st-fp-art__tint {
    fill: rgba(var(--color-accent-rgb), 0.22);
}

.st-fp-art__chip {
    fill: rgba(var(--color-text-rgb), 0.15);
}

.st-fp-art__pill {
    fill: var(--color-tint);
    stroke: rgba(var(--color-accent-rgb), 0.45);
}

.st-fp-art__pill.is-target {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}

.st-fp-art__num {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--fw-bold);
    fill: var(--color-text);
}

.st-fp-art__num--small {
    font-size: 12px;
}

.st-fp-art__num--light {
    fill: var(--color-white);
}

.st-fp-art__paper {
    fill: var(--color-white);
    stroke: var(--color-border);
    stroke-width: 1.5;
}

.st-fp-art__fold {
    stroke: var(--color-border);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.st-fp-art__gold,
.st-fp-art__gold-fill,
.st-fp-art__dot {
    fill: var(--color-accent);
}

.st-fp-art__tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    fill: var(--color-white);
}

.st-fp-art__stroke-white,
.st-fp-art__tick {
    stroke: var(--color-white);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.st-fp-art__tick {
    stroke-width: 2;
}

.st-fp-art__stroke-muted {
    stroke: var(--color-muted);
    stroke-width: 2;
    stroke-linecap: round;
}

.st-fp-art__stroke-gold {
    stroke: var(--color-accent-dark);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.st-fp-art__halo {
    fill: rgba(var(--color-accent-rgb), 0.1);
    stroke: rgba(var(--color-accent-rgb), 0.3);
    stroke-dasharray: 4 6;
}

.st-fp-art__field {
    fill: var(--color-white);
    stroke: var(--color-border);
    stroke-width: 1.5;
}

.st-fp-art__typed {
    fill: rgba(var(--color-primary-rgb), 0.7);
}

.st-fp-art__caret {
    fill: var(--color-accent);
}

.st-fp-art__qr {
    fill: var(--color-text);
}

.st-fp-art__bracket {
    stroke: var(--color-accent);
    stroke-width: 3;
    stroke-linecap: round;
}

.st-fp-art__scan {
    fill: var(--color-accent);
    fill-opacity: 0.85;
}

.st-fp-art__tent {
    fill: var(--color-white);
    stroke: var(--color-border);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.st-fp-art__tent-edge {
    stroke: var(--color-primary);
    stroke-width: 4;
    stroke-linecap: round;
}

.st-fp-art__swatch--navy  { fill: var(--color-primary); }
.st-fp-art__swatch--gold  { fill: var(--color-accent); }
.st-fp-art__swatch--tint  { fill: var(--color-accent-light); }

.st-fp-art__swatch--light {
    fill: var(--color-tint);
    stroke: var(--color-border);
}

.st-fp-art__swatch.is-picked {
    stroke: var(--color-white);
    stroke-width: 3;
    paint-order: stroke;
    filter: drop-shadow(0 0 0 var(--color-primary)) drop-shadow(0 0 1.5px var(--color-primary));
}

.st-fp-art__status.is-live {
    fill: rgba(var(--color-accent-rgb), 0.35);
}

.st-fp-art__status.is-ended {
    fill: rgba(var(--color-text-rgb), 0.12);
}

/* Shapes that scale or slide from their own box */
.st-fp-art__typed,
.st-fp-art__result,
.st-fp-art__badge,
.st-fp-art__palette,
.st-fp-art__file,
.st-fp-art__sign,
.st-fp-art__linkbar,
.st-fp-art__spark {
    transform-box: fill-box;
    transform-origin: center;
}

.st-fp-art__typed {
    transform-origin: left center;
}

/* =====================================================
   Questions: heading beside native disclosures
   ===================================================== */

.section-faq {
    background-color: var(--color-white);
    padding-block: var(--section-py);
}

.st-fp-faq__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: var(--space-16);
}

.st-fp-faq__head {
    position: sticky;
    top: calc(var(--header-h) + var(--space-8));
}

.st-fp-faq__list {
    display: grid;
    gap: var(--space-3);
}

.st-fp-faq__item {
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    transition: border-color var(--ease-base), background-color var(--ease-base), box-shadow var(--ease-base);
}

.st-fp-faq__item:hover {
    border-color: rgba(var(--color-accent-rgb), 0.45);
}

.st-fp-faq__item[open] {
    border-color: rgba(var(--color-accent-rgb), 0.45);
    background-color: var(--color-bg);
    box-shadow: var(--shadow-md);
}

.st-fp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
}

.st-fp-faq__question::-webkit-details-marker {
    display: none;
}

.st-fp-faq__question:focus-visible {
    border-radius: var(--radius-xl);
}

.st-fp-faq__toggle {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: var(--space-8);
    height: var(--space-8);
    border-radius: var(--radius-full);
    color: var(--color-accent-dark);
    background-color: rgba(var(--color-accent-rgb), 0.14);
    transition: transform var(--ease-slow), color var(--ease-base), background-color var(--ease-base);
}

.st-fp-faq__item[open] .st-fp-faq__toggle {
    color: var(--color-white);
    background-color: var(--color-primary);
    transform: rotate(45deg);
}

.st-fp-faq__answer {
    padding: 0 var(--space-6) var(--space-6);
    max-width: var(--measure-text);
    color: var(--color-muted);
    animation: st-fp-open var(--ease-slow);
}

/* =====================================================
   Call to Action: light panel above the footer
   ===================================================== */

.section-cta.st-fp-cta {
    background-color: var(--color-white);
    padding-top: 0;
    padding-bottom: var(--section-py);
}

.st-fp-cta__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-16) var(--space-8);
    border-radius: calc(var(--radius-xl) * 2);
    border: 1px solid rgba(var(--color-accent-rgb), 0.35);
    background:
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(var(--color-accent-rgb), 0.18), transparent 70%),
        radial-gradient(ellipse 45% 60% at 100% 0%, rgba(var(--color-accent-rgb), 0.14), transparent 70%),
        var(--color-bg);
    text-align: center;
}

.st-fp-cta__star {
    fill: var(--color-accent);
    animation: st-fp-twinkle 3.2s ease-in-out infinite;
}

.st-fp-cta__heading {
    margin-top: var(--space-5);
    max-width: var(--measure-heading);
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
}

.st-fp-cta__body {
    margin-top: var(--space-5);
    max-width: var(--measure-text);
    font-size: var(--text-body-lg);
    color: var(--color-muted);
}

/* =====================================================
   Hero entrance: the same sequence as the home hero.
   The heading and intro are the page's largest text (its
   LCP element): they only glide into place and are never
   transparent, so they count as painted at once.
   ===================================================== */

.st-fp-hero .st-fp-eyebrow,
.st-fp-hero .st-fp-actions,
.st-fp-hero__jump {
    animation: st-fp-hero-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.st-fp-hero__heading,
.st-fp-hero__intro {
    animation: st-fp-hero-glide 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.st-fp-hero .st-fp-eyebrow   { animation-delay: 0.1s; }
.st-fp-hero__heading         { animation-delay: 0.25s; }
.st-fp-hero__intro           { animation-delay: 0.55s; }
.st-fp-hero .st-fp-actions   { animation-delay: 0.75s; }
.st-fp-hero__jump            { animation-delay: 0.9s; }

/* The highlighted words fade in a beat after the rest of the heading
   (opacity only, so wrapping never changes) */
.st-fp-hero .st-fp-highlight {
    animation: st-fp-hero-fade 0.9s ease-out 0.7s both;
}

/* =====================================================
   Off-screen sections: the browser skips their style,
   layout and paint until they come near the screen.
   --st-cv-height is a placeholder close to each section's
   real height (keeps the scrollbar steady); "auto" swaps in
   the measured height once a section has been drawn.
   The hero's #feature-N chips still land correctly: Chrome
   draws a skipped section when a link jumps into it.
   ===================================================== */

.st-fp-overview,
.st-fp-details,
.st-fp-faq,
.st-fp-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto var(--st-cv-height);
}

.st-fp-overview { --st-cv-height: 890px; }
.st-fp-details  { --st-cv-height: 2350px; }
.st-fp-faq      { --st-cv-height: 660px; }
.st-fp-cta      { --st-cv-height: 520px; }

@media ( max-width: 768px ) {
    .st-fp-overview { --st-cv-height: 2060px; }
    .st-fp-details  { --st-cv-height: 3210px; }
    .st-fp-faq      { --st-cv-height: 910px; }
}

/* Looping animations pause while their section is off screen
   (features.js toggles .st-loops-off on [data-st-loops]) */
.st-loops-off .st-fp-hero__deco,
.st-loops-off .st-fp-hero__float,
.st-loops-off .st-fp-art__scan,
.st-loops-off .st-fp-art__caret,
.st-loops-off .st-fp-cta__star {
    animation-play-state: paused !important;
}

/* =====================================================
   Animations
   ===================================================== */

@keyframes st-fp-hero-up {
    from { opacity: 0; transform: translateY(var(--space-5)); }
}

@keyframes st-fp-hero-glide {
    from { transform: translateY(var(--space-5)); }
}

@keyframes st-fp-hero-fade {
    from { opacity: 0; }
}

@keyframes st-fp-drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(var(--space-2), calc(var(--space-3) * -1)); }
}

@keyframes st-fp-settle {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

@keyframes st-fp-rise {
    from { opacity: 0; transform: translateY(var(--space-6)); }
    to   { opacity: 1; transform: none; }
}

@keyframes st-fp-bob {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 calc(var(--space-2) * -1); }
}

@keyframes st-fp-twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.8); }
}

@keyframes st-fp-open {
    from { opacity: 0; transform: translateY(calc(var(--space-2) * -1)); }
    to   { opacity: 1; transform: none; }
}

@keyframes st-fp-scan {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(148px); }
}

@keyframes st-fp-scan-hero {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(84px); }
}

@keyframes st-fp-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes st-fp-pop {
    0%   { opacity: 0; transform: scale(0.6); }
    70%  { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes st-fp-drop {
    from { opacity: 0; transform: translate(calc(var(--space-6) * -1), calc(var(--space-10) * -1)) rotate(-12deg); }
    to   { opacity: 1; transform: none; }
}

@keyframes st-fp-fill {
    from { opacity: 0; transform: translateX(calc(var(--space-3) * -1)); }
    to   { opacity: 1; transform: none; }
}

@keyframes st-fp-type {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes st-fp-slide {
    from { opacity: 0; transform: translateX(var(--space-8)); }
    to   { opacity: 1; transform: none; }
}

/* Hero QR card scan line keeps sweeping */
.st-fp-hero__float--qr .st-fp-art__scan {
    animation: st-fp-scan-hero 3.6s ease-in-out infinite;
}

/* Scroll reveal (features.js adds .st-js-reveal only when motion is
   allowed, so nothing is hidden without JS) */
.st-js-reveal .st-reveal {
    opacity: 0;
    transform: translateY(var(--space-5));
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-js-reveal .st-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--st-i, 0) * 90ms);
}

.st-js-reveal .st-fp-overview__card.st-reveal {
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--ease-base), border-color var(--ease-base), background-color var(--ease-slow);
}

.st-js-reveal .st-fp-overview__card.st-reveal.is-visible:hover {
    transform: translateY(-4px);
    transition-delay: 0s;
}

/* Rows: illustration slides in from its own side */
.st-js-reveal .st-fp-row__art.st-reveal:not(.is-visible) {
    transform: translateX(var(--space-10));
}

.st-js-reveal .st-fp-row--flip .st-fp-row__art.st-reveal:not(.is-visible) {
    transform: translateX(calc(var(--space-10) * -1));
}

/* Each illustration plays its build-in once its panel is visible */
.st-js-reveal .is-visible .st-fp-art--1 .st-fp-art__file {
    animation: st-fp-drop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.st-js-reveal .is-visible .st-fp-art--1 .st-fp-art__row {
    animation: st-fp-fill 0.5s ease calc(0.8s + var(--st-i, 0) * 0.14s) both;
}

.st-js-reveal .is-visible .st-fp-art--1 .st-fp-art__badge {
    animation: st-fp-pop 0.5s ease 1.8s both;
}

.st-js-reveal .is-visible .st-fp-art--2 .st-fp-art__typed {
    animation: st-fp-type 0.9s steps(7) 0.5s both;
}

.st-js-reveal .is-visible .st-fp-art--2 .st-fp-art__result {
    animation: st-fp-pop 0.55s ease 1.5s both;
}

.st-js-reveal .is-visible .st-fp-art--2 .st-fp-art__result--2 {
    animation-delay: 1.75s;
}

.st-js-reveal .is-visible .st-fp-art--2 .st-fp-art__spark {
    animation: st-fp-pop 0.6s ease 2.1s both;
}

.st-fp-art--2 .st-fp-art__caret {
    animation: st-fp-blink 1s step-end infinite;
}

.st-js-reveal .is-visible .st-fp-art--3 .st-fp-art__linkbar {
    animation: st-fp-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.st-js-reveal .is-visible .st-fp-art--3 .st-fp-art__sign {
    animation: st-fp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.st-fp-art--3 .st-fp-art__scan {
    animation: st-fp-scan 3.6s ease-in-out infinite;
}

.st-js-reveal .is-visible .st-fp-art--4 .st-fp-art__event {
    animation: st-fp-slide 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(0.4s + var(--st-i, 0) * 0.16s) both;
}

.st-js-reveal .is-visible .st-fp-art--4 .st-fp-art__palette {
    animation: st-fp-pop 0.55s ease 1.2s both;
}

/* =====================================================
   Responsive
   ===================================================== */

@media ( max-width: 1024px ) {
    .st-fp-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-fp-row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-10);
    }

    .st-fp-row--flip .st-fp-row__text {
        order: 0;
    }

    .st-fp-row__text,
    .st-fp-row__art {
        width: 100%;
        max-width: var(--auth-stack-max);
        margin-inline: auto;
    }

    .st-fp-details__list {
        gap: var(--space-16);
    }

    .st-fp-faq__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-10);
    }

    .st-fp-faq__head {
        position: static;
    }

    /* Taller stacked hero: drop the ivory / white split so it never
       cuts through the jump links; keep the gold glow only */
    .section-hero.st-fp-hero {
        background-image: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(var(--color-accent-rgb), 0.16), transparent 70%);
    }

    .st-fp-hero__frame {
        aspect-ratio: 16 / 9;
    }

    .st-fp-hero__float--result {
        left: var(--space-4);
    }

    .st-fp-hero__float--qr {
        right: var(--space-4);
    }
}

@media ( max-width: 768px ) {
    .section-hero.st-fp-hero {
        padding-top: var(--space-10);
    }

    .st-fp-hero__visual {
        margin-top: var(--space-12);
    }

    .st-fp-hero__deco {
        display: none;
    }

    .st-fp-head {
        margin-bottom: var(--space-10);
    }

    .st-fp-row__art {
        padding: var(--space-5);
    }
}

@media ( max-width: 640px ) {
    .st-fp-actions {
        flex-direction: column;
    }

    .st-fp-actions .btn {
        width: 100%;
    }

    .st-fp-overview__grid,
    .st-fp-row__points {
        grid-template-columns: minmax(0, 1fr);
    }

    .st-fp-hero__frame {
        aspect-ratio: 4 / 3;
    }

    .st-fp-hero__float--result {
        width: 180px;
        left: var(--space-3);
        bottom: calc(var(--space-6) * -1);
    }

    .st-fp-hero__float--qr {
        width: 96px;
        right: var(--space-3);
        top: calc(var(--space-6) * -1);
    }

    .st-fp-faq__question {
        padding: var(--space-4) var(--space-5);
        font-size: var(--text-body);
    }

    .st-fp-faq__answer {
        padding: 0 var(--space-5) var(--space-5);
    }

    .st-fp-cta__panel {
        padding: var(--space-12) var(--space-5);
    }
}

/* =====================================================
   Reduced motion
   ===================================================== */

@media ( prefers-reduced-motion: reduce ) {
    .st-fp-hero__deco,
    .st-fp-hero__img,
    .st-fp-hero__float,
    .st-fp-cta__star,
    .st-fp-faq__answer,
    .st-fp-art__scan,
    .st-fp-art__caret,
    .st-fp-hero .st-fp-eyebrow,
    .st-fp-hero__heading,
    .st-fp-hero .st-fp-highlight,
    .st-fp-hero__intro,
    .st-fp-hero .st-fp-actions,
    .st-fp-hero__jump {
        animation: none;
    }

    .st-fp-overview__card,
    .st-fp-overview__card::after,
    .st-fp-overview__icon,
    .st-fp-faq__toggle {
        transition: none;
    }

    .st-fp-overview__card:hover,
    .st-fp-overview__card:hover .st-fp-overview__icon {
        transform: none;
    }
}
