/* ==========================================================================
   Metro AI Publishing Factory — Marketing Design Tokens
   Batch UI.2.2 — Product-first Global SaaS palette
   ========================================================================== */

:root {
    /* UI.2.2 color system */
    --navy-950: #111827;
    --navy-900: #172033;
    --orange-500: #FF9F1C;
    --orange-400: #FFB43C;
    --pink-400: #FF6F91;
    --blue-500: #32A8F0;
    --blue-100: #EAF6FF;
    --mint-500: #24C59A;
    --cream-50: #FFFDF8;
    --lavender-100: #EEF0FF;
    --surface: #FFFFFF;
    --text-muted: #667085;

    /* Brand aliases (backward compat for other marketing pages) */
    --brand-primary: var(--orange-500);
    --brand-primary-dark: #E07E00;
    --brand-blue: var(--blue-500);
    --brand-blue-soft: var(--blue-100);
    --brand-green: var(--mint-500);
    --brand-green-soft: #E4FBF4;
    --brand-pink: var(--pink-400);
    --brand-pink-soft: #FFEEF4;
    --brand-purple: #8E7CF0;
    --brand-purple-soft: var(--lavender-100);
    --brand-yellow: var(--orange-400);
    --brand-yellow-soft: #FFF4DE;
    --brand-orange: #FF7A45;
    --brand-orange-soft: #FFEBE1;

    /* Surfaces */
    --surface-main: var(--cream-50);
    --surface-card: var(--surface);
    --surface-muted: #F6F5F0;
    --surface-navy: var(--navy-900);
    --surface-navy-deep: var(--navy-950);

    /* Text */
    --text-primary: var(--navy-900);
    --text-secondary: var(--text-muted);
    --text-light: #8B90A3;
    --text-on-accent: var(--navy-900);
    --text-on-navy: #F3F4FA;
    --text-on-navy-soft: #A7ACC2;

    --border-soft: #ECE8DE;
    --border-navy: rgba(255, 255, 255, 0.1);
    --success: #1FA97A;
    --warning: #E0A100;
    --danger: #E15656;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --shadow-card: 0 14px 32px rgba(23, 30, 51, 0.09);
    --shadow-soft: 0 6px 18px rgba(23, 30, 51, 0.07);
    --shadow-lift: 0 20px 46px rgba(23, 30, 51, 0.16);
    --shadow-xl: 0 30px 70px rgba(23, 30, 51, 0.22);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    --container-max: 1200px;
    --container-wide: 1240px;
    --header-h: 72px;

    --font-body: 'Noto Sans Thai', 'Prompt', 'Sarabun', 'Leelawadee UI',
        system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Noto Sans Thai', 'Prompt', 'Leelawadee UI', system-ui,
        -apple-system, 'Segoe UI', sans-serif;

    --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
    --fs-small: 0.9375rem;
    --lh-body: 1.65;
    --text-block-max: 40.625rem;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.18s;
    --dur-mid: 0.32s;
}

.mkt *,
.mkt *::before,
.mkt *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.mkt {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background: var(--surface-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.mkt h1,
.mkt h2,
.mkt h3,
.mkt h4 {
    font-family: var(--font-head);
    color: var(--text-primary);
    margin: 0 0 var(--space-4);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mkt h1 {
    font-size: clamp(2.625rem, 5vw, 4.25rem);
    line-height: 1.08;
    max-width: 38.75rem;
}
.mkt h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.18;
}
.mkt h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.2; font-weight: 700; }

.mkt p { margin: 0 0 var(--space-4); }
.mkt h1, .mkt h2, .mkt h3, .mkt p, .mkt li, .mkt span { overflow-wrap: break-word; }

.mkt a { color: var(--brand-blue); text-decoration: none; }
.mkt a:hover { text-decoration: underline; }

.mkt img, .mkt svg { max-width: 100%; height: auto; }

.mkt a:focus-visible,
.mkt button:focus-visible,
.mkt input:focus-visible,
.mkt select:focus-visible,
.mkt [tabindex]:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.mkt .skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--text-primary); color: #fff;
    padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-md) 0;
}
.mkt .skip-link:focus { left: 0; text-decoration: none; }

.mkt .container {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.mkt .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .mkt *, .mkt *::before, .mkt *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
