/* ─────────────────────────────────────────────────────────────────────────
   HMV Chatbot AI — Landing page styles
   Light theme with a dark accent in pricing comparison header.
   ───────────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFFFFF;
    color: #1F2937;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #F1F5F9;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1.5rem; max-width: 1120px; margin: 0 auto;
}
.nav-brand {
    display: flex; align-items: center; gap: .55rem;
    font-weight: 700; font-size: 1.05rem; color: #0F172A;
}
.nav-brand-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg,#2563EB,#7C3AED);
    display: grid; place-items: center; color: #fff;
    font-size: .85rem; font-weight: 700;
}
/* Logo image rendered by CMS — preserves aspect ratio, capped height */
.nav-brand-logo {
    height: 32px; width: auto;
    max-width: 180px; object-fit: contain;
    display: block;
}
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
    font-size: .9rem; color: #475569; transition: color .15s;
}
.nav-links a:hover { color: #2563EB; }
.nav-cta {
    display: flex; gap: .6rem; align-items: center;
}
.nav-cta a {
    font-size: .85rem; font-weight: 500;
    padding: .5rem .95rem; border-radius: .55rem;
    transition: all .15s;
}
.nav-cta .login { color: #475569; }
.nav-cta .login:hover { color: #2563EB; }
.nav-cta .signup {
    background: #2563EB; color: #fff;
}
.nav-cta .signup:hover { background: #1D4ED8; }

/* ── Language toggle ───────────────────────────────────────────────────────── */
.lang-toggle { display: flex; gap: .25rem; align-items: center; }
.lang-btn {
    font-size: .8rem; font-weight: 500; padding: .3rem .55rem;
    border: 1px solid #e2e8f0; border-radius: .4rem;
    background: transparent; color: #64748b;
    cursor: pointer; transition: all .15s;
}
.lang-btn:hover { border-color: #2563EB; color: #2563EB; }
.lang-btn-active { border-color: #2563EB; color: #2563EB; background: #eff6ff; font-weight: 600; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .lang-toggle { display: none; }  /* avoid nav overflow on mobile */
}

/* ── Section base ──────────────────────────────────────────────────────── */
.section {
    padding: 4.5rem 1.5rem;
}
.section-header {
    text-align: center; max-width: 720px; margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: 2.125rem; font-weight: 700; color: #0F172A;
    line-height: 1.2; margin-bottom: .65rem;
}
.section-header p {
    color: #64748B; font-size: 1.05rem;
}
.eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: #2563EB; margin-bottom: .75rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    padding: 5rem 1.5rem 3.5rem;
    background:
        radial-gradient(ellipse at top left, rgba(37,99,235,.10), transparent 60%),
        radial-gradient(ellipse at top right, rgba(124,58,237,.08), transparent 60%);
}
.hero-inner {
    max-width: 1120px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}
.hero h1 {
    font-size: 2.75rem; font-weight: 800; color: #0F172A;
    line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.1rem;
}
@media (min-width: 900px) {
    .hero h1 { font-size: 3.4rem; }
}
.hero .lead {
    font-size: 1.125rem; color: #475569; margin-bottom: 1.75rem;
    max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .85rem 1.4rem; border-radius: .65rem;
    font-size: .95rem; font-weight: 600;
    transition: all .15s; cursor: pointer; border: none;
    text-decoration: none;
}
.btn-primary {
    background: #2563EB; color: #fff;
    box-shadow: 0 8px 20px -8px rgba(37,99,235,.6);
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); }
.btn-outline {
    background: #fff; color: #1F2937; border: 1px solid #CBD5E1;
}
.btn-outline:hover { border-color: #94A3B8; }

.hero-trust {
    margin-top: 2rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    color: #64748B; font-size: .85rem;
}
.hero-trust .logos {
    display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
    opacity: .7;
}
.hero-trust .logos img { height: 26px; width: auto; }

.hero-art {
    position: relative; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #EEF4FF, #F5F3FF);
    border-radius: 1.5rem; overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(15,23,42,.18);
    border: 1px solid rgba(255,255,255,.6);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #94A3B8; font-size: .9rem;
}

/* ── Features ──────────────────────────────────────────────────────────── */
.features { background: #FAFBFD; }
.features-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3,1fr); } }
.feature-card {
    background: #fff; border: 1px solid #EAEEF5; border-radius: 1rem;
    padding: 1.5rem; transition: all .2s;
}
.feature-card:hover {
    border-color: #C7D2FE; transform: translateY(-2px);
    box-shadow: 0 14px 30px -16px rgba(37,99,235,.25);
}
.feature-icon {
    width: 44px; height: 44px; border-radius: .65rem;
    display: grid; place-items: center;
    background: linear-gradient(135deg,#EEF4FF,#E0E7FF);
    color: #2563EB; margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: #0F172A; margin-bottom: .35rem; }
.feature-card p { font-size: .92rem; color: #64748B; }

/* ── Use cases ─────────────────────────────────────────────────────────── */
.use-cases-grid {
    display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .use-cases-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .use-cases-grid { grid-template-columns: repeat(4,1fr); } }
.use-case-card {
    background: #fff; border: 1px solid #EAEEF5; border-radius: 1rem;
    overflow: hidden; transition: all .2s;
}
.use-case-card:hover { border-color: #C7D2FE; transform: translateY(-2px); }
.use-case-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg,#FAFBFD,#EEF4FF);
}
.use-case-image img { width: 100%; height: 100%; object-fit: cover; }
.use-case-body { padding: 1.25rem; }
.use-case-industry {
    display: inline-block; font-size: .7rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: #2563EB; margin-bottom: .5rem;
}
.use-case-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.use-case-body p { font-size: .875rem; color: #64748B; }

/* ── How it works ──────────────────────────────────────────────────────── */
.how-grid {
    display: grid; gap: 2rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(3,1fr); } }
.how-step {
    text-align: center; position: relative;
}
.how-step-num {
    width: 60px; height: 60px; border-radius: 50%;
    margin: 0 auto 1.1rem;
    background: linear-gradient(135deg,#2563EB,#7C3AED);
    color: #fff; display: grid; place-items: center;
    font-size: 1.6rem; font-weight: 700;
    box-shadow: 0 12px 28px -12px rgba(37,99,235,.45);
}
.how-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.how-step p { color: #64748B; font-size: .95rem; max-width: 280px; margin: 0 auto; }

/* ── Pricing (kept from legacy) ────────────────────────────────────────── */
.pricing { background: #fff; }
.pricing-inner { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.toggle-row { display: flex; align-items: center; justify-content: center;
              gap: 1rem; margin-bottom: 2rem; }
.toggle-label { font-size: .9rem; color: #64748B; transition: color .15s; }
.toggle-label.active { font-weight: 600; color: #0F172A; }
.toggle-btn { position: relative; width: 44px; height: 24px; border-radius: 9999px;
              border: none; cursor: pointer; transition: background .2s;
              background: #D1D5DB; }
.toggle-btn.on { background: #2563EB; }
.toggle-btn .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
                    border-radius: 50%; background: #fff;
                    transition: transform .2s; }
.toggle-btn.on .knob { transform: translateX(20px); }
.savings-badge { font-size: .75rem; padding: .25rem .75rem;
                 background: #D1FAE5; color: #065F46;
                 border-radius: 9999px; font-weight: 500; }

.plans-grid { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.skeleton { flex: 1 1 220px; max-width: 260px;
            background: #F3F4F6; border-radius: 1rem; padding: 1.25rem;
            border: 1px solid #F3F4F6; }
.skel-line { height: 1rem; background: #E5E7EB; border-radius: .25rem;
             margin-bottom: .75rem; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.plan-card {
    flex: 1 1 220px; max-width: 260px;
    position: relative; border: 1px solid #E5E7EB; border-radius: 1rem;
    padding: 1.25rem; background: #fff; display: flex; flex-direction: column;
}
.plan-card.highlighted { border: 2px solid #2563EB; }
.highlight-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
                   background: #2563EB; color: #fff; font-size: .75rem; font-weight: 600;
                   padding: .25rem .875rem; border-radius: 9999px; white-space: nowrap; }
.plan-name { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.plan-price { margin-bottom: 1rem; }
.price-amount { font-size: 1.625rem; font-weight: 700; }
.price-sub  { font-size: .8rem; color: #9CA3AF; margin-top: .125rem; }
.price-save { font-size: .75rem; color: #059669; margin-top: .25rem; font-weight: 500; }
.plan-cta { display: block; text-align: center; padding: .5rem .75rem;
            border-radius: .75rem; font-size: .8125rem; font-weight: 500;
            text-decoration: none; margin-bottom: 1rem; transition: opacity .15s; }
.plan-cta:hover { opacity: .85; }
.cta-primary { background: #2563EB; color: #fff; }
.cta-dark    { background: #111827; color: #fff; }
.cta-outline { border: 1px solid #D1D5DB; color: #374151; background: #fff; }
.plan-divider { border: none; border-top: 1px solid #F3F4F6; margin-bottom: .875rem; }
.limits { margin-bottom: .875rem; }
.limit-row { display: flex; justify-content: space-between;
             font-size: .8125rem; margin-bottom: .4rem; }
.limit-label { color: #6B7280; }
.limit-val   { font-weight: 500; }
.features-list { list-style: none; }
.features-list li { display: flex; align-items: center; gap: .375rem;
                    font-size: .8125rem; margin-bottom: .4rem; }
.features-list li.enabled  { color: #1F2937; }
.features-list li.disabled { color: #D1D5DB; }
.feat-icon { flex-shrink: 0; width: 1rem; text-align: center; }
.error-note { text-align: center; font-size: .75rem; color: #9CA3AF; margin-top: 1rem; }
.compare-link { display: block; text-align: center; font-size: .75rem; color: #9CA3AF;
                text-decoration: none; margin-top: .5rem; transition: color .15s; }
.compare-link:hover { color: #2563EB; }

/* ── Comparison table ──────────────────────────────────────────────────── */
#comparison { max-width: 1120px; margin: 0 auto; padding: 2rem 1.5rem 0; scroll-margin-top: 1.5rem; }
.comparison-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 1rem;
                     border: 1px solid #E5E7EB; box-shadow: 0 4px 24px rgba(15,23,42,.07); margin-top: 2rem; }
.ctbl { width: 100%; border-collapse: collapse; background: #fff; }
.ctbl thead th { position: sticky; top: 0; z-index: 10; }
.ctbl .th-feat { width: 280px; padding: 1.25rem 1.5rem; background: #0F172A; text-align: left;
                 vertical-align: bottom; color: #F1F5F9; }
.ctbl .th-feat span { font-size: .6875rem; font-weight: 700; color: #94A3B8;
                       letter-spacing: .08em; text-transform: uppercase; }
.ctbl .th-plan { min-width: 170px; padding: .875rem .75rem; background: #0F172A;
                 text-align: center; vertical-align: middle; border-left: 1px solid #1E3A5F;
                 color: #F1F5F9; }
.ctbl .th-plan.pro-col { background: #2563EB; border-left-color: #1D4ED8; color: #fff; }
.plan-h-badge { display: inline-block; font-size: .6875rem; font-weight: 600;
                padding: .15rem .6rem; background: rgba(255,255,255,.18);
                border-radius: 9999px; color: #fff; margin-bottom: .35rem; }
.plan-h-name  { display: block; font-size: .9375rem; font-weight: 700; color: #F1F5F9; }
.plan-h-price { display: block; font-size: .8125rem; color: #94A3B8; margin-top: .2rem; }
.th-plan.pro-col .plan-h-price { color: #BFDBFE; }
.ctbl .cat-row td { background: #F8FAFC; padding: .5rem 1.5rem; font-size: .6875rem;
                    font-weight: 700; color: #64748B; letter-spacing: .08em;
                    text-transform: uppercase; border-top: 1px solid #E5E7EB;
                    border-bottom: 1px solid #E5E7EB; }
.ctbl .data-row td { border-bottom: 1px solid #F1F5F9; font-size: .875rem; padding: .75rem; }
.ctbl .data-row:last-child td { border-bottom: none; }
.ctbl .data-row:hover td { background: #FAFAFA; }
.ctbl .data-row:hover td.pro-col { background: #E0EEFF; }
.ctbl .feat-name { color: #374151; padding-left: 1.5rem; text-align: left; }
.ctbl .cell-val  { text-align: center; color: #6B7280; }
.ctbl .cell-val.pro-col { background: #EFF6FF; }
.ctbl .chk  { color: #16A34A; font-weight: 700; font-size: 1rem; }
.ctbl .dash { color: #D1D5DB; }
.ctbl .feat-label { color: #374151; padding-left: 1.5rem; text-align: left; }
.ctbl .tval { font-size: .8125rem; font-weight: 500; color: #374151; text-align: center; }
.ctbl .tval.pro-col { background: #EFF6FF; }
.ctbl .cta-row td { padding: 1rem .75rem; background: #F8FAFC; border-top: 2px solid #E5E7EB;
                    text-align: center; }
.ctbl .cta-row .feat-name { font-size: .8125rem; color: #9CA3AF; }
.ctbl-cta { display: inline-block; padding: .5rem 1.25rem; border-radius: .625rem;
            font-size: .8125rem; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.ctbl-cta:hover { opacity: .85; }
.ctbl-cta.dark  { background: #111827; color: #fff; }
.ctbl-cta.blue  { background: #2563EB; color: #fff; }
.ctbl-cta.ghost { border: 1px solid #D1D5DB; color: #374151; background: #fff; }

/* ── Testimonials ──────────────────────────────────────────────────────── */
.testimonials { background: #FAFBFD; }
.testimonials-grid {
    display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3,1fr); } }
.testimonial-card {
    background: #fff; border: 1px solid #EAEEF5;
    border-radius: 1rem; padding: 1.75rem;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.testimonial-quote {
    font-size: 1rem; color: #334155; line-height: 1.6; flex: 1;
}
.testimonial-quote::before {
    content: '"'; font-size: 2.5rem; color: #C7D2FE; line-height: 0;
    margin-right: .25rem; vertical-align: -.5rem;
}
.testimonial-author {
    display: flex; align-items: center; gap: .75rem;
    border-top: 1px solid #F1F5F9; padding-top: 1rem;
}
.testimonial-photo {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg,#EEF4FF,#E0E7FF);
    overflow: hidden; flex-shrink: 0;
    display: grid; place-items: center; color: #2563EB; font-weight: 700;
}
.testimonial-photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: .9rem; color: #0F172A; }
.testimonial-role { font-size: .8rem; color: #64748B; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 760px; margin: 0 auto;
    border: 1px solid #EAEEF5; border-radius: 1rem; background: #fff;
    overflow: hidden;
}
.faq-item { border-bottom: 1px solid #EAEEF5; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 1.1rem 1.25rem;
    background: transparent; border: none; cursor: pointer;
    text-align: left; font-size: .98rem; font-weight: 600; color: #0F172A;
    transition: background .15s;
}
.faq-q:hover { background: #FAFBFD; }
.faq-icon {
    width: 22px; height: 22px; flex-shrink: 0;
    transition: transform .2s; color: #94A3B8;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: #2563EB; }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    color: #475569; font-size: .92rem;
}
.faq-a-inner { padding: 0 1.25rem 1.1rem; }
.faq-item.open .faq-a { max-height: 500px; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact { background: linear-gradient(135deg,#F8FAFC, #EEF4FF); }
.contact-grid {
    display: grid; gap: 2.5rem; grid-template-columns: 1fr;
    max-width: 980px; margin: 0 auto;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-info-block { padding-top: .25rem; }
.contact-info-block h3 {
    font-size: 1.5rem; font-weight: 700; margin-bottom: .65rem; color: #0F172A;
}
.contact-info-block p { color: #475569; margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; gap: .85rem; align-items: flex-start; }
.contact-row-icon {
    width: 38px; height: 38px; border-radius: .55rem;
    background: #fff; border: 1px solid #E2E8F0;
    display: grid; place-items: center; color: #2563EB;
    flex-shrink: 0;
}
.contact-row-icon svg { width: 18px; height: 18px; }
.contact-row strong { display: block; font-size: .82rem; color: #64748B;
                      font-weight: 600; margin-bottom: .15rem; }
.contact-row span, .contact-row a { font-size: .95rem; color: #0F172A; }
.contact-row a:hover { color: #2563EB; }

.contact-form-card {
    background: #fff; border-radius: 1rem; padding: 2rem;
    border: 1px solid #EAEEF5;
    box-shadow: 0 18px 40px -24px rgba(37,99,235,.25);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
    display: block; font-size: .82rem; font-weight: 600; color: #475569;
    margin-bottom: .35rem;
}
.form-row input, .form-row textarea {
    width: 100%; padding: .7rem .85rem; font-size: .92rem;
    border: 1px solid #CBD5E1; border-radius: .55rem;
    font-family: inherit; transition: border .15s, box-shadow .15s;
    background: #fff; color: #0F172A;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none; border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row-grid { grid-template-columns: 1fr 1fr; } }
.form-submit {
    width: 100%; padding: .85rem 1.5rem;
    background: #2563EB; color: #fff;
    border: none; border-radius: .65rem;
    font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.form-submit:hover { background: #1D4ED8; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-result {
    margin-top: 1rem; padding: .85rem 1rem; border-radius: .55rem;
    font-size: .9rem; display: none;
}
.form-result.show { display: block; }
.form-result.success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.form-result.error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    background: #0F172A; color: #94A3B8;
    padding: 3rem 1.5rem 2rem;
}
.footer-inner {
    max-width: 1120px; margin: 0 auto;
}
.footer-grid {
    display: grid; gap: 2rem; grid-template-columns: 1fr;
    padding-bottom: 2rem; border-bottom: 1px solid #1E293B; margin-bottom: 1.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-brand { color: #F1F5F9; font-weight: 700; font-size: 1.1rem; margin-bottom: .65rem; }
.footer-tag { font-size: .9rem; line-height: 1.55; max-width: 320px; }
.footer-col h4 {
    color: #F1F5F9; font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: .85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .9rem; color: #94A3B8; transition: color .15s; }
.footer-col a:hover { color: #F1F5F9; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: .82rem; color: #64748B;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #F1F5F9; }

/* ── Mobile tweaks ─────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .plan-card, .skeleton { flex: 0 0 calc(50% - 0.625rem); max-width: none; }
    .plan-card { padding: 1.5rem; }
    .plan-name { font-size: 1.125rem; }
    .price-amount { font-size: 1.875rem; }
    .price-sub { font-size: .875rem; }
    .plan-cta { font-size: .875rem; padding: .625rem 1rem; }
    .limit-row { font-size: .875rem; }
    .features-list li { font-size: .875rem; }
}
@media (max-width: 599px) {
    .section { padding: 3rem 1rem; }
    .hero { padding: 3rem 1rem 2rem; }
    .hero h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.6rem; }
    .plans-grid { gap: 1rem; }
    .plan-card, .skeleton { flex: 0 0 100%; max-width: none; }
}

/* ── Signup Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; transition: opacity .2s ease;
}
.modal-overlay.visible { opacity: 1; }

.modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(15,23,42,.18);
    transform: translateY(10px); transition: transform .2s ease;
}
.modal-overlay.visible .modal-box { transform: translateY(0); }

.modal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.25rem;
}
.modal-eyebrow {
    font-size: .75rem; font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; color: #2563EB; margin-bottom: .25rem;
}
.modal-title { font-size: 1.4rem; font-weight: 700; color: #0F172A; }

.modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; line-height: 1; color: #94A3B8;
    padding: .25rem .5rem; border-radius: 6px;
    transition: color .15s, background .15s;
}
.modal-close:hover { color: #0F172A; background: #F1F5F9; }

.modal-price-row {
    background: #EFF6FF; border-radius: 8px; padding: .625rem 1rem;
    margin-bottom: 1.25rem; font-size: .9rem; color: #1E40AF;
}
.modal-price-label { display: block; }

/* Form fields */
.mform-row { margin-bottom: 1rem; }
.mform-row label {
    display: block; font-size: .8125rem; font-weight: 600;
    color: #374151; margin-bottom: .375rem;
}
.mform-row input {
    width: 100%; border: 1.5px solid #E2E8F0; border-radius: 8px;
    padding: .625rem .875rem; font-size: .9375rem;
    transition: border-color .15s, box-shadow .15s;
    outline: none; background: #FAFAFA; color: #0F172A;
}
.mform-row input:focus {
    border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: #fff;
}
.mform-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
@media (max-width: 480px) { .mform-grid { grid-template-columns: 1fr; } }

/* Billing cycle toggle inside modal */
.sf-cycle-toggle {
    display: flex; gap: .5rem;
}
.sf-cycle-btn {
    flex: 1; padding: .5rem; border-radius: 8px; font-size: .875rem;
    font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border .15s;
    border: 1.5px solid #E2E8F0; background: #F8FAFC; color: #475569;
}
.sf-cycle-btn.active {
    background: #2563EB; border-color: #2563EB; color: #fff;
}
.sf-cycle-save {
    display: inline-block; font-size: .7rem; background: #DCFCE7;
    color: #166534; padding: .1rem .35rem; border-radius: 10px;
    font-weight: 600; margin-left: .3rem; vertical-align: middle;
}

/* Error / messages */
.sf-msg {
    padding: .625rem .875rem; border-radius: 8px;
    font-size: .875rem; margin-bottom: .75rem;
}
.sf-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* Submit button */
.sf-submit {
    display: block; width: 100%;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff; border: none; border-radius: 10px;
    padding: .875rem; font-size: 1rem; font-weight: 600;
    cursor: pointer; text-align: center; transition: opacity .15s, transform .1s;
    margin-top: 1rem; text-decoration: none;
}
.sf-submit:hover { opacity: .9; }
.sf-submit:active { transform: scale(.98); }
.sf-submit:disabled { opacity: .6; cursor: not-allowed; }

.sf-note {
    font-size: .78rem; color: #94A3B8; text-align: center;
    margin-top: .75rem; line-height: 1.5;
}
.sf-back {
    background: none; border: none; color: #2563EB; cursor: pointer;
    font-size: .875rem; margin-top: 1rem; padding: 0;
}
.sf-back:hover { text-decoration: underline; }

/* Payment step */
.payment-summary {
    background: #F8FAFC; border: 1px solid #E2E8F0;
    border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem;
}
.pay-summary-row {
    display: flex; justify-content: space-between;
    font-size: .9rem; color: #475569; padding: .375rem 0;
}
.pay-total {
    border-top: 1px solid #E2E8F0; margin-top: .5rem;
    padding-top: .75rem; font-weight: 600; color: #0F172A;
}
.pay-amount { color: #2563EB; font-size: 1.1rem; }

.payment-action { text-align: center; }
.payment-btn {
    display: inline-block; width: 100%; max-width: 360px;
    font-size: 1.05rem;
}
.payment-note-row {
    display: flex; align-items: center; justify-content: center;
    gap: .35rem; font-size: .8125rem; color: #64748B; margin-top: .875rem;
}

/* Success step */
.modal-success-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: #DCFCE7; color: #16A34A;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; font-weight: 700; margin: 0 auto 1.25rem;
}

/* plan-cta as button (reset native button appearance to match <a> styling) */
button.plan-cta {
    width: 100%; cursor: pointer;
    font-family: inherit; appearance: none;
}
button.plan-cta.cta-primary,
button.plan-cta.cta-dark { border: none; }

/* ── Payment success / cancelled banner ─────────────────────────────────── */
.payment-success-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
    background: #DCFCE7; border-bottom: 2px solid #86EFAC;
    padding: .75rem 1.5rem;
    animation: slideDown .3s ease;
}
.payment-cancelled-banner {
    background: #FEF9C3; border-bottom-color: #FDE047;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.psb-inner {
    display: flex; align-items: center; gap: 1rem;
    max-width: 900px; margin: 0 auto; flex-wrap: wrap;
}
.psb-icon { font-size: 1.25rem; flex-shrink: 0; }
.psb-inner > div { flex: 1; min-width: 0; }
.psb-inner strong { display: block; font-size: .95rem; color: #14532D; }
.psb-inner span   { font-size: .85rem; color: #166534; }
.payment-cancelled-banner .psb-inner strong { color: #713F12; }
.payment-cancelled-banner .psb-inner span   { color: #854D0E; }
.psb-btn {
    flex-shrink: 0; background: #16A34A; color: #fff;
    padding: .5rem 1.1rem; border-radius: 8px; font-size: .875rem;
    font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background .15s;
}
.psb-btn:hover { background: #15803D; }
.psb-close {
    flex-shrink: 0; background: none; border: none; cursor: pointer;
    font-size: 1.25rem; color: #4B5563; line-height: 1; padding: .25rem;
}
.psb-close:hover { color: #111827; }
