/*
 * main.css — component styles. Consumes variables from tokens.css.
 * No hard-coded brand colours/sizes here — reach for a token so re-theming
 * (globally or per site) stays a one-file job.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    /* Always show the vertical scrollbar so centred content never shifts
       between short and long pages. The strip is a real scrollbar, not a gap. */
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> is just a wrapper — let the inner <img> lay out as if it were a direct child. */
picture { display: contents; }

/* Form controls don't inherit type by default — make them match the design system. */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--color-primary); text-decoration: none; }
/* Buttons manage their own hover — exclude them from the global link hover. */
a:not(.btn):hover { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }

::selection { background: rgba(var(--color-primary-rgb), 0.18); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-optical-sizing: auto;
    color: var(--color-heading);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin: 0 0 var(--space-3);
    text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); letter-spacing: 0; }
p { margin: 0 0 var(--space-3); }

/* Visible focus for keyboard users only. */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Cross-page View Transitions — switched on per site via site.view_transitions
   (the @view-transition rule is emitted in base.twig when enabled). Subtle cross-fade. */
::view-transition-old(root) { animation: vt-out 220ms ease both; }
::view-transition-new(root) { animation: vt-in 340ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section { padding-block: var(--section-pad); }
.section:nth-of-type(even) { background-color: var(--color-bg-alt); background-image: radial-gradient(rgba(var(--color-primary-rgb), 0.045) 1px, transparent 1.6px); background-size: 24px 24px; }

.prose { max-width: var(--content-measure); margin-inline: var(--content-justify); }
.prose--center { margin-inline: auto; text-align: center; }
.prose > * + * { margin-top: var(--space-3); }
.prose h2 { margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-1); }
.prose img { border-radius: var(--radius); margin-block: var(--space-3); }

/* ===== Layout primitives — COMPOSE EVERY PAGE FROM THESE. A new page must need ZERO new CSS.
   text page:    section > container > prose
   listing page: section > container > [grid data-cols="3"] (+ existing card components)
   composed:     pages/sections.twig (component blocks)                                   ===== */
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid[data-cols="2"] { --cols: 2; }
.grid[data-cols="3"] { --cols: 3; }
.grid[data-cols="4"] { --cols: 4; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: var(--space-3); }
.stack--lg > * + * { margin-top: var(--space-5); }
.center { text-align: center; }
.muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--text-sm); }
.skip-link { position: absolute; left: var(--space-2); top: -3.5rem; z-index: 100; background: var(--color-primary); color: var(--color-inverse); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); transition: top var(--transition); }
.skip-link:focus { top: var(--space-2); }
/* About brand mark + "Proudly South African" flag callout + contact details list */
.brandmark { max-width: 240px; height: auto; margin-bottom: var(--space-4); }
.proudly { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-bg-alt); border-left: 4px solid var(--color-accent); border-radius: var(--radius-sm); }
.flag { width: 42px; height: auto; flex: none; border-radius: 2px; border: 1px solid var(--color-border); }
.contact-details { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: var(--space-2); }

/* Consistent breathing space BELOW the heading whether or not an intro follows:
   heading carries the gap; when an intro is present it tucks up close to the heading. */
.section__heading { text-align: var(--align-headings); margin-bottom: var(--space-5); }
/* Editorial header details: kicker eyebrow + short accent rule under the heading */
.section__eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: var(--font-weight-bold); color: var(--color-text-muted); margin: 0 0 var(--space-2); }
.section__heading::after { content: ""; display: block; width: 52px; height: 4px; margin-top: var(--space-3); background: var(--color-accent); border-radius: 2px; }
.cta-band .section__heading::after, .hero .section__heading::after { display: none; }
.section__intro { text-align: var(--align-headings); max-width: 56ch; margin-block: calc(var(--space-3) - var(--space-5)) var(--space-5); margin-inline: var(--content-justify); color: var(--color-text-muted); font-size: var(--text-lg); }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    cursor: pointer;
    border: 1.5px solid transparent;
    /* 3D glass: top sheen (gradient) + inset highlight + soft drop shadow */
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 58%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 5px 12px rgba(15, 23, 42, 0.16), 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background-color var(--transition), border-color var(--transition),
                transform var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 9px 22px rgba(15, 23, 42, 0.22), 0 2px 5px rgba(15, 23, 42, 0.14); }
.btn:active { transform: translateY(0); box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.28); }
.btn--primary { background-color: var(--color-btn, var(--color-primary)); color: var(--color-btn-text, var(--color-inverse)); }
.btn--primary:hover { background-color: var(--color-btn-hover, var(--color-primary-dark)); color: var(--color-btn-text, var(--color-inverse)); }
.btn--ghost { border-color: var(--color-border); color: var(--color-heading); background-color: var(--color-surface); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); background-color: var(--color-surface); }
.btn--lg { padding: 0.9rem 2rem; font-size: var(--text-lg); }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Frosted glass once the page is scrolled (sticky state). */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom-color: transparent;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.10);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.site-header__brand { font-weight: var(--font-weight-bold); font-size: 1.25rem; color: var(--color-heading); letter-spacing: var(--tracking-tight); }
.site-header__brand:hover { text-decoration: none; color: var(--color-primary); }
.site-header__brand--logo { display: inline-flex; align-items: center; }
.site-header__logo { height: 42px; width: auto; display: block; }

.site-nav__list { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav__list a { color: var(--color-text); font-weight: var(--font-weight-medium); position: relative; padding-block: 0.25rem; }
.site-nav__list a:hover { color: var(--color-primary); text-decoration: none; }
.site-nav__list a[aria-current="page"] { color: var(--color-primary); }
.site-nav__list a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-primary); border-radius: 2px;
}
.site-nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.site-nav__bars, .site-nav__bars::before, .site-nav__bars::after { display: block; width: 22px; height: 2px; background: var(--color-heading); position: relative; border-radius: 2px; }
.site-nav__bars::before, .site-nav__bars::after { content: ""; position: absolute; }
.site-nav__bars::before { top: -7px; } .site-nav__bars::after { top: 7px; }

/* Multi-tier nav: a submenu opens on click of the caret (desktop flyout). */
.site-nav__item.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.site-nav__sub-toggle { background: none; border: 0; padding: 0.25rem; cursor: pointer; color: var(--color-text); display: inline-flex; align-items: center; line-height: 0; }
.site-nav__sub-toggle:hover { color: var(--color-primary); }
.site-nav__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform var(--transition); }
.site-nav__item.is-open .site-nav__caret { transform: rotate(180deg); }
.site-nav__sub { display: none; position: absolute; top: calc(100% + var(--space-2)); left: 0; min-width: 220px; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 50; }
.site-nav__item.is-open .site-nav__sub { display: flex; }
.site-nav__sub li { padding: 0; }
.site-nav__sub a { display: block; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); white-space: nowrap; }
.site-nav__sub a:hover { background: var(--color-bg-alt); }
.site-nav__sub a[aria-current="page"]::after { display: none; }

@media (max-width: 760px) {
    .site-nav__toggle { display: block; }
    .site-nav__list {
        display: none; position: absolute; top: 68px; right: 0; left: 0;
        flex-direction: column; gap: 0; align-items: stretch;
        background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: var(--space-2) var(--container-pad);
        box-shadow: var(--shadow);
    }
    .site-nav__list.is-open { display: flex; }
    .site-nav__list li { padding-block: 0.6rem; border-top: 1px solid var(--color-border); }
    .site-nav__list a[aria-current="page"]::after { display: none; }
    /* Submenu becomes an inline accordion on mobile (no flyout). */
    .site-nav__item.has-sub { flex-wrap: wrap; justify-content: space-between; }
    .site-nav__sub { position: static; width: 100%; min-width: 0; padding: 0 0 0 var(--space-3); background: transparent; border: 0; box-shadow: none; }
    .site-nav__sub li { border-top: 0; padding-block: 0; }
    .site-nav__sub a { padding-block: 0.5rem; }
}

/* ===== Hero ===== */
.hero {
    padding-block: var(--space-7);
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(var(--color-primary-rgb), 0.08), transparent 70%),
        var(--color-bg-alt);
    text-align: center;
}
.hero__inner { max-width: 820px; margin-inline: auto; }
/* Image hero: photo behind a dark scrim, light text. */
.hero--image { position: relative; isolation: isolate; color: var(--color-inverse); }
.hero--image .hero__media { position: absolute; inset: 0; z-index: -3; }
.hero--image .hero__bg { width: 100%; height: 100%; object-fit: cover; }
.hero--image::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(20,22,26,0.62), rgba(20,22,26,0.72)); }
/* Circle "lens": a soft-edged frosted disc behind the heading. The masked
   backdrop-filter blurs only a circular region of the photo so the copy reads
   clearly while the rest of the image stays sharp. (joshwcomeau.com/css/backdrop-filter) */
.hero--image .hero__lens {
    position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
    width: min(640px, 84vw); aspect-ratio: 1; border-radius: 50%;
    z-index: -1; pointer-events: none;
    /* border-radius gives a hard circular clip of the blur; the mask feathers the edge */
    backdrop-filter: blur(10px) saturate(1.1) brightness(0.96);
    -webkit-backdrop-filter: blur(10px) saturate(1.1) brightness(0.96);
    -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 72%);
    mask-image: radial-gradient(circle, #000 52%, transparent 72%);
}
.hero--image .hero__heading { color: var(--color-inverse); }
.hero--image .hero__subheading { color: rgba(255, 255, 255, 0.88); }
/* Buttons over the hero photo: frosted, slightly transparent glass. */
.hero--image .btn {
    -webkit-backdrop-filter: blur(9px) saturate(1.35);
    backdrop-filter: blur(9px) saturate(1.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.32);
}
.hero--image .btn--primary { background-color: color-mix(in srgb, var(--color-btn, var(--color-primary)) 78%, transparent); border-color: rgba(255, 255, 255, 0.4); }
.hero--image .btn--primary:hover { background-color: color-mix(in srgb, var(--color-btn-hover, var(--color-primary-dark)) 90%, transparent); }
.hero--image .btn--ghost { background-color: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.55); color: var(--color-inverse); }
.hero--image .btn--ghost:hover { background-color: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.85); color: var(--color-inverse); }

/* Centered statement banner */
.section.banner { background: var(--color-accent); }
.banner__text { margin: 0; text-align: center; font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--color-heading); }

/* Rich-text with image (image block beside the copy) */
.rich-text__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.rich-text__grid--flip .rich-text__media-stack { order: 2; }
.rich-text__media-stack { display: grid; gap: var(--space-4); }
.rich-text__media { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rich-text__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.rich-text__body { max-width: none; }
.lightbox-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.lightbox-trigger img { display: block; }
@media (max-width: 760px) { .rich-text__grid--flip .rich-text__media-stack { order: 0; } }
@media (max-width: 760px) { .rich-text__grid, .rich-text__grid--flip { grid-template-columns: 1fr; } .rich-text__grid--flip .rich-text__media-stack { order: 0; } }

/* Frosted-glass surface (glassmorphism) */
.glass { background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6); }

/* Call-back / enquiry section (photo background + glass form panel) */
.callback { position: relative; isolation: isolate; }
.callback--image { color: var(--color-inverse); }
.callback--image .callback__media { position: absolute; inset: 0; z-index: -2; }
.callback--image .callback__bg { width: 100%; height: 100%; object-fit: cover; }
.callback--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,26,0.72), rgba(20,22,26,0.35)); }
.callback__inner { display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: var(--space-6); align-items: center; }
.callback--image .callback__heading { color: var(--color-inverse); }
.callback--image .callback__text { color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.callback__form { padding: var(--space-5); border-radius: var(--radius); }
.callback__form .form { max-width: none; }
@media (max-width: 820px) { .callback__inner { grid-template-columns: 1fr; } }
.hero__heading { margin-bottom: var(--space-3); font-size: clamp(2.5rem, 6vw, 4rem); }
.hero__subheading { font-size: var(--text-xl); color: var(--color-text-muted); max-width: 60ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); justify-content: center; }

/* One orchestrated page-load reveal (staggered). Disabled under reduced-motion. */
.hero__heading, .hero__subheading, .hero__actions { animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__subheading { animation-delay: 90ms; }
.hero__actions { animation-delay: 180ms; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== Cards (shared lift behaviour) ===== */
.feature, .plan, .testimonial {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature:hover, .testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--color-primary-rgb), 0.25); }

/* Feature grid */
.feature-grid__items { display: grid; gap: var(--space-4); grid-template-columns: repeat(var(--cols, 3), 1fr); }
.feature-grid__items[data-cols="2"] { --cols: 2; }
.feature-grid__items[data-cols="3"] { --cols: 3; }
.feature-grid__items[data-cols="4"] { --cols: 4; }
@media (max-width: 860px) { .feature-grid__items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid__items { grid-template-columns: 1fr; } }
.feature { padding: var(--space-5); }
.feature__icon {
    display: grid; place-items: center; margin-inline: auto; width: 60px; height: 60px; margin-bottom: var(--space-3);
    font-size: 1.6rem; line-height: 1; border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.07);
    transition: background var(--transition), transform var(--transition);
}
.feature:hover .feature__icon { background: var(--color-accent); transform: scale(1.06); }
.feature:hover .feature__icon .icon { color: var(--color-heading); }
/* Dark feature cards (e.g. "Why choose") — black cards, white text, yellow centred icons. */
.feature-grid--dark .feature { background: var(--color-dark, var(--color-primary)); border-color: rgba(255, 255, 255, 0.12); color: var(--color-inverse); }
.feature-grid--dark .feature__title { color: var(--color-inverse); }
.feature-grid--dark .feature__text { color: rgba(255, 255, 255, 0.78); }
.feature-grid--dark .feature__icon { background: rgba(255, 255, 255, 0.10); display: grid; margin-inline: auto; }
.feature-grid--dark .feature__icon .icon { color: var(--color-accent); }
.feature-grid--dark .feature:hover { border-color: rgba(255, 255, 255, 0.28); }
.feature-grid--dark .feature:hover .feature__icon { background: var(--color-accent); }
.feature-grid--dark .feature:hover .feature__icon .icon { color: var(--color-heading); }
.feature__icon .icon { width: 28px; height: 28px; color: var(--color-primary); }
.icon { width: 1.5em; height: 1.5em; display: inline-block; vertical-align: middle; }
.feature__title { margin: 0 0 var(--space-2); }
.feature__text { margin: 0; color: var(--color-text-muted); }

/* CTA band (.section.cta-band beats the zebra rule) */
.section.cta-band {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-inverse);
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cta-band__heading { margin: 0 0 var(--space-2); color: var(--color-inverse); }
.cta-band__text { margin: 0; opacity: 0.92; max-width: 52ch; }
.cta-band .btn--primary { background-color: var(--color-cta-btn, var(--color-inverse)); color: var(--color-cta-btn-text, var(--color-primary)); }
.cta-band .btn--primary:hover { background-color: var(--color-cta-btn-hover, rgba(255, 255, 255, 0.9)); color: var(--color-cta-btn-text, var(--color-primary)); }
.cta-band--image { position: relative; isolation: isolate; }
.cta-band--image .cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band--image .cta-band__bg { width: 100%; height: 100%; object-fit: cover; }
.cta-band--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,26,0.62), rgba(20,22,26,0.3)); }

/* Testimonials */
.testimonials__items { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .testimonials__items { grid-template-columns: 1fr; } }
.testimonial { margin: 0; padding: var(--space-4); }
.testimonial__quote { margin: 0 0 var(--space-3); font-size: var(--text-lg); color: var(--color-heading); }
.testimonial__quote::before { content: "\201C"; }
.testimonial__quote::after { content: "\201D"; }
.testimonial__cite { display: flex; flex-direction: column; }
.testimonial__name { font-weight: var(--font-weight-bold); color: var(--color-heading); }
.testimonial__role { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Pricing */
.pricing__plans { display: grid; gap: var(--space-4); grid-template-columns: repeat(var(--plan-count, 3), minmax(0, 1fr)); align-items: stretch; max-width: min(100%, calc(var(--plan-count, 3) * 22rem)); margin-inline: auto; }
@media (max-width: 860px) { .pricing__plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.plan { position: relative; padding: var(--space-5) var(--space-4); text-align: center; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--color-primary); border-width: 2px; box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: var(--color-inverse); font-size: var(--text-sm); font-weight: var(--font-weight-bold); padding: 0.25rem 0.85rem; border-radius: var(--radius-pill); }
.plan__name { margin: 0 0 var(--space-2); }
.plan__price { margin-bottom: var(--space-3); }
.plan__amount { font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--color-heading); }
.plan__period { color: var(--color-text-muted); }
.plan__features { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); text-align: left; flex: 1; }
.plan__features li { color: var(--color-text-muted); padding-left: 1.5rem; position: relative; }
.plan__features li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }

/* FAQ */
/* FAQ — two-column on desktop: heading/intro/CTA on the left, accordion on the right. */
.faq__inner { max-width: 1080px; }
@media (min-width: 880px) {
  .faq__inner { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: var(--space-6); align-items: start; }
  .faq__head { position: sticky; top: 96px; }
}
.faq__head .section__heading { margin-bottom: var(--space-3); }
.faq__intro { color: var(--color-text-muted); margin: 0 0 var(--space-4); max-width: 40ch; }
.faq__foot { color: var(--color-text-muted); font-size: .95rem; }
.faq__foot a:not(.btn) { color: var(--color-primary); font-weight: 600; }
.faq__foot-label { margin: 0 0 var(--space-3); font-weight: var(--font-weight-bold); color: var(--color-heading); }
.faq__foot-actions { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.faq__action { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid #e6eaf2; border-radius: var(--radius-md, 14px); background: #fff; color: #0e1530; font-weight: var(--font-weight-bold); box-shadow: 0 12px 34px -22px rgba(16,24,40,.28); transition: transform var(--transition), border-color var(--transition); }
.faq__action:hover { transform: translateY(-2px); border-color: var(--color-primary); }
.faq__action-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #f1f4f9; color: var(--color-primary); }
.faq__action-icon .icon { width: 20px; height: 20px; }
.faq__action-label { flex: 1 1 auto; }
.faq__action-arrow { flex: 0 0 auto; color: var(--color-primary); }
.faq__list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius-md, 14px); background: var(--color-surface); transition: box-shadow var(--transition), transform var(--transition); overflow: hidden; }
.faq__item:hover { transform: translateY(-2px); }
.faq__item[open] { box-shadow: var(--shadow-lg); }
.faq__q { cursor: pointer; padding: var(--space-4); font-weight: var(--font-weight-bold); color: var(--color-heading); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: 1.05rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 999px; border: 1.6px solid var(--color-primary);
  background: linear-gradient(var(--color-primary), var(--color-primary)) center / 12px 1.6px no-repeat,
              linear-gradient(var(--color-primary), var(--color-primary)) center / 1.6px 12px no-repeat;
  transition: transform var(--transition); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 var(--space-4) var(--space-4); color: var(--color-text-muted); }

/* Gallery */
.gallery__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(var(--gcols, 3), 1fr); }
.gallery__grid[data-cols="2"] { --gcols: 2; } .gallery__grid[data-cols="3"] { --gcols: 3; } .gallery__grid[data-cols="4"] { --gcols: 4; }
@media (max-width: 640px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery__caption { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }

/* Logo strip */
.logos__heading { text-align: center; color: var(--color-text-muted); margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--text-sm); }
.logos__strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: center; }
.logos__item img { max-height: 40px; width: auto; filter: grayscale(1); opacity: 0.65; transition: filter var(--transition), opacity var(--transition); }
.logos__item img:hover { filter: grayscale(0); opacity: 1; }

/* Team */
.team__grid { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: repeat(var(--tcols, 3), 1fr); }
.team__grid[data-cols="2"] { --tcols: 2; } .team__grid[data-cols="3"] { --tcols: 3; } .team__grid[data-cols="4"] { --tcols: 4; }
@media (max-width: 860px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team__grid { grid-template-columns: 1fr; } }
.team__member { text-align: center; }
.team__photo, .team__avatar { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-3); box-shadow: var(--shadow); }
.team__avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: var(--color-inverse); font-size: 2rem; font-weight: var(--font-weight-bold); letter-spacing: 0; }
.team__name { margin: 0; }
.team__role { margin: 0 0 var(--space-2); color: var(--color-primary); font-weight: var(--font-weight-medium); }
.team__bio { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }

/* Stats */
.stats__grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(4, 1fr); text-align: center; }
@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat__value { font-size: var(--text-3xl); font-weight: var(--font-weight-bold); color: var(--color-primary); line-height: 1; letter-spacing: var(--tracking-tight); }
.stat__label { color: var(--color-text-muted); margin-top: var(--space-2); }

/* ===== Footer ===== */
.site-footer { background: var(--color-footer-bg); color: var(--color-inverse); padding-block: var(--space-6) var(--space-4); }
.site-footer a { color: var(--color-inverse); opacity: 0.82; }
.site-footer a:hover { opacity: 1; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; }
.site-footer__brand { max-width: 320px; }
.site-footer__logo { display: inline-block; background: #fff; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.site-footer__logo img { display: block; height: 58px; width: auto; }
.site-footer__tagline { color: rgba(255, 255, 255, 0.7); margin-top: var(--space-3); }
.site-footer__contact { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: rgba(255, 255, 255, 0.85); }
.site-footer__contact a { opacity: 0.85; }
.site-footer__h { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); margin: 0 0 var(--space-3); font-weight: var(--font-weight-bold); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }

/* ===== Forms ===== */
.form { max-width: 560px; }
.form__row { margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); }
.form__row label { font-weight: var(--font-weight-medium); color: var(--color-heading); }
.form input, .form textarea, .form select {
    padding: 0.75rem 0.95rem; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font: inherit; width: 100%; background: var(--color-bg); color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--ring); }

/* Downloads list (folder-driven downloads page). */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.file-list__link { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: border-color var(--transition); }
.file-list__link:hover { border-color: var(--color-primary); text-decoration: none; }
.file-list__name { font-weight: var(--font-weight-medium); color: var(--color-heading); }
.file-list__meta { font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }

/* Embedded map (contact page). */
.map-embed { margin-top: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Product catalogue (search + A–Z index + two-column listing). */
.catalogue__search { margin: var(--space-4) 0 var(--space-5); }
.catalogue__search input { width: 100%; max-width: 480px; padding: 0.75rem 0.95rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; background: var(--color-surface); color: var(--color-text); }
.catalogue__search input:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--ring); }
.catalogue__subhead { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.catalogue__chips { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.catalogue__chips li { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 0.35rem 0.85rem; font-size: var(--text-sm); }
.catalogue__index { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-5); position: sticky; top: 0; background: var(--color-bg); padding: var(--space-2) 0; z-index: 5; }
.catalogue__index a { display: inline-flex; min-width: 1.9rem; justify-content: center; padding: 0.3rem 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-weight: var(--font-weight-medium); }
.catalogue__index a:hover { background: var(--color-primary); color: var(--color-inverse); text-decoration: none; }
.catalogue__group { margin-bottom: var(--space-5); scroll-margin-top: 4rem; }
.catalogue__letter { font-size: var(--text-2xl); color: var(--color-primary); border-bottom: 2px solid var(--color-border); padding-bottom: var(--space-1); margin-bottom: var(--space-3); }
.catalogue__entries { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--space-6); }
.cat-item { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--color-border); }
.cat-item__name { font-weight: var(--font-weight-medium); color: var(--color-heading); display: block; }
.cat-item__variants { font-size: var(--text-sm); color: var(--color-text-muted); }
.catalogue__foot { margin-top: var(--space-5); color: var(--color-text-muted); }
@media (max-width: 640px) { .catalogue__entries { columns: 1; } }

/* Areas-of-expertise checklist */
.checklist { list-style: none; margin: var(--space-3) 0 0; padding: 0; columns: 3; column-gap: var(--space-6); }
.checklist li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; break-inside: avoid; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0.35rem; color: var(--color-accent); font-weight: 700; }
@media (max-width: 760px) { .checklist { columns: 2; } }
@media (max-width: 460px) { .checklist { columns: 1; } }

/* Brochure cards (PDF thumbnails) */
.brochure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.brochure-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.brochure-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.brochure-card__thumb { aspect-ratio: 3 / 4; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brochure-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.brochure-card__ext { font-weight: 700; color: var(--color-text-muted); }
.brochure-card__body { padding: var(--space-3); }
.brochure-card__label { display: block; font-weight: var(--font-weight-medium); color: var(--color-heading); }
.brochure-card__meta { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 860px) { .brochure-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .brochure-grid { grid-template-columns: 1fr; } }

/* Product enquiry panel */
.enquiry-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); max-width: 640px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form__fieldset { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.form__fieldset legend { padding: 0 var(--space-1); font-weight: var(--font-weight-medium); color: var(--color-heading); }
.form__fieldset .form__radio { display: flex; flex-direction: row; align-items: center; gap: var(--space-2); padding: var(--space-1) 0; font-weight: var(--font-weight-normal); color: var(--color-text); cursor: pointer; }
.form__fieldset input[type="radio"] { width: auto; padding: 0; border: 0; background: none; box-shadow: none; }

.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border-left: 4px solid; margin-bottom: var(--space-4); }
.alert--success { background: var(--color-success-bg); border-color: var(--color-success-border); }
.alert--error { background: var(--color-error-bg); border-color: var(--color-error-border); }
.alert ul { margin: 0; padding-left: 1.2rem; }

/* ===== Breadcrumbs — OUT OF FLOW, so the heading sits at the SAME Y whether a breadcrumb
   is present or not. It floats in the section's top whitespace, just above the heading. ===== */
#main { position: relative; }
.breadcrumbs { position: absolute; left: 0; right: 0; top: calc(var(--section-pad) - 2.2rem); font-size: var(--text-sm); }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: nowrap; overflow: hidden; gap: var(--space-2); margin: 0; padding: 0; color: var(--color-text-muted); }
.breadcrumbs__item { white-space: nowrap; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "›"; margin-right: var(--space-2); color: var(--color-text-muted); }
.breadcrumbs__item [aria-current="page"] { color: var(--color-text); }

/* ===== Article listing (collection) — grid via the shared .grid primitive ===== */
.article-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card__media { display: block; }
.article-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card__media--placeholder { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.14), var(--color-bg-alt)); }
.article-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.article-card__date { color: var(--color-text-muted); font-size: var(--text-sm); }
.article-card__title { margin: 0; font-size: var(--text-lg); }
.article-card__title a { color: var(--color-heading); }
.article-card__title a:hover { color: var(--color-primary); text-decoration: none; }
.article-card__excerpt { margin: 0; color: var(--color-text-muted); }
.article-card__more { margin-top: auto; font-weight: var(--font-weight-medium); }

/* ===== Single article: reusable two-column layout (body + sidebar) ===== */
/* Main column = the SAME reading width + left edge as every other page (--content-measure);
   sidebar takes the remaining space to the right. */
.article-layout { display: grid; grid-template-columns: minmax(0, var(--content-measure)) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } }
.article-layout__main { max-width: none; }   /* grid controls body width; cancel .prose cap */
.article__meta { color: var(--color-text-muted); font-size: var(--text-sm); }
.article__hero { width: 100%; border-radius: var(--radius); margin-block: var(--space-4); box-shadow: var(--shadow); }
.article__back { margin-top: var(--space-6); }

/* Sidebar (reusable — recent posts, share, …) */
.article-layout__aside { position: sticky; top: 88px; }
@media (max-width: 980px) { .article-layout__aside { position: static; } }
.sidebar__widget { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-4); margin-bottom: var(--space-4); }
.sidebar__title { font-size: var(--text-lg); margin: 0 0 var(--space-3); }
.sidebar__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.sidebar__list a { display: block; font-weight: var(--font-weight-medium); color: var(--color-heading); }
.sidebar__list a:hover { color: var(--color-primary); text-decoration: none; }
.sidebar__date { display: block; font-size: var(--text-sm); color: var(--color-text-muted); }
.sidebar__share { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sidebar__share a { padding: 0.4rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--color-heading); }
.sidebar__share a:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

/* ===== Pagination (reusable) ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); flex-wrap: wrap; }
.pagination__nav, .pagination__page {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
    border: 1px solid var(--color-border); color: var(--color-heading); font-weight: var(--font-weight-medium);
}
.pagination__pages { list-style: none; display: flex; gap: var(--space-2); margin: 0; padding: 0; }
.pagination__page:hover, .pagination__nav:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.pagination__page.is-current { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-inverse); }

/* ===== Tags / categories ===== */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-block; font-size: var(--text-sm); padding: 0.15rem 0.65rem; border-radius: var(--radius-pill); background: rgba(var(--color-primary-rgb), 0.10); color: var(--color-primary); font-weight: var(--font-weight-medium); }
a.tag:hover { background: var(--color-primary); color: var(--color-inverse); text-decoration: none; }

/* Collection toolbar = category filter + search */
.collection-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.category-bar { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.category-bar a { display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text); font-size: var(--text-sm); }
.category-bar a:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.category-bar a.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-inverse); }
.category-bar__count { opacity: 0.6; font-size: 0.8em; }

/* Search */
.search-form { display: flex; gap: var(--space-2); }
.search-form input[type="search"] { flex: 1; padding: 0.55rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; min-width: 180px; background: var(--color-bg); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--ring); }
.search-summary { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.collection-toolbar__controls { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.sort-form select { padding: 0.55rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; background: var(--color-bg); color: var(--color-text); cursor: pointer; }
.search-clear { display: inline-flex; align-items: center; padding: 0 0.5rem; color: var(--color-text-muted); }
.search-clear:hover { color: var(--color-primary); text-decoration: none; }

/* ===== Shop — product card (grid via the shared .grid primitive; chrome mirrors article-card) ===== */
.product-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__media { display: block; }
.product-card__media img, .product-card__placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.product-card__placeholder { background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.14), var(--color-bg-alt)); }
.product-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-card__title { margin: 0; font-size: var(--text-lg); }
.product-card__title a { color: var(--color-heading); }
.product-card__title a:hover { color: var(--color-primary); text-decoration: none; }
.product-card__price { font-size: 1.15rem; }
.product-card__stock { color: var(--color-error-border); font-size: var(--text-sm); }
.product-card__btn { margin-top: auto; align-self: flex-start; }

/* Single product: media left, info right (stacks on mobile) */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } }
.product__image, .product__media .product-card__placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-2); }
.product__thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }
.product__title { margin: 0 0 var(--space-2); }
.product__price { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.price { font-weight: var(--font-weight-bold); color: var(--color-primary); }
.price-note { font-size: var(--text-sm); font-weight: var(--font-weight-normal); color: var(--color-text-muted); }
.product__sku { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.product__stock { color: var(--color-error-border); font-weight: var(--font-weight-medium); margin-bottom: var(--space-2); }
.product__summary { color: var(--color-text-muted); margin-top: var(--space-2); }
.product__content { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.product__details { margin-top: var(--space-5); }
.product__details-title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.spec { margin: 0; }
.spec__row { display: grid; grid-template-columns: 40% 1fr; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.spec__row dt { margin: 0; color: var(--color-text-muted); }
.spec__row dd { margin: 0; color: var(--color-heading); font-weight: var(--font-weight-medium); }
.product__back { margin-top: var(--space-5); }

/* ===== Cart ===== */
.cart-link { position: relative; display: inline-flex; align-items: center; margin-left: var(--space-3); color: var(--color-heading); font-size: 1.3rem; text-decoration: none; }
.cart-link:hover { text-decoration: none; }
.cart-link__count { position: absolute; top: -7px; right: -11px; background: var(--color-primary); color: var(--color-inverse); font-size: 0.7rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-pill); display: grid; place-items: center; }

.add-to-cart { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-3); flex-wrap: wrap; }
.add-to-cart__qty { width: 4.5rem; padding: 0.55rem 0.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }
.add-to-cart--compact { margin-top: var(--space-2); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: var(--text-sm); }

.cart__items { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.cart__row { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.cart__media { display: block; width: 80px; }
.cart__media img, .cart__media .product-card__placeholder { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.cart__title { font-weight: var(--font-weight-medium); color: var(--color-heading); }
.cart__unit { font-size: var(--text-sm); }
.cart__qty { display: flex; gap: var(--space-1); align-items: center; }
.cart__qty input { width: 4rem; padding: 0.4rem 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }
.cart__line-total { font-weight: var(--font-weight-bold); color: var(--color-heading); min-width: 6rem; text-align: right; }
.cart__remove button { background: none; border: 0; color: var(--color-text-muted); font-size: 1.1rem; cursor: pointer; }
.cart__remove button:hover { color: var(--color-error-border); }
.cart__summary { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-end; }
.cart__subtotal { font-size: var(--text-lg); }
.cart__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 640px) {
    .cart__row { grid-template-columns: 64px 1fr auto; grid-template-areas: "media detail remove" "media qty total"; }
    .cart__media { grid-area: media; } .cart__detail { grid-area: detail; } .cart__qty { grid-area: qty; }
    .cart__line-total { grid-area: total; text-align: left; } .cart__remove { grid-area: remove; justify-self: end; }
    .cart__media img, .cart__media .product-card__placeholder { width: 64px; height: 64px; }
    .cart__summary { align-items: stretch; }
}

/* ===== Checkout ===== */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-6); align-items: start; }
@media (max-width: 800px) { .checkout { grid-template-columns: 1fr; } }
.checkout__summary { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-4); }
.checkout__summary h2 { font-size: var(--text-lg); margin-top: 0; }
.checkout__items { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.checkout__items li { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.checkout__subtotal { display: flex; justify-content: space-between; font-size: var(--text-lg); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.checkout__free-note { color: var(--color-primary); font-size: var(--text-sm); font-weight: var(--font-weight-medium); margin-top: var(--space-1); }
.checkout__line { display: flex; justify-content: space-between; padding-top: var(--space-2); }
.checkout__total { display: flex; justify-content: space-between; font-size: var(--text-lg); font-weight: var(--font-weight-bold); padding-top: var(--space-2); margin-top: var(--space-2); border-top: 2px solid var(--color-heading); }
.checkout__note { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-3); }

/* ===== Gallery page (lightbox) ===== */
.gallery__item--btn { padding: 0; border: 0; background: none; cursor: pointer; width: 100%; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); display: grid; place-items: center; z-index: 100; padding: var(--space-4); }
.lightbox[hidden] { display: none; }
.lightbox__img { width: auto; height: auto; max-width: 92vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: var(--space-3); right: var(--space-4); background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: 92vw; }
.lightbox__cap { color: #fff; text-align: center; max-width: 60ch; }
.lightbox__title { display: block; font-size: var(--text-lg); }
.lightbox__desc { opacity: 0.85; font-size: var(--text-sm); }
.gallery__item .gallery__caption { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 2px; }
.gallery__item .gallery__caption strong { color: var(--color-heading); }
/* Media-admin caption editor */
.media-tile__cap { margin-top: var(--space-2); text-align: left; font-size: var(--text-sm); }
.media-tile__cap summary { cursor: pointer; color: var(--color-text-muted); }
.media-tile__cap input, .media-tile__cap textarea { width: 100%; margin-top: var(--space-1); padding: 0.4rem 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }

/* ===== Media admin ===== */
.media-crumbs { margin-bottom: var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); }
.media-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-2); }
.media-upload, .media-mkdir { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.media-upload input[type="file"], .media-mkdir input[type="text"] { padding: 0.5rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; background: var(--color-bg); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.media-tile { position: relative; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); padding: var(--space-2); text-align: center; }
.media-tile__link, .media-tile--up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); color: var(--color-heading); text-decoration: none; min-height: 100%; }
.media-tile__link:hover, .media-tile--up:hover { color: var(--color-primary); text-decoration: none; }
.media-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }
.media-tile__icon { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; background: var(--color-bg-alt); border-radius: var(--radius-sm); font-weight: 700; color: var(--color-text-muted); }
.media-tile__name { font-size: var(--text-sm); word-break: break-word; }
.media-tile--folder, .media-tile--up { font-size: 1.4rem; }
.media-tile__del { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--color-border); border-radius: var(--radius-pill); width: 24px; height: 24px; cursor: pointer; color: var(--color-text-muted); line-height: 1; }
.media-tile__del:hover { color: var(--color-error-border); border-color: var(--color-error-border); }

/* ===== Draft ribbon ===== */

/* ==========================================================================
   VALI — front-page design layer (animated hero · colour cards · flow timeline)
   ========================================================================== */

/* ---- Animated vector hero ------------------------------------------------ */
.hero--anim {
    position: relative; isolation: isolate; overflow: hidden;
    text-align: center;
    padding-block: clamp(4.5rem, 11vw, 8rem);
    background:
        radial-gradient(1100px 480px at 50% -22%, rgba(74, 158, 255, 0.12), transparent 70%),
        linear-gradient(180deg, #f4f8ff 0%, #ffffff 72%);
}
.hero--anim .hero__inner { position: relative; z-index: 1; }
.hero--anim .hero__heading { letter-spacing: -0.025em; font-weight: 800; }
.hero--anim .hero__heading::after { content: none; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* drifting ledger grid, faded toward the edges */
.hero__canvas::before {
    content: ""; position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(31, 111, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 111, 235, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 72%);
    animation: hero-grid 26s linear infinite;
}
@keyframes hero-grid { to { background-position: 46px 46px, 46px 46px; } }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5; will-change: transform; }
.hero__blob--a { width: 440px; height: 440px; left: -120px; top: -130px; background: radial-gradient(circle, #4a9eff, transparent 70%); animation: hero-float-a 19s ease-in-out infinite; }
.hero__blob--b { width: 520px; height: 520px; right: -170px; top: -90px; background: radial-gradient(circle, #16b1c9, transparent 70%); animation: hero-float-b 23s ease-in-out infinite; }
.hero__blob--c { width: 360px; height: 360px; left: 42%; bottom: -210px; background: radial-gradient(circle, #7c5cff, transparent 70%); opacity: 0.38; animation: hero-float-a 27s ease-in-out infinite reverse; }
@keyframes hero-float-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(38px, 28px) scale(1.08); } }
@keyframes hero-float-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-48px, 38px) scale(1.1); } }
.hero__flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__line { stroke: rgba(31, 111, 235, 0.22); stroke-width: 2; stroke-dasharray: 9 13; animation: hero-dash 6s linear infinite; }
.hero__line--2 { stroke: rgba(22, 177, 201, 0.22); animation-duration: 8.5s; }
@keyframes hero-dash { to { stroke-dashoffset: -242; } }
.hero__node { fill: #1f6feb; transform-box: fill-box; transform-origin: center; animation: hero-pulse 3.2s ease-in-out infinite; }
.hero__node--2 { fill: #16b1c9; animation-delay: 1.1s; }
.hero__node--3 { fill: #7c5cff; animation-delay: 2s; }
@keyframes hero-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.35); } }

/* ---- Colour-varied feature cards ---------------------------------------- */
.feature-grid .feature { position: relative; overflow: hidden; }
/* shared coloured top bar that wipes in on hover */
.feature-grid .feature::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--card-accent, var(--color-primary));
    transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.feature-grid .feature:hover::after { transform: scaleX(1); }
.feature-grid .feature:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-accent, var(--color-primary)) 50%, transparent);
    box-shadow: 0 20px 42px -16px color-mix(in srgb, var(--card-accent, var(--color-primary)) 55%, transparent);
}
/* per-card accents (cycle of six) */
.feature-grid .feature:nth-child(6n+1) { --card-accent: #1f6feb; }
.feature-grid .feature:nth-child(6n+2) { --card-accent: #16b1c9; }
.feature-grid .feature:nth-child(6n+3) { --card-accent: #1659c4; }
.feature-grid .feature:nth-child(6n+4) { --card-accent: #475467; }
.feature-grid .feature:nth-child(6n+5) { --card-accent: #12b76a; }
.feature-grid .feature:nth-child(6n+6) { --card-accent: #0e7490; }
/* light grid: tinted badge + accent icon */
.feature-grid:not(.feature-grid--dark) .feature__icon { background: color-mix(in srgb, var(--card-accent, var(--color-primary)) 12%, white); }
.feature-grid:not(.feature-grid--dark) .feature__icon .icon { color: var(--card-accent, var(--color-primary)); }
.feature-grid:not(.feature-grid--dark) .feature:hover .feature__icon { background: var(--card-accent, var(--color-primary)); }
.feature-grid:not(.feature-grid--dark) .feature:hover .feature__icon .icon { color: #fff; }
/* dark grid: accent badge + glow */
.feature-grid--dark .feature__icon { background: color-mix(in srgb, var(--card-accent, var(--color-accent)) 22%, transparent); }
.feature-grid--dark .feature__icon .icon { color: var(--card-accent, var(--color-accent)); }
.feature-grid--dark .feature:hover .feature__icon { background: var(--card-accent, var(--color-accent)); }
.feature-grid--dark .feature:hover .feature__icon .icon { color: #fff; }

/* ---- Flow timeline (order-to-cash) -------------------------------------- */
.flow__intro { max-width: 60ch; color: var(--color-text-muted); margin: var(--space-2) 0 0; }
.flow__track { list-style: none; margin: var(--space-5) 0 0; padding: 0; position: relative; }
.flow__track::before { content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px; background: var(--color-border); }
.flow__track::after { content: ""; position: absolute; left: 27px; top: 14px; width: 2px; height: var(--progress, 0%); max-height: calc(100% - 28px); background: linear-gradient(180deg, #1f6feb, #16b1c9); transition: height 0.15s linear; }
.flow__stage { position: relative; padding: 0 0 var(--space-5) 78px; }
.flow__stage:last-child { padding-bottom: 0; }
.flow__marker {
    position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; border: 2px solid var(--color-border);
    color: var(--color-text-muted); z-index: 1;
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition), background var(--transition);
}
.flow__marker .icon { width: 26px; height: 26px; }
.flow__stage.is-in .flow__marker { border-color: var(--stage-accent, #1f6feb); color: var(--stage-accent, #1f6feb); box-shadow: 0 0 0 6px color-mix(in srgb, var(--stage-accent, #1f6feb) 14%, transparent); }
.flow__stage:nth-child(7n+1) { --stage-accent: #1f6feb; }
.flow__stage:nth-child(7n+2) { --stage-accent: #16b1c9; }
.flow__stage:nth-child(7n+3) { --stage-accent: #1659c4; }
.flow__stage:nth-child(7n+4) { --stage-accent: #475467; }
.flow__stage:nth-child(7n+5) { --stage-accent: #12b76a; }
.flow__stage:nth-child(7n+6) { --stage-accent: #0e7490; }
.flow__stage:nth-child(7n+7) { --stage-accent: #1f6feb; }
.flow__card {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: var(--space-4); box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow var(--transition);
}
.flow__stage.is-in .flow__card { opacity: 1; transform: none; }
.flow__card:hover { box-shadow: var(--shadow-lg); }
.flow__step { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stage-accent, #1f6feb); }
.flow__title { margin: 0.15rem 0 0.4rem; font-size: var(--text-lg); color: var(--color-heading); }
.flow__summary { margin: 0; color: var(--color-text); }
.flow__help { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--color-border); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.55s ease, opacity 0.45s ease; }
.flow__stage.is-in .flow__help { max-height: 420px; opacity: 1; }
.flow__help-label { margin: 0 0 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.flow__points { margin: 0; padding-left: 1.15rem; color: var(--color-text); }
.flow__points li { margin: 0.25rem 0; }
.flow__points li::marker { color: var(--stage-accent, #1f6feb); }
@media (min-width: 720px) { .flow__card { max-width: 640px; } }

/* ---- Respect reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero__canvas::before, .hero__blob, .hero__line, .hero__node { animation: none !important; }
    .flow__card, .flow__help { transition: none !important; }
}

/* ---- Flow timeline: clickable fold-out sub-timeline ---------------------- */
.flow__more { margin-top: var(--space-3); border-top: 1px dashed var(--color-border); padding-top: var(--space-3); }
.flow__more-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
    list-style: none; user-select: none;
    font-weight: 700; font-size: 0.9rem; color: var(--stage-accent, #1f6feb);
}
.flow__more-toggle::-webkit-details-marker { display: none; }
.flow__more-toggle::marker { content: ""; }
.flow__chev { transition: transform var(--transition); }
.flow__more[open] .flow__chev { transform: rotate(180deg); }
.flow__more-close { display: none; }
.flow__more[open] .flow__more-open { display: none; }
.flow__more[open] .flow__more-close { display: inline; }
.flow__more-body { animation: flow-unfold 0.42s ease; }
@keyframes flow-unfold { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.flow__detail { margin: var(--space-3) 0 0; color: var(--color-text); }
/* nested sub-timeline */
.flow__sub { list-style: none; margin: var(--space-3) 0 0; padding: 0; position: relative; }
.flow__sub::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--stage-accent, #1f6feb) 35%, var(--color-border)); }
.flow__substage { position: relative; padding: 0 0 var(--space-3) 28px; }
.flow__substage:last-child { padding-bottom: 0; }
.flow__sub-dot { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--stage-accent, #1f6feb); }
.flow__sub-title { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--color-heading); }
.flow__sub-text { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--color-text-muted); }

/* ---- Hero brandmark (home): logo AS the H1, slow X-axis flip every 30s ---- */
.hero__brandmark { margin: 0 auto var(--space-4); perspective: 900px; display: flex; justify-content: center; }
.hero__logo { width: clamp(116px, 20vw, 188px); height: auto; transform-style: preserve-3d; will-change: transform; animation: hero-logo-spin 30s ease-in-out infinite; }
@keyframes hero-logo-spin { 0%, 86% { transform: rotateX(0deg); } 100% { transform: rotateX(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } }

/* ---- Dark top menu bar --------------------------------------------------- */
.site-header { background: #101828; border-bottom-color: rgba(255, 255, 255, 0.08); }
.site-header__brand, .site-header__brand:hover { color: #fff; }
.site-nav__list a { color: rgba(255, 255, 255, 0.82); }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: #fff; }
.site-nav__list a[aria-current="page"]::after { background: var(--color-accent); }
.site-nav__sub-toggle { color: rgba(255, 255, 255, 0.82); }
.site-nav__bars, .site-nav__bars::before, .site-nav__bars::after { background: #fff; }
.site-header.is-scrolled {
    background: rgba(16, 24, 40, 0.72);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
@media (max-width: 760px) {
    .site-nav__list { background: #101828; border-bottom-color: rgba(255, 255, 255, 0.08); }
    .site-nav__list li { border-top-color: rgba(255, 255, 255, 0.08); }
}

/* ---- Hero logo: entrance flip on load, then the idle 30s flip ------------- */
.hero__logo { animation: hero-logo-in 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both, hero-logo-spin 30s ease-in-out infinite 1.1s; }
@keyframes hero-logo-in { from { opacity: 0; transform: rotateX(-90deg) translateY(18px) scale(0.85); } to { opacity: 1; transform: none; } }

/* ---- Richer animated background on the HOME hero (hero--brand) ------------ */
.hero--brand { padding-block: clamp(5rem, 12vw, 9rem); }
.hero__aurora {
    position: absolute; inset: -25%; z-index: -1;
    background: conic-gradient(from 0deg at 50% 50%, rgba(74,158,255,0.14), rgba(22,177,201,0.10), rgba(124,92,255,0.14), rgba(31,111,235,0.10), rgba(74,158,255,0.14));
    filter: blur(46px); opacity: 0.8; transform-origin: 50% 50%;
    animation: hero-aurora 42s linear infinite;
}
@keyframes hero-aurora { to { transform: rotate(360deg); } }
.hero__line--3 { stroke: rgba(124, 92, 255, 0.20); stroke-dasharray: 7 12; animation: hero-dash 10s linear infinite; }
.hero__packet { filter: drop-shadow(0 0 6px currentColor); }
.hero__packet--1 { fill: #1f6feb; color: #1f6feb; }
.hero__packet--2 { fill: #16b1c9; color: #16b1c9; }
.hero__packet--3 { fill: #7c5cff; color: #7c5cff; }

@media (prefers-reduced-motion: reduce) {
    .hero__logo, .hero__aurora { animation: none !important; }
}

/* ---- Buttons: flatter & solid to match the Vali app (Metronic) ----------- */
.btn { background-image: none; box-shadow: none; border-radius: 0.5rem; font-weight: 600; padding: 0.72rem 1.3rem; }
.btn--primary { background-color: var(--color-primary); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.10); }
.btn--primary:hover { background-color: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 111, 235, 0.32); }
.btn--ghost { background-color: #fff; border-color: var(--color-border); color: var(--color-heading); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.btn--ghost:hover { background-color: #fff; border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 24, 40, 0.10); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }

/* Rounder corners; primary keeps the AA-safe --color-primary (#1f6feb) fill set above.
   (#4a9eff is reserved for hover/focus/icons — it fails AA as a fill with white text.) */
.btn { border-radius: 0.7rem; }

/* ---- Signup page --------------------------------------------------------- */
.signup__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 880px) { .signup__wrap { grid-template-columns: 1fr; gap: var(--space-5); } }
.signup__lead { color: var(--color-text); font-size: var(--text-lg); }
.signup__perks { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: 0.5rem; }
.signup__perks li { position: relative; padding-left: 1.7rem; color: var(--color-text); }
.signup__perks li::before { content: "✓"; position: absolute; left: 0; color: #21c17a; font-weight: 800; }
.signup__altcta { color: var(--color-text-muted); font-size: 0.95rem; }
.signup__card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-lg); }
.signup__kind { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.signup__kind legend { font-weight: 600; margin-bottom: 0.5rem; color: var(--color-heading); }
.seg { display: block; cursor: pointer; }
.seg + .seg { margin-top: 0.5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg__box { display: block; border: 1.5px solid var(--color-border); border-radius: var(--radius); padding: 0.7rem 0.9rem; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition); }
.seg__box strong { display: block; color: var(--color-heading); }
.seg__box small { color: var(--color-text-muted); }
.seg input:checked + .seg__box { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.seg input:focus-visible + .seg__box { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.form__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 520px) { .form__grid2 { grid-template-columns: 1fr; } }
.subdomain { display: flex; align-items: stretch; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.subdomain:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.subdomain input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; }
.subdomain__suffix { display: flex; align-items: center; padding: 0 0.8rem; background: var(--color-bg-alt); color: var(--color-text-muted); border-left: 1px solid var(--color-border); white-space: nowrap; font-weight: 600; }
.subdomain__status { margin: 0.4rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.subdomain__status.is-checking { color: var(--color-text-muted); }
.subdomain__status.is-ok { color: #15935f; }
.subdomain__status.is-bad { color: #d6453a; }
.signup__more { margin: var(--space-3) 0; border: 1px dashed var(--color-border); border-radius: var(--radius-sm); padding: 0.5rem 0.9rem; }
.signup__more > summary { cursor: pointer; font-weight: 600; color: var(--color-heading); }
.signup__more > summary span { font-weight: 400; color: var(--color-text-muted); }
.signup__more[open] { padding-bottom: var(--space-3); }
.signup__submit { width: 100%; margin-top: var(--space-2); }
.signup__fine { color: var(--color-text-muted); font-size: 0.85rem; margin-top: var(--space-3); }
.signup__fine a, .signup__altcta a { color: var(--color-primary); }
.form__errors { background: var(--color-error-bg); border: 1px solid var(--color-error-border); border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin-bottom: var(--space-3); color: #b42318; }
.form__errors ul { margin: 0; padding-left: 1.1rem; }
.signup__sent { max-width: 640px; margin-inline: auto; text-align: center; padding-block: var(--space-5); }
.signup__sent-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--space-4); background: color-mix(in srgb, var(--color-accent) 12%, white); color: var(--color-primary); }

/* The signup/login card is white, but the site tokens are dark-themed (near-white text).
   Flip the text tokens to dark INSIDE the card so every element on it reads. */
.signup__card { --color-heading: #0e1530; --color-text: #3a4254; --color-text-muted: #5b6478; }

/* ---- Login launcher ------------------------------------------------------ */
.login { max-width: 540px; margin-inline: auto; }
.login .signup__card { text-align: left; padding: var(--space-6); }
.login .section__heading { font-size: 1.7rem; line-height: 1.15; }

.signup__sent-icon--warn { background: color-mix(in srgb, #f6a609 16%, white); color: #b54708; }

/* Centre the heading on the confirmation pages (signup-sent / verify) */
.signup__sent .section__heading { text-align: center; }
.signup__sent .section__heading::after { margin-inline: auto; }

/* ==== Phase 1: stats trust-strip, clickable feature cards, hero headline ==== */
/* Stats -> trust strip (icon + claim + sub on a card surface; fixes 4-col bug) */
.stats__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stats__grid { grid-template-columns: 1fr; } }
.stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); text-align: center; }
.stat__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 12%, white); color: var(--color-primary); margin: 0 auto var(--space-3); }
.stat__icon .icon { width: 24px; height: 24px; }
.stat__value { font-weight: 700; font-size: var(--text-lg); color: var(--color-heading); line-height: 1.25; }
.stat__label { color: var(--color-text-muted); font-size: 0.95rem; margin-top: 0.2rem; }
/* Clickable feature cards (two-doors) */
.feature--link { text-decoration: none; color: inherit; cursor: pointer; }
.feature__more { display: inline-block; margin-top: var(--space-3); font-weight: 600; color: var(--color-primary); }
.feature--link:hover .feature__more { text-decoration: underline; }
/* Hero: logo becomes a mark above the text headline */
.hero--brand .hero__logo { width: clamp(78px, 12vw, 120px); }
.hero--brand .hero__heading { max-width: 20ch; margin-inline: auto; }

/* flow_timeline: per-stage screenshot (dark matte frame) */
.flow__shot { margin-top: var(--space-3); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); background: #0f1115; line-height: 0; }
.flow__shot img { display: block; width: 100%; height: auto; }

/* Pricing: plan description line + graceful empty state (live plans from Vali API) */
.plan__desc { margin: 0.15rem 0 0.2rem; color: var(--color-text-muted); font-size: 0.92rem; }
.pricing__empty { text-align: center; color: var(--color-text-muted); max-width: 52ch; margin-inline: auto; }

/* Pricing: ex/incl tax context line (values come from the Vali API, never hard-coded) */
.plan__tax { margin: -0.35rem 0 var(--space-3); color: var(--color-text-muted); font-size: 0.82rem; }

/* ===== Section dark band (config: theme => 'dark') =====
   Wraps a section and flips the design tokens so token-based components (headings,
   text, cards, icons) adapt to a dark surface automatically. */
.section-dark-band {
    --color-bg: #0d1017;
    --color-bg-alt: #0d1017;
    --color-surface: #161b24;
    --color-heading: #f3f6fc;
    --color-text: #c9d0dc;
    --color-text-muted: #98a2b3;
    --color-border: #2a313d;
    --color-dark: #1c222e;
    background: #0d1017;
    color: var(--color-text);
}
.section-dark-band .section__eyebrow { color: var(--color-accent); }
.section-dark-band .stat__icon { background: color-mix(in srgb, var(--color-accent) 22%, transparent); color: var(--color-accent); }
.section-dark-band .btn--ghost { background-color: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); color: #fff; box-shadow: none; }
.section-dark-band .btn--ghost:hover { background-color: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* Colour cards (config: colour_cards => true) — each card tinted toward its own
   --card-accent. Used in the dark "Two ways to use Vali" band so the doors read as
   two distinct coloured cards (card 1 blue, card 2 teal from the accent cycle). */
.feature-grid--colour .feature {
    background: linear-gradient(160deg, color-mix(in srgb, var(--card-accent, var(--color-accent)) 30%, #141a25), color-mix(in srgb, var(--card-accent, var(--color-accent)) 9%, #0f131c));
    border: 1px solid color-mix(in srgb, var(--card-accent, var(--color-accent)) 50%, transparent);
}
.feature-grid--colour .feature__more { color: var(--card-accent, var(--color-accent)); }

/* ===== Decorative vector backgrounds (config: decor => blobs|rings|grid|wave|arcs|scatter) =====
   The decor layer sits behind the section content (above the band background). */
.band { position: relative; isolation: isolate; }
.band > .section { position: relative; z-index: 1; }
.decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.decor__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.decor--blobs .decor__svg { filter: blur(40px); }

/* ===== Glass section (config: glass => true) — frosted cards over a colour wash + blobs ===== */
.band--glass { background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 16%, #fff) 0%, color-mix(in srgb, #16b1c9 14%, #fff) 55%, color-mix(in srgb, #7c5cff 12%, #fff) 100%); }
.band--glass .stat {
    background: rgba(255, 255, 255, 0.40);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    backdrop-filter: blur(16px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 44px -20px rgba(16, 24, 40, 0.40);
}
.band--glass .stat__icon { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.7); color: var(--color-primary); }

/* Surface washes (config: surface => 'wash' | 'tint') */
.band--wash { background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 9%, #fff), color-mix(in srgb, #16b1c9 8%, #fff) 60%, color-mix(in srgb, #7c5cff 7%, #fff)); }
.band--tint { background: var(--color-bg-alt); }
/* Bolder glass: light base + more transparent cards so the orbs read through (config: glass => true) */
.band--glass { background: radial-gradient(120% 130% at 12% 8%, #eef5ff, #f4f0ff 70%); }
.band--glass .stat, .band--glass .plan, .band--glass .feature {
    background: rgba(255, 255, 255, 0.34);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 50px -22px rgba(16, 24, 40, 0.45);
}
.decor--orbs .decor__svg { filter: blur(18px); }

/* ===== Persistent header CTA ===== */
.site-header__brand { margin-right: auto; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.site-header__actions .btn--ghost { background-color: transparent; border-color: rgba(255, 255, 255, 0.28); color: #fff; box-shadow: none; }
.site-header__actions .btn--ghost:hover { background-color: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
@media (max-width: 860px) { .site-header__actions .site-header__login { display: none; } .site-header__actions { margin-right: var(--space-3); } }

/* Trust strip flows to the number of items (3 or 4) instead of a fixed 3-col grid */
.stats__grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ====================================================================
   VALI — DARK / CREATIVE THEME (Sora). Global re-skin appended last so
   it overrides the earlier light-theme rules. Mirrors the approved POC.
   ==================================================================== */
.bg-fx{position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(52vw 52vw at 8% -8%, rgba(74,158,255,.18), transparent 58%),
    radial-gradient(48vw 48vw at 96% 2%, rgba(139,92,255,.20), transparent 55%),
    radial-gradient(46vw 42vw at 82% 52%, rgba(255,94,156,.12), transparent 60%),
    radial-gradient(44vw 40vw at 4% 80%, rgba(47,230,166,.12), transparent 60%);}
.bg-fx::after{content:"";position:absolute;inset:0;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:64px 64px;-webkit-mask-image:radial-gradient(95% 80% at 50% 0%,#000,transparent 85%);mask-image:radial-gradient(95% 80% at 50% 0%,#000,transparent 85%);}
body{background:var(--color-bg);color:var(--color-text)}
main{position:relative;z-index:1}
.section{background:transparent}
.section:nth-of-type(even){background:transparent;background-image:none}
.band--wash,.band--tint,.band--glass{background:transparent}
h1,h2,h3,h4,.section__heading,.hero__heading,.cta-band__heading,.flow__title,.plan__name,.feature__title,.stat__value{color:var(--color-heading)}
.section__eyebrow,.lbl{color:var(--c-cyan)}
.btn{border-radius:12px}
.btn--primary{background:var(--grad);color:#07080d;border-color:transparent;box-shadow:0 10px 30px -12px rgba(74,158,255,.5)}
.btn--primary:hover{filter:brightness(1.06);transform:translateY(-2px);color:#07080d;box-shadow:0 16px 40px -14px rgba(139,92,255,.55)}
.btn--ghost{background:rgba(255,255,255,.05);border-color:var(--glass-bd);color:var(--color-heading);box-shadow:none}
.btn--ghost:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff}
.feature,.stat,.plan,.flow__card,.card{background:var(--glass);border:1px solid var(--glass-bd);backdrop-filter:blur(12px);border-radius:18px;box-shadow:none}
.feature:hover,.stat:hover,.plan:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.07)}
.feature__text,.plan__desc,.stat__label,.flow__summary{color:var(--color-text-muted)}
.feature__icon,.stat__icon{background:linear-gradient(135deg,rgba(74,158,255,.22),rgba(139,92,255,.22));border:1px solid var(--glass-bd)}
.feature__icon .icon,.stat__icon .icon{color:#dbe4f7}
.plan--featured{border-color:rgba(139,92,255,.5)!important;box-shadow:0 24px 60px -30px rgba(139,92,255,.55)}
.hero,.hero--anim,.hero--brand{background:transparent}
.hero__heading{font-weight:800}
.cta-band,.section.banner{background:linear-gradient(120deg,#6d28d9,#a21caf 52%,#db2777);border:1px solid rgba(255,255,255,.15);border-radius:24px}
.banner__text{color:#fff}
.cta-band__text{color:rgba(255,255,255,.88)}
.cta-band .btn--primary{background:#fff;color:#0b0d15}
.cta-band .btn--ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.5);color:#fff}
input[type=text],input[type=email],input[type=tel],input[type=search],textarea,select{background:rgba(255,255,255,.04);border:1px solid var(--glass-bd);color:var(--color-heading)}
input::placeholder,textarea::placeholder{color:#6b7488}
footer{background:var(--color-footer-bg);color:var(--color-text)}
[data-full]{cursor:zoom-in}

/* ===== Design tuning: less purple, more colour, coloured icons, light bands ===== */
/* Calmer, more varied ambient glows (less violet) */
.bg-fx{background:
  radial-gradient(50vw 50vw at 6% -8%, rgba(74,158,255,.16), transparent 58%),
  radial-gradient(46vw 46vw at 98% 0%, rgba(25,211,197,.16), transparent 55%),
  radial-gradient(42vw 42vw at 88% 48%, rgba(47,230,166,.13), transparent 60%),
  radial-gradient(44vw 44vw at 2% 72%, rgba(255,94,156,.12), transparent 60%),
  radial-gradient(40vw 40vw at 60% 102%, rgba(255,178,77,.10), transparent 60%);}

/* Coloured icons — tinted per card via --card-accent (blue/cyan/green/amber/magenta) */
.feature-grid .feature:nth-child(6n+1){--card-accent:#4a9eff}
.feature-grid .feature:nth-child(6n+2){--card-accent:#19d3c5}
.feature-grid .feature:nth-child(6n+3){--card-accent:#2fe6a6}
.feature-grid .feature:nth-child(6n+4){--card-accent:#ffb24d}
.feature-grid .feature:nth-child(6n+5){--card-accent:#ff5e9c}
.feature-grid .feature:nth-child(6n+6){--card-accent:#4a9eff}
.feature__icon{background:color-mix(in srgb, var(--card-accent,#4a9eff) 16%, transparent)!important;border:1px solid color-mix(in srgb, var(--card-accent,#4a9eff) 38%, transparent)!important}
.feature__icon .icon{color:var(--card-accent,#4a9eff)!important}
.stats__grid .stat:nth-child(4n+1){--card-accent:#4a9eff}
.stats__grid .stat:nth-child(4n+2){--card-accent:#19d3c5}
.stats__grid .stat:nth-child(4n+3){--card-accent:#2fe6a6}
.stats__grid .stat:nth-child(4n+4){--card-accent:#ff5e9c}
.stat__icon{background:color-mix(in srgb, var(--card-accent,#4a9eff) 16%, transparent)!important;border:1px solid color-mix(in srgb, var(--card-accent,#4a9eff) 38%, transparent)!important}
.stat__icon .icon{color:var(--card-accent,#4a9eff)!important}

/* Vivid bands — distinct + less purple */
.section.banner{background:linear-gradient(120deg,#0891b2,#0d9488 50%,#16a34a)!important}
.cta-band{background:linear-gradient(120deg,#2563eb,#db2777 58%,#f59e0b)!important}

/* Light section band (theme: 'light') — flips tokens back to light for rhythm */
.section-light-band{
  --color-bg:#f4f6fb; --color-bg-alt:#eaeef6; --color-surface:#ffffff;
  --color-heading:#0e1530; --color-text:#3a4356; --color-text-muted:#5b6478;
  --color-border:#e2e7f0; --glass:#ffffff; --glass-bd:#e6eaf2;
  background:#f4f6fb; color:#3a4356;
}
.section-light-band .section__heading,.section-light-band .feature__title,.section-light-band .stat__value,.section-light-band h2,.section-light-band h3{color:#0e1530}
.section-light-band .feature__text,.section-light-band .stat__label,.section-light-band p{color:#5b6478}
.section-light-band .feature,.section-light-band .stat,.section-light-band .plan,.section-light-band .card,.section-light-band .faq__item{background:#fff!important;border:1px solid #e6eaf2!important;backdrop-filter:none;box-shadow:0 12px 34px -20px rgba(16,24,40,.28)!important}
.section-light-band .feature:hover,.section-light-band .stat:hover,.section-light-band .plan:hover{background:#fff!important;border-color:#cfd8e8!important;transform:translateY(-4px)}
.section-light-band .btn--ghost{background:#fff;border-color:#d8deea;color:#0e1530}

/* ===== Feature cards -> POC "card" treatment (corner glow + gradient icon + lift) ===== */
.feature-grid .feature{padding:32px 28px}
.feature-grid .feature::after{display:none}
.feature-grid .feature::before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;top:-92px;right:-72px;background:var(--card-accent,#4a9eff);filter:blur(52px);opacity:.16;transition:opacity .3s;pointer-events:none;z-index:0}
.feature-grid .feature:hover::before{opacity:.36}
.feature-grid .feature > *{position:relative;z-index:1}
.feature-grid .feature:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--card-accent,#4a9eff) 55%,transparent)!important;box-shadow:0 26px 60px -28px color-mix(in srgb,var(--card-accent,#4a9eff) 55%,transparent)}
.feature__icon{width:56px;height:56px;border-radius:15px;margin-bottom:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--card-accent,#4a9eff) 32%,transparent),color-mix(in srgb,var(--card-accent,#4a9eff) 10%,transparent))!important;border:1px solid color-mix(in srgb,var(--card-accent,#4a9eff) 42%,transparent)!important}
.feature__icon .icon{color:var(--card-accent,#4a9eff)!important;width:27px;height:27px}
.feature__title{font-size:1.2rem;margin-bottom:10px}

/* ===== POC sections: hero screenshot, borderless stat row, image showcase ===== */
.hero__shotwrap{max-width:1040px}
.hero__shot{margin:46px auto 0;border-radius:16px;border:1px solid var(--glass-bd);background:#0c0e16;box-shadow:0 50px 120px -42px rgba(74,158,255,.5);overflow:hidden}
.hero__shot-bar{display:flex;align-items:center;gap:7px;padding:12px 16px;border-bottom:1px solid var(--glass-bd);background:#0a0c13}
.hero__shot-bar span{width:11px;height:11px;border-radius:50%;background:#2a2f3c}
.hero__shot-bar span:nth-child(1){background:#ff5f57}.hero__shot-bar span:nth-child(2){background:#febc2e}.hero__shot-bar span:nth-child(3){background:#28c840}
.hero__shot-bar em{margin-left:12px;font-size:.78rem;color:#5e6679;font-style:normal}
.hero__shot img{display:block;width:100%;height:auto}

.stats--row .stats__grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:28px;grid-template-columns:none;max-width:none;margin:0;border-top:1px solid var(--glass-bd);border-bottom:1px solid var(--glass-bd);padding:26px 4px}
.stats--row .stat{flex:1 1 210px;display:grid;grid-template-columns:auto 1fr;column-gap:13px;align-items:center;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none;padding:0;text-align:left}
.stats--row .stat:hover{transform:none}
.stats--row .stat__icon{grid-row:span 2;width:42px;height:42px;margin:0;align-self:center}
.stats--row .stat__value{grid-column:2;font-size:1rem}
.stats--row .stat__label{grid-column:2;font-size:.82rem;margin-top:2px}

.showcase__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:var(--space-5)}
.showcase__card{position:relative;border:1px solid var(--glass-bd);border-radius:16px;overflow:hidden;background:#0c0e16;transition:.25s;margin:0;cursor:zoom-in}
.showcase__card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.25);box-shadow:0 34px 80px -34px rgba(74,158,255,.5)}
.showcase__card img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.showcase__card--wide{grid-column:1 / -1}
.showcase__card--wide img{max-height:440px}
.showcase__card figcaption{position:absolute;left:0;right:0;bottom:0;padding:14px 16px;font-size:.85rem;color:#dbe2f0;background:linear-gradient(transparent,rgba(6,7,11,.9))}
@media(max-width:760px){.showcase__grid{grid-template-columns:1fr 1fr}.showcase__card--wide{grid-column:1/-1}}

/* Two-doors: glass cards over the hard-edged shards bg (heading = standard section style, like the modules grid) */
.feature-grid--doors .feature__icon{width:60px;height:60px}
.feature-grid--doors .feature{background:rgba(255,255,255,.5)!important;-webkit-backdrop-filter:blur(13px) saturate(1.2);backdrop-filter:blur(13px) saturate(1.2);border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 18px 50px -24px rgba(16,24,40,.32)!important}
.decor--shards .decor__svg{filter:none}

/* Two-doors glass: more transparent so the shards vector reads through */
.feature-grid--doors .feature{background:rgba(255,255,255,.3)!important;-webkit-backdrop-filter:blur(9px) saturate(1.15);backdrop-filter:blur(9px) saturate(1.15)}

/* Logo: keep the entrance, but spin once every 5s (pulse) instead of every 30s */
.hero--brand .hero__logo,.hero__logo{animation:hero-logo-in 0.95s cubic-bezier(0.2,0.7,0.2,1) both, hero-logo-spin 5s ease-in-out infinite 1.1s}

/* ===== AI banner background: pulsing nodes, travelling signals, twinkling sparkles ===== */
.section.banner{position:relative;overflow:hidden}
.banner__ai{position:absolute;inset:0;z-index:0;pointer-events:none}
.banner__ai-svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.banner .container{position:relative;z-index:1}
.ai-nodes circle{animation:ai-pulse 3s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.ai-nodes circle:nth-child(2n){animation-delay:.8s}
.ai-nodes circle:nth-child(3n){animation-delay:1.5s}
@keyframes ai-pulse{0%,100%{opacity:.45}50%{opacity:1}}
.ai-sparks path{animation:ai-twinkle 2.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.ai-sparks path:nth-child(2){animation-delay:.9s}
.ai-sparks path:nth-child(3){animation-delay:1.7s}
@keyframes ai-twinkle{0%,100%{opacity:.2;transform:scale(.75)}50%{opacity:.95;transform:scale(1.15)}}
@media (prefers-reduced-motion: reduce){.ai-nodes circle,.ai-sparks path{animation:none}}

/* AI banner -> calm grey (not "christmas"): grey vector bg, dark text, dark blue-grey graphics */
.section.banner--ai{background:linear-gradient(135deg,#eef1f6,#dfe4ee)!important;border:1px solid #d4dae6}
.banner--ai .banner__text{color:#1f2840!important}
.banner--ai .banner__ai-svg circle{fill:#3b4a66}
.banner--ai .ai-links{stroke:#3b4a66!important;opacity:.42}
.banner--ai .ai-sparks path{fill:#3b4a66}

/* CTA band: square top corners (rounded bottom only) */
.cta-band{border-top-left-radius:0;border-top-right-radius:0}

/* Banner AI text: reddish-orange */
.banner--ai .banner__text{color:#ee5a24!important}
/* Rounded top band (e.g. FAQ) */
.band--round-top{border-top-left-radius:24px;border-top-right-radius:24px;overflow:hidden}
.band--round-all{border-radius:24px;overflow:hidden}
/* Dark-grey CTA with spinning logo on the left */
.cta-band--dark{background:#171b26!important;border:1px solid var(--glass-bd)}
.cta-band--dark .cta-band__inner{display:flex;align-items:center;gap:var(--space-4);text-align:left;flex-wrap:wrap}
.cta-band--dark .cta-band__copy{flex:1 1 320px}
.cta-band__logo{flex-shrink:0}
.cta-band__logo .hero__logo{width:72px;height:auto}

/* Hero: defined bottom edge — rounded bottom corners, soft fade + a vector gradient divider */
.hero--anim{position:relative;overflow:hidden;background:linear-gradient(180deg,transparent 52%,rgba(8,9,14,.55));border-bottom-left-radius:36px;border-bottom-right-radius:36px}
.hero--anim::after{content:"";position:absolute;left:8%;right:8%;bottom:0;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,rgba(74,158,255,.5),rgba(124,92,255,.5),rgba(25,211,197,.5),transparent);pointer-events:none;z-index:3}

/* Gap between nav and the header CTA buttons */
.site-header__actions{margin-left:var(--space-5)}

/* Draft ribbon: media uploader link */

/* AI banner: image left + left-aligned dark-grey-blue text */
.banner--ai .banner__inner{display:flex;align-items:center;gap:var(--space-5);justify-content:flex-start;flex-wrap:wrap}
.banner--ai .banner__text{text-align:left;margin:0;color:#2f3e57!important;flex:1 1 320px}
.banner__img{flex-shrink:0}
.banner__img img{display:block;width:clamp(110px,15vw,168px);height:auto;border-radius:18px;box-shadow:0 10px 28px -12px rgba(16,24,40,.28)}

/* AI banner image: defined white card so the white-bg illustration reads on the grey band */
.banner__img{flex-shrink:0;background:#fff;border:1px solid rgba(16,24,40,.12);border-radius:20px;box-shadow:0 14px 34px -14px rgba(16,24,40,.32);padding:8px}
.banner__img img{display:block;width:clamp(130px,16vw,182px);height:auto;border-radius:12px;box-shadow:none}

/* AI banner expanded: features list + example-question chips, bigger image */
.banner--ai .banner__inner{display:flex;align-items:center;gap:var(--space-6);justify-content:flex-start;flex-wrap:wrap;padding-block:var(--space-4)}
.banner--ai .banner__body{flex:1 1 420px;text-align:left}
.banner--ai .banner__text{text-align:left;margin:0 0 var(--space-3);color:#2f3e57!important;font-size:var(--text-xl);font-weight:700}
.banner__features{list-style:none;margin:0 0 var(--space-4);padding:0;display:grid;gap:10px}
.banner__features li{position:relative;padding-left:28px;color:#33415c;font-size:1rem;line-height:1.45}
.banner__features li::before{content:"\2713";position:absolute;left:0;top:0;color:#23a37e;font-weight:800}
.banner__qs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.banner__qs-label{font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5a6478;margin-right:4px}
.banner__q{background:rgba(255,255,255,.78);border:1px solid rgba(16,24,40,.12);border-radius:999px;padding:6px 13px;font-size:.85rem;color:#2f3e57}
.banner--ai .banner__img img{width:clamp(160px,18vw,230px)}
/* Hero -> next-section divider: a clear drop-shadow (rounded corners don't read against the light band) */
.hero--anim{filter:drop-shadow(0 14px 20px rgba(0,0,0,.45))}

/* See Vali in action: lighter translucent frame so the dark screenshots pop on the dark band */
.showcase__card{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.2)!important;padding:8px}
.showcase__card img{border-radius:11px}
.showcase__card figcaption{left:8px;right:8px;bottom:8px;border-radius:0 0 11px 11px}
/* AI banner vector: lighter + taller band so it stops interfering with the text */
.banner--ai{padding-block:var(--space-6)}
.banner--ai .ai-links{stroke:#8893ad!important;opacity:.3}
.banner--ai .banner__ai-svg circle{fill:#8893ad}
.banner--ai .ai-sparks path{fill:#8893ad}

/* ===== Feature explorer (/features) ===== */
.fx-search{position:relative;display:flex;align-items:center;gap:14px;margin:var(--space-4) 0 var(--space-5);flex-wrap:wrap}
.fx-search__icon{position:absolute;left:16px;color:#6b7488;pointer-events:none}
.fx-search input{flex:1 1 320px;background:rgba(255,255,255,.05);border:1px solid var(--glass-bd);border-radius:12px;padding:14px 18px 14px 46px;color:var(--color-heading);font:inherit;font-size:1.05rem}
.fx-search input::placeholder{color:#6b7488}
.fx-search input:focus{outline:none;border-color:rgba(74,158,255,.6);box-shadow:0 0 0 3px rgba(74,158,255,.18)}
.fx-count{color:var(--color-text-muted);font-size:.9rem;white-space:nowrap}
.fx-layout{display:grid;grid-template-columns:240px 1fr;gap:var(--space-5);align-items:start}
@media(max-width:820px){.fx-layout{grid-template-columns:1fr}}
.fx-cats{display:flex;flex-direction:column;gap:4px;position:sticky;top:92px}
@media(max-width:820px){.fx-cats{position:static;flex-direction:row;flex-wrap:wrap;gap:8px}}
.fx-cat{display:flex;justify-content:space-between;gap:10px;align-items:center;text-align:left;background:transparent;border:1px solid transparent;border-radius:10px;padding:9px 12px;color:var(--color-text);font:inherit;font-size:.95rem;cursor:pointer;transition:.15s;width:100%}
.fx-cat:hover{background:rgba(255,255,255,.05);color:var(--color-heading)}
.fx-cat.is-active{background:rgba(74,158,255,.14);border-color:rgba(74,158,255,.4);color:#fff}
.fx-cat__n{font-size:.74rem;color:var(--color-text-muted);background:rgba(255,255,255,.07);border-radius:999px;padding:1px 8px;flex-shrink:0}
.fx-group{margin-bottom:var(--space-5);scroll-margin-top:90px}
.fx-group__title{font-size:var(--text-lg);color:var(--color-heading);margin:0 0 var(--space-3);padding-bottom:8px;border-bottom:1px solid var(--glass-bd)}
.fx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:14px}
.fx-feature{background:var(--glass);border:1px solid var(--glass-bd);border-radius:14px;padding:18px;transition:.15s}
.fx-feature:hover{border-color:rgba(255,255,255,.22);transform:translateY(-2px)}
.fx-feature__head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px}
.fx-feature__title{font-size:1.02rem;color:var(--color-heading);margin:0}
.fx-feature__desc{font-size:.92rem;color:var(--color-text-muted);margin:0;line-height:1.5}
.fx-badge{font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:3px 8px;border-radius:999px;white-space:nowrap;flex-shrink:0}
.fx-badge--live{background:rgba(35,163,126,.18);color:#37d39e;border:1px solid rgba(35,163,126,.4)}
.fx-badge--beta{background:rgba(74,158,255,.16);color:#6fb4ff;border:1px solid rgba(74,158,255,.4)}
.fx-badge--planned{background:rgba(255,178,77,.14);color:#ffc777;border:1px solid rgba(255,178,77,.36)}
.fx-badge--alpha{background:rgba(139,92,255,.16);color:#b69bff;border:1px solid rgba(139,92,255,.42)}
.fx-badge--rc{background:rgba(25,211,197,.14);color:#4de3d3;border:1px solid rgba(25,211,197,.4)}
.fx-empty{color:var(--color-text-muted);padding:var(--space-6) var(--space-4);text-align:center;font-size:1.05rem}

/* Hero bottom: remove radius/shadow, use a logo-coloured divider line */
.hero--anim{filter:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background:transparent}
.hero--anim::after{display:none}

/* Nav dropdown: open on hover/focus (desktop), with an invisible bridge across the
   gap so the cursor can travel down to the sub-items without the panel closing. */
@media(min-width:861px){
  .site-nav__item.has-sub:hover .site-nav__sub,
  .site-nav__item.has-sub:focus-within .site-nav__sub{display:flex}
  .site-nav__sub::before{content:"";position:absolute;left:0;right:0;top:calc(var(--space-2) * -1);height:calc(var(--space-2) + 2px)}
}
.site-nav__sub a{color:#cdd6ea}
.site-nav__sub a:hover{background:rgba(255,255,255,.06);color:#fff}

/* "Request a feature" CTA under the feature explorer */
.fx-request{margin:var(--space-6) auto 0;text-align:center;font-size:1.05rem;color:#9aa6bf}
.fx-request a{color:#19d3c5;font-weight:600;text-decoration:none}
.fx-request a:hover{text-decoration:underline}
.fx-request--top{margin:var(--space-3) 0 var(--space-5);text-align:left;font-size:.98rem}

/* Image-showcase header used as a CTA: logo left, copy middle, Book a demo right */
.showcase__head--cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-5);text-align:left;margin:0 0 var(--space-6)}
.showcase__head--cta .cta-band__logo{margin:0;flex:0 0 auto}
.showcase__head-copy{flex:1 1 360px;min-width:0}
.showcase__head--cta .section__heading{margin:0 0 var(--space-2)}
.showcase__head--cta .section__heading::after{display:none}
.showcase__head--cta .section__intro{margin:0;max-width:64ch}
.showcase__cta-btn{margin:0;flex:0 0 auto;white-space:nowrap}

/* Two labelled card groups sharing one feature-grid section */
.feature-grid__group + .feature-grid__group{margin-top:var(--space-7, 3.5rem)}

/* Logo-coloured gradient divider on the top + bottom edge of every light section */
.section-light-band::before, .section-light-band::after{content:"";position:absolute;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,#4a9eff,#19d3c5,#2fe6a6,#4a9eff,transparent);opacity:.95;box-shadow:0 0 20px rgba(25,211,197,.45);z-index:3;pointer-events:none}
.section-light-band::before{top:0}
.section-light-band::after{bottom:0}

/* Animated "equation" CTA: Bookkeeper Account [logo] Business Partner — terms fly in, logo pops */
.equation-cta{text-align:center}
.equation{display:flex;align-items:center;justify-content:center;gap:clamp(.8rem,4vw,2.6rem);flex-wrap:wrap;margin:var(--space-5) auto var(--space-4);max-width:920px}
.equation-cta .section__eyebrow,.equation-cta .section__heading{text-align:center}
.equation-cta .section__heading::after{margin-left:auto;margin-right:auto}
.equation__term{flex:0 1 300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;text-align:center;min-height:120px;padding:var(--space-4) var(--space-5);border-radius:20px;background:var(--glass,rgba(255,255,255,.05));border:1px solid var(--glass-bd,rgba(255,255,255,.12));backdrop-filter:blur(8px);opacity:0;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.equation__term--a{transform:translateX(-70px)}
.equation__term--b{transform:translateX(70px)}
.equation__tick{width:30px;height:30px;filter:drop-shadow(0 4px 12px rgba(25,211,197,.45))}
.equation__name{font-size:clamp(1.1rem,2.4vw,1.5rem);font-weight:800;color:var(--color-heading,#f6f8fe);line-height:1.2}
.equation__op{flex:0 0 auto;opacity:0;transform:scale(.2) rotate(-20deg);transition:opacity .6s ease .28s,transform .8s cubic-bezier(.2,1.5,.3,1) .28s}
.equation__eq{display:block;font-size:clamp(2.6rem,6vw,4rem);font-weight:800;line-height:1;background:var(--grad,linear-gradient(110deg,#4a9eff,#19d3c5 46%,#ff5e9c));-webkit-background-clip:text;background-clip:text;color:transparent}
.equation.is-in .equation__term{opacity:1;transform:translateX(0)}
.equation.is-in .equation__op{opacity:1;transform:scale(1) rotate(0)}
.equation.is-in .equation__eq{animation:eqpulse 3.2s ease-in-out 1s infinite}
@keyframes eqpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.equation__text{max-width:54ch;margin:0 auto var(--space-4);color:var(--color-text-muted)}
.equation__discount{display:inline-block;margin:0 auto var(--space-4);padding:.55rem 1.1rem;border:1px solid var(--glass-bd);border-radius:999px;background:var(--glass);color:var(--color-text)}
.equation__discount strong{color:var(--color-accent)}
@media (prefers-reduced-motion: reduce){.equation__term,.equation__op{transition:none;opacity:1;transform:none}.equation.is-in .equation__eq{animation:none}}

/* Pricing split (landscape): heading/intro/note beside the plan(s) */
.pricing__note{margin-top:var(--space-4);font-size:.95rem;color:var(--color-text-muted)}
.pricing__note p{margin:0}
.pricing__note strong{color:var(--color-heading)}
@media (min-width:880px){
  .pricing__split{display:grid;grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
  .pricing--split .pricing__head{text-align:left;margin:0}
  .pricing--split .pricing__plans{margin:0;max-width:460px}
}

/* Compact white CTA strip */
.cta-band--light{background:#fff !important;border-block:1px solid #e6eaf2}
.cta-band--light .cta-band__heading{color:#0e1530}
.cta-band--light .cta-band__text{color:#5b6478}
.cta-band--light .btn--primary{background:var(--grad,linear-gradient(110deg,#4a9eff,#19d3c5 46%,#ff5e9c));color:#fff}
.cta-band--compact{border-radius:0}
.section.cta-band--compact{padding-top:var(--space-4);padding-bottom:var(--space-4)}
.cta-band--compact .cta-band__heading{margin:0;font-size:1.15rem}

/* Hero dashboard shot — clip to roughly the top half of the image */
.hero__shot .hero__shot-img{aspect-ratio:1986 / 856;height:auto;object-fit:cover;object-position:top}

/* AI-style statement strip (centered, no image) — same look as the AI section */
.banner--center{padding-block:var(--space-5)}
.banner--center .banner__inner{justify-content:center}
.banner--center .banner__body{flex:0 1 auto;text-align:center}
.banner--center .banner__text{text-align:center !important;margin:0 !important}

/* Gallery on a dark band — light frame around each screenshot so it lifts off the dark bg */
.section-dark-band .gallery__item--btn{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:6px;box-shadow:0 16px 38px -22px rgba(0,0,0,.7);transition:border-color var(--transition),transform var(--transition)}
.section-dark-band .gallery__item--btn:hover{border-color:rgba(255,255,255,.32);transform:translateY(-3px)}
.section-dark-band .gallery__item--btn img{border-radius:9px;box-shadow:none;background:#0c0e16}

/* Pricing plan cards — solid & readable on dark (incl. inside the hero); light bands stay white via !important */
.pricing__plans .plan{background:#141824;border:1px solid var(--glass-bd);backdrop-filter:none;box-shadow:0 24px 60px -34px rgba(0,0,0,.7)}
.pricing__plans .plan:hover{background:#181c2a;border-color:rgba(255,255,255,.22)}
.pricing__plans .plan--featured{border-color:var(--c-violet,#8b5cff) !important;box-shadow:0 28px 64px -30px rgba(139,92,255,.5)}
.pricing__plans .plan__name{font-size:1.2rem;font-weight:800}
.pricing__plans .plan__amount{font-size:clamp(2rem,5vw,2.7rem);font-weight:800}
.pricing__plans .plan__desc{font-size:.95rem}
/* Pricing rendered inside the hero (the /pricing top) — shares the hero wallpaper */
.hero__pricing{margin-top:clamp(2.5rem,5vw,4rem)}
.hero__pricing .section__eyebrow,.hero__pricing .section__heading,.hero__pricing .section__intro{text-align:center}
.hero__pricing .section__intro{max-width:60ch;margin:0 auto var(--space-5)}

/* Plan card lead/rest groups (work in portrait + landscape) */
.plan__lead{display:flex;flex-direction:column}
.plan__rest{display:flex;flex-direction:column;gap:var(--space-3);flex:1}
.plan__req{margin:0;font-size:.9rem;color:var(--color-text-muted);line-height:1.45}
.plan__req-label{display:inline-block;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--color-accent);margin-right:6px}
.plan__pricing-note{margin:var(--space-1) 0 0;padding:var(--space-2) var(--space-3);border-radius:10px;background:rgba(25,211,197,.1);border:1px solid rgba(25,211,197,.32);color:var(--color-heading);font-size:.9rem;font-weight:700;line-height:1.45}

/* Login/signup card is white but the dark theme makes its text/inputs light — make it a proper light surface */
.signup__card .section__heading,.signup__card .form__row label,.signup__card legend{color:#0e1530}
.signup__card .section__eyebrow{color:var(--color-primary)}
.signup__card .signup__lead,.signup__card .signup__fine,.signup__card .signup__more > summary span{color:#5b6478}
.signup__card .form input,.signup__card .form textarea,.signup__card .form select{background:#fff;color:#0e1530;border-color:#cfd8e8}
.signup__card .subdomain{border-color:#cfd8e8}
.signup__card .subdomain__suffix{background:#f1f4f9;color:#5b6478;border-left-color:#cfd8e8}
.plan__cta{margin-top:auto}

/* Landscape pricing (layout: rows) — wide stacked plan blocks: name/price left, details right */
.pricing--rows .pricing__plans{grid-template-columns:1fr;max-width:940px;margin-inline:auto;gap:var(--space-4)}
.pricing--rows .plan{display:grid;grid-template-columns:minmax(0,0.8fr) minmax(0,1.2fr);gap:clamp(1.2rem,3vw,2.6rem);align-items:center;text-align:left;padding:clamp(1.4rem,3vw,2.2rem) clamp(1.5rem,3.5vw,2.6rem)}
.pricing--rows .plan__lead{justify-content:center}
.pricing--rows .plan__rest{flex:none}
.pricing--rows .plan__cta{align-self:flex-start;margin-top:var(--space-2)}
@media(max-width:720px){.pricing--rows .plan{grid-template-columns:1fr;text-align:center;gap:var(--space-3)}.pricing--rows .plan__cta{align-self:stretch}}
