/*
|--------------------------------------------------------------------------
| SCANwelcome — Brand & Product Typography Foundation v1.0
|--------------------------------------------------------------------------
| SCANwelcome system UI:
| Display / editorial: Instrument Serif
| Product / UI / body: Manrope
| Fallback: Inter / system sans
|--------------------------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    /* Brand */
    --sw-midnight: #0B1F2A;
    --sw-slate: #16313C;
    --sw-ivory: #F7F4EE;
    --sw-porcelain: #FCFBF8;
    --sw-champagne: #C6A574;
    --sw-bronze: #927047;
    --sw-sage: #708071;
    --sw-charcoal: #24282A;
    --sw-text-muted: #72716D;

    /* Product */
    --sw-app-bg: #F6F7F5;
    --sw-card: #FFFFFF;
    --sw-text-primary: #202426;
    --sw-text-secondary: #6F7471;
    --sw-ui-border: #E4E7E3;
    --sw-ui-accent: #B89462;

    /* Typography */
    --sw-font-display:
        "Instrument Serif",
        Georgia,
        "Times New Roman",
        serif;

    --sw-font-ui:
        "Manrope",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    /* Marketing */
    --sw-type-hero: clamp(42px, 5.55vw, 80px);
    --sw-type-h2: clamp(32px, 3.9vw, 56px);
    --sw-type-h3: clamp(24px, 2vw, 28px);

    /* Product */
    --sw-type-product-h1: 36px;
    --sw-type-product-h2: clamp(21px, 1.8vw, 26px);
    --sw-type-product-h3: clamp(17px, 1.4vw, 20px);

    /* UI */
    --sw-type-body: 16px;
    --sw-type-body-sm: 15px;
    --sw-type-button: 14px;
    --sw-type-label: 12px;
    --sw-type-eyebrow: 11px;

    /* Line height */
    --sw-leading-hero: 0.99;
    --sw-leading-heading: 1.12;
    --sw-leading-body: 1.62;
    --sw-leading-ui: 1.45;

    /* Tracking */
    --sw-tracking-display: -0.025em;
    --sw-tracking-product: -0.02em;
    --sw-tracking-eyebrow: 0.14em;

    /* Motion */
    --sw-duration-fast: 120ms;
    --sw-duration-normal: 180ms;
    --sw-duration-medium: 240ms;
    --sw-ease-premium: cubic-bezier(.2, .8, .2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
    font-family: var(--sw-font-ui);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-body);
    font-weight: 400;
    line-height: var(--sw-leading-body);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*
 * Prevent Safari/iOS from synthesizing fake bold/italic variants.
 */
button,
input,
textarea,
select {
    font-family: var(--sw-font-ui);
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Display / editorial
   -------------------------------------------------------------------------- */

.sw-display,
.sw-hero-title,
.sw-editorial-heading {
    font-family: var(--sw-font-display);
    font-weight: 400;
    font-style: normal;
    letter-spacing: var(--sw-tracking-display);
}

.sw-hero-title {
    margin: 0;
    font-size: var(--sw-type-hero);
    line-height: var(--sw-leading-hero);
}

.sw-section-title {
    margin: 0;
    font-family: var(--sw-font-display);
    font-size: var(--sw-type-h2);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: var(--sw-tracking-display);
}

/* --------------------------------------------------------------------------
   Product typography
   -------------------------------------------------------------------------- */

.sw-product-h1 {
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-product-h1);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--sw-tracking-product);
}

.sw-product-h2 {
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-product-h2);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: var(--sw-tracking-product);
}

.sw-product-h3 {
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-product-h3);
    font-weight: 600;
    line-height: 1.3;
}

.sw-body {
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-body);
    font-weight: 400;
    line-height: var(--sw-leading-body);
}

.sw-label {
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-label);
    font-weight: 500;
    line-height: var(--sw-leading-ui);
    letter-spacing: 0.015em;
}

.sw-eyebrow {
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-eyebrow);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: var(--sw-tracking-eyebrow);
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */

.sw-button {
    min-height: 44px;
    font-family: var(--sw-font-ui);
    font-size: var(--sw-type-button);
    font-weight: 600;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Responsive typography
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --sw-type-hero: clamp(52px, 7vw, 60px);
        --sw-type-h2: clamp(38px, 5vw, 44px);
    }
}

@media (max-width: 767px) {
    :root {
        --sw-type-hero: clamp(42px, 12vw, 48px);
        --sw-type-h2: clamp(32px, 9vw, 36px);
        --sw-type-h3: 24px;

        --sw-type-product-h1: clamp(28px, 8vw, 30px);
        --sw-type-product-h2: clamp(21px, 6vw, 22px);
        --sw-type-product-h3: 17px;

        --sw-type-body: 16px;
        --sw-type-body-sm: 15px;
        --sw-type-button: 14px;
        --sw-type-label: 12px;
        --sw-type-eyebrow: 11px;
    }
}

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

/* Temporary homepage — premium product preview logo */
.product-logo {
    display: block;
    width: 176px;
    max-width: 52%;
    height: auto;
}

/* Temporary homepage — product preview full logo */
.product-brand img {
    width: 150px !important;
    max-width: none !important;
    height: auto !important;
    display: block;
}

.product-brand {
    display: flex;
    align-items: center;
}

/* Temporary homepage — product preview full logo */
.product-brand img {
    width: 150px !important;
    max-width: none !important;
    height: auto !important;
    display: block;
}

.product-brand {
    display: flex;
    align-items: center;
}
