/**
 * HydraPnL marketing landing — full-width sections, Hydra green accent, calm whitespace.
 */

html {
    scroll-behavior: smooth;
}

.hydra-nav-marketing {
    background: rgba(255, 255, 255, 0.96) !important;
}

.hydra-marketing {
    font-family: "Inter", system-ui, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

.hydra-marketing .hydra-section {
    padding-top: clamp(3.5rem, 8vw, 6rem);
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hydra-marketing .hydra-section--tight {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hydra-marketing .hydra-h1 {
    font-size: clamp(2.15rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #0f172a;
}

.hydra-marketing .hydra-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.65;
    color: #64748b;
    max-width: 38rem;
}

.hydra-marketing .hydra-section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.hydra-marketing .hydra-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.hydra-marketing .hydra-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #46c6a2;
}

/* ----- Hero ----- */
.hydra-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%);
    border-bottom: 1px solid #eef2f7;
}

.hydra-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hydra-hero-grid {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 1.25rem;
    }
}

.hydra-chaos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 991.98px) {
    .hydra-chaos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 420px;
        margin: 0 auto;
    }
}

.hydra-chaos-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    font-size: 0.68rem;
    color: #64748b;
    transform: rotate(-2deg);
}

.hydra-chaos--right .hydra-chaos-card {
    transform: rotate(2deg);
}

.hydra-chaos-card:nth-child(2) {
    transform: rotate(1.5deg) translateX(6px);
}

.hydra-chaos-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    margin-top: 6px;
}

.hydra-chaos-bars span {
    width: 6px;
    border-radius: 2px;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.hydra-chaos-bars span:nth-child(3) {
    height: 100%;
}

.hydra-chaos-bars span:nth-child(2) {
    height: 65%;
}

.hydra-chaos-bars span:nth-child(1) {
    height: 40%;
}

.hydra-chaos-bars span:nth-child(4) {
    height: 55%;
}

.hydra-chaos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 6px;
}

.hydra-chaos-grid i {
    display: block;
    height: 8px;
    background: #e2e8f0;
    border-radius: 2px;
}

/*
 * Phone mockup — scoped under .hydra-marketing so rules always beat Bootstrap
 * and survive ordering with the global header <style> block.
 * Matches Glance (glance.php): green hero card, white page, white metric tiles, Quick Read.
 */
.hydra-marketing .hydra-phone-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hydra-marketing .hydra-phone {
    width: min(280px, 88vw);
    border-radius: 36px;
    padding: 10px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow:
        0 32px 64px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hydra-marketing .hydra-phone-screen {
    border-radius: 28px;
    overflow: hidden;
    background-color: #ffffff;
    background-image: none;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.hydra-marketing .hydra-phone-status {
    background: #ffffff;
    padding: 8px 0 2px;
    flex-shrink: 0;
}

.hydra-marketing .hydra-phone-notch {
    height: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hydra-marketing .hydra-phone-notch::before {
    content: "";
    width: 72px;
    height: 22px;
    background: #0f172a;
    border-radius: 0 0 16px 16px;
    opacity: 0.85;
}

.hydra-marketing .hydra-phone-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: #ffffff;
    padding: 0 0.55rem 0.55rem;
}

.hydra-marketing .hydra-phone-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0.15rem 8px;
    flex-shrink: 0;
}

.hydra-marketing .hydra-phone-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.hydra-marketing .hydra-phone-logo {
    height: 26px;
    width: auto;
    max-width: 118px;
    max-height: 26px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.hydra-marketing .hydra-phone-menu {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e7ecef;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.hydra-marketing .hydra-phone-menu span {
    display: block;
    width: 14px;
    height: 2px;
    background: #475569;
    border-radius: 1px;
}

.hydra-marketing .hydra-phone-hero {
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, #69d5b6 0%, #46c6a2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 0.65rem 0.75rem 0.7rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 10px 28px rgba(70, 198, 162, 0.28);
    overflow: hidden;
}

.hydra-marketing .hydra-phone-hero::after {
    content: "";
    position: absolute;
    width: 88px;
    height: 88px;
    right: -28px;
    top: -28px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.hydra-marketing .hydra-phone-hero-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.28rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hydra-marketing .hydra-phone-hero-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    opacity: 0.92;
    margin-bottom: 0.25rem;
    padding-right: 3.25rem;
    position: relative;
    z-index: 1;
    color: #fff;
}

.hydra-marketing .hydra-phone-hero-value {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
    color: #fff;
}

.hydra-marketing .hydra-phone-change {
    display: inline-flex;
    align-items: center;
    margin-top: 0.4rem;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    position: relative;
    z-index: 1;
}

.hydra-marketing .hydra-phone-hero-sub {
    margin: 0.4rem 0 0;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.hydra-marketing .hydra-phone-hero-updated {
    margin: 0.35rem 0 0;
    font-size: 0.55rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    position: relative;
    z-index: 1;
}

.hydra-marketing .hydra-phone-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    -webkit-overflow-scrolling: touch;
}

.hydra-marketing .hydra-phone-mgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.hydra-marketing .hydra-phone-metric {
    background-color: #ffffff;
    border: 1px solid #e7ecef;
    border-radius: 12px;
    padding: 0.45rem 0.45rem 0.4rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.hydra-marketing .hydra-phone-mlabel {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.hydra-marketing .hydra-phone-mvalue {
    font-size: 0.95rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hydra-marketing .hydra-phone-mnote {
    margin-top: 0.2rem;
    font-size: 0.52rem;
    color: #94a3b8;
    line-height: 1.2;
}

.hydra-marketing .hydra-phone-metric--profit {
    grid-column: 1;
}

.hydra-marketing .hydra-phone-insight {
    background: #edf9f5;
    border: 1px solid #cfeee4;
    border-radius: 12px;
    padding: 0.45rem 0.5rem;
    flex-shrink: 0;
}

.hydra-marketing .hydra-phone-insight-label {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #46c6a2;
    margin-bottom: 0.25rem;
}

.hydra-marketing .hydra-phone-insight-text {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 600;
    color: #14532d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Soft section backgrounds */
.hydra-bg-soft {
    background: #f8fafc;
}

.hydra-bg-mint {
    background: linear-gradient(180deg, #f2fbf8 0%, #ffffff 100%);
}

.hydra-bg-white {
    background: #fff;
}

/* Cards */
.hydra-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 20px;
    padding: 1.5rem 1.35rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.hydra-icon-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #69d5b6;
    display: inline-block;
    margin-top: 0.35rem;
}

.hydra-check {
    color: #059669;
    font-weight: 800;
}

.hydra-cross {
    color: #cbd5e1;
    font-weight: 800;
}

/* Pricing */
.hydra-price-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid #e8edf2;
    padding: 1.75rem 1.5rem;
    background: #fff;
    height: 100%;
}

.hydra-price-card--pop {
    border-color: #bfead9;
    box-shadow: 0 20px 50px rgba(70, 198, 162, 0.15);
}

.hydra-badge-pop {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #69d5b6;
    color: #052e2b;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

/* CTA band */
.hydra-cta-final {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.hydra-cta-final .hydra-sub {
    color: rgba(255, 255, 255, 0.75);
    max-width: 32rem;
}

.hydra-btn-light {
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
}

.hydra-btn-light:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.hydra-btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    background: transparent;
}

.hydra-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Insight mini cards */
.hydra-insight {
    border-left: 3px solid #69d5b6;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    color: #475569;
}

/* Before / after */
.hydra-ba-col {
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
}

.hydra-ba-before {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.hydra-ba-after {
    background: #f2fbf8;
    border: 1px solid #d8f2e9;
}
