/* ══════════════════════════════════════════
   Water-Eject — Shared Design System
   Used by all pages across the site
   ══════════════════════════════════════════ */

:root {
    --bg: #f2f2f7;
    --text: #000000;
    --muted: rgba(60, 60, 67, 0.6);
    --primary: #0088ff;
    --primary-dark: #0066cc;
    --card: #ffffff;
    --card-inactive: #ffffff;
    --stroke: rgba(0, 0, 0, 0.04);
    --track: rgba(120, 120, 128, 0.2);
    --app-max-width: 402px;
    --shell-pad-inline: 16px;
    --shell-pad-top: 0px;
    --shell-pad-bottom: 24px;
    --hero-height: clamp(200px, 28vh, 260px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ── App Shell ── */

.app-shell {
    position: relative;
    width: min(100%, var(--app-max-width));
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--shell-pad-top);
    padding-bottom: var(--shell-pad-bottom);
    padding-left: max(var(--shell-pad-inline), env(safe-area-inset-left));
    padding-right: max(var(--shell-pad-inline), env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* ── Header ── */

.app-header {
    position: relative;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--app-max-width));
    margin: 0 auto;
    padding: 16px max(var(--shell-pad-inline), env(safe-area-inset-left));
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand-name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.06px;
    text-align: center;
    white-space: nowrap;
    font-stretch: 132%;
}

.menu-button {
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-content: center;
    gap: 5px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.menu-button:active {
    opacity: 0.5;
}

.menu-button span {
    width: 22px;
    height: 2.5px;
    background: #1c1c1e;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menu button X state */
.menu-button.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}
.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Navigation Menu ── */

.nav-menu {
    display: none;
    padding: 8px 0 16px;
}

.nav-menu.is-open {
    display: block;
}

.app-header.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    background: var(--card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px max(var(--shell-pad-inline), env(safe-area-inset-left));
    flex-wrap: wrap;
}

.app-header.menu-open .nav-menu {
    width: 100%;
    order: 3;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:active {
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-link.active .nav-link-icon {
    opacity: 1;
}

/* Nav overlay for closing */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 109;
    background: rgba(0, 0, 0, 0.2);
}

.nav-overlay.is-open {
    display: block;
}

/* ── Breadcrumbs ── */

.breadcrumb {
    padding: 0 0 8px;
    position: relative;
    z-index: 1;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 6px;
    font-size: 11px;
    opacity: 0.5;
}

.breadcrumb li:last-child {
    font-weight: 500;
    color: var(--text);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Main ── */

.app-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

/* ── Hero Panel (base) ── */

.hero-panel {
    position: relative;
    border-radius: 0;
    min-height: var(--hero-height);
    overflow: visible;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
}

/* ── Hero Panel Gradient ── */

.hero-panel::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(260px, 95vw, 402px);
    height: clamp(260px, 95vw, 402px);
    background: url('/images/water-eject-gradient-bg.svg') center / contain no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

/* ── Hero Ripples ── */

.phone-ripples {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

.phone-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    animation: phoneRipple 2.8s linear forwards;
}

@keyframes phoneRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    70% {
        opacity: 0.24;
    }
    100% {
        width: 480px;
        height: 480px;
        opacity: 0;
    }
}

/* ── Hero Image Stage (for sub-pages) ── */

.hero-image-stage {
    position: relative;
    z-index: 2;
    width: min(100%, 160px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    z-index: 4;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* ── Program Selector ── */

.program-selector {
    position: relative;
    z-index: 5;
}

.program-list-title {
    color: var(--muted);
    font-size: 17px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.43px;
    margin-bottom: 16px;
}

.program-list-title::before {
    content: '\2630\00a0';
    font-size: 15px;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: clamp(10px, 4vw, 16px);
    min-width: 0;
}

.card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: clamp(16px, 6vw, 24px);
    border: none;
    outline: 2px solid transparent;
    outline-offset: 4px;
    background: var(--card);
    padding: clamp(12px, 4vw, 16px);
    box-shadow: none;
    transition: transform 0.18s ease, outline-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.card:active {
    transform: scale(0.97);
}

.card.selected {
    outline-color: var(--primary);
    box-shadow: 0 4px 100px 0 rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.43px;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.bolt {
    position: static;
    width: clamp(11px, 3.2vw, 13px);
    height: auto;
    flex-shrink: 0;
    color: #000;
    display: block;
    margin-top: 2px;
}

.card.selected .bolt {
    color: var(--primary);
}

.card-state {
    display: none;
}

.card-button {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 28px;
    -webkit-tap-highlight-color: transparent;
}

/* ── CTA Button ── */

.primary-cta {
    position: relative;
    z-index: 5;
    width: 100%;
    border: 0;
    border-radius: 999px;
    min-height: 56px;
    padding: 16px 32px;
    background: var(--primary);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    margin-top: 8px;
}

.primary-cta:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* ── Trust Badge ── */

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 5;
}

.trust-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    max-width: 220px;
}

.trust-branch {
    width: 32px;
    height: auto;
    flex-shrink: 0;
}

/* ── Run Panel ── */

.run-panel {
    display: none;
    background: transparent;
    padding: 0;
}

.run-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.run-meta h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    letter-spacing: -0.45px;
    color: var(--text);
}

#cycleText {
    color: var(--muted);
    font-size: 17px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.43px;
    margin-top: 4px;
}

#progressPercent {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 41px;
    letter-spacing: 0.4px;
    color: var(--text);
    flex-shrink: 0;
}

.progress-container {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--track);
    overflow: hidden;
    margin: 16px 0 0;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.28s ease;
}

#phaseText {
    color: var(--muted);
    font-size: 17px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.43px;
    text-align: center;
    min-height: 22px;
    margin-top: 16px;
}

.notification-text {
    font-size: 15px;
    color: var(--muted);
    min-height: 22px;
    transition: opacity 0.25s ease;
    text-align: center;
    margin-top: 8px;
}

.notification-text.fade {
    opacity: 0;
}

/* ── Audio Settings Card ── */

.audio-card {
    position: relative;
    z-index: 5;
    margin-top: clamp(16px, 4vw, 24px);
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: clamp(16px, 6vw, 22px);
    padding: 20px 16px;
}

.audio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.audio-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    display: grid;
    place-items: center;
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.audio-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.audio-toggle[aria-expanded="true"] {
    color: var(--primary);
    border-color: rgba(0, 136, 255, 0.3);
}

.audio-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.audio-panel-inner {
    max-height: 400px;
    overflow: hidden;
    opacity: 1;
    padding-top: 16px;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding-top 0.3s ease;
}

.audio-panel.is-collapsed .audio-panel-inner {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

.slider-grid {
    display: grid;
    gap: 16px;
}

.slider-row {
    display: grid;
    gap: 10px;
}

.slider-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-head label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.slider-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.audio-card input[type="range"] {
    --fill: 16.67%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--fill), var(--track) var(--fill), var(--track) 100%);
    outline: none;
    cursor: pointer;
}

.audio-card input[type="range"].center-fill {
    --fill-start: 50%;
    --fill-end: 50%;
    background: linear-gradient(to right, var(--track) 0%, var(--track) var(--fill-start), var(--primary) var(--fill-start), var(--primary) var(--fill-end), var(--track) var(--fill-end), var(--track) 100%);
}

.audio-card input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 136, 255, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.audio-card input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.12);
}

.audio-card input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 136, 255, 0.35);
    cursor: pointer;
}

.audio-card input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--fill), var(--track) var(--fill), var(--track) 100%);
}

.audio-card input[type="range"].center-fill::-moz-range-track {
    background: linear-gradient(to right, var(--track) 0%, var(--track) var(--fill-start), var(--primary) var(--fill-start), var(--primary) var(--fill-end), var(--track) var(--fill-end), var(--track) 100%);
}

.balance-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    margin-top: -2px;
}

.volume-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.preset-chip {
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--card);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 9px 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.preset-chip:active {
    transform: scale(0.95);
}

.preset-chip[data-active="true"] {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 136, 255, 0.06);
}

.audio-hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Frequency Display (for test pages) ── */

.freq-display {
    text-align: center;
    padding: 16px 0 8px;
}

.freq-display-value {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary);
    line-height: 1;
}

.freq-display-unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 4px;
}

/* ── L/R Channel Indicator ── */

.channel-indicator {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 12px 0;
}

.channel-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.channel-side.active {
    opacity: 1;
}

.channel-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--track);
    transition: background 0.3s ease;
}

.channel-side.active .channel-dot {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(0, 136, 255, 0.4);
}

.channel-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* ── Hidden / Accessibility ── */

.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;
}

/* ── Running State ── */

body.is-running .program-selector {
    display: none;
}

body.is-running .run-panel {
    display: block;
}

/* ── Content Section ── */

.content-section {
    width: min(100%, var(--app-max-width));
    margin: 0 auto;
    padding: 40px 16px 0;
}

.content-section > h1 {
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 8px;
}

.content-intro {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    max-width: 380px;
    margin: 0 auto 24px;
}

.info-wrap {
    display: grid;
    gap: 16px;
}

.faq-heading {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-top: 8px;
    margin-bottom: -4px;
}

.info-card {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.info-card h2 {
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.43px;
    margin-bottom: 8px;
}

.info-card p,
.info-card li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.info-card ul,
.info-card ol {
    list-style-position: inside;
    margin-top: 8px;
}

.info-card li + li {
    margin-top: 4px;
}

.info-card strong {
    color: var(--text);
}

/* ── Brand Grid ── */

.brand-grid-wrapper {
    padding: 24px 0 8px;
}

.brand-grid-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 14px 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.brand-card img {
    height: 24px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ── Internal Links Section ── */

.related-pages {
    margin-top: 24px;
}

.related-pages h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.related-links {
    display: grid;
    gap: 8px;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.related-link:active {
    transform: scale(0.98);
}

.related-link-arrow {
    margin-left: auto;
    color: var(--muted);
    font-size: 18px;
}

/* ── App Download CTA ── */

.app-download-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.app-download-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.app-download-text {
    flex: 1;
}

.app-download-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.app-download-text span {
    font-size: 13px;
    color: var(--muted);
}

/* ── Content Break Components ── */

.info-card p + p {
    margin-top: 8px;
}

.info-card a {
    color: var(--primary);
}

.info-card .about-photo {
    display: block;
    width: 196px;
    height: 196px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 12px;
}

/* Comparison Table */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

.compare-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--muted);
    padding: 8px 6px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.compare-table td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--stroke);
    color: var(--muted);
    vertical-align: top;
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr.row-highlight td {
    background: rgba(0, 136, 255, 0.05);
}

/* Do / Don't Grid */
.do-dont-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.do-col,
.dont-col {
    border-radius: 12px;
    padding: 14px 12px;
}

.do-col {
    background: rgba(52, 199, 89, 0.07);
    border: 1px solid rgba(52, 199, 89, 0.18);
}

.dont-col {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.14);
}

.do-col .col-label,
.dont-col .col-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}

.do-col .col-label { color: #30a14e; }
.dont-col .col-label { color: #cf222e; }

.do-col ul,
.dont-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.do-col li,
.dont-col li {
    position: relative;
    padding-left: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.do-col li + li,
.dont-col li + li {
    margin-top: 6px;
}

.do-col li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #30a14e;
    font-weight: 700;
    font-size: 12px;
}

.dont-col li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #cf222e;
    font-weight: 700;
    font-size: 12px;
}

/* Callout Box */
.callout-box {
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.callout-box.tip {
    background: rgba(0, 136, 255, 0.06);
    border: 1px solid rgba(0, 136, 255, 0.12);
}

.callout-box.warning {
    background: rgba(255, 149, 0, 0.07);
    border: 1px solid rgba(255, 149, 0, 0.18);
}

.callout-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.5;
}

.callout-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.callout-text strong {
    color: var(--text);
}

/* Manufacturer Recommendation Cards */
.mfr-cards {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.mfr-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 14px;
}

.mfr-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.mfr-body {
    flex: 1;
    min-width: 0;
}

.mfr-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.mfr-advice {
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
}

.mfr-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.mfr-link:hover {
    text-decoration: underline;
}

/* Step Cards */
.step-cards {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 14px;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-body {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

/* ── Site Footer ── */

.site-footer {
    width: min(100%, var(--app-max-width));
    margin: 32px auto 0;
    padding: 24px 16px 32px;
    border-top: 1px solid var(--stroke);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-col .footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding-top: 16px;
    border-top: 1px solid var(--stroke);
}

.footer-bottom p {
    line-height: 1.6;
}

/* ── Page Heading (H1 above tool on sub-pages) ── */

.page-heading {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.4px;
    text-align: center;
    padding: 0 0 4px;
    color: var(--text);
}

/* ── Last Updated (E-E-A-T) ── */

.last-updated {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}

/* ── Footer About (E-E-A-T) ── */

.footer-about {
    margin-bottom: 20px;
}

/* ── Cookie Consent Banner ── */

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card);
    border-top: 1px solid var(--stroke);
    padding: 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.consent-banner p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
    max-width: 480px;
    margin: 0;
}

.consent-banner a {
    color: var(--primary);
}

.consent-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.consent-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.consent-accept {
    background: var(--primary);
    color: #fff;
}

.consent-decline {
    background: var(--bg);
    color: var(--muted);
}

.footer-about p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.footer-about a {
    color: var(--primary);
    text-decoration: none;
}

.footer-about a:hover {
    text-decoration: underline;
}

/* ── Guide Page ── */

.guide-toc {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.guide-toc h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.guide-toc ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.guide-toc li {
    margin-bottom: 6px;
}

.guide-toc a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.guide-toc a:hover {
    text-decoration: underline;
}

.guide-section {
    margin-bottom: 32px;
}

.guide-section h2 {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    scroll-margin-top: 80px;
}

.guide-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
}

.guide-section p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 12px;
}

.guide-section ul,
.guide-section ol {
    list-style-position: inside;
    margin: 8px 0 12px;
}

.guide-section li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 4px;
}

.guide-section strong {
    color: var(--text);
}

.guide-section a {
    color: var(--primary);
    text-decoration: none;
}

.guide-section a:hover {
    text-decoration: underline;
}

.guide-section .info-card + .info-card {
    margin-top: 16px;
}

/* ── Guide Page (content-only, no tool) ── */
.app-shell.guide-page {
    min-height: auto;
}

/* ── Responsive ── */

@media (max-width: 380px) {
    .primary-cta {
        font-size: 17px;
        min-height: 50px;
        padding: 14px 24px;
    }

    #progressPercent {
        font-size: 28px;
        line-height: 34px;
    }

    .run-meta h2 {
        font-size: 17px;
        line-height: 22px;
    }
}

@media (min-width: 900px) {
    .app-header {
        width: min(100%, 800px);
    }

    .app-shell {
        width: 430px;
        padding-top: 8px;
    }

    /* Guide page shell widens on desktop (content-section is inside it) */
    .app-shell.guide-page {
        width: min(100%, 800px);
    }

    /* Content & footer widen on desktop */
    .content-section {
        width: min(100%, 800px);
    }

    .site-footer {
        width: min(100%, 800px);
    }

    /* Let intro text breathe */
    .content-intro {
        max-width: 600px;
    }

    /* Info cards in 2-column grid on desktop */
    .info-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FAQ heading spans full width above 2-col grid */
    .faq-heading {
        grid-column: 1 / -1;
    }

    /* Single-card sections stay single column */
    .info-wrap:has(> .info-card:only-child) {
        grid-template-columns: 1fr;
    }

    /* Footer 3-column grid */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Brand logos: 5 columns */
    .brand-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Related links in 2 columns */
    .related-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Standalone PWA Mode ── */

@media (display-mode: standalone) {
    .app-shell {
        padding-top: env(safe-area-inset-top);
    }
}
