/* ============================================================
   Series hub pages: water-ionisers, emguarde, anespa, kangen-air, ukon
   Light, centred hero; sticky section bar; tabs; story cards; FAQ toggles
   (toggles live in all.css); certificates and expert quotes moved here
   from the retired certificates.css and home.css.
   ============================================================ */

/* ---- Hero ---- */

main > section.sx-hero {
    padding: 96px 0;
    background: var(--paper);
    text-align: center;
}

main .sx-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.02;
    color: var(--navy-ink);
    margin: 0 auto 20px;
    max-width: 16ch;
}

.sx-hero .lede {
    margin: 0 auto;
    max-width: 52ch;
}

.sx-hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.sx-hero-facts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-mute);
}

.sx-hero-facts li::before {
    content: '\2713';
    color: var(--gold-deep);
    margin-right: 6px;
}

/* No box: the product image floats whole on the hero background and the
   hero closes with its own bottom padding, so nothing is sliced off where
   the next section starts. */
.sx-stage {
    margin: 56px auto 0;
    max-width: 1080px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
}

.sx-stage img {
    display: block;
    max-height: 460px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(15, 35, 71, 0.12));
}

/* ---- Three ionisers side by side: K8 in front, SD501DX and Super 501 either side ---- */

.mx-trio {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
}

.mx-trio img {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 40%;
    height: auto;
    object-fit: contain;
}

.mx-trio .mx-trio-main {
    position: relative;
    z-index: 1;
    max-height: 440px;
    margin: 0 -2%;
}

.mx-trio .mx-trio-side {
    max-height: 320px;
}

.sx-panel-media {
    overflow: hidden;
}

/* ---- Sticky section bar ---- */

.sx-subnav {
    position: sticky;
    top: 68px;
    z-index: 20;
    background: rgba(251, 250, 246, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.sx-subnav ul {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    padding: 8px 32px;
    list-style: none;
    max-width: 1280px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sx-subnav ul::-webkit-scrollbar {
    display: none;
}

.sx-subnav a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-mute);
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s,
        color 0.2s;
}

.sx-subnav a:hover,
.sx-subnav a.is-active {
    background: var(--navy-tint);
    color: var(--navy);
}

main > section[id] {
    scroll-margin-top: 123px;
}

/* ---- Section backgrounds ---- */

main > section.sx-cream {
    background: var(--cream);
}

main > section.sx-paper {
    background: var(--paper);
}

main > section.sx-navy {
    background: var(--navy);
}

.sx-navy h2,
.sx-navy h3 {
    color: var(--white);
}

.sx-navy .eyebrow {
    color: var(--gold);
}

.sx-navy p,
.sx-navy .lede {
    color: rgba(255, 255, 255, 0.76);
}

.sx-center {
    text-align: center;
}

.sx-center .lede {
    margin-inline: auto;
}

/* ---- Tabs ---- */

.sx-tablist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 40px;
}

.sx-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: clamp(12px, 1vw, 20px) clamp(18px, 1.8vw, 36px);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    background: var(--white);
    font-family: var(--sans);
    font-size: clamp(1rem, 1.1vw, 1.35rem);
    font-weight: 600;
    color: var(--ink-mute);
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.sx-tab:hover {
    color: var(--navy);
    border-color: var(--navy-soft);
    transform: translateY(-1px);
}

.sx-tab[aria-selected='true'] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.sx-tab-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--r-circle);
}

.sx-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 48px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    animation: sxPanelIn 0.35s ease both;
}

.sx-panel[hidden] {
    display: none;
}

.sx-panel-media {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
    background: var(--cream);
    border-radius: var(--r);
    padding: 32px;
}

.sx-panel-media img {
    max-height: 320px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sx-panel-big {
    display: block;
    font-family: var(--serif);
    font-size: clamp(3.6rem, 7vw, 6rem);
    line-height: 1;
    font-weight: 500;
}

.sx-panel-big-label {
    display: block;
    margin-top: 12px;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.sx-panel-copy h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.sx-panel-copy p + p {
    margin-top: 12px;
}

.sx-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.sx-specs li {
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-mute);
    line-height: 1.4;
}

.sx-specs strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy-ink);
}

.sx-panel-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

@keyframes sxPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Photo media (lifestyle shots fill the panel) + full spec list ---- */

.sx-panel-media--photo {
    padding: 0;
    overflow: hidden;
    align-items: stretch;
}

.sx-panel-media--photo picture,
.sx-panel-media--photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.sx-panel-copy .sx-toggle {
    margin-top: 20px;
}

.sx-spec-full {
    margin: 0;
    padding: 0 0 8px 18px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ink-mute);
}

/* ---- Bento tiles ---- */

.sx-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sx-tile {
    padding: 32px;
    border-radius: var(--r);
    border: 1px solid var(--rule);
    background: var(--white);
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.sx-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
    border-color: var(--navy-soft);
}

.sx-tile--wide {
    grid-column: span 2;
}

.sx-tile--cream {
    background: var(--cream);
}

.sx-tile--tint {
    background: var(--navy-tint);
}

.sx-tile--gold {
    background: var(--gold-soft);
}

.sx-navy .sx-tile {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.sx-navy .sx-tile:hover {
    border-color: var(--gold);
}

.sx-tile-num {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    line-height: 1;
    color: var(--gold-deep);
    margin-bottom: 16px;
}

.sx-navy .sx-tile-num {
    color: var(--gold);
}

.sx-tile h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.sx-tile p {
    font-size: 0.95rem;
}

/* ---- Steps ---- */

.sx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sx-step;
}

.sx-steps li {
    position: relative;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    counter-increment: sx-step;
}

.sx-steps li::before {
    content: '0' counter(sx-step);
    display: block;
    font-family: var(--serif);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 16px;
}

/* ---- Product cards (links to detail pages) ---- */

.sx-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.sx-product {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    overflow: hidden;
    text-decoration: none;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.sx-product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
    border-color: var(--navy-soft);
    text-decoration: none;
}

.sx-product-media {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4 / 3;
    background: var(--cream);
    padding: 24px;
}

.sx-product-media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.sx-product-body {
    padding: 24px;
}

.sx-product-body h3 {
    margin-bottom: 6px;
}

.sx-product-link {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-deep);
}

/* ---- Stories ---- */

.sx-disclaimer {
    max-width: 72ch;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 0.85rem;
}

.sx-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.sx-story {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
}

.sx-story-tag {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 16px;
    background: var(--navy-tint);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
}

.sx-story h3 {
    font-size: 1.5rem;
}

.sx-story details {
    margin-top: 12px;
}

.sx-story summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-deep);
}

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

.sx-story summary::after {
    content: ' \203A';
}

.sx-story details[open] summary {
    margin-bottom: 12px;
}

.sx-story details[open] summary::after {
    content: '';
}

.sx-story details p + p {
    margin-top: 10px;
}

.sx-story-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.sx-story-images figure {
    margin: 0;
}

.sx-story-images img {
    width: 100%;
    border-radius: var(--r);
    border: 1px solid var(--rule);
}

.sx-story-images figcaption {
    margin-top: 4px;
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--ink-faint);
}

/* ---- Sensitive images: blurred until the reader taps to reveal ---- */

.sx-sensitive {
    position: relative;
    margin-top: 16px;
}

.sx-sensitive .sx-story-images {
    margin-top: 0;
}

.sx-sensitive:not(.is-revealed) .sx-story-images img {
    filter: blur(18px);
}

.sx-sensitive-toggle {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sx-sensitive-toggle span {
    padding: 10px 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    box-shadow: var(--shadow-soft);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
}

.sx-sensitive-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.sx-sensitive.is-revealed .sx-sensitive-toggle {
    display: none;
}

/* ---- FAQ wrapper ---- */

.sx-faq {
    max-width: 820px;
    margin: 0 auto;
}

/* ---- Expert quotes (moved from home.css) ---- */

.book-quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.bq-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.2s,
        transform 0.15s;
}

.bq-card:hover {
    box-shadow: var(--shadow-deep);
    transform: translateY(-3px);
}

.bq-cover {
    aspect-ratio: 4 / 3;
    background: var(--cream-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
}

/* <picture> wraps some covers (mobile-swap ones) but not others — without
   this, the nested <img>'s max-height:100% has no definite height to
   resolve against (max-height alone doesn't make picture's height
   "definite" per spec; only an explicit, non-auto height does), so those
   covers alone overflow the box and get clipped top/bottom by
   overflow:hidden. Giving <picture> an explicit height:100% (not
   max-height) makes it definite, so the nested <img>'s own max-height:100%
   then resolves correctly and both markup shapes contain identically. */
.bq-cover picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.bq-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bq-card:hover .bq-cover img {
    transform: scale(1.04);
}

.bq-body {
    padding: 24px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bq-quote {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--navy);
    flex: 1;
    margin: 0 0 16px;
    text-wrap: pretty;
}

.bq-attribution {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-style: italic;
    color: var(--ink-mute);
    margin: 0;
    line-height: 1.5;
}

.book-quotes-section .section-grid-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 980px) {
    .book-quotes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .book-quotes-grid {
        grid-template-columns: 1fr;
    }
}


/* ---- Certificate grid ---- */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 980px) {
    .t-product-banner {
        padding: 56px 0;
    }

    .t-product-banner .series-img img {
        max-width: 70%;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cert-grid {
        gap: 20px;
    }
}

/* ---- Certificate card ---- */
.cert-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.25s,
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.cert-card:hover {
    box-shadow: var(--shadow-deep);
    transform: translateY(-4px);
    border-color: var(--navy-soft);
}

.cert-card:active {
    transform: scale(0.98) !important;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.1s ease-out,
        box-shadow 0.1s ease-out;
}

.cert-card-body {
    padding: 32px 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-card-body h3 {
    margin-top: 8px;
    margin-bottom: 0;
}

.cert-card-body p {
    margin-top: 12px;
    color: var(--ink-mute);
    flex: 1;
}

/* ---- Thumbnail button ---- */
.cert-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    border-top: 1px solid var(--rule);
    background: var(--cream);
    padding: 24px;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.cert-thumb:hover {
    background: var(--cream-deep);
}

.cert-thumb:active {
    transform: scale(0.95) !important;
    transition:
        background 0.08s ease-out,
        transform 0.08s ease-out;
}

.cert-thumb img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--r);
    transition: transform 0.3s ease;
}

.cert-thumb:hover img {
    transform: scale(1.04);
}

.cert-thumb-label {
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy-mid);
}

/* ---- Modal overlay ---- */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 24, 48, 0.6);
    padding: 24px;
}

.cert-modal-box {
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: var(--shadow-deep);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 52px 32px 32px;
    text-align: center;
    animation: certModalIn 0.25s ease;
}

.cert-modal.is-closing .cert-modal-box {
    animation: certModalOut 0.18s ease forwards;
}

.cert-modal-box img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
}

.cert-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-mute);
    padding: 8px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.2s,
        background 0.2s,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.cert-modal-close:hover {
    color: var(--ink);
    background: var(--navy-tint);
}

.cert-modal-close:active {
    transform: scale(0.9);
    transition: transform 0.08s ease-out;
}

@keyframes certModalIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes certModalOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}


/* ============================================================
   Homepage (index.html): rotating hero word, series switcher,
   series banners. The banners reuse .series from all.css.
   ============================================================ */

.hx-rotate {
    display: inline-block;
    transition:
        opacity 0.26s ease,
        transform 0.26s ease;
}

.hx-rotate.is-swapping {
    opacity: 0;
    transform: translateY(12px);
}

.hx-switch {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 1080px;
    margin: 48px auto 0;
    text-align: left;
}

.hx-switch-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    text-decoration: none;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.hx-switch-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
    border-color: var(--navy-soft);
    text-decoration: none;
}

.hx-switch-icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: var(--navy-tint);
    border-radius: var(--r);
    color: var(--navy);
}

.hx-switch-icon svg {
    width: 22px;
    height: 22px;
}

.hx-switch-name {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--navy-ink);
}

.hx-switch-short {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--ink-mute);
    line-height: 1.4;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {

.mx-trio .mx-trio-main {
        max-height: 300px;
    }

.mx-trio .mx-trio-side {
        max-height: 210px;
    }

    main > section.sx-hero {
        padding: 72px 0 80px;
    }

    .sx-stage img {
        max-height: 320px;
    }

    .sx-subnav ul {
        justify-content: flex-start;
        padding-inline: 20px;
    }

    .sx-panel {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .sx-bento {
        grid-template-columns: 1fr 1fr;
    }

    .sx-steps,
    .sx-stories {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 600px) {

.mx-trio .mx-trio-main {
        max-height: 220px;
    }

.mx-trio .mx-trio-side {
        max-height: 150px;
    }

    main > section.sx-hero {
        padding: 56px 0 64px;
    }

    .sx-stage {
        margin-top: 40px;
        gap: 12px;
    }

    .sx-stage img {
        max-height: 220px;
    }

    .sx-tablist {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -20px;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }

    .sx-tab {
        flex: 0 0 auto;
    }

    .sx-panel {
        padding: 20px;
    }

    .sx-panel-media {
        min-height: 180px;
        padding: 20px;
    }

    .sx-specs {
        grid-template-columns: 1fr;
    }

    .sx-bento,
    .sx-steps,
    .sx-stories {
        grid-template-columns: 1fr;
    }

    .sx-tile--wide {
        grid-column: auto;
    }

    .hx-switch {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 40px;
    }

    .hx-switch-item {
        padding: 16px;
    }

    .hx-switch-short {
        display: none;
    }

    .sx-tile,
    .sx-steps li,
    .sx-story {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sx-panel {
        animation: none;
    }

    .hx-rotate {
        transition: none;
    }
}

/* ---- Tabs stay on one line on tablet and desktop ---- */
@media (min-width: 601px) {
    .sx-tablist {
        flex-wrap: nowrap;
        gap: clamp(6px, 0.8vw, 12px);
    }

    .sx-tab {
        flex: 0 1 auto;
        justify-content: center;
        min-width: 0;
        padding-inline: clamp(8px, 1.6vw, 32px);
        font-size: clamp(0.76rem, 1.35vw, 1.3rem);
    }

    .sx-tab-dot {
        flex-shrink: 0;
    }
}

/* ---- Hero headline stays centred over its copy ---- */
main .sx-hero h1 {
    margin-inline: auto;
    text-align: center;
}

/* ---- Water tabs: each button wears its own water colour, label on one line ---- */
.sx-tab.sx-tab--water {
    position: relative;
    background: color-mix(in srgb, var(--tab) 14%, var(--white));
    border: 2px solid var(--tab);
    color: var(--navy-ink);
    white-space: nowrap;
}

.sx-tab.sx-tab--water:hover {
    background: color-mix(in srgb, var(--tab) 30%, var(--white));
    border-color: var(--tab);
    color: var(--navy-ink);
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}

.sx-tab.sx-tab--water[aria-selected='true'] {
    background: var(--tab);
    border-color: var(--tab);
    color: var(--navy-ink);
    box-shadow: var(--shadow-deep);
}

/* Pointer under the chosen water, leading the eye to its panel */
.sx-tab.sx-tab--water[aria-selected='true']::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border: 10px solid transparent;
    border-top-color: var(--tab);
}

/* The purple is dark, so its chosen state needs white text */
#tab-water-strong-kangen[aria-selected='true'] {
    color: var(--white);
}

@media (min-width: 601px) {
    .sx-tab.sx-tab--water {
        padding-inline: clamp(4px, 1.4vw, 28px);
        font-size: clamp(0.68rem, 1.25vw, 1.25rem);
    }
}

@media (max-width: 600px) {
    /* Room for the pointer inside the scrolling tab row */
    .sx-tablist:has(.sx-tab--water) {
        padding-bottom: 12px;
    }
}

/* ---- Model tabs: same pointer as the water tabs ---- */
.sx-tab[id^='tab-model-'] {
    position: relative;
}

.sx-tab[id^='tab-model-'][aria-selected='true']::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border: 10px solid transparent;
    border-top-color: var(--navy);
}

@media (max-width: 600px) {
    .sx-tablist:has([id^='tab-model-']) {
        padding-bottom: 12px;
    }
}

/* ============================================================
   Homepage: hero and product chapters
   ============================================================ */

.hm-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

main > section.sx-hero.hm-top {
    padding: 56px 0;
}

main .hm-top .hm-hero-copy {
    text-align: left;
}

main .hm-top h1 {
    max-width: none;
    margin: 0 0 20px;
    text-align: left;
}

.hm-top .lede {
    margin: 0;
}

.hm-top .sx-hero-cta,
.hm-top .sx-hero-facts {
    justify-content: flex-start;
}

.hm-top .sx-stage {
    margin: 0;
}

.hm-top .sx-stage img {
    width: 100%;
    max-height: 52vh;
    object-fit: contain;
}

.hm-top .hx-switch {
    margin-top: 40px;
}

.hm-chapter {
    padding: 80px 0;
    scroll-margin-top: 68px;
}

.hm-chapter .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
    max-width: 1200px;
}

.hm-flip .hm-photo {
    order: 2;
}

.hm-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 140px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--r);
}

main .hm-copy h2 {
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    line-height: 1.1;
    margin: 12px 0 20px;
    text-wrap: balance;
}

main .hm-copy .lede {
    font-size: 1.1rem;
    margin: 0 0 24px;
}

.hm-facts {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
}

.hm-facts li {
    padding: 10px 0;
    border-top: 1px solid var(--rule);
}

.hm-models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.hm-models a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.hm-models a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
    text-decoration: none;
}

.hm-models img {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.hm-dark {
    background: var(--navy);
}

main .hm-dark h2,
.hm-dark .hm-facts {
    color: var(--white);
}

.hm-dark h2 em,
.hm-dark .eyebrow {
    color: var(--gold);
}

main .hm-dark .lede {
    color: rgba(255, 255, 255, 0.78);
}

.hm-dark .hm-facts li {
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 980px) {
    .hm-hero,
    .hm-chapter .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    main .hm-top .hm-hero-copy,
    main .hm-top h1 {
        text-align: center;
    }

    .hm-top .sx-hero-cta,
    .hm-top .sx-hero-facts {
        justify-content: center;
    }

    .hm-flip .hm-photo {
        order: 0;
    }

    .hm-photo img {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .hm-chapter {
        padding: 56px 0;
    }
}

/* Compact series switcher so it sits inside the first screen */
.hm-top .hx-switch {
    max-width: 1200px;
}

.hm-top .hx-switch-item {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
}

.hm-top .hx-switch-icon {
    width: 32px;
    height: 32px;
    margin: 0;
}

.hm-top .hx-switch-name {
    font-size: 1.15rem;
}

.hm-top .hx-switch-short {
    display: none;
}

/* The first screen never waits for a script before showing */
html.js .sx-hero h1,
html.js.mx-on .sx-hero h1 {
    opacity: 1;
    animation: none;
}

/* ---- Homepage close: three steps and the demo buttons in one section ---- */
main section.hm-close {
    padding: 80px 0;
    background: var(--navy-ink);
    text-align: center;
}

main .hm-close h2 {
    color: var(--white);
}

.hm-close .eyebrow {
    color: var(--gold);
}

.hm-close .sx-steps {
    max-width: 1100px;
    margin: 0 auto 32px;
    text-align: left;
}

main .hm-close .cta-note {
    color: rgba(255, 255, 255, 0.75);
}

.hm-close-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

/* The step cards are white, so their text stays dark on the navy section */
main section.hm-close .sx-steps li h3 {
    color: var(--navy-ink);
}

main section.hm-close .sx-steps li p {
    color: var(--ink-mute);
}

main section.hm-close .cta-note {
    max-width: none;
    margin: 0 auto;
}

/* ---- Homepage trust: two flagship cards, three supporting products ---- */
main section.tr-section {
    padding: 80px 0;
}

.tr-section .container {
    max-width: 1100px;
}

.tr-mains {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tr-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
}

.tr-main img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

main .tr-main h3 {
    margin: 0;
}

.tr-main ul {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.tr-main li {
    padding: 10px 0;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--navy);
}

.tr-main .pf-link {
    margin-top: auto;
}

.tr-smalls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.tr-small {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-mute);
    text-decoration: none;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.tr-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
    text-decoration: none;
}

.tr-small img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.tr-small strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy-ink);
}

@media (max-width: 980px) {
    .tr-mains,
    .tr-smalls {
        grid-template-columns: 1fr;
    }
}

/* ---- Signed quote under the ioniser tiles (navy section) ---- */
.founder-quote {
    max-width: 760px;
    margin: 56px auto 0;
    text-align: center;
}

.founder-quote blockquote {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--white);
}

.founder-quote blockquote::before {
    content: '\201C';
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: var(--gold);
}

.founder-quote figcaption {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---- Section bar: keep each focus ring inside its own button ---- */
.sx-subnav ul {
    gap: 8px;
}

.sx-subnav a:focus-visible {
    outline-offset: -2px;
    border-radius: var(--r);
}

.sx-story[hidden] {
    display: none;
}

/* ---- Certificates: three to a row on desktop ---- */
.cert-card[hidden] {
    display: none;
}

@media (min-width: 981px) {
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.about-cert-intro {
    margin: 56px 0 24px;
    text-align: center;
}

/* ---- Water ioniser stories: the condition is the headline ---- */
.io-stories .sx-story {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    border-top: 3px solid var(--gold);
}

main .io-stories .sx-story h3 {
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--navy-ink);
}

.io-stories .sx-story > p {
    margin: 0;
}

/* Photos and "Read the full story" sit on the bottom edge, level across a row */
.io-stories .sx-story .sx-sensitive,
.io-stories .sx-story > .sx-story-images,
.io-stories .sx-story > details {
    margin-top: auto;
}

.io-stories .sx-story summary {
    padding-top: 12px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}

.io-stories {
    align-items: stretch;
}

/* The flex layout above must not override the show/hide toggle */
.io-stories .sx-story[hidden] {
    display: none;
}

/* One line per sentence where the screen is wide enough */
.founder-quote {
    max-width: 1100px;
}

.founder-quote blockquote {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

/* ---- Short disclaimer under story cards ---- */
main .story-note {
    max-width: 760px;
    margin: 32px auto 0;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
    color: var(--ink-faint);
}

/* ---- Certification marks: plain meaning first, mark names second ---- */
.cm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cm-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
}

.cm-icon {
    color: var(--gold-deep);
}

.cm-icon svg {
    width: 36px;
    height: 36px;
}

main .cm-card h3,
main .cm-card p {
    margin: 0;
}

.cm-card ul {
    margin: auto 0 0;
    padding: 8px 0 0;
    list-style: none;
}

.cm-card li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--ink-mute);
    text-align: right;
}

.cm-card li strong {
    font-size: 0.95rem;
    color: var(--navy);
    white-space: nowrap;
}

@media (max-width: 980px) {
    .cm-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .cm-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Phone-only copy: shorter hero text, so the product shows sooner ---- */
.only-phone {
    display: none;
}

@media (max-width: 600px) {
    .only-phone {
        display: inline;
    }

    .sx-hero .not-phone,
    .sx-hero .btn.not-phone,
    .page-head .not-phone {
        display: none;
    }

    main > section.sx-hero.ka-hero {
        padding-top: 32px;
    }
}

/* ---- Water ioniser hero: large machines on a soft warm pool of light ---- */
.sx-hero .sx-stage.mx-trio.io-hero-trio {
    width: min(1500px, 96vw);
    margin: 40px 0 0 50%;
    transform: translateX(-50%);
    padding: 32px 0;
    gap: 2vw;
    align-items: flex-end;
    justify-content: center;
    background: radial-gradient(ellipse 60% 50% at 50% 62%, var(--cream), transparent 75%);
}

.sx-hero .io-hero-trio img {
    width: auto;
    height: auto;
    max-width: 33%;
    margin: 0;
    filter: drop-shadow(0 28px 32px rgba(15, 35, 71, 0.2));
}

.sx-hero .io-hero-trio .mx-trio-main {
    max-width: 38%;
    max-height: 640px;
}

.sx-hero .io-hero-trio .mx-trio-side {
    max-height: 520px;
}

/* Phones: K8 large on top, the other two side by side beneath */
@media (max-width: 600px) {
    .sx-hero .sx-stage.mx-trio.io-hero-trio {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        gap: 16px;
        margin-top: 24px;
        padding: 8px 0;
    }

    .sx-hero .io-hero-trio .mx-trio-main {
        grid-column: 1 / -1;
        grid-row: 1;
        max-width: 92%;
        max-height: 320px;
    }

    .sx-hero .io-hero-trio .mx-trio-side {
        max-width: 94%;
        max-height: 190px;
    }
}

@media (min-width: 601px) {
    .sx-hero .sx-stage.mx-trio.io-hero-trio {
        max-width: none;
        flex-wrap: nowrap;
    }

    /* Fixed shares of the stage, so source file size never limits the machines */
    .sx-hero .io-hero-trio img {
        width: 31%;
        max-width: none;
        object-fit: contain;
        object-position: bottom;
    }

    .sx-hero .io-hero-trio .mx-trio-main {
        width: 37%;
        max-width: none;
    }

    .sx-hero .io-hero-trio img:last-child {
        width: 24%;
    }
}

/* ---- Phones: UKON box on top, tea and soap side by side; ionisers show the K8 only ---- */
@media (max-width: 600px) {
    .sx-hero .sx-stage.uk-hero-stage {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        justify-items: center;
        gap: 20px 12px;
        width: calc(100% + 24px);
        margin: 24px -12px 0;
    }

    .uk-hero-stage picture {
        display: block;
        width: 100%;
    }

    .uk-hero-stage picture:first-child {
        grid-column: 1 / -1;
    }

    .sx-hero .uk-hero-stage img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0 auto;
    }

    .sx-hero .uk-hero-stage picture:first-child img {
        width: 86%;
    }

    .sx-hero .sx-stage.mx-trio.io-hero-trio {
        display: block;
        padding: 0;
    }

    .sx-hero .io-hero-trio .not-phone-img {
        display: none;
    }

    .sx-hero .io-hero-trio .mx-trio-main {
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: none;
        margin: 0 auto;
    }
}

/* ---- Ioniser hero: 8% smaller than the first enlarged size ---- */
@media (min-width: 601px) {
    .sx-hero .io-hero-trio img {
        width: 28.5%;
    }

    .sx-hero .io-hero-trio .mx-trio-main {
        width: 34%;
        max-height: 590px;
    }

    .sx-hero .io-hero-trio img:last-child {
        width: 22%;
    }

    .sx-hero .io-hero-trio .mx-trio-side {
        max-height: 478px;
    }
}

@media (max-width: 600px) {
    .sx-hero .io-hero-trio .mx-trio-main {
        width: 92%;
    }
}

/* Homepage hero image is square: keep it from pushing the series switcher off the first screen */
@media (max-width: 980px) {
    .hm-top .sx-stage img {
        max-height: 340px;
    }
}

@media (max-width: 600px) {
    .hm-top .sx-stage img {
        max-height: 280px;
    }
}

