/* ============================================================================
   MODERNFLOW REDESIGN LAYER (2026)
   Loaded after style.css on every page. Retunes the design tokens and the
   shared components (header, buttons, type, page heroes, cards, footer) to the
   new ink / paper / signal-orange system. Homepage specifics live in home.css.
   ============================================================================ */
html, body { background: #0f172a; }

:root,
body,
body.dark-mode {
    --mf-ink: #0f172a;
    --mf-ink-2: #1e293b;
    --mf-ink-3: #273449;
    --mf-paper: #f9fafb;
    --mf-paper-2: #eef0f4;
    --mf-text: #f1f5f9;
    --mf-muted: #94a3b8;
    --mf-muted-dark: #6b7280;
    --mf-accent: #6366f1;
    --mf-accent-hover: #818cf8;
    --mf-accent-2: #10b981;
    --mf-on-accent: #ffffff;
    --mf-grad: linear-gradient(135deg, #6366f1 0%, #818cf8 45%, #10b981 100%);
    --mf-line: rgba(241, 245, 249, 0.12);
    --mf-line-strong: rgba(241, 245, 249, 0.24);
    --mf-display: 'Archivo', 'Inter Tight', system-ui, sans-serif;
    --mf-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mf-ease: cubic-bezier(.2, .7, .1, 1);

    /* old tokens, remapped */
    --primary-color: var(--mf-accent);
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #6ee7b7;
    --dark-bg: var(--mf-ink);
    --dark-bg-secondary: var(--mf-ink-2);
    --dark-text: var(--mf-text);
    --dark-text-light: var(--mf-muted);
    --bg-color: var(--mf-ink);
    --bg-secondary: var(--mf-ink-2);
    --text-color: var(--mf-text);
    --text-light: var(--mf-muted);
    --border-color: var(--mf-line);
    --shadow-color: rgba(0, 0, 0, 0.35);
    --font-primary: var(--mf-body);
    --font-secondary: var(--mf-display);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --shadow-sm: none;
    --shadow-md: 0 1px 0 var(--mf-line);
    --shadow-lg: 0 20px 40px -24px rgba(0, 0, 0, .6);
    --shadow-xl: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

body {
    font-family: var(--mf-body);
    background: var(--mf-ink);
    color: var(--mf-text);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.005em;
}

::selection { background: var(--mf-accent); color: #fff; }

h1, h2, h3, h4,
.page-hero h1,
.section-header h2 {
    font-family: var(--mf-display);
    font-stretch: 112%;
    letter-spacing: -0.035em;
    line-height: 1.02;
    font-weight: 640;
}
h3, h4 { letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }

a { color: var(--mf-accent-hover); }
a:hover { color: var(--mf-accent-hover); }

:focus-visible {
    outline: 2px solid var(--mf-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* The full-screen spinner only delayed first paint. */
.loader { display: none !important; }

/* Single, consistent theme: the toggle is retired. */
.theme-toggle { display: none !important; }

/* ---------------------------------------------------------------------------
   Header: a floating ink pill
   --------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 14px 0 0;
    pointer-events: none;
}
.header .container { max-width: 1360px; padding: 0 20px; }
.header-content,
.blog-header-content {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.92);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--mf-line);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    min-height: 58px;
    gap: 16px;
    transition: background .3s var(--mf-ease), border-color .3s var(--mf-ease);
}
.header.scrolled { box-shadow: none; }
.header.scrolled .header-content,
.header.scrolled .blog-header-content { background: rgba(15, 23, 42, 0.94); border-color: var(--mf-line-strong); }

.logo {
    font-family: var(--mf-display);
    font-stretch: 118%;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.03em;
    color: var(--mf-text) !important;
    gap: 0;
    white-space: nowrap;
}
.logo i {
    display: inline-block;
    font-size: 1em;
    margin-right: .5em;
    background: var(--mf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform .4s var(--mf-ease);
}
.logo:hover i { transform: translate(2px, -2px) rotate(-8deg); }

.nav-list { gap: 2px; align-items: center; }
.nav-link {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(241, 245, 249, .78);
    padding: 10px 14px;
    border-radius: 999px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.nav-link::after { display: none; }
.nav-link:hover { color: var(--mf-text); background: rgba(241, 245, 249, .08); }
.nav-link.active { color: var(--mf-ink); background: var(--mf-text); }

.header-actions { gap: 6px; }
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--mf-accent);
    color: var(--mf-on-accent) !important;
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    transition: transform .2s var(--mf-ease), background .2s;
}
.header-cta:hover { background: var(--mf-accent-hover); transform: translateY(-1px); }
.header-cta svg { width: 14px; height: 14px; }

.hamburger span { background: var(--mf-text); height: 2px; width: 22px; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
    .hamburger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        background: rgba(15, 23, 42, .97);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        border: 1px solid var(--mf-line-strong);
        border-radius: 24px;
        padding: 12px;
        z-index: 199;
        pointer-events: auto;
    }
    .nav.active { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    .nav-link { width: 100%; font-size: 1.05rem; padding: 14px 16px; }
    .header .container { position: relative; }
}
@media (max-width: 480px) {
    .header-content { padding-left: 18px; }
    .header-cta { padding: 0 14px; font-size: .85rem; }
    .header-cta .hide-sm { display: none; }
}

/* Blog and article header: same pill, compact Visit Website button. */
.blog-header { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.blog-header .blog-visit-button { min-height: 42px; padding: 0 18px; font-size: .9rem; }
@media (max-width: 560px) { .blog-header .blog-visit-button { display: none; } }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
    font-family: var(--mf-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -0.005em;
    border-radius: 999px;
    padding: 15px 26px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    box-shadow: none !important;
    transition: transform .25s var(--mf-ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary,
body.dark-mode .btn-primary { background: var(--mf-accent); color: #fff; border-color: var(--mf-accent); }
.btn-primary:hover,
.btn-primary:focus-visible { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.btn-secondary,
body.dark-mode .btn-secondary {
    background: transparent;
    color: var(--mf-text);
    border-color: var(--mf-line-strong);
}
.btn-secondary:hover,
.btn-secondary:focus-visible,
body.dark-mode .btn-secondary:hover,
body.dark-mode .btn-secondary:focus-visible { background: var(--mf-text); color: var(--mf-ink); border-color: var(--mf-text); }
.btn-light,
body.dark-mode .btn-light { background: var(--mf-text); color: var(--mf-ink); border-color: var(--mf-text); }
.btn-light:hover { background: #fff; color: var(--mf-ink); }
.btn-whatsapp { background: #10b981; color: #fff; border-color: #10b981; }
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible { background: #059669; color: #fff; }

/* ---------------------------------------------------------------------------
   Inner page heroes and section headers
   --------------------------------------------------------------------------- */
.page-hero,
.service-hero,
.blog-hero {
    background:
        radial-gradient(60% 80% at 85% 0%, rgba(99, 102, 241, .14), transparent 60%),
        var(--mf-ink) !important;
    border-bottom: 1px solid var(--mf-line);
    padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 7vw, 96px);
    text-align: left;
}
.page-hero .container,
.service-hero .container { max-width: 1200px; }
.page-hero h1,
.service-hero h1,
.blog-hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.6rem);
    max-width: 16ch;
    margin-bottom: 24px;
    color: var(--mf-text);
}
.page-hero p,
.service-hero p,
.blog-hero p {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    max-width: 60ch;
    color: var(--mf-muted);
    margin-left: 0;
}
.page-hero .hero-buttons,
.page-hero .page-hero-actions { justify-content: flex-start; }

.eyebrow {
    font-family: var(--mf-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mf-accent);
}

.section-header { text-align: left; max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); color: var(--mf-text); }
.section-header p { color: var(--mf-muted); margin-left: 0; }

/* ---------------------------------------------------------------------------
   Cards: flat ink surfaces with hairlines
   --------------------------------------------------------------------------- */
.feature-card, .service-card, .pricing-card, .info-card, .team-card, .mvv-card,
.blog-card, .portfolio-item, .portfolio-card, .stat-card, .faq-item, .testimonial-card,
.home-solution-card, .process-step, .plan-card,
body.dark-mode .feature-card, body.dark-mode .service-card, body.dark-mode .pricing-card,
body.dark-mode .info-card, body.dark-mode .blog-card, body.dark-mode .faq-item,
body.dark-mode .testimonial-card, body.dark-mode .stat-card {
    background: var(--mf-ink-2);
    border: 1px solid var(--mf-line);
    border-radius: var(--radius-lg);
    box-shadow: none;
}
.feature-card:hover, .service-card:hover, .pricing-card:hover, .blog-card:hover,
.home-solution-card:hover, .portfolio-item:hover {
    border-color: var(--mf-line-strong);
    transform: translateY(-4px);
    box-shadow: none;
}
.pricing-card.featured,
.pricing-card.popular,
body.dark-mode .pricing-card.featured {
    border-color: var(--mf-accent);
    background: linear-gradient(180deg, rgba(99, 102, 241, .10), transparent 50%), var(--mf-ink-2);
}

input, select, textarea,
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background: var(--mf-ink) !important;
    color: var(--mf-text) !important;
    border: 1px solid var(--mf-line-strong) !important;
    border-radius: 10px !important;
    font-family: var(--mf-body);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--mf-accent) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .2) !important;
    outline: none;
}

section { border-color: var(--mf-line); }
.bg-light, .section-alt { background: var(--mf-ink-2) !important; }

/* Final CTA blocks on inner pages pick up the signal orange. */
.final-cta,
body.dark-mode .final-cta,
.cta-section {
    background: var(--mf-grad) !important;
    background-size: 200% 200% !important;
    animation: mf-grad-shift 12s ease-in-out infinite;
    color: #fff !important;
}
.final-cta h2, .final-cta p,
.cta-section h2, .cta-section p { color: #fff !important; }
@keyframes mf-grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.final-cta h2, .cta-section h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.final-cta .btn-light,
.cta-section .btn-light { background: #fff; color: #0f172a; border-color: #fff; }
.final-cta .btn-secondary,
.cta-section .btn-secondary,
body.dark-mode .final-cta .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .55); }
.final-cta .btn-secondary:hover { background: #fff; color: #0f172a; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
    background: var(--mf-ink);
    border-top: 1px solid var(--mf-line);
    margin-top: 0;
    padding: clamp(64px, 8vw, 110px) 0 32px;
}
.footer .container { max-width: 1280px; }
.footer-content { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-section h4 {
    font-family: var(--mf-body);
    font-stretch: 100%;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mf-muted);
    margin-bottom: 18px;
}
.footer-section p, .footer-section a { color: rgba(241, 245, 249, .78); font-size: .95rem; }
.footer-section a:hover { color: var(--mf-accent); }
.footer-section ul li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--mf-line); color: var(--mf-muted); font-size: .85rem; text-align: left; }
.social-links a { background: var(--mf-ink-3); color: var(--mf-text); border: 1px solid var(--mf-line); }
.social-links a:hover { background: var(--mf-accent); color: #fff; }

@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-content { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner, .cookie-consent-banner, #cookie-consent-banner {
    background: var(--mf-ink-2) !important;
    color: var(--mf-text) !important;
    border: 1px solid var(--mf-line-strong) !important;
    border-radius: 18px !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------------------
   Sitewide motion (motion.js)
   --------------------------------------------------------------------------- */
.mf-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400;
    background: var(--mf-grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.mf-wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.mf-wd > span { display: inline-block; transform: translateY(105%); transition: transform .95s var(--mf-ease); transition-delay: calc(var(--i) * 55ms); }
.mf-wd-on .mf-wd > span { transform: none; }
.mf-up { opacity: 0; transform: translateY(24px); }
.mf-up.mf-up-on { opacity: 1; transform: none; transition: opacity .8s var(--mf-ease), transform .8s var(--mf-ease); transition-delay: var(--mf-d, 0ms); }
.page-hero, .service-hero, .blog-hero { position: relative; overflow: hidden; }
.page-hero::after, .service-hero::after, .blog-hero::after {
    content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, .22), transparent 65%);
    animation: mf-drift 16s ease-in-out infinite; pointer-events: none;
}
.page-hero > *, .service-hero > *, .blog-hero > * { position: relative; z-index: 1; }
@keyframes mf-drift { 50% { transform: translate(-120px, 90px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
    .mf-wd > span, .mf-up { transform: none !important; opacity: 1 !important; }
}


/* ---------------------------------------------------------------------------
   Layout fixes (responsive audit)
   --------------------------------------------------------------------------- */
/* Forms sit flat inside their card */
.enquiry-card .quote-form,
.enquiry-card .enquiry-form,
body.dark-mode .enquiry-card .quote-form {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.enquiry-card { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Blog header pill keeps its padding on small screens */
.blog-header .blog-header-content { padding: 8px 8px 8px 22px; }

/* Long-form pages: keep lines a readable length */
.policy-article { max-width: 860px; }
.policy-article p, .policy-article li { max-width: 72ch; }
@media (max-width: 1100px) {
    .article-layout > .article-sidebar,
    .article-layout > .article-content { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
    .policy-article { padding: 22px 18px; border-radius: 16px; }
}

/* Article tables scroll sideways on phones instead of squashing to one word per line */
.comparison-table { -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
    .article-table table { min-width: 620px; }
    .article-table { position: relative; border-radius: 12px; }
    .article-table::after {
        content: 'Swipe to see more \2192'; display: block; padding: 8px 4px 0;
        font-size: .78rem; color: var(--mf-muted);
    }
}

/* Screen-reader-only chart tables must not widen the page on phones */
table.visually-hidden { display: block; }
.visually-hidden { clip-path: inset(50%); }
.article-chart { position: relative; overflow: hidden; }

/* Google Ads page: closing card stays inside the screen on laptops and tablets */
@media (max-width: 1240px) {
    .budget-cta .container.budget-cta-card { width: auto; max-width: none; margin-left: 20px; margin-right: 20px; }
}
@media (max-width: 900px) {
    .budget-cta-card { grid-template-columns: 1fr; }
}

/* Article titles: wide display type needs a smaller size to sit beside the cover image */
.article-hero-copy h1 { font-size: clamp(2.1rem, 3.5vw, 3.5rem); font-stretch: 106%; line-height: 1.06; }

/* Pricing cards: never leave one card alone on a row */
@media (max-width: 1060px) {
    .pricing-section .cards-grid, .cards-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1061px) {
    .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Contact cards (About and Contact pages): one even row on wider screens */
@media (min-width: 900px) {
    .contact-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
    .contact-info > * { width: auto; }
}

/* Buttons placed inside a paragraph in page heroes get breathing room */
.page-hero p:has(> .btn), .service-hero p:has(> .btn) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.page-hero p > .btn, .service-hero p > .btn { margin: 0; }

/* Inner page heroes: breadcrumb lines up with the left-aligned heading */
.page-hero .breadcrumb { justify-content: flex-start; }

/* Hero highlight panel on service and industry pages: calmer glass, readable text */
.solutions-hero-panel {
    background: rgba(30, 41, 59, .55);
    border-color: var(--mf-line-strong);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.solutions-hero-panel div { background: rgba(15, 23, 42, .55); border-color: var(--mf-line); transition: transform .35s var(--mf-ease), border-color .3s; }
.solutions-hero-panel div:hover { transform: translateX(4px); border-color: rgba(129, 140, 248, .5); }
.solutions-hero-panel span { color: #6ee7b7; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.solutions-hero-panel p { color: var(--mf-muted); }

/* Cloudflare Turnstile: reserve its height so the submit button does not jump. */
.form-turnstile {
    min-height: 65px;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
   Pricing cards (pricing page) — visual upgrade, Nov 2026
   --------------------------------------------------------------------------- */
.cards-grid:has(.pricing-card) { align-items: start; gap: 22px; }
.cards-grid .pricing-card {
    padding: 34px 30px 28px;
    border-radius: 22px;
    transition: transform .35s var(--mf-ease), border-color .35s, box-shadow .35s;
}
.cards-grid .pricing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.cards-grid .pricing-card h3 {
    font-family: var(--mf-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--mf-muted); margin-bottom: 10px;
}
.cards-grid .pricing-card .plan-description { font-size: .95rem; line-height: 1.5; margin-bottom: 22px; min-height: 3em; }
.cards-grid .pricing-card .price { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 4px; line-height: 1; }
.cards-grid .pricing-card .currency { font-size: 1.6rem; font-weight: 700; margin-top: 8px; color: var(--mf-text); }
.cards-grid .pricing-card .amount {
    font-family: var(--mf-display); font-stretch: 115%; font-size: clamp(3.4rem, 5vw, 4.2rem);
    font-weight: 800; letter-spacing: -0.05em; line-height: 1;
    background: var(--mf-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cards-grid .pricing-card .period { align-self: flex-end; margin: 0 0 10px 6px; color: var(--mf-muted); font-size: .95rem; }
.cards-grid .pricing-card .annual-note {
    font-size: .8rem; color: var(--mf-muted); padding-bottom: 22px; margin-bottom: 22px;
    border-bottom: 1px solid var(--mf-line);
}
.cards-grid .pricing-card .features-list { display: grid; align-content: start; gap: 12px; margin: 0 0 28px; padding: 0; }
.cards-grid .pricing-card .features-list li {
    position: relative; display: block; padding: 0 0 0 32px; font-size: .95rem; line-height: 1.45;
    color: rgba(241, 245, 249, .9);
}
.cards-grid .pricing-card .features-list li::before {
    content: ''; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(16, 185, 129, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cards-grid .pricing-card .features-list li i { display: none; }
/* Highlight the SEO line on each plan */
.cards-grid .pricing-card[data-plan-card="Basic"] .features-list li:nth-child(4),
.cards-grid .pricing-card[data-plan-card="Standard"] .features-list li:nth-child(5),
.cards-grid .pricing-card[data-plan-card="Premium"] .features-list li:nth-child(3) {
    margin: 2px -12px; padding: 12px 12px 12px 44px; border-radius: 12px; color: #fff; font-weight: 500;
    background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(16, 185, 129, .12));
    border: 1px solid rgba(129, 140, 248, .35);
}
.cards-grid .pricing-card[data-plan-card="Basic"] .features-list li:nth-child(4)::before,
.cards-grid .pricing-card[data-plan-card="Standard"] .features-list li:nth-child(5)::before,
.cards-grid .pricing-card[data-plan-card="Premium"] .features-list li:nth-child(3)::before { left: 12px; top: 14px; }
.cards-grid .pricing-card .select-plan {
    border-radius: 999px; padding: 15px 20px; font-weight: 700;
    background: transparent; color: var(--mf-text); border: 1px solid var(--mf-line-strong);
}
.cards-grid .pricing-card .select-plan:hover, .cards-grid .pricing-card .select-plan:focus-visible {
    background: var(--mf-accent); border-color: var(--mf-accent); color: #fff;
}
.cards-grid .pricing-card .plan-reassurance { margin-top: 12px; font-size: .78rem; text-align: center; color: var(--mf-muted); }

/* Standard: the one to pick */
.cards-grid .pricing-card.featured {
    border: 1px solid transparent;
    background: linear-gradient(var(--mf-ink-2), var(--mf-ink-2)) padding-box,
                linear-gradient(180deg, rgba(99, 102, 241, .14), transparent 45%) padding-box,
                var(--mf-grad) border-box;
    box-shadow: 0 30px 80px -30px rgba(99, 102, 241, .55);
}
@media (min-width: 1024px) { .cards-grid .pricing-card.featured { transform: translateY(-14px); } .cards-grid .pricing-card.featured:hover { transform: translateY(-20px); } }
.cards-grid .pricing-card.featured .featured-badge {
    top: -14px; padding: 6px 16px; border-radius: 999px; font-size: .75rem; letter-spacing: .06em;
    text-transform: uppercase; background: var(--mf-grad); box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .8);
}
.cards-grid .pricing-card.featured .select-plan { background: var(--mf-grad); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -12px rgba(99, 102, 241, .9); }
.cards-grid .pricing-card.featured .select-plan:hover { filter: brightness(1.08); }

/* Premium: quiet emerald accent */
.cards-grid .pricing-card[data-plan-card="Premium"] { border-top: 3px solid #10b981; }
.cards-grid .pricing-card[data-plan-card="Premium"]::after {
    content: 'Most complete'; position: absolute; top: 18px; right: 20px; padding: 4px 10px; border-radius: 999px;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3);
}
@media (max-width: 1023px) {
    .cards-grid:has(.pricing-card) { max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .cards-grid .pricing-card, .cards-grid .pricing-card:hover, .cards-grid .pricing-card.featured { transition: none; } }
.cards-grid .pricing-card, .cards-grid .pricing-card .features-list li { text-align: left; }
.cards-grid .pricing-card.featured h3 { margin-top: 6px; }
@media (max-width: 600px) {
    .cards-grid .pricing-card[data-plan-card="Premium"]::after { top: -13px; right: 20px; background: #0f2a24; }
    .cards-grid .pricing-card[data-plan-card="Premium"] h3 { margin-top: 6px; }
}
.cards-grid .pricing-card h3, .cards-grid .pricing-card .plan-description, .cards-grid .pricing-card .annual-note { text-align: left; }
.cards-grid .pricing-card .price { justify-content: flex-start; }
