/* WaterLab product page (loaded after product.css and product-kit.css). Accent colors come from .theme-waterlab in tokens.css. */

/* ---------- Hero: ripples on water ---------- */
.wl-hero { isolation: isolate; }
.wl-hero__ripples {
    position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
    color: var(--accent-bright); opacity: .22; pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
}
html[data-theme="dark"] .wl-hero__ripples { opacity: .3; }
[dir="rtl"] .wl-hero__ripples { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
    .wl-hero__ripples ellipse { transform-box: fill-box; transform-origin: center; animation: ripple 7s ease-in-out infinite; }
    .wl-hero__ripples ellipse:nth-child(even) { animation-delay: -3.5s; }
}
@keyframes ripple { 50% { transform: scale(1.03); } }

.wl-hero h1 { max-width: 15ch !important; }
body.rtl .wl-hero h1 { max-width: 16ch !important; }

.wl-visual { position: relative; padding-block-end: clamp(24px, 9%, 56px); }
.wl-visual__login {
    position: absolute; inset-inline-start: -5%; bottom: 0; width: 46%;
    border-radius: 12px; border-color: var(--line-strong);
    box-shadow: 0 30px 60px -20px rgba(3, 20, 30, .55), 0 0 0 5px var(--paper);
}
.wl-visual__main img { aspect-ratio: 1207 / 710; object-fit: cover; }
@media (max-width: 900px) { .wl-visual__login { inset-inline-start: 0; width: 42%; } }

/* certificate: always a white sheet of paper */
.cert { padding: clamp(18px, 3vw, 32px); color: var(--navy); background: #fdfdfb; border: 1px solid #d9dfee; border-radius: 6px; box-shadow: var(--shadow-lg); }
.cert__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-block-end: 16px; border-block-end: 2px solid var(--navy); }
.cert__head > div { display: grid; flex: 1; line-height: 1.3; }
.cert__head b { font-family: var(--font-display); font-size: 1.25rem; }
.cert__head small { color: #586280; }
.cert__seal { display: grid; place-items: center; width: 44px; height: 44px; color: #0e7490; border: 2px solid #0e7490; border-radius: 50%; }
.cert__seal svg { width: 22px; height: 22px; }
.cert .pill--ok { color: #087a57; background: #e3f6ee; }
.cert__meta { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 16px 0; }
.cert__meta dt { font-size: .78rem; color: #586280; }
.cert__meta dd { margin: 0; font-weight: 600; }
.cert__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cert__table th { padding: 8px 0; font-size: .78rem; text-align: start; color: #586280; border-block-end: 1px solid #d9dfee; }
.cert__table td { padding: 10px 0; border-block-end: 1px solid #eceff7; }
.cert__sign { display: flex; justify-content: space-between; gap: 24px; margin-block-start: 34px; font-size: .8rem; color: #586280; }
.cert__sign span { flex: 1; padding-block-start: 6px; border-block-start: 1px solid #98a3c4; }

/* ---------- Live limit checker ---------- */
.try { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.try header p { font-size: 1.1rem; color: var(--muted); }
.try__note { padding-inline-start: 14px; font-size: .92rem !important; border-inline-start: 3px solid var(--accent); }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; } }

.checker { display: grid; gap: 20px; padding: clamp(20px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.checker__controls { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.checker .field select { appearance: auto; }
.checker__input { position: relative; display: block; }
.checker__input input { padding-inline-end: 64px; }
.checker__input em { position: absolute; inset-block: 0; inset-inline-end: 14px; display: grid; align-items: center; font-style: normal; font-size: .85rem; color: var(--muted); pointer-events: none; }
.checker__range { width: 100%; margin: 4px 0 -6px; accent-color: var(--accent); }
.lbar__scale { display: flex; justify-content: space-between; margin-block-start: -8px; font-size: .78rem; color: var(--muted); }
.checker .lbar { margin-block-start: 12px; }
.checker__result { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-height: 52px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.checker__result p { flex: 1 1 220px; margin: 0; font-weight: 550; color: var(--ink-2); }
.checker__result .num { font-weight: 700; color: var(--ink); unicode-bidi: isolate; }
@media (max-width: 520px) { .checker__controls { grid-template-columns: 1fr; } }

/* ---------- Where every sample stands ---------- */
.status { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.status header p { font-size: 1.1rem; color: var(--muted); }
@media (max-width: 960px) { .status { grid-template-columns: 1fr; } }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stages li { position: relative; display: grid; align-content: start; gap: 2px; padding: 22px 20px; }
.stages li + li { border-inline-start: 1px solid var(--line); }
.stages li:not(:last-child)::after {
    content: ""; position: absolute; inset-inline-end: -7px; top: 50%; z-index: 1; width: 12px; height: 12px;
    background: var(--surface); border: solid var(--line); border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg);
}
[dir="rtl"] .stages li:not(:last-child)::after { transform: translateY(-50%) rotate(225deg); }
.stages b { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; color: var(--ink); }
.stages span { font-weight: 650; color: var(--ink-2); }
.stages small { font-size: .82rem; color: var(--muted); }
.stages .is-warn b { color: var(--warn); }
.stages .is-ok b { color: var(--success); }
.status__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.caption--start { text-align: start; margin-inline: 4px; }
@media (max-width: 640px) {
    .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stages li::after { display: none; }
    .stages li:nth-child(3) { border-inline-start: 0; }
    .stages li:nth-child(n+3) { border-block-start: 1px solid var(--line); }
}

