/* =========================================================================
   RIPTIDE LABS — homepage (deep-water system). Replaces the inherited
   home.css on the front page; the section markup lives in front-page.php.
   ========================================================================= */

/* ---------- Hero: Higgsfield product scene, copy in the dark water -------- */
.vhero {
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    height: clamp(560px, 46vw, 780px);
    background: var(--n-970) url(../images/hero/hero-wide.webp) no-repeat center 62%;
    background-size: cover;
    color: var(--paper);
}
.vhero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgb(var(--rgb-ink-deep) / .92) 0%, rgb(var(--rgb-ink-deep) / .72) 30%, rgb(var(--rgb-ink-deep) / .25) 52%, rgb(var(--rgb-ink-deep) / 0) 68%),
        linear-gradient(180deg, rgb(var(--rgb-ink-deep) / .3) 0%, transparent 35%, transparent 75%, rgb(var(--rgb-ink-deep) / .5) 100%);
}
.vhero-inner { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.vhero-copy { max-width: 700px; }
.vhero-eyebrow { margin: 0 0 22px; color: var(--rl-ice); }
.vhero-eyebrow-link { color: var(--n-0); text-decoration: underline; text-underline-offset: 3px; }
.vhero-eyebrow-link:hover { color: var(--rl-sky); }
.vhero-tag {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(36px, 4.4vw, 64px); line-height: .98; letter-spacing: -.03em;
    color: var(--n-0); margin: 0; text-wrap: balance;
    text-shadow: 0 2px 30px rgb(var(--rgb-black) / .35);
}
.vhero-sub { font-size: clamp(14px, 1.2vw, 17px); line-height: 1.55; color: rgb(var(--rgb-white) / .76); max-width: 32em; margin: 22px 0 30px; }
.vhero-trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 34px 0 0; padding: 0; }
.vhero-trust li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 12px; border-radius: 999px;
    background: rgb(var(--rgb-white) / .06); border: 1px solid var(--rl-glass-border);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-wide); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    color: rgb(var(--rgb-white) / .88); line-height: 1.2;
}
.vhero-trust svg { width: 18px; height: 18px; color: var(--rl-ice); flex: none; }
.vhero-trust-link { display: flex; align-items: center; gap: 10px; color: inherit; }
.vhero-trust-link:hover { color: var(--n-0); }
.vhero-ruo {
    position: absolute; right: clamp(18px, 4vw, 46px); bottom: 20px; z-index: 1;
    font-family: var(--font-wide); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
    color: rgb(var(--rgb-white) / .5);
}
@media (max-width: 1024px) {
    .vhero {
        display: block; height: auto;
        padding: clamp(28px, 6vw, 44px) 0 min(104vw, 560px);
        background-image: url(../images/hero/hero-tall.webp);
        background-position: center bottom;
    }
    .vhero::before { background: linear-gradient(180deg, rgb(var(--rgb-ink-deep) / .9) 0%, rgb(var(--rgb-ink-deep) / .72) 34%, rgb(var(--rgb-ink-deep) / .15) 60%, rgb(var(--rgb-ink-deep) / 0) 100%); }
    .vhero-copy { max-width: none; }
    .vhero-tag { font-size: clamp(30px, 8vw, 48px); line-height: 1; }
    .vhero-sub { font-size: 14px; line-height: 1.45; margin: 12px 0 16px; max-width: 34em; }
    .vhero-trust { margin-top: 18px; gap: 8px; }
    .vhero-ruo { display: none; }
}
@media (max-width: 640px) {
    .vhero { padding-bottom: min(118vw, 500px); }
    .vhero-eyebrow { font-size: 7.5px; letter-spacing: .1em; line-height: 1.6; margin-bottom: 14px; }
    .vhero-trust li { padding: 8px 12px 8px 10px; font-size: 8px; letter-spacing: .1em; gap: 8px; }
    .vhero-trust svg { width: 15px; height: 15px; }
}

/* ---------- Guarantee band ------------------------------------------------ */
.rl-band { background: var(--n-925); color: var(--paper); border-top: 1px solid rgb(var(--rgb-white) / .06); border-bottom: 1px solid rgb(var(--rgb-white) / .06); }
.rl-band .rl-wrap { padding-top: 22px; padding-bottom: 26px; }
.rl-band-cap {
    font-family: var(--font-wide); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
    color: var(--rl-ice); text-align: center; margin: 0 0 18px;
}
.rl-band-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rl-band-grid li { display: flex; gap: 16px; align-items: center; padding: 6px 28px; border-left: 1px solid rgb(168 193 216 / .16); }
.rl-band-grid li:first-child { border-left: 0; padding-left: 0; }
.rl-band-ico {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgb(124 196 245 / .12); border: 1px solid rgb(124 196 245 / .35); color: var(--rl-sky);
    box-shadow: 0 0 24px rgb(124 196 245 / .25);
}
.rl-band-ico svg { width: 20px; height: 20px; }
.rl-band h4 { font-family: var(--font-wide); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--n-0); margin: 0 0 4px; }
.rl-band p { margin: 0; font-size: 13px; line-height: 1.45; color: rgb(var(--rgb-white) / .68); }
@media (max-width: 900px) {
    .rl-band-grid { grid-template-columns: 1fr; }
    .rl-band-grid li { border-left: 0; border-top: 1px solid rgb(168 193 216 / .14); padding: 14px 0; }
    .rl-band-grid li:first-child { border-top: 0; }
}

/* ---------- Featured products — glass cards on ice ----------------------- */
.rl-line { background: var(--n-25); padding: clamp(56px, 7vw, 96px) 0 clamp(36px, 4vw, 56px); }
.rl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rl-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 20px 20px 18px; border-radius: var(--rl-radius);
    background: var(--rl-card-bg); border: 1px solid var(--rl-card-border);
    box-shadow: inset 0 1px 0 #fff, var(--rl-shadow);
    transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.rl-card:hover { transform: translateY(-6px); border-color: rgb(124 196 245 / .8); box-shadow: inset 0 1px 0 #fff, var(--rl-shadow-hover); }
.rl-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-4); }
.rl-card-top > span:first-child { white-space: nowrap; flex: none; }
.rl-card-top .rl-chip { min-width: 0; max-width: 100%; }
.rl-card-top .rl-chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-card-img { position: relative; display: flex; align-items: center; justify-content: center; height: 250px; margin: 4px -8px 0; }
.rl-card-img::before {
    content: ''; position: absolute; left: 12%; right: 12%; bottom: 10px; height: 34%; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(124 196 245 / .55), rgb(168 193 216 / .2) 45%, transparent 72%);
    filter: blur(10px);
}
.rl-card-img img {
    position: relative; z-index: 1; height: 100%; width: auto; max-width: none; object-fit: contain;
    filter: drop-shadow(0 18px 22px rgb(15 30 51 / .25));
    transition: transform .45s var(--ease-out);
}
.rl-card:hover .rl-card-img img { transform: translateY(-6px) scale(1.03); }
.rl-card-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.rl-card-name a { color: inherit; }
.rl-card-dose { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.rl-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgb(168 193 216 / .35); }
.rl-card-foot .price { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.rl-card-foot .price bdi, .rl-card-foot .price .woocommerce-Price-amount { font: inherit; color: inherit; }
.rl-card-foot .price del { display: none; }
.rl-card-foot .add,
.rl-card-foot a.add.add_to_cart_button,
.rl-card-foot a.added_to_cart {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0;
    background: var(--n-925); color: var(--n-0);
    font-family: var(--font-wide); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    text-decoration: none; line-height: 1;
    transition: background .2s, transform .2s;
}
.rl-card-foot .add:hover,
.rl-card-foot a.add.add_to_cart_button:hover,
.rl-card-foot a.added_to_cart:hover { background: var(--green-600); color: var(--n-0); }
.rl-card-foot .add.loading { opacity: .6; }
.rl-card-foot .add.sold-out { background: transparent; border: 1px solid var(--rl-card-border); color: var(--ink-4); }
@media (max-width: 1100px) { .rl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .rl-grid { gap: 12px; }
    .rl-card { padding: 14px 14px 12px; border-radius: 16px; gap: 8px; }
    .rl-card-img { height: 170px; margin: 0 -10px; }
    .rl-card-name { font-size: 16px; }
    .rl-card-foot .add, .rl-card-foot a.add.add_to_cart_button, .rl-card-foot a.added_to_cart { padding: 0 12px; min-height: 34px; }
    /* Narrow cards: category chip becomes its colour dot only */
    .rl-card-top .rl-chip { padding: 6px 8px; }
    .rl-card-top .rl-chip > span:last-child { display: none; }
}

/* ---------- Ghost marquee (outlined type, wave-mark separators) ---------- */
.rl-marquee { overflow: hidden; background: var(--n-25); padding: 0 0 clamp(40px, 5vw, 64px); }
.rl-marquee-track { display: flex; white-space: nowrap; width: max-content; animation: rl-tick 42s linear infinite; }
.rl-marquee-track span {
    display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(36px, 5.5vw, 76px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
    /* Variable fonts expose overlapping contours under text-stroke, so the
       fill is painted OVER the stroke in the section's own colour: only the
       outer edge of each glyph survives, no internal seams. */
    color: var(--n-25); -webkit-text-stroke: 3px rgb(15 30 51 / .34); paint-order: stroke fill;
}
@supports not (paint-order: stroke fill) {
    .rl-marquee-track span { -webkit-text-stroke: 0; color: rgb(15 30 51 / .08); }
}
.rl-marquee-track i { width: 30px; height: 30px; flex: none; background: url(../images/logos/logo-mark-64.png) center / contain no-repeat; opacity: .85; }
@keyframes rl-tick { to { transform: translateX(-50%); } }

/* ---------- Research areas — full-bleed image tiles on navy -------------- */
.rl-areas { position: relative; background: var(--n-970); color: var(--paper); padding: clamp(64px, 8vw, 110px) 0; overflow: hidden; }
.rl-areas::before { content: ''; position: absolute; inset: 0; background: url(../images/hero/ocean-tall.webp) center / cover; opacity: .14; }
.rl-areas::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--n-970) 0%, rgb(6 12 22 / .5) 40%, var(--n-970) 100%); }
.rl-areas .rl-wrap { position: relative; z-index: 1; }
.rl-stats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.rl-stats li {
    display: flex; flex-direction: column; gap: 6px; min-width: 128px;
    padding: 14px 18px; border-radius: 16px;
    background: rgb(var(--rgb-white) / .05); border: 1px solid var(--rl-glass-border);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rl-stats b { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1; color: var(--n-0); }
.rl-stats span { font-family: var(--font-wide); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rl-ice); }
.rl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rl-tile {
    position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
    aspect-ratio: 3 / 4; min-height: 380px;
    border-radius: var(--rl-radius); border: 1px solid var(--rl-glass-border);
    background: var(--n-925);
    transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.rl-tile::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--tile-img) center / cover no-repeat; transition: transform .7s var(--ease-out); }
.rl-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(6 12 22 / .12) 0%, rgb(6 12 22 / .1) 35%, rgb(6 12 22 / .88) 74%, var(--n-970) 100%); }
.rl-tile:hover { transform: translateY(-6px); border-color: rgb(124 196 245 / .6); box-shadow: 0 30px 60px -30px rgb(124 196 245 / .35); }
.rl-tile:hover::before { transform: scale(1.06); }
.rl-tile-num { position: absolute; top: 18px; left: 20px; font-family: var(--font-wide); font-size: 10px; letter-spacing: .16em; font-weight: 700; color: rgb(var(--rgb-white) / .85); }
.rl-tile-cnt {
    position: absolute; top: 14px; right: 16px;
    padding: 6px 10px; border-radius: 999px;
    background: rgb(6 12 22 / .45); border: 1px solid var(--rl-glass-border);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--n-0);
}
.rl-tile-body { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.rl-tile-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--tile-color); box-shadow: 0 0 0 4px rgb(var(--rgb-white) / .12), 0 0 18px var(--tile-color); margin-bottom: 14px; }
.rl-tile h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.08; letter-spacing: -.02em; color: var(--n-0); margin: 0 0 8px; }
.rl-tile p { font-size: 12.5px; line-height: 1.55; color: rgb(var(--rgb-white) / .72); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rl-tile-arr { display: inline-flex; gap: 8px; font-family: var(--font-wide); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--rl-ice); transition: gap .2s; }
.rl-tile:hover .rl-tile-arr { gap: 14px; }
@media (max-width: 1024px) { .rl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .rl-tiles { grid-template-columns: 1fr; gap: 12px; }
    .rl-tile { aspect-ratio: 4 / 3; min-height: 260px; }
    .rl-stats li { min-width: 0; flex: 1; padding: 12px 14px; }
    .rl-stats b { font-size: 22px; }
}

/* ---------- Independent testing — ice tiles on white --------------------- */
.rl-tested { background: var(--n-0); padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.rl-tested .rl-eyebrow { justify-content: center; }
.rl-tested h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); margin: 14px auto 16px; max-width: 16ch; text-wrap: balance; }
.rl-tested .lead { max-width: 56ch; margin: 0 auto 40px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.rl-tested-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.rl-tested-item { padding: 26px; border-radius: var(--rl-radius); background: var(--n-25); border: 1px solid rgb(168 193 216 / .35); }
.rl-tested-item .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--n-925); color: var(--rl-ice); margin-bottom: 18px; }
.rl-tested-item .ico svg { width: 20px; height: 20px; }
.rl-tested-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--ink); margin: 0 0 6px; }
.rl-tested-item p { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }
.tested-coas-head { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 14px; }
.tested-coas-title { font-family: var(--font-wide); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--green-600); }
.tested-coas-all { font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tested-coas { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; text-align: left; }
.coa-chip { flex: 0 0 200px; padding: 16px; border-radius: 16px; background: var(--rl-card-bg); border: 1px solid var(--rl-card-border); color: var(--ink); }
.coa-chip-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.coa-chip-pct { font-family: var(--font-display); font-weight: 600; font-size: 32px; margin: 8px 0 2px; }
.coa-chip-cap { font-size: 11px; color: var(--ink-3); }
.coa-chip-foot { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 10px; }
.coa-chip-pass { color: var(--green-600); }
@media (max-width: 820px) { .rl-tested-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Reviews (renders only once verified reviews exist) ----------- */
.voices { background: var(--n-25); padding: clamp(56px, 7vw, 96px) 0; }
.voices-head { text-align: center; margin-bottom: 32px; }
.voices-head .rl-eyebrow { justify-content: center; }
.voices-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -.025em; margin: 14px 0 10px; color: var(--ink); }
.voices-sub { font-size: 15px; color: var(--ink-3); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rev-card { padding: 22px; border-radius: var(--rl-radius); background: var(--rl-card-bg); border: 1px solid var(--rl-card-border); }
.rev-card-stars { color: var(--green-500); letter-spacing: 2px; margin-bottom: 10px; }
.rev-card-stars .off { color: var(--n-200); }
.rev-card-q { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.rev-card-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); }
.rev-card-ver { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(124 196 245 / .18); color: var(--green-700); font-family: var(--font-wide); font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter — glass form over the ocean texture --------------- */
.rl-news { position: relative; overflow: hidden; background: var(--n-970) url(../images/hero/ocean-tall.webp) no-repeat center 40%; background-size: cover; color: var(--paper); padding: clamp(72px, 9vw, 130px) 0; text-align: center; }
.rl-news::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 21 38 / .88), rgb(11 21 38 / .74)); }
.rl-news-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.rl-news .rl-eyebrow { justify-content: center; color: var(--rl-ice); }
.rl-news h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5.5vw, 80px); line-height: .98; letter-spacing: -.03em; color: var(--n-0); margin: 16px 0 14px; }
.rl-news p { font-size: 15px; line-height: 1.6; color: rgb(var(--rgb-white) / .72); max-width: 44ch; margin: 0 auto 30px; }
.rl-news form {
    display: flex; gap: 8px; padding: 6px; max-width: 520px; margin: 0 auto;
    border-radius: 999px; background: rgb(var(--rgb-white) / .06); border: 1px solid var(--rl-glass-border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.rl-news input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 12px 18px; font: 400 16px var(--font-body); color: var(--n-0); }
.rl-news input::placeholder { color: rgb(var(--rgb-white) / .5); }
.rl-news form .btn { padding: 12px 22px; }
@media (max-width: 560px) {
    .rl-news form { flex-direction: column; border-radius: 22px; padding: 8px; }
    .rl-news form .btn { justify-content: center; }
}

/* Swirl behind featured-card photos */
.rl-card-img::after {
    content: ''; position: absolute; inset: 2% 8%; z-index: 0; pointer-events: none;
    background: url(../images/logos/logo-mark-512.png) center / contain no-repeat;
    opacity: 0; filter: saturate(1.3); transition: opacity .7s var(--ease-out);
}
.rl-card:hover .rl-card-img::after, .rl-card.is-hover .rl-card-img::after { opacity: .34; animation: rl-swirl 18s linear infinite; }
