:root {
    --blue: #037eb2;
    --blue-dark: #015b86;
    --ink: #102033;
    --muted: #5e6d7d;
    --line: #dfeaf2;
    --soft: #f4f8fb;
    --white: #ffffff;
    --dark: #071827;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--soft);
    color: var(--ink);
}

a {
    color: var(--blue);
}

button,
.btn,
.btn-xl,
.nav-cta {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

button:hover,
.btn:hover,
.btn-xl:hover,
.nav-cta:hover {
    transform: translateY(-1px);
}

/* Existing app/payment/admin layout */
.wrap {
    width: min(980px, calc(100% - 32px));
    margin: 40px auto;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(7, 39, 64, 0.08);
}

.header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.logo {
    font-weight: 900;
    color: var(--blue);
    letter-spacing: .4px;
    font-size: 22px;
}

h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
}

h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

p {
    line-height: 1.65;
}

.muted {
    color: var(--muted);
}

.big-price {
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1;
    font-weight: 900;
    color: var(--blue);
    margin: 22px 0 8px;
}

.price-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 22px 0;
}

.price-tile {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: #fbfdff;
}

.price-tile strong {
    display: block;
    font-size: 24px;
    margin-top: 8px;
}

.notice {
    background: #edf8ff;
    border: 1px solid #bee7ff;
    color: #154860;
    padding: 14px;
    border-radius: 14px;
    margin: 16px 0;
}

.warning {
    background: #fff8ec;
    border: 1px solid #ffe0a8;
    color: #704600;
    padding: 14px;
    border-radius: 14px;
    margin: 16px 0;
}

.error {
    background: #fff0f0;
    border: 1px solid #ffcaca;
    color: #8a1111;
    padding: 14px;
    border-radius: 14px;
    margin: 16px 0;
}

.success {
    background: #effff5;
    border: 1px solid #bcebcf;
    color: #166534;
    padding: 14px;
    border-radius: 14px;
    margin: 16px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #25384a;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cad9e5;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    background: #fff;
}

textarea {
    min-height: 88px;
}

button,
.btn {
    display: inline-block;
    border: 0;
    background: var(--blue);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
}

.btn.secondary {
    background: var(--ink);
}

.btn.light {
    background: #eef6fb;
    color: var(--ink);
}

.btn.danger {
    background: #b42318;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: 14px;
}

th,
td {
    border-bottom: 1px solid #e6eef5;
    padding: 12px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.copy {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    overflow-wrap: anywhere;
    margin-top: 8px;
}

#payment-element {
    margin-top: 18px;
}

.loader {
    display: none;
    margin-top: 12px;
    color: var(--muted);
}

.is-hidden {
    display: none !important;
}

/* Marketing website */
.site-body {
    background:
        radial-gradient(circle at 15% 10%, rgba(3, 126, 178, .17), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(1, 91, 134, .16), transparent 28%),
        #f6fbff;
}

.site-nav {
    width: min(1180px, calc(100% - 34px));
    margin: 18px auto 0;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(223,234,242,.9);
    border-radius: 22px;
    backdrop-filter: blur(16px);
    position: sticky;
    top: 12px;
    z-index: 50;
    box-shadow: 0 14px 45px rgba(7, 39, 64, .08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .06em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    color: #fff;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: #385166;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.nav-cta,
.btn-xl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--blue);
    color: #fff;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(3, 126, 178, .22);
}

.hero-section {
    width: min(1180px, calc(100% - 34px));
    margin: 34px auto 0;
    min-height: 720px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 54px;
    background: linear-gradient(135deg, #ffffff 0%, #eef9ff 54%, #dff4ff 100%);
    border: 1px solid #d8edf9;
    box-shadow: 0 30px 90px rgba(7, 39, 64, .12);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(3, 126, 178, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 126, 178, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 40% 30%, #000, transparent 78%);
    pointer-events: none;
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.hero-content h1 {
    font-size: clamp(44px, 6vw, 82px);
    letter-spacing: -.06em;
    line-height: .94;
    margin-bottom: 22px;
}

.hero-copy {
    max-width: 670px;
    font-size: 19px;
    color: #40566a;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 20px;
}

.btn-xl.ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-row span {
    padding: 10px 12px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #42596e;
    font-weight: 800;
    font-size: 13px;
}

.hero-panel {
    min-height: 520px;
}

.order-card {
    background: rgba(255,255,255,.86);
    border: 1px solid #d7eaf5;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 26px 70px rgba(3, 50, 80, .14);
}

.main-order {
    width: min(100%, 470px);
    margin-left: auto;
}

.order-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 900;
}

.badge-live {
    background: #e7f7ff;
    color: var(--blue-dark);
    border: 1px solid #bfe8fb;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.service-meter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.service-meter div {
    background: #f5fbff;
    border: 1px solid #d9edf8;
    border-radius: 16px;
    padding: 14px;
}

.service-meter span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.service-meter strong {
    display: block;
    margin-top: 7px;
    font-size: 16px;
}

.mock-preview {
    min-height: 260px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 35%, rgba(3,126,178,.30), transparent 24%),
        radial-gradient(circle at 70% 68%, rgba(3,126,178,.22), transparent 28%),
        #eef8fe;
    position: relative;
    overflow: hidden;
    border: 1px solid #d4edf9;
}

.stitch-lines,
.stitch-lines::before,
.stitch-lines::after {
    position: absolute;
    width: 300px;
    height: 80px;
    border: 2px dashed rgba(3, 126, 178, .50);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.stitch-lines {
    top: 70px;
    left: 32px;
}

.stitch-lines::before,
.stitch-lines::after {
    content: '';
    inset: 32px auto auto 16px;
}

.stitch-lines::after {
    inset: 64px auto auto 34px;
}

.vector-shape {
    position: absolute;
    border-radius: 30% 70% 55% 45%;
    background: rgba(3, 126, 178, .82);
}

.vector-shape.one {
    width: 84px;
    height: 84px;
    right: 50px;
    top: 54px;
}

.vector-shape.two {
    width: 124px;
    height: 124px;
    right: 128px;
    bottom: 34px;
    opacity: .76;
}

.vector-shape.three {
    width: 48px;
    height: 48px;
    left: 52px;
    bottom: 42px;
    opacity: .9;
}

.floating-stat {
    position: absolute;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 18px 40px rgba(7, 39, 64, .11);
}

.floating-stat strong,
.floating-stat span {
    display: block;
}

.floating-stat span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.stat-a {
    left: 16px;
    bottom: 92px;
}

.stat-b {
    right: 8px;
    bottom: 30px;
}

.logo-strip {
    width: min(1180px, calc(100% - 34px));
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.logo-strip span {
    text-align: center;
    padding: 16px 10px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    color: #4a6174;
    font-weight: 900;
    font-size: 13px;
}

.section-wrap,
.process-section,
.pricing-section,
.quality-section,
.faq-section,
.final-cta {
    width: min(1180px, calc(100% - 34px));
    margin: 94px auto 0;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 30px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.pricing-card h2,
.quality-card h2,
.final-cta h2 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -.04em;
}

.section-heading p:not(.eyebrow),
.pricing-copy,
.quality-card p,
.final-cta p {
    color: var(--muted);
    font-size: 17px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 55px rgba(7, 39, 64, .07);
}

.feature-card.tall {
    min-height: 380px;
}

.feature-card h3,
.process-step h3 {
    font-size: 25px;
    margin: 16px 0 10px;
}

.feature-card p,
.process-step p,
.faq-grid p {
    color: var(--muted);
}

.blue-card {
    background: linear-gradient(145deg, var(--blue), #025b83);
    color: #fff;
}

.blue-card p,
.blue-card .feature-list span {
    color: rgba(255,255,255,.84);
}

.icon-chip {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: #e7f7ff;
    color: var(--blue-dark);
    font-weight: 900;
}

.light-chip {
    background: rgba(255,255,255,.16);
    color: #fff;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.feature-list span,
.included-grid span {
    display: block;
    padding: 12px;
    border-radius: 14px;
    background: rgba(3,126,178,.07);
    color: #315269;
    font-weight: 800;
}

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

.process-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
}

.process-step span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
}

.pricing-card {
    display: grid;
    grid-template-columns: 1.4fr .75fr;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 28px 80px rgba(7, 39, 64, .10);
}

.included-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.price-panel {
    border-radius: 28px;
    padding: 28px;
    background: linear-gradient(145deg, #082236, #037eb2);
    color: #fff;
}

.small-label,
.per-month {
    display: block;
    opacity: .78;
    font-weight: 900;
}

.price-panel strong {
    display: block;
    font-size: clamp(58px, 8vw, 86px);
    line-height: .95;
    letter-spacing: -.06em;
    margin: 12px 0 6px;
}

.price-panel p {
    color: rgba(255,255,255,.82);
}

.full-btn {
    width: 100%;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    margin-top: 12px;
}

.quality-section {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
}

.quality-card,
.quality-stack div {
    border-radius: 28px;
    padding: 30px;
    border: 1px solid var(--line);
}

.dark-card {
    background: var(--dark);
    color: #fff;
}

.dark-card p {
    color: rgba(255,255,255,.72);
}

.quality-stack {
    display: grid;
    gap: 14px;
}

.quality-stack div {
    background: #fff;
}

.quality-stack strong,
.quality-stack span {
    display: block;
}

.quality-stack strong {
    font-size: 20px;
    margin-bottom: 8px;
}

.quality-stack span {
    color: var(--muted);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
}

summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
}

.final-cta {
    text-align: center;
    padding: 58px;
    border-radius: 34px;
    background: linear-gradient(145deg, var(--blue), #034f75);
    color: #fff;
    margin-bottom: 54px;
}

.final-cta p {
    color: rgba(255,255,255,.82);
}

.white-btn {
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

.site-footer {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    padding: 20px 4px;
}

/* Core subscribe page */
.checkout-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(3,126,178,.20), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(3,126,178,.14), transparent 30%),
        #f6fbff;
}

.checkout-shell {
    width: min(1120px, calc(100% - 34px));
    margin: 28px auto;
}

.back-brand {
    margin-bottom: 18px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 18px;
}

.checkout-summary,
.checkout-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(7,39,64,.09);
}

.checkout-summary {
    background: linear-gradient(145deg, #082236, #037eb2);
    color: #fff;
    position: sticky;
    top: 22px;
    align-self: start;
}

.checkout-summary .muted,
.checkout-summary .eyebrow {
    color: rgba(255,255,255,.78);
}

.checkout-price {
    font-size: clamp(54px, 8vw, 78px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.06em;
    margin: 24px 0 10px;
}

.checkout-price span {
    font-size: 18px;
    letter-spacing: 0;
    opacity: .8;
}

.summary-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
}

.summary-list span {
    color: rgba(255,255,255,.78);
    text-align: right;
}

.payment-step {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.terms-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    line-height: 1.5;
}

.terms-line input {
    width: auto;
    margin-top: 3px;
}

@media (max-width: 940px) {
    .nav-links {
        display: none;
    }

    .hero-section,
    .pricing-card,
    .quality-section,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 34px 24px;
        min-height: auto;
    }

    .hero-panel {
        min-height: 440px;
    }

    .main-order {
        margin-left: 0;
    }

    .process-grid,
    .logo-strip {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 720px) {
    .grid,
    .price-box,
    .service-grid,
    .included-grid,
    .faq-grid,
    .process-grid,
    .logo-strip,
    .service-meter {
        grid-template-columns: 1fr;
    }

    .header,
    .site-footer {
        display: block;
    }

    .site-nav {
        border-radius: 18px;
    }

    .nav-cta {
        display: none;
    }

    .hero-section {
        width: calc(100% - 20px);
        margin-top: 14px;
        border-radius: 24px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-actions .btn-xl {
        width: 100%;
    }

    .floating-stat {
        position: static;
        margin-top: 10px;
    }

    .section-wrap,
    .process-section,
    .pricing-section,
    .quality-section,
    .faq-section,
    .final-cta {
        margin-top: 56px;
    }

    .final-cta {
        padding: 34px 22px;
    }

    .wrap,
    .checkout-shell {
        width: min(100% - 20px, 980px);
        margin-top: 20px;
    }

    .card,
    .checkout-summary,
    .checkout-card {
        padding: 22px;
        border-radius: 22px;
    }
}
