/* ============================================================
   WebTMS Email Integration Site — Brand CSS
   Matches webtms.com palette. Font: Montserrat (Google Fonts).
   ============================================================ */

:root {
    --teal-50:   #E5F5F3;
    --teal-100:  #B3E4DC;
    --teal-300:  #40BFB0;
    --teal-500:  #019B87;
    --teal-600:  #018B79;
    --teal-700:  #017A6A;
    --teal-900:  #29375B;
    --purple-500: #5466B7;
    --ink:        #1E2530;
    --slate-500:  #4A5568;
    --slate-300:  #CBD5E0;
    --mist:       #F7FAFC;
    --white:      #FFFFFF;
    --border:     #DDE6E4;

    --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(30,37,48,0.07);
    --shadow-md: 0 8px 24px rgba(1,155,135,0.12);
    --shadow-lg: 0 24px 56px rgba(1,155,135,0.14);
    --maxw: 1100px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-500); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--teal-600); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
    letter-spacing: -0.015em;
    color: var(--ink);
}
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* --- LAYOUT --- */
.content-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.main-content  { padding: 56px 24px; max-width: var(--maxw); margin: 0 auto; }

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.header__logo img { display: block; }
.header__nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: color 120ms ease;
}
.nav-link:hover { color: var(--teal-500); text-decoration: none; }

@media (max-width: 600px) {
    .header__nav { gap: 14px; }
    .nav-link { font-size: 0.8rem; }
}

/* --- PAGE HERO --- */
.page-hero {
    padding: 48px 0 40px;
    background: linear-gradient(72deg, #fafafa 22%, rgba(170,227,219,0.57) 62%, rgba(128,163,196,0.63) 84%, rgba(0,76,148,0.39) 100%);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--teal-900); margin-bottom: 12px; }
.page-hero .lede {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 55ch;
    margin: 0;
    font-weight: 400;
}

/* --- EYEBROW LABEL --- */
.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-500);
    margin-bottom: 10px;
}

/* --- NOTICE BOX --- */
.notice {
    background: #FAEEDA;
    border: 1px solid #FAC775;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.92rem;
    color: #633806;
    margin-bottom: 0;
}
.notice a { color: #854F0B; font-weight: 600; }

/* --- CARDS --- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card__header {
    padding: 20px 24px 18px;
    border-bottom: 1px solid var(--border);
}
.card__header h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}
.card__header .audience {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.card__footer { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--mist); }

/* Card colour variants */
.card--vsto .card__header { background: #F1EFE8; }
.card--vsto .card__header h2 { color: var(--teal-900); }
.card--vsto .card__header .audience { color: var(--slate-500); }

.card--addin .card__header { background: var(--teal-50); }
.card--addin .card__header h2 { color: var(--teal-700); }
.card--addin .card__header .audience { color: var(--teal-600); }

/* --- TWO COLUMN GRID --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 720px) {
    .two-col { grid-template-columns: 1fr; }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
    text-decoration: none;
    width: 100%;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: var(--shadow-md); }

.btn--primary {
    background: linear-gradient(130deg, #37b882 0%, #0b9661 52%, #067a4e 100%);
    color: #fff;
    border-color: var(--teal-500);
}
.btn--primary:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

.btn--secondary {
    background: var(--white);
    color: var(--teal-500);
    border-color: var(--teal-100);
}
.btn--secondary:hover { border-color: var(--teal-300); color: var(--teal-600); background: var(--teal-50); }

/* --- CHECKLIST --- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--slate-500);
    border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal-500);
    font-weight: 700;
}

/* --- META / VERSION LINE --- */
.version-meta {
    font-size: 0.82rem;
    color: var(--slate-500);
    text-align: center;
}
.version-meta a { color: var(--teal-500); }

/* --- SECTION DIVIDER --- */
.section-intro {
    text-align: center;
    padding-bottom: 40px;
    max-width: 60ch;
    margin: 0 auto 40px;
    border-bottom: 1px solid var(--border);
}
.section-intro p { color: var(--slate-500); }

/* --- FOOTER --- */
.footer {
    background: #1f5d65;
    color: #fff;
    padding: 56px 0 28px;
    margin-top: 80px;
}
.footer__cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer__tagline { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin: 0; font-weight: 300; }
.footer h4 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 0.88rem; }
.footer a { color: var(--teal-100); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
    gap: 12px;
}
.footer__legal a { color: rgba(255,255,255,0.6); }
.footer__legal a:hover { color: #fff; }

@media (max-width: 700px) {
    .footer__cols { grid-template-columns: 1fr; gap: 28px; }
    .footer__legal { flex-direction: column; align-items: flex-start; }
}

/* --- VERSION BANNER --- */
.version-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
}
.version-banner__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-600);
}
.version-banner__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teal-700);
    font-family: monospace;
}
