/**
 * EasyIntrastat — Marketing redesign layer (2026)
 * Loaded LAST on public/marketing pages only (not the app/processor).
 * Bold, cohesive look on the blue/yellow brand. Light + Dark only.
 */

/* ============================================================
   1. Design tokens (light) — override base :root on marketing pages
   ============================================================ */
:root {
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --h1-size: clamp(2.25rem, 4.5vw, 3.25rem);
    --h2-size: clamp(1.6rem, 3vw, 2.1rem);
    --h3-size: 1.2rem;
    --h1-weight: 800;
    --h2-weight: 700;
    --h3-weight: 700;
    --heading-letter-spacing: -0.025em;

    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-darker: #1e3a8a;
    --brand-light: #3b82f6;
    --yellow: #eab308;

    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;

    --page-bg: #ffffff;
    --surface: #ffffff;
    --tint: #f1f6ff;          /* soft blue band */
    --tint-2: #f8fafc;        /* neutral band */
    --hairline: #e6ebf3;

    --primary: var(--brand);
    --primary-dark: var(--brand-dark);
    --bg-primary: var(--page-bg);
    --bg-secondary: var(--surface);
    --bg-tertiary: var(--tint-2);
    --text-primary: var(--ink);
    --text-secondary: var(--body);
    --text-muted: var(--muted);
    --border: var(--hairline);

    --company-primary: var(--brand);
    --company-primary-dark: var(--brand-dark);
    --company-yellow: var(--yellow);
    --company-text: var(--ink);
    --company-text-muted: var(--muted);
    --company-border: var(--hairline);
    --company-bg: var(--surface);

    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-brand: 0 12px 26px rgba(37, 99, 235, 0.28);

    --maxw: 1120px;
    --gutter: 1.5rem;
}

/* ============================================================
   2. Base / layout
   ============================================================ */
html { overflow-x: clip; scroll-behavior: smooth; }

body {
    background: var(--page-bg);
    color: var(--body);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Neutralise the old "white card on colour" container */
.container.website-container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Constrain inner-page content rows; full-bleed bands and the nav opt out */
.website-container > *:not(.full-bleed):not(.company-nav) {
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Full-bleed bands break out to the viewport, inner stays constrained */
.full-bleed {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
}
.band-inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

::selection { background: rgba(37, 99, 235, 0.18); }

.website-container h1,
.website-container h2,
.website-container h3,
.website-container h4 {
    font-family: var(--font-heading);
    color: var(--ink);
    letter-spacing: var(--heading-letter-spacing);
    line-height: 1.12;
}

/* ============================================================
   3. Buttons
   ============================================================ */
.btn-cta,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34); color: #fff; }
.btn-outline {
    background: var(--surface);
    color: var(--brand-dark);
    border-color: var(--hairline);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 1rem 1.85rem; font-size: 1.05rem; }

/* ============================================================
   4. Sticky nav
   ============================================================ */
.company-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 0 0 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    gap: 1rem 1.5rem;
}
/* full-bleed nav with constrained inner via padding trick */
.company-nav {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    padding-inline: max(var(--gutter), calc(50vw - var(--maxw) / 2));
}
.company-brand { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.company-nav-links { gap: 1.4rem; align-items: center; }
.company-nav-links a { color: var(--body); font-weight: 500; font-size: 0.96rem; position: relative; }
.company-nav-links a:hover { color: var(--brand); }
.company-nav-links a.active { color: var(--brand); }
.company-nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -0.5rem;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}
.nav-actions { display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav-cta { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.theme-toggle {
    border-radius: var(--radius-pill);
    border-color: var(--hairline);
    color: var(--body);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }

/* ============================================================
   5. Hero (homepage)
   ============================================================ */
.hero { position: relative; padding: 4.5rem 0 4rem; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 120% at 85% -10%, rgba(234, 179, 8, 0.12) 0%, transparent 60%),
        radial-gradient(70% 130% at 10% 0%, rgba(37, 99, 235, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
    z-index: -1;
}
.hero-inner { max-width: 880px; margin-inline: auto; text-align: center; padding-inline: var(--gutter); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-dark);
    font-weight: 600; font-size: 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero-title { font-size: var(--h1-size); font-weight: 800; color: var(--ink); margin: 0 0 1rem; }
.hero-title .accent {
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.18rem; line-height: 1.6; color: var(--body); max-width: 660px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.hero-trust {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--hairline);
}
.hero-trust-item { text-align: center; }
.hero-trust-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--ink); display: block; }
.hero-trust-label { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   6. Section bands
   ============================================================ */
.section { padding: 4rem 0; }
.section--tint { background: var(--tint); }
.section--neutral { background: var(--tint-2); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-eyebrow {
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
    font-weight: 700; color: var(--brand); margin-bottom: 0.5rem;
}
.section-title { font-size: var(--h2-size); font-weight: 700; color: var(--ink); margin: 0 0 0.75rem; }
.section-intro { font-size: 1.05rem; line-height: 1.65; color: var(--body); }

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, 0.25); }
.feature-icon {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(234, 179, 8, 0.12) 100%);
    color: var(--brand-dark);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--ink); }
.feature-card p { font-size: 0.95rem; line-height: 1.6; color: var(--body); margin: 0; }

/* Steps row (reuses .services-flow/.flow-step markup) */
.services-flow { gap: 1rem; align-items: stretch; }
.flow-step {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem;
    min-width: 180px;
    flex: 1;
    max-width: 300px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, 0.25); }
.flow-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(234, 179, 8, 0.12) 100%);
    color: var(--brand-dark);
    border-radius: 16px;
}
.flow-label { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.flow-desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.flow-arrow { color: var(--brand); opacity: 0.55; font-size: 1.5rem; }

/* Pricing */
.pricing-cards { gap: 1.5rem; max-width: 760px; margin-inline: auto; }
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}
.pricing-card--addon { border-color: var(--brand); background: linear-gradient(180deg, rgba(37,99,235,0.05), rgba(37,99,235,0.02)); position: relative; }
.pricing-card--addon::after {
    content: 'Pay as you go';
    position: absolute; top: 1.25rem; right: 1.25rem;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--brand-dark); background: rgba(37,99,235,0.1);
    padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
}
.pricing-price { color: var(--ink); }
.pricing-amount { font-family: var(--font-heading); color: var(--brand); }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 55%, var(--brand) 100%);
    color: #fff;
    border-radius: 0;
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(50% 120% at 80% 0%, rgba(234,179,8,0.18) 0%, transparent 55%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--h2-size); margin: 0 0 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 560px; margin: 0 auto 1.75rem; }
.cta-band .btn-cta { background: #fff; color: var(--brand-dark); box-shadow: 0 12px 26px rgba(0,0,0,0.18); }
.cta-band .btn-cta:hover { background: #f8fafc; color: var(--brand-darker); }

/* ============================================================
   7. Footer
   ============================================================ */
.company-footer {
    margin-top: 0;
    padding: 3rem var(--gutter) 2.5rem;
    border-top: 1px solid var(--hairline);
    background: var(--tint-2);
    color: var(--muted);
}
.company-footer .band-inner { display: block; }
.company-footer > p:first-child { font-size: 1rem; color: var(--body); margin-bottom: 1rem; }
.company-footer a { color: var(--brand-dark); }
.company-footer-legal p { color: var(--muted); }
.company-footer-disclaimer { max-width: 720px; }

/* ============================================================
   8. Inner page hero (about, news, contact, etc.)
   ============================================================ */
.company-hero--small { padding: 2.5rem 0 1.25rem; }
.company-hero--small h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; }
.company-hero--small .lead { font-size: 1.1rem; color: var(--body); max-width: 720px; }

/* Section heading underline accent (kept, refined) */
.services-section h2::after,
.pricing-section h2::after { height: 3px; width: 56px; }

/* Knowledge / news cards inherit refined surfaces */
.knowledge-card { background: var(--surface); border-radius: var(--radius-lg); }
.news-article { border-radius: var(--radius-lg) !important; }

/* ============================================================
   9. Dark mode
   ============================================================ */
html[data-theme="dark"] {
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --page-bg: #0b1220;
    --surface: #111a2e;
    --tint: #0f1a30;
    --tint-2: #0e1626;
    --hairline: #1f2c44;
    --ink: #f1f5f9;
    --body: #cbd5e1;
    --muted: #94a3b8;
    --brand: #60a5fa;
    --brand-dark: #3b82f6;
    --brand-darker: #1e3a8a;
    --brand-light: #93c5fd;
    --yellow: #facc15;

    --bg-primary: var(--page-bg);
    --bg-secondary: var(--surface);
    --bg-tertiary: var(--tint-2);
    --text-primary: var(--ink);
    --text-secondary: var(--body);
    --text-muted: var(--muted);
    --border: var(--hairline);
    --company-primary: var(--brand);
    --company-primary-dark: var(--brand-dark);
    --company-yellow: var(--yellow);
    --company-text: var(--ink);
    --company-text-muted: var(--muted);
    --company-border: var(--hairline);
    --company-bg: var(--surface);
}
html[data-theme="dark"] .company-nav { background: rgba(11, 18, 32, 0.85); }
html[data-theme="dark"] .hero::before {
    background:
        radial-gradient(60% 120% at 85% -10%, rgba(250, 204, 21, 0.10) 0%, transparent 60%),
        radial-gradient(70% 130% at 10% 0%, rgba(37, 99, 235, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, #0e1830 0%, #0b1220 100%);
}
html[data-theme="dark"] .eyebrow { background: rgba(96, 165, 250, 0.14); color: var(--brand-light); }
html[data-theme="dark"] .btn-outline { background: var(--surface); color: var(--brand-light); }
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .flow-step,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .knowledge-card,
html[data-theme="dark"] .news-article { background: var(--surface); border-color: var(--hairline); }
html[data-theme="dark"] .section--tint { background: #0e1830; }
html[data-theme="dark"] .section--neutral { background: #0c1424; }
html[data-theme="dark"] .company-footer { background: #0c1424; }
html[data-theme="dark"] .cta-band .btn-cta { background: #fff; color: var(--brand-darker); }

/* ============================================================
   10. Responsive
   ============================================================ */
@media (max-width: 860px) {
    .company-nav { flex-wrap: wrap; }
    .company-nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 1rem; }
    .nav-actions { margin-left: auto; }
}
@media (max-width: 640px) {
    .hero { padding: 3rem 0 2.5rem; }
    .section { padding: 3rem 0; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-cta, .hero-actions .btn-outline { width: 100%; }
    .hero-trust { gap: 1.25rem; }
    .flow-arrow { transform: rotate(90deg); }
}
