/* Landing-only styles. Uses Bootstrap CSS variables to avoid introducing a separate palette. */

body.landing {
    /* Exact palette (as requested):
       dark: #374957
       blue: #0B92CE
       gradient: #48B1E0 -> #27C8B1
       white: #FFFFFF
    */
    --landing-dark: #374957;
    --landing-blue: #0B92CE;
    --landing-blue-light: #51AAED;
    --landing-white: #FFFFFF;
    --landing-gradient: linear-gradient(135deg, #48B1E0 0%, #27C8B1 100%);

    /* Tariff stripes */
    --landing-accent-green: #1DCEA4;
    --landing-accent-pink: #CE1DA8;

    /* Map to bootstrap vars used by markup */
    --bs-primary: var(--landing-blue);
    --bs-info: var(--landing-blue);

    background: var(--landing-dark);
    color: var(--landing-white);
    margin: 0;
}

/* Match desktop artboard gutters from Figma export (1920 wide, content starts ~x=374) */
.landing .container {
    max-width: 1200px;
}

.landing .navbar {
    --bs-navbar-padding-y: 0;
    padding-top: 18px;
    padding-bottom: 18px;
}

.landing .navbar .nav-link {
    font-weight: 500;
}

.landing .btn.btn-primary {
    background: var(--landing-gradient);
    border: 0;
}

.landing .landing-top-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 41px;
    min-height: 41px;
    padding: 0 1.25rem;
    border-radius: 5px;
    font-weight: 600;
    line-height: 1;
}

.landing .btn.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
}

.landing .landing-login {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.0);
    width: 45px;
    height: 41px;
    min-height: 41px;
    padding: 0;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing .landing-login svg {
    width: 18px;
    height: 18px;
}

/* SVG-based pixel-perfect landing */
body.landing.landing-svg {
    overflow-x: hidden;
}

.landing-svg-page {
    background: var(--landing-white);
}

.landing-svg-canvas {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.landing-svg-img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-svg-link {
    position: absolute;
    display: block;
    text-decoration: none;
    cursor: pointer;
    z-index: 2;
}

/* Coordinates are percentages relative to the original 1920x3535 SVG */
.landing-link-buy-top {
    left: 69.2188%;
    top: 0.55%;
    width: 9.2%;
    height: 1.7%;
}

.landing-link-login {
    left: 78.1771%;
    top: 0.55%;
    width: 3.6%;
    height: 1.7%;
}

.landing-link-buy-hero {
    left: 19.4792%;
    top: 11.3%;
    width: 8.6%;
    height: 2.1%;
}

.landing .landing-top {
    background-color: var(--landing-dark);
    color: var(--landing-white);
}

.landing .landing-top .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    padding: .5rem .75rem;
}

.landing .landing-top .nav-link:hover,
.landing .landing-top .nav-link:focus {
    color: #FFFFFF;
}

.landing .landing-hero {
    padding: 5.5rem 0 4.5rem;
}

.landing .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 84px;
    padding: 0 18px;
    border-radius: 5px;
    background: var(--landing-blue-light);
    color: var(--landing-dark);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
}

.landing .landing-hero-ill {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 3 / 2;
    background-image: url("../statics/hero-source.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    display: block;
}

@media (min-width: 992px) {
    .landing .landing-hero-ill {
        margin-left: auto;
    }
}

@media (max-width: 991.98px) {
    .landing .landing-hero-ill {
        max-width: 640px;
        background-size: contain;
        background-position: center;
    }
}

.landing .landing-h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.landing .landing-h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.landing .landing-lead {
    color: rgba(var(--bs-white-rgb), .8);
    margin: 0;
}

.landing .landing-muted {
    color: rgba(var(--bs-white-rgb), .85);
    margin: 0;
}

.landing .landing-list {
    margin: 0;
    padding-left: 1.2rem;
    color: rgba(var(--bs-white-rgb), .85);
}

.landing .landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: 600;
    height: 52px;
    min-height: 52px;
    padding: 0 1.5rem;
    line-height: 1;
}

.landing .btn.btn-outline-light.landing-cta {
    height: 50px;
    min-height: 50px;
}

/* Legacy Steps styles removed (replaced by .landing-steps / .steps-card). */

.landing .landing-section-primary {
    background: var(--landing-blue);
    color: var(--landing-white);
}

.landing .landing-section-primary .text-muted,
.landing .landing-section-primary .text-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
}

.landing .tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    color: var(--landing-dark);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: var(--bs-white);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 26px 18px 18px;
    min-height: 360px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;

    --tariff-stripe: var(--landing-dark);
}

.landing .tariff-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: var(--tariff-stripe);
}

.landing .tariff-card.border-success {
    --tariff-stripe: var(--landing-accent-green);
}

.landing .tariff-card.border-danger {
    --tariff-stripe: var(--landing-accent-pink);
}

.landing .tariff-card .tariff-head {
    padding: 6px 6px 12px;
    text-align: center;
    background: transparent;
}

.landing .tariff-card .tariff-head .fw-semibold {
    font-weight: 700 !important;
    font-size: 18px;
    color: var(--landing-dark);
}

.landing .tariff-card .tariff-head .small {
    font-size: 14px;
    color: rgba(55, 73, 87, 0.6);
}

.landing .tariff-card .tariff-body {
    flex: 1;
    padding: 10px 6px 14px;
    background: transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.landing .tariff-card .text-muted {
    color: rgba(55, 73, 87, 0.65) !important;
}

.landing .tariff-card .tariff-body .small {
    font-size: 14px;
}

.landing .tariff-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: .25rem;
    font-size: 34px;
    font-weight: 800;
    color: var(--landing-dark);
}

.landing .tariff-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 14px;
    height: 54px;
    padding: 0 1rem;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--landing-gradient);
    color: var(--landing-white);
}

.landing .tariff-buy:focus {
    box-shadow: none;
}

.landing .tariff-buy:hover,
.landing .tariff-buy:focus {
    background: var(--landing-gradient);
    color: var(--landing-white);
    filter: brightness(1.05);
}

.landing .tariff-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-width: 28px;
    padding: 0 .5rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

.landing .tariff-card .badge.text-bg-success,
.landing .tariff-card .badge.text-bg-danger {
    background: var(--landing-dark) !important;
    color: var(--landing-white) !important;
}

.landing .landing-section-dark {
    background-color: var(--landing-dark);
    color: var(--landing-white);
}

.landing #about {
    padding: 6.5rem 0;
}

.landing .why-lead {
    max-width: 720px;
}

.landing .why-card {
    padding: 2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 240px;
}

/* Steps */
.landing .landing-steps {
    padding: 5.5rem 0;
}

.landing .landing-steps .steps-lead {
    max-width: 44rem;
}

.landing .steps-card {
    background: var(--landing-white);
    border-radius: 22px;
    padding: 28px 26px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(55, 73, 87, 0.12);
}

.landing .steps-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--landing-gradient);
    color: var(--landing-white);
    margin-bottom: 16px;
}

.landing .steps-title {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--landing-dark);
    margin-bottom: 8px;
}

.landing .steps-desc {
    color: rgba(55, 73, 87, 0.78);
    font-size: 0.98rem;
    line-height: 1.55;
}

@media (max-width: 575.98px) {
    .landing .landing-steps {
        padding: 4.25rem 0;
    }

    .landing .steps-card {
        padding: 24px 20px;
        border-radius: 20px;
    }
}

.landing .why-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--landing-gradient);
    border: 0;
    color: var(--landing-white);
}

.landing .landing-why {
    padding: 6rem 0;
}

.landing .landing-section-info {
    background: var(--landing-blue-light);
    color: var(--landing-white);
}

.landing .step-card {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--landing-white);
}

.landing .step-card .small {
    color: rgba(var(--bs-white-rgb), .85);
}

.landing .step-line {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
}

.landing .step-dot {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(55, 73, 87, 0.55);
    display: grid;
    place-items: center;
}

/* Mobile adaptations */
@media (max-width: 991.98px) {
    .landing .landing-hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }

    .landing .landing-hero .landing-hero-copy {
        gap: .75rem;
    }

    .landing .landing-hero .landing-hero-actions {
        margin-top: auto;
        padding-top: .75rem;
    }

    .landing .landing-hero .landing-hero-ill {
        margin-top: 0;
    }

    .landing .landing-cta {
        width: 100%;
    }

    .landing .navbar-nav {
        padding-top: .75rem;
        gap: .5rem;
    }
}

@media (min-width: 992px) {
    .landing #tariffs .row {
        --bs-gutter-x: 3.5rem;
    }
}

@media (max-width: 575.98px) {
    .landing .tariff-card {
        border-radius: 18px;
        min-height: 300px;
    }

    .landing .landing-hero-ill {
        width: 100%;
    }
}

.landing .footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.landing .footer-links a:hover,
.landing .footer-links a:focus {
    color: #FFFFFF;
    text-decoration: underline;
}

.landing .footer-docs .footer-links {
    justify-items: end;
}

/* Auth */
.landing .auth-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px;
}

.landing .landing-auth {
    padding: 0;
}

.landing .landing-auth .auth-shell {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
}

.landing .auth-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.landing .auth-card .form-control {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--landing-white);
    border-radius: 12px;
    padding: 12px 14px;
}

.landing .auth-card .form-control::placeholder {
    color: rgba(var(--bs-white-rgb), .55);
}

.landing .auth-card .form-label {
    color: rgba(var(--bs-white-rgb), .85);
    font-weight: 600;
}

.landing .auth-help {
    color: rgba(var(--bs-white-rgb), .7);
}

@media (max-width: 575.98px) {
    .landing .landing-auth .auth-shell {
        min-height: calc(100vh - 96px);
        padding-top: 1.75rem;
        padding-bottom: 2.25rem;
    }

    .landing .auth-card {
        padding: 18px;
        border-radius: 16px;
    }
}

/* Receipt / Checkout */
.landing .receipt-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.landing .receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.landing .receipt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing .receipt-brand {
    color: var(--landing-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.landing .receipt-title {
    color: rgba(var(--bs-white-rgb), .5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.landing .receipt-divider {
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(255, 255, 255, 0.15) 0,
        rgba(255, 255, 255, 0.15) 6px,
        transparent 6px,
        transparent 12px
    );
    margin: 0 24px;
}

.landing .receipt-body {
    padding: 18px 24px;
}

.landing .receipt-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
}

.landing .receipt-label {
    color: rgba(var(--bs-white-rgb), .6);
    font-size: 0.92rem;
}

.landing .receipt-value {
    color: var(--landing-white);
    font-size: 0.92rem;
}

.landing .receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--landing-white);
}

.landing .receipt-total-price {
    font-size: 1.35rem;
    color: var(--landing-accent-green);
}

.landing .receipt-form {
    padding: 18px 24px 8px;
}

.landing .receipt-form .form-control {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--landing-white);
    border-radius: 12px;
    padding: 12px 14px;
}

.landing .receipt-form .form-control::placeholder {
    color: rgba(var(--bs-white-rgb), .55);
}

.landing .receipt-form .form-label {
    color: rgba(var(--bs-white-rgb), .85);
    font-weight: 600;
}

.landing .receipt-footer {
    padding: 14px 24px 20px;
    color: rgba(var(--bs-white-rgb), .45);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .landing .receipt-card {
        border-radius: 16px;
    }
    .landing .receipt-header {
        padding: 16px 18px;
    }
    .landing .receipt-divider {
        margin: 0 18px;
    }
    .landing .receipt-body,
    .landing .receipt-form {
        padding-left: 18px;
        padding-right: 18px;
    }
    .landing .receipt-total {
        padding-left: 18px;
        padding-right: 18px;
    }
    .landing .receipt-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}
