﻿/* ===== Light, modern base (plays nicely with MudBlazor) ===== */
:root {
    --wave-primary: var(--mud-palette-primary, #1FB788);
    --wave-secondary: var(--mud-palette-secondary, #2563EB);
    /* opacity tuning */
    --wave-back: rgba(31,183,136,.07);
    --wave-mid: rgba(31,183,136,.09);
    --wave-front: rgba(37, 99,235,.08);
}

@supports (color-mix(in srgb, red 50%, white)) {
    :root {
        --wave-back: color-mix(in srgb, var(--wave-primary) 7%, transparent);
        --wave-mid: color-mix(in srgb, var(--wave-primary) 9%, transparent);
        --wave-front: color-mix(in srgb, var(--wave-secondary) 8%, transparent);
    }
}

/* White header with dark text */
.hc-appbar {
    background-color: #fff !important;
    color: rgba(0,0,0,.87) !important;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    /* Make children inherit the dark text */
    .hc-appbar .mud-typography,
    .hc-appbar .mud-button,
    .hc-appbar .mud-icon,
    .hc-appbar .mud-chip {
        color: inherit;
    }

/* Logo/brand spacing */
.hc-logo {
    height: 28px;
    width: auto;
    margin-right: .75rem;
}

.hc-brand {
    letter-spacing: .3px;
}

/* DESKTOP vs MOBILE */
.nav-desktop {
    display: flex;
    gap: .125rem;
}

.nav-mobile {
    display: none;
}

@media (max-width: 1023.98px) {
    .nav-desktop {
        display: none !important;
    }

    .nav-mobile {
        display: flex !important;
    }
}

/* Sign in pill */
.hc-signin {
    border-radius: 9999px;
    padding-inline: 14px;
    font-weight: 500;
    color: #fff !important;
}

/* --- Bottom underline on hover (no “top line” bug) --- */
.hc-nav::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px; /* <- keeps the line at the bottom */
    height: 2px;
    background: #1FB788; /* brand green */
    opacity: 0;
    transform: scaleX(.4);
    transform-origin: left bottom;
    transition: transform .18s ease, opacity .18s ease;
}

.hc-nav:hover::after,
.hc-nav:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Optional subtle hover background (won’t override the underline) */
.hc-nav:hover {
    background: rgba(0,0,0,.04);
}

/* Optional: Profile button style (if you switch from chip) */
.hc-profile {
    border-radius: 9999px;
}


#bg-waves {
    position: fixed !important;
    inset: 0;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: clamp(250px, 36vh, 400px); /* responsive height */
    z-index: 0; /* app content sits above */
    pointer-events: none;
    overflow: hidden;
}

    /* Soft fade into page above waves */
    #bg-waves::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -40px;
        /* background: linear-gradient(to bottom, transparent, rgba(0,0,0,.03));*/
        /* if you want theme-tinted fade instead, use the line below and remove the one above */
         background: linear-gradient(to bottom, color-mix(in srgb, var(--wave-secondary) 8%, transparent), transparent); 
    }

    #bg-waves .wave {
        position: absolute;
        left: -10%;
        right: -10%; /* extra width so edges never show */
        bottom: -1px; /* sit on the bottom edge */
        width: 120%;
        transform-origin: bottom center; /* bob from the baseline */
        mix-blend-mode: soft-light; /* gentle blend */
        filter: blur(0.2px);
        z-index: 0; /* overlap is driven by order/z */
    }

        #bg-waves .wave path {
            transition: fill .25s ease;
        }

    #bg-waves .wave--back {
        z-index: 1;
        fill: var(--wave-back);
        animation: waveBob1 8s ease-in-out infinite alternate;
        transform: translateX(-3%) translateY(0) scaleX(1.06);
    }

    #bg-waves .wave--mid {
        z-index: 2;
        fill: var(--wave-mid);
        animation: waveBob2 12s ease-in-out infinite alternate;
        transform: translateX(-1%) translateY(0) scaleX(1.08);
    }

    #bg-waves .wave--front {
        z-index: 3;
        fill: var(--wave-front);
        animation: waveBob3 16s ease-in-out infinite alternate;
        transform: translateX(0%) translateY(0) scaleX(1.10);
    }

/* Subtle bobbing while staying anchored at bottom */
@keyframes waveBob1 {
    from {
        transform: translateX(-3%) translateY(0) scaleX(1.2);
    }

    to {
        transform: translateX(-5%) translateY(-8px) scaleX(1.065);
    }
}

@keyframes waveBob2 {
    from {
        transform: translateX(-1%) translateY(0) scaleX(1.08);
    }

    to {
        transform: translateX(-3%) translateY(-10px) scaleX(1.085);
    }
}

@keyframes waveBob3 {
    from {
        transform: translateX(0%) translateY(0) scaleX(1.10);
    }

    to {
        transform: translateX(-2%) translateY(-12px) scaleX(1.11);
    }
}

/* Ensure content/hero sits above */
.hc-hero {
    position: relative;
    z-index: 1;
    /*background: transparent;*/
}


* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    padding-top: 0;
}

.layout-col {
    padding-top: 60px;
}

body {
    margin: 0;
    background: var(--hc-bg);
    color: var(--hc-text);
    font-family: Roboto, system-ui, Segoe UI, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optional neutral surface helper (if you need non-Mud containers) */
.hc-surface {
    background: var(--hc-surface);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    padding: 16px;
}

/* Home hero canvas container */
.hc-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 340px;
    background: radial-gradient(900px 240px at 20% -10%, rgba(31,183,136,.16), transparent 60%), linear-gradient(180deg, rgba(37,99,235,.08), transparent);
}

.hc-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hc-hero__content {
    position: relative;
    z-index: 1;
    padding: 56px 24px;
    text-align: center;
}

/* Make icons predictable */
.mud-icon-root {
    line-height: 1;
}

/* Slightly round Mud components (matches LayoutProperties.DefaultBorderRadius) */
:root {
    --mud-radius: 12px;
}

/* Make app bar compact and keep icon tidy */
.mud-appbar {
    line-height: 1;
}

.mud-icon-root {
    line-height: 1;
}

/* Slightly tighter vertical rhythm on forms */
.mud-grid > .mud-item {
    margin-bottom: .25rem;
}
.mud-stepper.mud-stepper__horizontal .mud-stepper-nav {
    margin-bottom: 20px;
    background: var(--hc-surface);
}

    /*.mud-stepper.mud-stepper__horizontal .mud-stepper-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
    background: var(--hc-surface);
}*/

.mud-paper {
    border: 1px solid var(--hcCards-brand,--mud-palette-appbar-background);
    background-color: white !important;
    z-index: 1;
    position: relative;
}

.z {
    z-index: 1;
    position: relative;
}

.details {
    background: var(--mud-palette-primary);
    color: white;
    border-radius: 6px;
    padding-left: 20px !important;
    margin-bottom: 20px !important;
    /*padding: 4px;*/
}

.sub-details {
    background: var(--mud-palette-primary);
    color: white;
    border-radius: 5px;
    padding-left: 20px !important;
    /*padding: 5px;*/
}

.mb-2, .my-2 {
    margin-bottom: 20px !important;
}
/*.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 10px
}*/

.padd {
    padding-left: 24px !important;
    padding-top: 12px !important;
}



.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol.mud-input-error {
    padding-bottom: 5px !important;
}

.mud-input-control.mud-input-control-boolean-input {
    /* padding-left: 24px;*/
    /*  padding-top: 24px;*/
}

.preauth-surface {
    position: relative;
    z-index: 1; /* waves are z-index:0 */
    background: var(--mud-palette-surface, #fff) !important; /* solid */
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border: 1px solid var(--mud-palette-black, #1FB788);
}

.pa-title__primary {
    color: var(--mud-palette-primary, #1FB788); /* theme primary */
    font-weight: 700;
}

.pa-title__rest {
    color: var(--mud-palette-text-primary, #000); /* readable in light/dark */
    font-weight: 700;
}

.logo {
    padding: 5px;
    background-color: white;
    border-radius:25px;
    width: 32px;
    height: 35px
}


.aud-frame {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 14px;
    padding: 12px;
    overflow: hidden; /* clips inner table corners */
}

/* compact table spacing */
.aud-table .mud-table-head,
.aud-table .mud-table-body,
.aud-table .mud-table-cell {
    padding-top: 4px;
    padding-bottom: 4px;
    width: 100%;
    border-collapse: collapse
}

.aud-freq {
    width: 72px;
    white-space: nowrap;
}

.aud-nr {
    text-align: center;
    width: 46px;
}

.aud-input {
    width: 96px;
}

    /* optional: reduce label float space on outlined inputs */
    .aud-input .mud-input-label {
        font-size: .75rem;
    }

/* Side-by-side stretch */
    .aud-wrap .mud-item {
        align-self: stretch;
        border: 1px solid black;
    }

    .aud-table thead th {
        position: sticky;
        top: 0;
        background: var(--mud-palette-surface);
    }


/* Table: tighter rows & padding */
    .aud-table .mud-table-root table {
        table-layout: fixed;
        border-color: var(--mud-palette-primary, #1FB788) !important;
    }

.aud-table th, .aud-table td {
    padding: 4px 8px !important;
    border-bottom: 1px solid var(--mud-palette-divider);
    justify-items: center;
}

.aud-table .aud-freq {
    width: 64px;
    white-space: nowrap;
    border: 1px solid lightgray;
}

.aud-table .aud-nr {
    width: 40px;
    text-align: center;
    border: 1px solid lightgray;
}

.aud-table .aud-col {
    width: 120px;
    border: 1px solid lightgray;
}

/* Inputs narrower so columns don’t balloon */
.aud-input .mud-input-root {
    max-width: 110px;
}

/* Chart stretches to match table height */
.aud-chart {
    height: 100%;
}

    .aud-chart .chart-holder {
        width: 100%;
        height: 100%;
    }

/* On small screens, stack and let chart take natural height */
@media (max-width: 960px) {
    .aud-chart .chart-holder {
        height: 320px;
    }
}



.hl-row {
    display: flex;
}

.hl-col {
    flex: 1 1 220px;
    min-width: 220px;
}


.declaration-switch {
    background-color: lightgray;
    border-radius: 5px;
}

.decl-card {
    background: #e5e7eb; /* light grey */
    border-radius: 10px; /* <— visible rounding */
    margin-left:25px;
    margin-top:20px;
    padding: 20px 20px;
    overflow: hidden;  
}

/* Signature */
.sig-wrap {
    display: flex;
    justify-content: center;
}

.sig-pad {
    width: 100%;
    max-width: 572px; /* keeps it visually centered on big screens */
    border-radius: 12px;
   /* --sig-pad-height: 170px;*/
}

.sig-upload {
    min-height: 260px;
    border: 2px dashed var(--mud-palette-primary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    text-align: center;
    background: #ffffff;
}

.sig-preview-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px dashed rgba(31, 183, 136, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.sig-pad--draw .mud-signature-pad-container {
    width: 100%;
    height: auto !important;
    aspect-ratio: 8 / 3;
}

.sig-pad--draw .mud-signature-pad {
    width: 100%;
    height: auto !important;
    aspect-ratio: 8 / 3;
}

.sig-pad--draw canvas {
    width: 100% !important;
    height: 100% !important;
}

.sig-upload-placeholder {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sig-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sig-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sig-upload-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--mud-palette-primary);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sig-upload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(31, 183, 136, 0.25);
}

/* Drag & Drop */
.dropzone {
    position: relative;
    height: 220px;
    border: 2px dashed var(--mud-palette-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    transition: border-color .2s, background-color .2s;
}

    .dropzone.dragover {
        border-color: var(--mud-palette-success);
        background-color: rgba(0,0,0,.03);
    }

/* This targets the internal <input type="file"> via InputClass */
.file-upload-input {
    position: absolute;
    inset: 0; /* top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;
    opacity: 0; /* invisible but clickable/droppable */
    z-index: 10; /* sits above the visuals */
    cursor: pointer;
}


/* -----------------------------Home Page--------------------------- */
/* ---- Home Page Styling (Index.razor) ----------------------------------- */
.hc-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 10% -10%, var(--mud-palette-primary, #3b82f6) 0%, transparent 50%), radial-gradient(1000px 500px at 110% 10%, var(--mud-palette-secondary, #9333ea) 0%, transparent 50%), linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,0));
    opacity: .15;
    pointer-events: none;
}

.hc-hero__content {
    position: relative;
    padding: 60px 0;
}

.hc-hero__stats {
    margin-top: 28px;
    align-items: flex-start;
    gap: clamp(16px, 2vw, 32px);
}

.hc-stat__inline-icon {
    font-size: 24px; /* icon size */
    color: var(--mud-palette-primary, #1FB788);
    transform: translateY(1px); /* baseline alignment tweak */
}

.hc-stat {
    min-width: 130px;
}

.hc-stat__headline {
    line-height: 1;
}
/* keeps row compact */

.hc-stat__num {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hc-stat__label {
    opacity: .75;
    color: var(--mud-palette-text-secondary);
}

/* Mock panel on the right */
.hc-mock {
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 18px;
    background: color-mix(in oklab, var(--mud-palette-background, #fff) 90%, #000 10%);
    min-height: 260px;
}

.hc-chart-skeleton {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
    height: 160px;
    align-items: end;
    margin-top: 12px;
}

    .hc-chart-skeleton .bar {
        height: 40%;
        background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
        border-radius: 8px;
        animation: hcPulse 2s ease-in-out infinite;
    }

        .hc-chart-skeleton .bar:nth-child(2) {
            height: 60%
        }

        .hc-chart-skeleton .bar:nth-child(3) {
            height: 30%
        }

        .hc-chart-skeleton .bar:nth-child(4) {
            height: 70%
        }

        .hc-chart-skeleton .bar:nth-child(5) {
            height: 50%
        }

        .hc-chart-skeleton .bar:nth-child(6) {
            height: 40%
        }

@keyframes hcPulse {
    0%, 100% {
        opacity: .6
    }

    50% {
        opacity: 1
    }
}

/* Quick action cards */
.hc-card {
    position: relative;
    border-radius: 16px;
    padding: 20px;
    transition: transform .18s ease, box-shadow .18s ease;
    z-index: 1; /* waves are z-index:0 */
    background: var(--mud-palette-surface, #fff) !important; /* solid */
    /*border: 1px solid var(--mud-palette-primary, #1FB788)*/
    /*    background: color-mix(in oklab, var(--mud-palette-background, #fff) 90%, #000 10%);*/
}

    .hc-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--mud-elevation-4);
    }

/* Steps */
.hc-step {
    position: relative;
    padding: 16px;
    border-radius: 12px;
    z-index: 1 !important; /* waves are z-index:0 */
    background: var(--mud-palette-surface, #fff) !important; /* solid */
    /*border: 1px solid var(--mud-palette-primary, #1FB788);*/
   /* background: #F8F8F8 !important;*/
    height: 100%;
}

/* Trust strip */
.hc-trust {
    position: relative;
    border-radius: 14px;
    padding: 12px 16px;
    z-index: 1; /* waves are z-index:0 */
    background: var(--mud-palette-surface, #fff) !important;  /*solid */
   /* background: #F8F8F8 !important;*/
    border: 1px solid var(--mud-palette-primary, #1FB788);
}

/* Utilities */
.opacity-80 {
    opacity: .9
}

.mt-8 {
    margin-top: 2rem
}

.mt-10 {
    margin-top: 3rem
}

.mb-8 {
    margin-bottom: 2rem
}

/* Dark mode tuning (Mud has dark palette; just boost contrast) */
:root.dark .hc-chart-skeleton .bar {
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
}

:root.dark .hc-mock {
    background: color-mix(in oklab, var(--mud-palette-surface, #121212) 92%, #fff 8%);
}

/* anchors for clusters */
.hc-geo {
    position: absolute;
    pointer-events: none;
}

.hc-geo--tlcompact {
    top: -12px;
    left: -12px;
    width: 240px;
    height: 190px;
}

.hc-geo--blecho {
    left: -10px;
    bottom: -10px;
    width: 170px;
    height: 130px;
}

/* paints (slightly sharper than “fluid”, still soft) */
.geo-primary {
    fill: var(--mud-palette-primary, #1FB788);
    opacity: .14;
}

.geo-accent {
    fill: var(--mud-palette-secondary, #1FB788);
    opacity: .12;
}

.geo-muted {
    fill: #0b1b2a;
    opacity: .07;
}

.geo-ring {
    fill: none;
    stroke: var(--mud-palette-primary, #1FB788);
    stroke-width: 2;
    opacity: .18;
}

/* optional gentle drift (keeps it premium without feeling “wavy”) */
@media (prefers-reduced-motion: no-preference) {
    .hc-geo--tlcompact {
        animation: geoDrift1 16s ease-in-out infinite alternate;
    }

    .hc-geo--blecho {
        animation: geoDrift2 18s ease-in-out infinite alternate;
    }

    @keyframes geoDrift1 {
        from {
            transform: translateY(0)
        }

        to {
            transform: translateY(6px)
        }
    }

    @keyframes geoDrift2 {
        from {
            transform: translateY(0)
        }

        to {
            transform: translateY(-5px)
        }
    }
}

/* responsive: lighten / hide echo on smaller screens */
@media (max-width: 900px) {
    .hc-geo--tlcompact {
        width: 190px;
        height: 150px;
        opacity: .85;
    }

    .hc-geo--blecho {
        display: none;
    }
}

/* --- HERO --- */
/*.hc-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: radial-gradient(900px 240px at 20% -10%, rgba(31,183,136,.16), transparent 60%), linear-gradient(180deg, rgba(37,99,235,.08), transparent);
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--mud-palette-primary, #1FB788)
}*/

.hc-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(31,183,136,.25);
    box-shadow: 0 6px 30px rgba(31,183,136,.08);
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--mud-palette-primary, #1FB788)
}



.hc-hero__grid {
    align-items: center;
}

.hc-hero__title {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hc-hero__subtitle {
    color: var(--mud-palette-text-secondary);
}

/* subtle ambient halo using brand primary tint */
/*.hc-hero__halo {
    pointer-events: none;
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 80%;
    background: radial-gradient(closest-side, rgba(31,183,136,0.12), transparent 60%);
    filter: blur(8px);
}*/

/* right visual */
.hc-hero__media {
    position: relative;
    min-height: 280px;
    display: grid;
    place-items: center;
}

.hc-hero__blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    /*background: radial-gradient(circle at 30% 30%, rgba(31,183,136,0.16), rgba(31,183,136,0.06) 60%, transparent 70%);*/
    background: rgba(31,183,136,0.16);
    transform: translate(12px, 12px);
}

.hc-hero__phone {
    position: relative;
    width: 260px;
    height: 520px;
    border-radius: 28px;
    background: linear-gradient(180deg, #F8FAFC, #EEF7F4);
    overflow: hidden;
}

.hc-hero__screen {
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
}

/* tiny animated “spark” to suggest speed/flow */
.hc-spark, .hc-spark.delay {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(31,183,136,0.14), transparent 70%);
    animation: float 6s ease-in-out infinite;
}

    .hc-spark.delay {
        animation-delay: -3s;
        transform: translate(40px, -10px);
    }

@keyframes float {
    0%,100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(-10px,-6px) scale(1.06);
    }
}

.hc-cta {
    padding-inline: 20px;
}

/* chips row spacing */
.hc-bullets .mud-chip {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Scope to your pre-auth page container */
/*.preauth-surface .mud-stepper-extended .mud-step-extended__content,
.preauth-surface .mud-stepper-extended .mud-step-extended__body {
    background: #fff !important;
    border-radius: 14px;
    padding: 16px;*/ /* optional if you want breathing room */
/*}*/



/*------------------------------------------------------------------*/

.hc-phone-demo {
    width: 100%;
    height: 100%;
    display: flex;
}

.hc-phone-carousel {
    width: 100%;
    height: 100%;
}

.hc-phone-pane {
    padding: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hc-mini-chart {
    height: 540px;
}

.w-100 {
    width: 100%;
}

/* Prefer reduced motion? Pause the carousel auto-cycle visually */
@media (prefers-reduced-motion: reduce) {
    .hc-phone-carousel .mud-carousel-slider {
        transition: none !important;
    }
}

/* Phone viewport */
.hc-hero__phone {
    position: relative;
    width: 280px;
    height: 560px;
    border-radius: 36px;
    overflow: hidden;
}

.hc-hero__screen {
    position: absolute;
    inset: 16px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}

/* Carousel sizing inside the “screen” */
.hc-phone-carousel {
    height: 100%;
}

.hc-phone-pane {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Mini chart height */
.hc-mini-chart {
    height: 340px;
}

.hc-phone-carousel {
    height: 100%;
}

.hc-phone-pane {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* FIXED overlay behind everything */
#eq-overlay {
    position: fixed;
    inset: 0;
    z-index: 0; /* background layer */
    pointer-events: none; /* never blocks clicks */
    overflow: hidden;
    display: grid;
    place-items: center;
    /* your dark gradient background */
    background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--mud-palette-surface) 85%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-background) 90%, #000 10%), #0a0f18 70%);
}

/* Foreground app layer */
.app-shell {
    position: relative;
    z-index: 1; /* above the overlay */
}

/* Center the bars in the viewport */
.eq-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 48px 16px; /* breathing room */
}

/* Animation */
@keyframes eqY {
    0%,100% {
        transform: scaleY(.2);
    }

    50% {
        transform: scaleY(1);
    }
}

/* Equalizer bars */
.eqbar {
    width: var(--w, 8px); /* fallback if Tailwind not present */
    height: var(--h, 64px);
    border-radius: 9999px;
    transform-origin: bottom center;
    animation: eqY 1.1s ease-in-out infinite;
    animation-delay: var(--i, 0s);
    will-change: transform;
    background: linear-gradient(to top, color-mix(in srgb, var(--mud-palette-primary) 25%, transparent), color-mix(in srgb, var(--mud-palette-info) 85%, white 5%));
    box-shadow: 0 0 10px color-mix(in srgb, var(--mud-palette-info) 35%, transparent), 0 0 22px color-mix(in srgb, var(--mud-palette-secondary) 18%, transparent);
    opacity: .95;
    backface-visibility: hidden;
}

/* Desync speeds so it feels organic */
.eq-row .eqbar:nth-child(odd) {
    animation-duration: 1.0s;
}

.eq-row .eqbar:nth-child(3n) {
    animation-duration: 1.25s;
}

.eq-row .eqbar:nth-child(5n) {
    animation-duration: 1.4s;
    animation-direction: reverse;
}

/* (Temporarily disable this while testing if animations still don't run)
@media (prefers-reduced-motion: reduce){
  .eqbar{ animation: none; transform: scaleY(.6); }
}
*/



/* Footer */

.hc-footer-hero {
    background-color: #1E1E1E;
    background-repeat: no-repeat;
    /* mobile default */
    background-position: 168px 186px; /* x y */
    color: #fff;
    padding-top: 2.5rem; /* py-10 */
   /* padding-bottom: 2.5rem;*/
}


.hc-footer {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* The TERMS block gets a decorative background "burst" behind it */
.hc-burst-wrap {
    position: relative;
    z-index: 1;
}

    /* Default: small/mobile – subtle or hidden to avoid overlap */
    .hc-burst-wrap::after {
        content: "";
        position: absolute;
        pointer-events: none;
        z-index: -1; /* sits behind the TERMS text */
        right: -140px; /* offset to the right edge */
        top: -80px; /* lift upwards a bit */
        width: 420px;
        height: 420px;
        background: url('/hearconnect-Icon-800.png') no-repeat;
        background-size: contain;
        opacity: 1;
    }

/* Tablet (≈ your "tablet:" breakpoint) – use the larger shape + position */
@media (min-width: 1024px) {
    .hc-burst-wrap::after {
        right: -300px; /* push further right */
        top: -120px;
        width: 800px;
        height: 800px;
        background-image: url('/hearconnect-Icon-800.png');
    }
}

/* Desktop wide (if you want an extra nudge like the screenshot) */
@media (min-width: 1440px) {
    .hc-burst-wrap::after {
        right: -300px;
        top: -160px;
    }
}

/* Flex layout (mobile first) */
.hc-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 0rem 2.5rem;
}

.hc-flex-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* Typography + links */
.hc-footer h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 0 0 .25rem 0;
}

.hc-footer p {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    text-align: center;
    margin: 0;
}

.hc-footer a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    white-space: nowrap;
}

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

.hc-inline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.hc-sep {
    margin: 0 .5rem;
    opacity: .6;
}

.hc-link-title a {
    color: inherit;
}

/* Bottom bar */
.hc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: .75rem 0 1rem;
    text-align: center;
}

/* Desktop turns into 4 columns spaced */
@media (min-width: 1024px) {
    .hc-flex-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hc-flex-item {
        flex: 1;
        margin: 0 10px;
    }
}

/* Icon tint */
.hc-footer svg {
    fill: currentColor;
    display: inline-block;
}


/* Sticky-bottom layout */
.layout-col {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F8F9FA
}

.content-grow {
    flex: 1 0 auto;
}





/* ===== Brand-aware abstract background ===== */
:root {
    --brand: var(--mud-palette-primary, #1FB788);
    --brand-2: var(--mud-palette-secondary, #2563EB);
    /* keep your existing gradient values if you like */
    --hero-grad-from: color-mix(in srgb, var(--brand) 10%, #ffffff);
    --hero-grad-to: color-mix(in srgb, var(--brand-2) 10%, #ffffff);
    /* stripe tones (you can nudge these percentages) */
    --stripe-1: color-mix(in srgb, var(--brand) 26%, transparent);
    --stripe-2: color-mix(in srgb, var(--brand-2) 24%, transparent);
    --stripe-3: color-mix(in srgb, var(--brand) 18%, transparent);
    --stripe-4: color-mix(in srgb, var(--brand-2) 16%, transparent);
    --dot-color: color-mix(in srgb, var(--brand) 22%, transparent);
}

#bg-abstract {
    position: fixed !important;
    inset: 0;

    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

    /* soft wash + hairlines */
    #bg-abstract .bg-grad {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--hero-grad-from), var(--hero-grad-to));
    }

        #bg-abstract .bg-grad::after {
            content: "";
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(135deg, transparent 0 32px, rgba(255,255,255,.04) 32px 33px);
            mix-blend-mode: overlay;
            opacity: .6;
        }

    /* dot field on right half */
    #bg-abstract .dotfield {
        position: absolute;
        inset: 0 0 0 42%;
        background: radial-gradient(circle, var(--dot-color) 1px, transparent 1.5px) 0 0 / 14px 14px;
        mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 70%, transparent 100%);
        opacity: .45;
    }

    /* Rounded-end diagonal bars (straight sides) */
    #bg-abstract .ray {
        position: absolute;
        width: 82vw; /* long to span across */
        overflow: visible; /* avoid stroke clipping */
        filter: drop-shadow(0 18px 28px rgba(0,0,0,.06));
        pointer-events: none;
        z-index: 0;
    }

        #bg-abstract .ray line {
            fill: none;
            stroke-linecap: round; /* <<< rounded ENDS only */
            stroke-linejoin: miter;
          /*  vector-effect: non-scaling-stroke;*/
        }

    /* Directions */
    #bg-abstract .diag-a {
        right: -16vw;
        transform: rotate(-22deg);
    }
    /* NW → SE */
    #bg-abstract .diag-b {
        left: -18vw;
        transform: rotate( 22deg);
    }
    /* SE → NW */

    /* Positions (tweak to taste) */
    #bg-abstract .a1 {
        top: -10vw;
    }

    #bg-abstract .a2 {
        top: 3vw;
    }

    #bg-abstract .a3 {
        top: 15vw;
    }

    #bg-abstract .a4 {
        top: 25vw;
    }

    #bg-abstract .b1 {
        bottom: -10vw;
    }

    #bg-abstract .b2 {
        bottom: 2vw;
    }

    #bg-abstract .b3 {
        bottom: 12vw;
    }

    #bg-abstract .b4 {
        bottom: 21vw;
    }

    /* Colors + thickness (varied sizes) */
    #bg-abstract .a1 line {
        stroke: var(--stripe-1);
        stroke-width: clamp(44px, 7vw, 160px);
    }

    #bg-abstract .a2 line {
        stroke: var(--stripe-2);
        stroke-width: clamp(36px, 6vw, 130px);
    }

    #bg-abstract .a3 line {
        stroke: var(--stripe-3);
        stroke-width: clamp(28px, 5vw, 100px);
    }

    #bg-abstract .a4 line {
        stroke: var(--stripe-4);
        stroke-width: clamp(22px, 4vw, 80px);
    }

    #bg-abstract .b1 line {
        stroke: var(--stripe-2);
        stroke-width: clamp(40px, 6.6vw, 140px);
    }

    #bg-abstract .b2 line {
        stroke: var(--stripe-1);
        stroke-width: clamp(32px, 5.6vw, 115px);
    }

    #bg-abstract .b3 line {
        stroke: var(--stripe-4);
        stroke-width: clamp(26px, 4.6vw, 90px);
    }

    #bg-abstract .b4 line {
        stroke: var(--stripe-3);
        stroke-width: clamp(20px, 3.6vw, 70px);
    }

/* Subtle parallax drift */
@media (prefers-reduced-motion: no-preference) {
    #bg-abstract .a1 {
        animation: driftA1 20s ease-in-out infinite alternate;
    }

    #bg-abstract .a2 {
        animation: driftA2 22s ease-in-out infinite alternate;
    }

    #bg-abstract .a3 {
        animation: driftA3 24s ease-in-out infinite alternate;
    }

    #bg-abstract .a4 {
        animation: driftA4 26s ease-in-out infinite alternate;
    }

    #bg-abstract .b1 {
        animation: driftB1 21s ease-in-out infinite alternate;
    }

    #bg-abstract .b2 {
        animation: driftB2 23s ease-in-out infinite alternate;
    }

    #bg-abstract .b3 {
        animation: driftB3 25s ease-in-out infinite alternate;
    }

    #bg-abstract .b4 {
        animation: driftB4 27s ease-in-out infinite alternate;
    }

    @keyframes driftA1 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(-8px) rotate(-22deg)
        }
    }

    @keyframes driftA2 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(-12px) rotate(-22deg)
        }
    }

    @keyframes driftA3 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(-14px) rotate(-22deg)
        }
    }

    @keyframes driftA4 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(-16px) rotate(-22deg)
        }
    }

    @keyframes driftB1 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(8px) rotate(-22deg)
        }
    }

    @keyframes driftB2 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(12px) rotate(-22deg)
        }
    }

    @keyframes driftB3 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(14px) rotate(-22deg)
        }
    }

    @keyframes driftB4 {
        from {
            transform: translateY(0) rotate(-22deg)
        }

        to {
            transform: translateY(16px) rotate(-22deg)
        }
    }
}

/* Responsive */
@media (max-width: 900px) {
    #bg-abstract .ray {
        width: 94vw;
    }

    #bg-abstract .diag-a {
        right: -28vw;
    }

    #bg-abstract .diag-b {
        left: -30vw;
    }
}

.mud-signature-pad-container {
    border: 2px solid var(--mud-palette-primary);
}

.mud-grid-item {
    padding-top: 16px !important;
}


#preauth-root {
    scroll-margin-top: 72px;
}


/* ===== HearConnect cards — fully namespaced ===== */
/* ===== HearConnect cards — fully namespaced ===== */
.hcCards-root {
    --hcCards-gap: 24px;
    --hcCards-surface: #fff;
    --hcCards-text: #1f2937;
    --hcCards-titleColor: #0f172a;
    --hcCards-descColor: #334155;
    /* bigger logos + a bit taller card */
    --hcCards-logoMax: 200px;
    --hcCards-cardH: 260px;
    --hcCards-topH: 72%;
    display: grid;
    grid-template-columns: repeat(3,minmax(240px,1fr));
    gap: var(--hcCards-gap);
    max-width: 1080px;
    margin-inline: auto;
    padding: 24px;
}

.hcCards-card,
.hcCards-card * {
    box-sizing: border-box;
}

.hcCards-card {
    position: relative;
    display: block;
    inline-size: 100%;
    block-size: var(--hcCards-cardH);
    border-radius: 18px;
    overflow: clip;
    -webkit-mask-image: -webkit-radial-gradient(white,black);
    text-decoration: none;
    /*background: var(--hcCards-surface);*/
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .hcCards-card:hover,
    .hcCards-card:focus-visible {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,.12);
        outline: none;
    }

.hcCards-face {
    position: absolute;
    inset-inline: 0;
    transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
    will-change: transform, opacity;
}

/* Top (logo) */
.hcCards-top {
    inset-block-start: 0;
    block-size: var(--hcCards-topH);
    background: var(--hcCards-brand,#0ea5e9);
    display: grid;
    place-items: center;
    /* staged a touch low (like your reel) */
    /*transform: translateY(40px);*/
    z-index: 2;
}

.hcCards-card:hover .hcCards-top,
.hcCards-card:focus-visible .hcCards-top {
    transform: translateY(0);
}

.hcCards-logo {
    max-inline-size: var(--hcCards-logoMax);
    height: auto;
    transform: translateY(6px);
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.hcCards-card:hover .hcCards-logo,
.hcCards-card:focus-visible .hcCards-logo {
    transform: translateY(-6px);
}

/* Optional “logo plate” to keep logos readable on dark/brand panels */
.hcCards-plate {
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Bottom (details) — fully hidden until hover */
.hcCards-bottom {
    inset-block-end: 0;
    block-size: 48%;
    background: var(--hcCards-surface);
    color: var(--hcCards-text);
    padding: 28px 18px 12px;
    transform: translateY(110%); /* push completely out of view */
    opacity: 0; /* hide text until hover */
    box-shadow: 0 -8px 20px rgba(0,0,0,.06);
    z-index: 1;
    pointer-events: none; /* avoid accidental selection pre-hover */
}

.hcCards-card:hover .hcCards-bottom,
.hcCards-card:focus-visible .hcCards-bottom {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.hcCards-title {
    margin: 0 0 6px;
    font: 600 18px/1.25 system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    color: var(--hcCards-titleColor);
}

.hcCards-desc {
    margin: 0;
    font: 400 14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    color: var(--hcCards-descColor);
}

/* Motion & responsiveness */
@media (prefers-reduced-motion:reduce) {
    .hcCards-card, .hcCards-face, .hcCards-logo {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width:900px) {
    .hcCards-root {
        grid-template-columns: 1fr;
    }
}

/* Optional dark mode */
@media (prefers-color-scheme:dark) {
    .hcCards-root {
        --hcCards-surface: #0f172a;
        --hcCards-text: #e5e7eb;
        --hcCards-titleColor: #f8fafc;
        --hcCards-descColor: #cbd5e1;
    }

    .hcCards-card {
        box-shadow: 0 6px 18px rgba(0,0,0,.6);
    }

    .hcCards-bottom {
        box-shadow: 0 -8px 20px rgba(0,0,0,.5);
    }
}

/* Ensure MudBlazor popovers are taken out of flow (prevent page shift when opening selects/menus) */
/* Take popover wrappers out of flow and override inline max-height so only the list scrolls */
/*.mud-popover,
.mud-select-popover,
.mud-popover-root,
.mud-popover-surface,
.mud-popover-wrap,
.mud-select-popover[style],
.mud-popover[style] {
    position: fixed !important;
    overflow: visible !important;*/ /* prevent outer wrapper from scrolling */
    /*max-height: none !important;*/ /* override inline max-height set by MudBlazor */
    /*height: auto !important;
    z-index: 2000 !important;
}*/

    /* Ensure the internal list is the single scrollable area */
  /*  .mud-select-popover .mud-list,
    .mud-popover .mud-list,
    .mud-list,
    .mud-popover-root .mud-list {
        max-height: 340px !important;  tune as needed 
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }*/

.mud-popover-provider {
   /* overflow: visible !important;*/
    /* prevent outer wrapper from scrolling */
    max-height: none !important;
    height: 0px !important;
    z-index: 2000 !important;
}

.overflow-y-auto {
    overflow-y: hidden !important;
}

.hc-list-avatar {
    background-color: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ===== AppBar layout (center links + profile right) ===== */
html, body {
    overflow-x: hidden; /* prevents the “white space” / horizontal scroll on wide hero effects */
}

.layout-col {
    overflow-x: clip;
}

.hc-appbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.hc-appbar-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.hc-appbar-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.hc-appbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hc-nav {
    position: relative; /* required for the ::after underline */
}

/* Final responsive overflow/header fixes */
html, body, #app {
    max-width: 100%;
    overflow-x: hidden !important;
}

.layout-col,
.content-grow,
main {
    max-width: 100%;
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.mud-layout,
.mud-main-content,
.mud-drawer-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 1023.98px) {
    .hc-appbar,
    .hc-appbar .mud-toolbar-appbar {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden;
    }

    .hc-appbar .mud-toolbar-appbar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hc-appbar .mud-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .hc-appbar-inner {
        padding-inline: 8px !important;
        gap: 6px;
        min-width: 0;
        justify-content: space-between;
    }

    .hc-appbar-inner > .flex-grow-1 {
        display: none !important;
    }

    .hc-logo {
        max-width: min(44vw, 190px);
        width: auto;
        margin-right: 0;
    }

    .hc-appbar .hc-signin,
    .hc-appbar .hc-profile,
    .hc-appbar .hc-auth-awaiting {
        display: none !important;
    }

    .mud-main-content,
    .mud-layout,
    .mud-drawer-content,
    .mud-container {
        max-width: 100% !important;
        overflow-x: hidden;
    }
}
