html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, p, ul {
    margin-top: 0;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}




.home-wrap {
    width: min(calc(100% - 48px), 1200px);
    margin: 0 auto;
}

.home-section {
    padding: 88px 0;
}

.home-section-kicker,
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #213f7d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-eyebrow-rule,
.home-section-kicker::before {
    content: "";
    width: 52px;
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    box-shadow: none;
}

.home-btn:hover {
    transform: translateY(-1px);
}

.home-btn:focus,
.home-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.home-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0354f7 0%, #213f7d 100%);
    box-shadow: none;
}

@media (max-width: 760px) {
    .home-wrap {
        width: min(calc(100% - 32px), 1200px);
    }

    .home-section {
        padding: 68px 0;
    }

    .home-btn {
        width: 100%;
    }
}

/* ========================================================
   Wallet Card Preview — shared across CardEdit, CardSuccess,
   and CardCheckout components.
   ======================================================== */

.wallet-preview {
    position: relative;
    overflow: hidden;
    background-color: var(--card-primary, #ffffff);
    border-radius: 24px;
    border: 1px solid #e6e8ef;
    padding: 2.75rem 2.5rem;
    color: var(--card-secondary, #000000);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.wallet-background-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.42;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.wallet-background-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 18, 0.2), rgba(12, 10, 18, 0.58));
}

.wallet-preview > :not(.wallet-background-art) {
    position: relative;
    z-index: 1;
}

.wallet-template-chrome {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.wallet-template-band {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 52px;
    background: var(--template-accent, #8b95a7);
    opacity: 0.16;
}

.wallet-template-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--template-accent, #8b95a7);
    filter: blur(0);
    opacity: 0.13;
}

.wallet-template-orb--a {
    width: 180px;
    height: 180px;
    right: -38px;
    top: 68px;
}

.wallet-template-orb--b {
    width: 120px;
    height: 120px;
    left: -46px;
    bottom: 82px;
}

.wallet-template-cutout {
    display: none;
}

.wallet-preview--creative .wallet-template-band {
    display: none;
}

.wallet-preview--creative .wallet-template-orb--a {
    display: none;
}

.wallet-preview--creative .wallet-template-orb--b {
    display: none;
}

.wallet-preview--membership .wallet-template-band {
    display: none;
}

.wallet-preview--membership .wallet-template-orb--a,
.wallet-preview--membership .wallet-template-orb--b {
    display: none;
}

.wallet-preview--universal-basic .wallet-template-band {
    background: linear-gradient(90deg, rgba(139, 149, 167, 0.14), rgba(139, 149, 167, 0));
}

.wallet-preview--universal-basic .wallet-template-band,
.wallet-preview--universal-basic .wallet-template-orb,
.wallet-preview--universal-basic .wallet-template-cutout {
    display: none;
}

.wallet-preview--creative .wallet-background-art {
    opacity: 1;
    inset: -10%;
    filter: blur(10px);
    transform: scale(1.08);
}

.wallet-preview--creative .wallet-background-art::after {
    display: none;
}

.wallet-preview--creative {
    background-color: var(--card-primary, #ffffff);
}

.wallet-preview--creative .wallet-template-chrome {
    display: none;
}

.wallet-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 1.75rem;
}

.wallet-logo {
    width: 100px;
    height: 100px;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.wallet-logo.wallet-logo-rect {
    width: 320px;
    height: 100px;
}

.wallet-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    padding: 0.2rem;
}

.wallet-logo-placeholder {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--card-secondary, #000000);
}

.wallet-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.wallet-identity {
    flex: 1;
    margin-top:40px
}

.wallet-main--membership {
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.wallet-identity--membership {
    margin-top: 0;
}

.wallet-main--creative {
    margin-bottom: 1rem;
}

.wallet-identity--creative {
    margin-top: 0;
}

.wallet-title {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--card-secondary, #000000);
}

.wallet-name {
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 0.35rem;
}

.wallet-company {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--card-secondary, #000000);
    margin-top: 0.35rem;
}

.wallet-avatar {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    background: #f2f4f8;
    border: 1px solid #e6e8ef;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-avatar--round {
    border-radius: 50%;
}

.wallet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-avatar-placeholder {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--card-secondary, #000000);
}

.wallet-avatar--membership {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.wallet-hero-strip {
    width: 100%;
    height: 124px;
    margin-bottom: 1.25rem;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.wallet-hero-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "phone email"
        "website website";
    gap: 1.35rem 2.25rem;
    margin-top: 2rem;
}

.wallet-details--membership {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.75rem;
}

.wallet-details--membership .wallet-detail {
    grid-area: auto;
}

.wallet-details--creative {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "phone"
        "website";
    margin-top: 1.1rem;
}

.wallet-detail {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.wallet-detail-label {
    font-size: 1.05rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--card-secondary, #000000);
}

.wallet-detail-value {
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--card-secondary, #000000);
    word-break: break-word;
}

.wallet-detail-phone .wallet-detail-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-detail-email {
    align-items: flex-end;
    text-align: right;
    justify-self: end;
    width: max-content;
    max-width: 100%;
}

.wallet-detail-email .wallet-detail-label {
    align-self: flex-start;
    text-align: left;
}

.wallet-detail-email .wallet-detail-value {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.wallet-detail-full {
    grid-column: 1 / -1;
}

.wallet-detail-phone {
    grid-area: phone;
}

.wallet-detail-email {
    grid-area: email;
}

.wallet-detail-website {
    grid-area: website;
}

.wallet-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.wallet-social-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(33, 63, 125, 0.08);
    color: var(--card-secondary, #000000);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wallet-qr {
    margin-top: 2.75rem;
    text-align: center;
}

.membership-hero-uploader {
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem;
}

.wallet-qr-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 0.9rem;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e6e8ef;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-qr-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wallet-qr-caption {
    font-size: 0.95rem;
    color: var(--card-secondary, #000000);
}

.wallet-qr-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    min-height: 40px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(23, 32, 51, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: #172033;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wallet-qr-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.wallet-qr-download:focus,
.wallet-qr-download:focus-visible {
    outline: 2px solid rgba(3, 84, 247, 0.35);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .wallet-preview {
        padding: 2rem 1.5rem;
        transform: scale(0.8);
        transform-origin: top center;
    }

    .wallet-identity {
        margin-top: 24px;
    }

    .wallet-name {
        font-size: 1.7rem;
    }

    .wallet-avatar {
        width: 130px;
        height: 130px;
    }

    .wallet-detail-value {
        font-size: 1.1rem;
    }

    .wallet-details {
        margin-top: 1.5rem;
    }

    .wallet-qr {
        margin-top: 2rem;
    }

    .wallet-qr-image {
        width: 120px;
        height: 120px;
    }
}


.disclaimer-notice {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background-color: var(--bs-light-bg-subtle, #f8f9fa);
    border-left: 6px solid #0066cc;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.disclaimer-notice__icon {
    color: var(--bs-primary);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.disclaimer-notice__text {
    margin: 0;
}

/* ==========================================
   App Home Page
   ========================================== */

.app-home-wrap {
    width: min(calc(100% - 48px), 1200px);
    margin: 0 auto;
}

.app-home-section {
    padding: 80px 0;
}

.app-home-section-alt {
    background: #f6f8fb;
}

.app-home-section-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.app-home-kicker,
.app-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #213f7d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-home-kicker-light {
    color: #c7d8ff;
}

.app-home-eyebrow-rule,
.app-home-kicker::before {
    content: "";
    width: 52px;
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

.app-home-section-heading h2,
.app-home-why-copy h2,
.app-home-cta-copy h2 {
    margin: 0 0 16px;
    color: #172033;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.app-home-section-heading p,
.app-home-why-copy p,
.app-home-path-card p,
.app-home-step-card p,
.app-home-mini-panel span,
.app-home-cta-copy p,
.app-home-list li {
    color: #4c5870;
    font-size: 1.02rem;
    line-height: 1.65;
}

.app-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

    .app-home-btn:hover {
        transform: translateY(-1px);
    }

.app-home-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0354f7 0%, #213f7d 100%);
}

.app-home-btn-secondary {
    color: #213f7d;
    background: #ffffff;
    border: 1px solid #dbe3ef;
}

.app-home-btn-full {
    width: min(300px, 100%);
}

.app-home-btn-standard {
    border-radius: 10px;
}

/* ==========================================
   Hero
   ========================================== */

.app-home-hero {
    padding: 64px 0 80px;
    background: radial-gradient(circle at top right, rgba(3, 84, 247, 0.10), transparent 24%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.app-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 56px;
    align-items: center;
}

.app-home-hero-copy h1 {
    margin: 0 0 24px;
    max-width: 680px;
    color: #172033;
    font-size: clamp(2.8rem, 4.8vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.app-home-lead {
    max-width: 640px;
    margin-bottom: 24px;
    color: #4c5870;
    font-size: 1.18rem;
    line-height: 1.65;
}

.app-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.app-home-note {
    max-width: 620px;
    margin: 0;
    color: #4c5870;
    font-size: 0.96rem;
}

.app-home-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-home-device-frame {
    margin: 0;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
    border: 1px solid rgba(219, 227, 239, 0.9);
}

    .app-home-device-frame img {
        display: block;
        width: 100%;
        height: auto;
    }

/* ==========================================
   Path Cards
   ========================================== */

.app-home-path-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.app-home-path-card {
    padding: 28px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #ffffff;
}

.app-home-path-card-featured {
    border-color: rgba(3, 84, 247, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.app-home-path-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(3, 84, 247, 0.10);
    color: #0354f7;
    font-size: 0.85rem;
    font-weight: 700;
}

.app-home-path-card h3 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.app-home-path-card p {
    margin-bottom: 24px;
}

/* ==========================================
   Steps
   ========================================== */

.app-home-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.app-home-step-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 24px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
}

.app-home-step-number {
    position: absolute;
    top: 12px;
    left: 20px;
    z-index: 0;
    color: rgba(3, 84, 247, 0.14);
    font-size: clamp(5.5rem, 9vw, 8.5rem);
    line-height: 0.82;
    font-weight: 800;
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
}

.app-home-step-content {
    position: relative;
    z-index: 1;
    padding-top: 56px;
}

.app-home-step-card h3 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================
   Why Section
   ========================================== */

.app-home-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.app-home-list {
    list-style: none;
    padding-left: 0;
    margin: 24px 0 0;
}

    .app-home-list li {
        position: relative;
        padding-left: 18px;
        margin-bottom: 10px;
    }

        .app-home-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 11px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #0354f7;
        }

.app-home-why-panel {
    display: grid;
    gap: 16px;
}

.app-home-mini-panel {
    padding: 20px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
}

    .app-home-mini-panel strong {
        display: block;
        margin-bottom: 6px;
        color: #172033;
    }

/* ==========================================
   CTA Band
   ========================================== */

.app-home-cta-band {
    background: linear-gradient(135deg, #213f7d 0%, #102548 100%);
    padding: 72px 0;
}

.app-home-cta-band-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.app-home-cta-copy h2,
.app-home-cta-copy p {
    color: #ffffff;
}

.app-home-cta-actions {
    display: flex;
    justify-content: flex-start;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1080px) {
    .app-home-hero-grid,
    .app-home-path-grid,
    .app-home-why-grid,
    .app-home-cta-band-inner {
        grid-template-columns: 1fr;
    }

    .app-home-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-home-step-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .app-home-wrap {
        width: min(calc(100% - 32px), 1200px);
    }

    .app-home-section {
        padding: 64px 0;
    }

    .app-home-hero {
        padding: 40px 0 56px;
    }

    .app-home-actions,
    .app-home-steps-grid {
        grid-template-columns: 1fr;
    }

    .app-home-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .app-home-btn,
    .app-home-btn-full {
        width: 100%;
    }

    .app-home-hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        line-height: 1;
    }

    .app-home-steps-grid {
        display: grid;
    }

    .app-home-step-card:first-child {
        grid-column: auto;
    }

    .app-home-step-card {
        min-height: auto;
    }

    .app-home-step-number {
        top: 10px;
        left: 16px;
        font-size: clamp(4.4rem, 24vw, 6.5rem);
    }

    .app-home-step-content {
        padding-top: 46px;
    }

    .app-home-step-card h3,
    .app-home-path-card h3 {
        font-size: 1.3rem;
    }
}
