/* SocialPro.com — site styles
   Palette derives from the logo. The bright logo colours fail AA as text on
   white, so each has a darkened "ink" variant used for text, links and solid
   buttons. Bright values are reserved for large shapes, borders and icons. */

:root {
    --blue:        #28a7dd;
    --blue-ink:    #10688c;   /* 6.1:1 on white */
    --green:       #8cc63f;
    --green-ink:   #4e7a17;   /* 5.0:1 on white */
    --orange:      #f7931e;
    --orange-ink:  #9a5600;   /* 5.7:1 on white */
    --purple:      #93278f;   /* 7.4:1 against white text */
    --purple-deep: #2b1030;

    --ink:         #1b1b1f;   /* body text, 15.8:1 on white */
    --ink-soft:    #4a4a52;   /* secondary text, 8.3:1 on white */
    --line:        #dcdce3;
    --surface:     #ffffff;
    --surface-alt: #f5f6f9;

    --shell:   75rem;
    --radius:  12px;
    --shadow:  0 2px 4px rgba(27, 27, 31, .06), 0 12px 28px rgba(27, 27, 31, .08);
    --font:    "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

a { color: var(--blue-ink); text-underline-offset: .18em; }
a:hover { color: var(--purple); }

/* ---- Focus: never removed, always visible on any background ---- */
:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
    border-radius: 4px;
}
.site-footer :focus-visible,
.hero :focus-visible { outline-color: #ffd14d; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top .15s ease-in;
}
.skip-link:focus { top: 0; color: #fff; }

main:focus { outline: none; }

/* ---- Layout helpers ---- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.section { padding: clamp(2.75rem, 1.5rem + 5vw, 5rem) 0; }
.section--alt { background: var(--surface-alt); }
.section__intro { max-width: 46rem; margin-bottom: 2.5rem; }
.section__intro p { color: var(--ink-soft); font-size: 1.125rem; }
.eyebrow {
    display: inline-block;
    margin-bottom: .75rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--purple);
}
.center { text-align: center; }
.center .section__intro { margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40em)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52em)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40em)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em)  { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .7rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: #761f73; color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--blue-ink); color: #fff; }
.btn--light { background: #fff; color: var(--purple-deep); }
.btn--light:hover { background: #ffe9b8; color: var(--purple-deep); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--purple-deep); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
}
.site-header__logo { display: inline-flex; padding: .25rem; }
.site-header__logo img { width: 190px; height: auto; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .5rem .9rem;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] { background: var(--surface-alt); }

.primary-nav { flex-basis: 100%; }
.primary-nav[hidden] { display: none; }
.primary-nav__list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin: 0;
    padding: .5rem 0 1rem;
    list-style: none;
    border-top: 1px solid var(--line);
}
.primary-nav a {
    display: block;
    padding: .7rem .5rem;
    min-height: 44px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}
.primary-nav a:hover { background: var(--surface-alt); color: var(--purple); }
.primary-nav a[aria-current="page"] {
    color: var(--purple);
    box-shadow: inset 3px 0 0 var(--purple);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
.primary-nav__cta { margin-top: .5rem; }
.primary-nav__cta a { color: #fff; text-align: center; }
.primary-nav__cta a:hover { color: #fff; background: #761f73; }

@media (min-width: 62em) {
    .nav-toggle { display: none; }
    .primary-nav { flex-basis: auto; }
    .primary-nav[hidden] { display: block; }   /* desktop ignores the toggle state */
    .primary-nav__list {
        flex-direction: row;
        align-items: center;
        gap: .35rem;
        padding: 0;
        border-top: 0;
    }
    .primary-nav a { padding: .6rem .8rem; }
    .primary-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--purple); }
    .primary-nav__cta { margin: 0 0 0 .5rem; }
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--purple-deep) 0%, #5c1a6b 55%, var(--blue-ink) 100%);
    color: #fff;
    padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0;
}
.hero h1 { color: #fff; }
.hero p { color: #f1ecf5; font-size: 1.1875rem; max-width: 36rem; }
.hero .eyebrow { color: #c3e892; }   /* AA as small text over every stop of the hero gradient */
.hero a:not(.btn) { color: #ffe9b8; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56em) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero__media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.hero--compact { padding: clamp(2rem, 1.2rem + 3vw, 3.25rem) 0; }
.hero--compact p { margin-bottom: 0; }

.stat-row {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
}
@media (min-width: 40em) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat-row dt { font-size: 2rem; font-weight: 700; color: #b4e074; }
.stat-row dd { margin: 0; color: #ece6f0; }

/* ---- Cards ---- */
.card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card--green  { border-top-color: var(--green); }
.card--orange { border-top-color: var(--orange); }
.card--purple { border-top-color: var(--purple); }
.card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #e8f6fd;
    color: var(--blue-ink);
    font-size: 1.5rem;
    font-weight: 700;
}
.card--green  .card__icon { background: #eef7e2; color: var(--green-ink); }
.card--orange .card__icon { background: #fdf0de; color: var(--orange-ink); }
.card--purple .card__icon { background: #f6e8f6; color: var(--purple); }
.card__link { margin-top: auto; padding-top: 1rem; font-weight: 700; }

.media-row { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56em) {
    .media-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .media-row--flip .media-row__media { order: 2; }
}
.media-row__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.checklist li::before {
    position: absolute;
    left: 0;
    top: .05em;
    color: var(--green-ink);
    font-weight: 700;
    content: "\2713";
}

/* ---- Pricing ---- */
.price-card { position: relative; }
.price-card--featured {
    border: 2px solid var(--purple);
    border-top-width: 5px;
}
.price-card__badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: .75rem;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.price-card__price { margin: .5rem 0 1rem; font-size: 2.5rem; font-weight: 700; line-height: 1; }
.price-card__price span { display: block; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }
.price-card .btn { width: 100%; margin-top: 1.25rem; }

.table-wrap { overflow-x: auto; }
table.compare {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    background: #fff;
}
table.compare caption { text-align: left; padding-bottom: .75rem; color: var(--ink-soft); }
table.compare th, table.compare td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
table.compare thead th { background: var(--purple-deep); color: #fff; }
table.compare tbody th { font-weight: 600; }
table.compare tbody tr:nth-child(even) { background: var(--surface-alt); }

/* ---- FAQ / details ---- */
.faq { max-width: 48rem; }
.faq details {
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.faq summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.faq summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.faq details[open] summary { margin-bottom: .6rem; }

/* ---- Team ---- */
.team-card { text-align: center; }
.team-card img {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--blue);
}
.team-card p.role { color: var(--purple); font-weight: 700; margin-bottom: .5rem; }

/* ---- Call to action band ---- */
.cta-band {
    background: var(--purple-deep);
    color: #fff;
    padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 42rem; margin-inline: auto; color: #e9e1ee; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---- Forms ---- */
.form-layout { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .form-layout { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }

.form-card {
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; font-size: .875rem; color: var(--ink-soft); }
.field .req { color: var(--orange-ink); font-weight: 700; }
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: .65rem .8rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 2px solid #767680;   /* 4.5:1 on white — clears the 3:1 non-text minimum */
    border-radius: 8px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-color: var(--purple); }
.field .error-text { display: block; margin-top: .35rem; color: #b3261e; font-weight: 600; }
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: #b3261e; background: #fff6f5; }

fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: .35rem; }
.choice { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .5rem; }
.choice input { width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: .3rem; flex: none; }
.choice label { font-weight: 400; margin: 0; }

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    border-left: 6px solid;
}
.alert h2, .alert h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert--error   { background: #fdeceb; border-color: #b3261e; color: #5d1410; }
.alert--success { background: #eef7e2; border-color: var(--green-ink); color: #26400a; }
.alert--error a { color: #8c1d18; }
.alert:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.contact-aside h2 { font-size: 1.25rem; }
.contact-aside dl { margin: 0 0 1.5rem; }
.contact-aside dt { font-weight: 700; }
.contact-aside dd { margin: 0 0 .85rem; }

/* ---- Long-form legal pages ---- */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose .updated { color: var(--ink-soft); font-style: italic; }

/* ---- Footer ---- */
.site-footer { background: var(--purple-deep); color: #ece7ef; padding: 3rem 0 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd14d; }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.site-footer__mark { width: 56px; height: 56px; }
.site-footer__wordmark { margin: .5rem 0 0; font-size: 1.5rem; font-weight: 700; color: #fff; }
.site-footer__wordmark span { color: var(--green); }
.site-footer__tagline { color: #cfc5d6; font-size: .9375rem; }
.site-footer__heading { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: .5rem; }
.site-footer__col a { display: inline-block; padding: .25rem 0; min-height: 32px; }
.site-footer__contact li { color: #ddd5e2; }
.site-footer__legal {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .9375rem;
    color: #cfc5d6;
}
.site-footer__legal p { margin: 0; }

/* ---- Visually hidden (still read by screen readers) ---- */
.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;
}

/* ---- Respect user preferences ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    .btn, .card, .field input, .field textarea { border: 1px solid ButtonBorder; }
    .primary-nav a[aria-current="page"] { text-decoration: underline; }
}

@media print {
    .site-header, .site-footer, .cta-band, .skip-link { display: none; }
    body { color: #000; font-size: 12pt; }
}
