/* Dr NIYO Water Solutions — styles */
:root {
    --navy: #061a33;
    --blue: #1e6bff;
    --cyan: #3fd0ff;
    --bg: #f3f8ff;
    --ink: #0a2240;
    --card: #fff;
    --line: #d5e3f7;
    --mut: #4a6485;
    --r: 24px;
    --pad: clamp(56px, 9vw, 100px)
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #081f3d;
        --ink: #eaf4ff;
        --card: #0d2a52;
        --line: #1b3f73;
        --mut: #9db9dd
    }
}

* {
    box-sizing: border-box
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 Sora, system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-x: clip;
    word-wrap: break-word
}

img,
svg {
    max-width: 100%
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0 0 .5em;
    letter-spacing: -.02em
}

h1 {
    font-size: clamp(2.3rem, 9vw, 5.2rem);
    font-weight: 800
}

h2 {
    font-size: clamp(1.7rem, 5.5vw, 3rem);
    font-weight: 800
}

h3 {
    font-size: 1.1rem;
    font-weight: 600
}

p {
    margin: 0 0 1em;
    max-width: 62ch
}

a {
    color: inherit
}

section {
    padding: var(--pad) clamp(16px, 5vw, 32px)
}

.w {
    max-width: 1100px;
    margin: 0 auto
}

.dark {
    background: var(--navy);
    color: #eaf4ff
}

.dark p {
    color: #bcd3f2
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px
}

#bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    z-index: 60
}

/* buttons */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font: 600 1rem Sora, sans-serif;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    text-align: center;
    transition: transform .2s, box-shadow .2s
}

.btn:hover {
    box-shadow: 0 10px 30px rgba(63, 208, 255, .35)
}

.btn.p {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #031225
}

.btn.g {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    backdrop-filter: blur(10px)
}

.btn.o {
    border: 1.5px solid var(--blue);
    color: var(--blue);
    background: transparent
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0
}

@media(max-width:480px) {
    .row .btn {
        width: 100%
    }
}

/* nav */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px clamp(16px, 4vw, 32px);
    background: rgba(6, 26, 51, .75);
    backdrop-filter: blur(14px);
    color: #fff;
    transition: background .3s
}

nav.scrolled {
    background: rgba(6, 26, 51, .95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25)
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    margin-right: auto
}

.links {
    display: flex;
    gap: 22px;
    align-items: center
}

.links a {
    text-decoration: none;
    font-size: .92rem;
    opacity: .85
}

.links a:hover,
.links a.act {
    opacity: 1;
    color: var(--cyan)
}

nav .btn {
    padding: 9px 18px;
    font-size: .85rem
}

.burger {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px
}

.burger span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: .3s
}

.burger[aria-expanded=true] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
}

.burger[aria-expanded=true] span:nth-child(2) {
    opacity: 0
}

.burger[aria-expanded=true] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
}

@media(max-width:880px) {
    .burger {
        display: block
    }

    .links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--navy);
        padding: 6px clamp(16px, 4vw, 32px) 22px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s, opacity .3s, visibility .3s;
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        box-shadow: 0 20px 30px rgba(0, 0, 0, .3)
    }

    .links.open {
        transform: none;
        opacity: 1;
        visibility: visible
    }

    .links a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        font-size: 1rem
    }

    .links a.btn {
        margin-top: 16px;
        padding: 14px;
        border: 0;
        font-size: 1rem;
        color: #031225;
        opacity: 1
    }
}

/* hero */
.hero {
    padding: 0 clamp(16px, 5vw, 32px);
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    min-height: 92svh;
    display: flex;
    align-items: center;
    background: radial-gradient(120% 90% at 70% 10%, #0e4a9e 0, var(--navy) 60%)
}

.hero .wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 200%;
    max-width: none;
    height: 44%;
    display: block;
    will-change: transform;
    animation: flow 14s linear infinite
}

.hero .wave.b {
    height: 36%;
    opacity: .5;
    animation-duration: 22s;
    animation-direction: reverse
}

@keyframes flow {
    to {
        transform: translateX(-50%)
    }
}

.hero .w {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 0 clamp(110px, 22vw, 160px)
}

.hero .lead {
    font-size: clamp(1rem, 2.6vw, 1.2rem)
}

.glass {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 10px 16px;
    display: inline-block;
    margin: 0 8px 8px 0;
    font-size: .88rem;
    color: #dff0ff
}

.hero .bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff9, #3fd0ff33);
    bottom: -40px;
    animation: rise var(--d) linear infinite;
    left: var(--x);
    width: var(--s);
    height: var(--s)
}

@keyframes rise {
    to {
        transform: translateY(-110vh)
    }
}

/* problem */
.flow {
    display: grid;
    gap: 10px;
    margin: 28px 0
}

.flow div {
    padding: 18px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    font-weight: 600;
    position: relative
}

.flow div:nth-child(2) {
    border-style: dashed
}

.flow div:last-child {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #031225;
    border: 0
}

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

.chips span,
.chips button {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font: 400 .9rem Sora, sans-serif;
    color: var(--ink)
}

.chips button {
    cursor: pointer;
    transition: .2s
}

.chips button:hover,
.chips button[aria-pressed=true] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-2px)
}

.dark .chips span {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    color: #eaf4ff
}

.chips span.tip {
    cursor: help;
    position: relative
}

.note {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    display: none
}

.note.show {
    display: block
}

/* grids and cards */
.grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    grid-template-columns: 1fr
}

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

@media(min-width:980px) {
    .grid.c3 {
        grid-template-columns: repeat(3, 1fr)
    }

    .grid.c4 {
        grid-template-columns: repeat(4, 1fr)
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px;
    box-shadow: 0 10px 30px rgba(10, 34, 64, .08)
}

.card p {
    color: var(--mut);
    margin: 0 0 .8em
}

.cat {
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform .15s, border-color .25s;
    transform-style: preserve-3d;
    will-change: transform
}

.cat:hover {
    border-color: var(--blue)
}

.cat em {
    font-style: normal;
    color: var(--blue);
    font-weight: 600
}

.ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-size: 1.3rem
}

/* featured */
.feat {
    display: grid;
    gap: 36px;
    align-items: center
}

@media(min-width:860px) {
    .feat {
        grid-template-columns: 1fr 1fr
    }
}

.price {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 800;
    color: var(--cyan)
}

.stage {
    height: clamp(300px, 60vw, 400px);
    display: grid;
    place-items: center;
    perspective: 900px;
    position: relative
}

.cyl {
    width: clamp(100px, 26vw, 257px);
    aspect-ratio: 198 / 352;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
    transition: transform .15s
}

/* .cyl i{position:absolute;inset:0;border-radius:65px/22px;background:linear-gradient(90deg,#0a3f9c,#2f8bff 35%,#8fd8ff 50%,#2f8bff 65%,#0a3f9c);box-shadow:0 30px 60px rgba(30,107,255,.45)} */
/* .cyl i::before{content:"Dr NIYO";position:absolute;top:44%;left:0;right:0;text-align:center;font-weight:800;color:#fff;font-size:1rem}
.cyl i::after{content:"";position:absolute;top:0;left:0;right:0;height:14%;border-radius:50%;background:#bfe9ff;opacity:.55} */
.tag {
    position: absolute;
    font-size: .78rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    backdrop-filter: blur(8px);
    animation: bob 4s ease-in-out infinite
}

.tag:nth-of-type(2) {
    animation-delay: -1.3s
}

.tag:nth-of-type(3) {
    animation-delay: -2.6s
}

@keyframes bob {
    50% {
        transform: translateY(-8px)
    }
}

/* finder */
.finder {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(20px, 4vw, 32px);
    max-width: 760px
}

.prog {
    height: 6px;
    border-radius: 6px;
    background: var(--line);
    overflow: hidden;
    margin-bottom: 20px
}

.prog i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transition: width .4s
}

.opts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0
}

.opts button {
    padding: 11px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: 600 .95rem Sora, sans-serif;
    cursor: pointer;
    transition: .2s
}

.opts button:hover,
.opts button[aria-pressed=true] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-2px)
}

.fd-q {
    animation: pop .4s
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
}

.res {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #031225;
    border-radius: 20px;
    padding: 22px;
    margin-top: 10px;
    animation: pop .5s
}

.res p {
    color: #031225
}

.res h3 {
    font-size: 1.5rem
}

.link {
    background: none;
    border: 0;
    color: var(--blue);
    font: 600 .9rem Sora, sans-serif;
    cursor: pointer;
    padding: 6px 0;
    margin-top: 10px
}

/* test + form */
.test .w {
    display: grid;
    gap: 36px;
    align-items: center
}

@media(min-width:860px) {
    .test .w {
        grid-template-columns: 1.1fr 1fr
    }
}

.big {
    font-size: clamp(2rem, 7vw, 3.4rem);
    font-weight: 800;
    color: var(--cyan);
    line-height: 1.05;
    margin-bottom: 12px
}

.stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 22px 0
}

.stats b {
    display: block;
    font-size: 1.8rem;
    color: #fff
}

.stats span {
    font-size: .85rem;
    color: #9db9dd
}

form {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(14px);
    border-radius: var(--r);
    padding: clamp(20px, 4vw, 28px)
}

label {
    display: block;
    font-size: .85rem;
    margin: 0 0 6px;
    color: #cfe3ff
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: 400 1rem Sora, sans-serif;
    margin-bottom: 14px
}

select option {
    color: #000
}

input::placeholder {
    color: #8fb0da
}

input.bad {
    border-color: #ff7b7b
}

.err {
    color: #ff9d9d;
    font-size: .82rem;
    margin: -8px 0 12px;
    display: none
}

.err.show {
    display: block
}

form .btn {
    width: 100%
}

/* steps */
.steps {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    border-left: 3px solid var(--line);
    position: relative
}

.steps::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 0;
    width: 3px;
    height: var(--fill, 0%);
    background: linear-gradient(var(--blue), var(--cyan));
    transition: height .2s
}

.steps li {
    padding: 0 0 30px 30px;
    position: relative;
    z-index: 1;
}

.steps li::before {
    content: attr(data-n);
    position: absolute;
    left: -19px;
    top: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: .8rem;
    z-index: 1;
    transition: .4s
}

.steps li.on::before {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: scale(1.15)
}

.steps p {
    color: var(--mut)
}

/* compare */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0 14px
}

.tabs button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font: 600 .9rem Sora, sans-serif;
    cursor: pointer;
    transition: .2s
}

.tabs button[aria-selected=true] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.tw {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    -webkit-overflow-scrolling: touch
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    background: var(--card)
}

th,
td {
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line)
}

th {
    background: var(--navy);
    color: #fff
}

tr {
    transition: background .25s
}

tr.hl {
    background: rgba(30, 107, 255, .14)
}

tr.hl td:first-child {
    box-shadow: inset 4px 0 var(--blue);
    font-weight: 600
}

.bars {
    display: flex;
    gap: 4px
}

.bars i {
    width: 14px;
    height: 8px;
    border-radius: 3px;
    background: var(--line)
}

.bars i.f {
    background: var(--blue)
}

#cmpNote {
    margin: 14px 0 20px
}

/* brand */
.brand {
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 70vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--navy), #0b3e86)
}

.brand .w {
    position: relative;
    z-index: 2
}

.brand h2 {
    font-size: clamp(2.4rem, 10vw, 6rem)
}

.brand p {
    margin-inline: auto
}

.drop {
    position: absolute;
    bottom: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, var(--cyan));
    opacity: .5;
    animation: rise var(--d) linear infinite;
    left: var(--x);
    width: var(--s);
    height: var(--s)
}

/* reviews */
.rv-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.arrows {
    display: flex;
    gap: 8px
}

.arrows button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 1.2rem;
    cursor: pointer;
    transition: .2s
}

.arrows button:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue)
}

.scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 2px 20px;
    margin-top: 16px;
    scrollbar-width: thin
}

.scroll .card {
    flex: 0 0 min(340px, 84%);
    scroll-snap-align: start
}

.stars {
    color: #f5b301;
    letter-spacing: 2px
}

.who {
    font-size: .85rem;
    color: var(--mut)
}

/* faq */
.faq {
    max-width: 780px;
    margin: 0 auto
}

details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 22px;
    margin-bottom: 12px;
    transition: border-color .2s
}

details[open] {
    border-color: var(--blue)
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding: 18px 28px 18px 0;
    list-style: none;
    position: relative
}

summary::-webkit-details-marker {
    display: none
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--blue);
    transition: transform .3s
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg)
}

details p {
    color: var(--mut);
    padding-bottom: 18px;
    margin: 0;
    animation: pop .35s
}

/* final + footer */
.final {
    text-align: center;
    min-height: 80vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0a3f9c, var(--blue))
}

.final h2 {
    font-size: clamp(2.2rem, 9vw, 5rem)
}

.final p {
    margin-inline: auto;
    color: #e4f1ff
}

.final .row {
    justify-content: center
}

footer {
    background: var(--navy);
    color: #bcd3f2;
    padding: 48px clamp(16px, 5vw, 32px);
    font-size: .92rem
}

footer .w {
    display: grid;
    gap: 28px
}

@media(min-width:800px) {
    footer .w {
        grid-template-columns: 2fr 1fr 1fr
    }
}

footer a {
    display: block;
    text-decoration: none;
    margin-bottom: 8px
}

footer a:hover {
    color: var(--cyan)
}

footer b {
    color: #fff
}

.wa {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    background: #25d366;
    color: #04230f;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    animation: pulse 2.4s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .55)
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)
    }
}

.top {
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--blue);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: .3s
}

.top.show {
    opacity: 1;
    pointer-events: auto
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    html {
        scroll-behavior: auto
    }
}

/* ---- responsive fixes ---- */
.brand .w,
.final .w {
    width: 100%
}

.feat>*,
.test .w>*,
footer .w>* {
    min-width: 0
}

.cat {
    width: 100%
}

.btn {
    max-width: 100%
}

footer {
    padding-bottom: 96px
}

/* AOS: no sideways slides on small screens (prevents horizontal scroll) */
@media(max-width:860px) {

    html [data-aos=fade-left],
    html [data-aos=fade-right] {
        transform: translate3d(0, 28px, 0)
    }

    .stage {
        margin-top: 8px
    }

    .stats {
        gap: 18px 28px
    }
}

@media(max-width:600px) {
    .glass {
        font-size: .8rem;
        padding: 8px 13px
    }

    .card {
        padding: 20px
    }

    .finder,
    form {
        padding: 18px
    }

    th,
    td {
        padding: 12px 14px
    }

    .opts button {
        padding: 10px 16px
    }

    .steps li {
        padding-left: 24px
    }

    details {
        padding: 0 16px
    }

    .tag {
        font-size: .7rem;
        padding: 5px 10px
    }

    .wa {
        padding: 11px 16px;
        font-size: .9rem
    }

    .flow div {
        padding: 14px
    }

    .scroll .card {
        flex-basis: 88%
    }
}

@media(max-width:380px) {
    :root {
        --pad: 48px
    }

    h1 {
        font-size: 2.05rem
    }

    .btn {
        padding: 13px 18px
    }

    .chips span,
    .chips button {
        padding: 8px 13px;
        font-size: .84rem
    }

    .tabs button {
        padding: 9px 14px;
        font-size: .84rem
    }

    .logo {
        font-size: 1.1rem
    }
}

@media(max-height:480px) and (orientation:landscape) {
    .hero {
        min-height: auto
    }

    .hero .w {
        padding: 36px 0 110px
    }

    .brand,
    .final {
        min-height: auto
    }
}

.logo img {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cyl i {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("./images/Blue\ Water\ Filtration\ Tank\ System.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}