/* ============================================================
   ProWhiteLabelSEO — styles.css
   Design direction: "Agency Authority" — Editorial Minimalism
   Fonts: Syne (display) + Plus Jakarta Sans (body)
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    /* Dark ink palette */
    --ink-950: #050C17;
    --ink-900: #0C1A27;
    --ink-800: #142236;
    --ink-700: #1C3454;

    /* Accent: sky blue */
    --sky-500:    #0EA5E9;
    --sky-600:    #0284C7;
    --sky-700:    #0369A1;
    --sky-bg:     rgba(14, 165, 233, 0.07);
    --sky-border: rgba(14, 165, 233, 0.25);

    /* Neutrals */
    --white:    #FFFFFF;
    --gray-50:  #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Error */
    --red-600: #DC2626;
    --red-bg:  rgba(220, 38, 38, 0.10);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;

    /* Spacing (8 px grid) */
    --s1:  0.25rem;   /* 4 px  */
    --s2:  0.5rem;    /* 8 px  */
    --s3:  0.75rem;   /* 12 px */
    --s4:  1rem;      /* 16 px */
    --s5:  1.25rem;   /* 20 px */
    --s6:  1.5rem;    /* 24 px */
    --s8:  2rem;      /* 32 px */
    --s10: 2.5rem;    /* 40 px */
    --s12: 3rem;      /* 48 px */
    --s16: 4rem;      /* 64 px */
    --s20: 5rem;      /* 80 px */
    --s24: 6rem;      /* 96 px */

    /* Containers */
    --max-w:     1200px;
    --narrow-w:  800px;

    /* Section vertical rhythm */
    --section-py: var(--s20);

    /* Radii */
    --r-sm:   4px;
    --r-md:   8px;
    --r-lg:   12px;
    --r-xl:   16px;
    --r-pill: 100px;

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 250ms ease;

    /* Shadows */
    --sh-sm: 0 1px 3px rgba(0,0,0,0.08);
    --sh-md: 0 4px 16px rgba(0,0,0,0.10);
    --sh-lg: 0 12px 40px rgba(0,0,0,0.14);
    --sh-xl: 0 24px 64px rgba(0,0,0,0.18);
}


/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

:focus-visible {
    outline: 2px solid var(--sky-500);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}


/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -120%;
    left: var(--s4);
    background: var(--sky-500);
    color: var(--white);
    padding: var(--s2) var(--s5);
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 9999;
    transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s4); }


/* ── Layout utilities ───────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--s6);
}
.container--narrow { max-width: var(--narrow-w); }

.section { padding-block: var(--section-py); }
.bg-white { background: var(--white); }
.bg-gray  { background: var(--gray-50); }
.bg-dark  { background: var(--ink-900); }


/* ── Type utilities ─────────────────────────────────────────── */
.eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sky-500);
    margin-bottom: var(--s4);
}
.eyebrow--light { color: var(--sky-500); }

.section-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3.8vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin-bottom: var(--s6);
}
.section-h2 em   { font-style: normal; color: var(--sky-600); }
.section-h2--center { text-align: center; }
.section-h2--light  { color: var(--white); }
.section-h2--light em { color: var(--sky-500); }

.body-copy {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--s5);
}
.body-copy strong { color: var(--gray-800); font-weight: 600; }
.body-copy--center {
    text-align: center;
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: var(--s10);
}

.section-intro {
    text-align: center;
    margin-bottom: var(--s12);
}
.section-intro .eyebrow,
.section-intro .section-h2 { margin-inline: auto; }


/* ── Buttons ─────────────────────────────────────────────────  */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--s4) var(--s8);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--r-md);
    border: 2px solid transparent;
    white-space: nowrap;
    min-height: 48px;  /* WCAG touch target */
    transition: all var(--t-base);
    cursor: pointer;
}
.btn-primary {
    background: var(--sky-500);
    color: var(--white);
    border-color: var(--sky-500);
    box-shadow: 0 4px 18px rgba(14,165,233,0.28);
}
.btn-primary:hover {
    background: var(--sky-600);
    border-color: var(--sky-600);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(14,165,233,0.38);
}
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.30);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.07);
    color: var(--white);
}
.btn-sm { padding: var(--s2) var(--s5); font-size: 0.875rem; min-height: 40px; }
.btn-lg { padding: var(--s5) var(--s10); font-size: 1.0625rem; min-height: 56px; }
.btn-full { width: 100%; }


/* ── Logo ───────────────────────────────────────────────────── */
.logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo-accent { color: var(--sky-500); }
.logo-main   { color: var(--white); }


/* ── Header & nav ───────────────────────────────────────────── */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 200;
    background: rgba(5, 12, 23, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow var(--t-base);
}
.site-header.scrolled {
    box-shadow: 0 4px 32px rgba(0,0,0,0.40);
}

.nav-wrap {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--s6);
    display: flex;
    align-items: center;
    height: 72px;
    gap: var(--s6);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--s6);
    margin-left: auto;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.60);
    padding-block: var(--s1);
    position: relative;
    transition: color var(--t-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1.5px;
    background: var(--sky-500);
    transition: width var(--t-base);
}
.nav-link:hover,
.nav-link.active         { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after  { width: 100%; }

.nav-desktop-cta { margin-left: var(--s4); flex-shrink: 0; }
.nav-mobile-cta  { display: none; }

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: var(--s2);
    margin-left: auto;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--t-base);
    transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    background: var(--ink-950);
    padding-top: calc(72px + var(--s16));
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--s6);
    padding-bottom: var(--s16);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s12);
    align-items: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--sky-500);
    background: var(--sky-bg);
    border: 1px solid var(--sky-border);
    padding: var(--s2) var(--s4);
    border-radius: var(--r-pill);
    margin-bottom: var(--s6);
}

/* H1 */
.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: var(--s6);
}
.hero-h1 em {
    font-style: normal;
    color: var(--sky-500);
    display: block;  /* Each phrase on its own line for impact */
}

.hero-sub {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: var(--s4);
}

.hero-tagline {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.40);
    font-style: italic;
    margin-bottom: var(--s8);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s4);
    align-items: center;
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-visual-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
}
.network-svg {
    width: 100%;
    animation: svgBreath 4s ease-in-out infinite;
}
@keyframes svgBreath {
    0%, 100% { opacity: 0.72; }
    50%       { opacity: 1.00; }
}
.node-ring {
    animation: ringPulse 2.4s ease-in-out infinite;
}
@keyframes ringPulse {
    0%, 100% { r: 26; opacity: 0.10; }
    50%       { r: 34; opacity: 0.05; }
}

/* Card stack — fulfillment layers behind the brand card */
.card-stack {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 74%;
    height: 84px;
}
.stack-card {
    position: absolute;
    inset-inline: 0;
    background: var(--ink-800);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-lg);
    padding: var(--s3) var(--s5);
    display: flex;
    align-items: center;
    gap: var(--s3);
}
.stack-back2 { bottom: -22px; transform: scale(0.86); opacity: 0.35; z-index: 1; }
.stack-back1 { bottom: -11px; transform: scale(0.93); opacity: 0.60; z-index: 2; }
.stack-front {
    bottom: 0;
    z-index: 3;
    background: var(--ink-700);
    border-color: var(--sky-border);
    box-shadow: 0 8px 32px rgba(14,165,233,0.16);
}

.stack-check {
    width: 30px;
    height: 30px;
    background: var(--sky-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}
.stack-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    display: block;
}
.stack-label--lg { font-size: 0.9375rem; }
.stack-sub {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.45);
    display: block;
    margin-top: 2px;
    line-height: 1.4;
}

/* Hero pain strip */
.hero-pain {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: var(--s12);
}
.hero-pain-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--s6);
    padding-block: var(--s10);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s10);
}
.pain-text {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.8;
}
.pain-text strong { color: rgba(255,255,255,0.80); font-weight: 600; }


/* ── Problem section ────────────────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s16);
    align-items: center;
}

.cost-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--sky-500);
    border-radius: var(--r-xl);
    padding: var(--s8);
    box-shadow: var(--sh-sm);
}
.cost-headline {
    display: flex;
    align-items: baseline;
    gap: var(--s4);
    margin-bottom: var(--s6);
}
.cost-num {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--sky-500);
    flex-shrink: 0;
    letter-spacing: -0.04em;
}
.cost-caption {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.5;
}
.cost-rule {
    height: 1px;
    background: var(--gray-200);
    border: none;
    margin-bottom: var(--s5);
}
.cost-list-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--s3);
}
.cost-list { display: flex; flex-direction: column; gap: var(--s2); }
.cost-list li {
    font-size: 0.9375rem;
    color: var(--gray-600);
    padding-left: var(--s5);
    position: relative;
}
.cost-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--sky-500);
    font-weight: 700;
    line-height: inherit;
}


/* ── Solution section ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s4);
    margin-bottom: var(--s10);
}
.service-tile {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    padding: var(--s5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    transition: all var(--t-base);
}
.service-tile:hover {
    border-color: var(--sky-500);
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}
.service-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-bg);
    border-radius: var(--r-sm);
    color: var(--sky-500);
    font-size: 1rem;
}
.service-name {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

.solution-callout {
    background: var(--sky-bg);
    border: 1px solid var(--sky-border);
    border-radius: var(--r-lg);
    padding: var(--s6) var(--s8);
    text-align: center;
}
.solution-callout p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.75;
}
.solution-callout strong { color: var(--gray-900); }


/* ── Benefits section ───────────────────────────────────────── */
.benefits-grid {
    display: grid;
    /* 6-col so row 1 = 3 cards, row 2 = 2 cards centered */
    grid-template-columns: repeat(6, 1fr);
    gap: var(--s5);
    margin-top: var(--s10);
}
.benefit-card:nth-child(1) { grid-column: 1 / 3; }
.benefit-card:nth-child(2) { grid-column: 3 / 5; }
.benefit-card:nth-child(3) { grid-column: 5 / 7; }
.benefit-card:nth-child(4) { grid-column: 2 / 4; }
.benefit-card:nth-child(5) { grid-column: 4 / 6; }

.benefit-card {
    padding: var(--s8);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--t-base);
}
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--sky-500);
    opacity: 0;
    transition: opacity var(--t-base);
}
.benefit-card:hover {
    border-color: transparent;
    box-shadow: var(--sh-lg);
    transform: translateY(-3px);
}
.benefit-card:hover::before { opacity: 1; }

.benefit-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: var(--s4);
    letter-spacing: -0.03em;
    transition: color var(--t-base);
}
.benefit-card:hover .benefit-num { color: rgba(14,165,233,0.10); }

.benefit-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s3);
    line-height: 1.2;
}
.benefit-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.75;
}
.benefit-text strong { color: var(--gray-800); font-weight: 600; }


/* ── How It Works ───────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s6);
    margin-top: var(--s10);
    position: relative;
}
/* Connecting line between steps */
.steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 1px;
    background: linear-gradient(to right, var(--sky-500) 0%, rgba(14,165,233,0.12) 100%);
    z-index: 0;
    pointer-events: none;
}
.step { position: relative; z-index: 1; }

.step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(14,165,233,0.13);
    line-height: 1;
    margin-bottom: var(--s4);
    letter-spacing: -0.04em;
}
.step-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--s3);
    line-height: 1.25;
}
.step-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.75;
}
.step-text strong { color: rgba(255,255,255,0.80); }


/* ── FAQ section ────────────────────────────────────────────── */
.faq-list {
    margin-top: var(--s10);
    border-top: 1px solid var(--gray-200);
}
.faq-item { border-bottom: 1px solid var(--gray-200); }

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s4);
    padding-block: var(--s6);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    min-height: 48px;
    transition: color var(--t-fast);
}
.faq-btn:hover { color: var(--sky-600); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--sky-500);
    display: flex;
    align-items: center;
    transition: transform var(--t-base);
}
.faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer { padding-bottom: var(--s6); }
.faq-answer[hidden] { display: none; }
.faq-answer p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.8;
}
.faq-answer strong { color: var(--gray-800); font-weight: 600; }


/* ── Contact / Form section ─────────────────────────────────── */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: var(--s16);
    align-items: start;
}

.form-intro .section-h2 { margin-bottom: var(--s5); }

.trust-list {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    margin-top: var(--s6);
    margin-bottom: var(--s8);
}
.trust-list li {
    font-size: 0.9375rem;
    color: var(--gray-600);
    padding-left: var(--s5);
    position: relative;
    line-height: 1.5;
}
.trust-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sky-500);
    font-weight: 700;
}

/* Form card */
.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: var(--s10) var(--s8);
    box-shadow: var(--sh-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    margin-bottom: var(--s5);
}
.form-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}
.req-mark { color: var(--sky-600); margin-left: 2px; }
.opt-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.form-input {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r-md);
    padding: var(--s3) var(--s4);
    width: 100%;
    min-height: 48px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
    -webkit-appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.14);
}
.form-input.has-error {
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px var(--red-bg);
}
.form-input::placeholder { color: var(--gray-400); }

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 2.5rem;
}
.form-textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.6;
}

.field-err {
    font-size: 0.8125rem;
    color: var(--red-600);
    min-height: 1.1em;
    display: block;
    line-height: 1.4;
}
.field-err:empty { visibility: hidden; }

.form-actions { margin-top: var(--s2); }

.form-privacy {
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-top: var(--s4);
    text-align: center;
}

/* Form success state */
.form-success {
    text-align: center;
    padding: var(--s10) var(--s4);
}
.form-success[hidden] { display: none; }

.success-icon {
    width: 56px;
    height: 56px;
    background: var(--sky-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 auto var(--s5);
    line-height: 1;
}
.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s4);
}
.success-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.75;
}


/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--ink-900); }

.footer-main {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--s6);
    padding-block: var(--s16) var(--s12);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--s12);
}
.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.7;
    margin-top: var(--s4);
    max-width: 280px;
}
.footer-col-label {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: var(--s4);
}
.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}
.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.48);
    transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--white); }
.footer-services li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.32);
}

.footer-bottom {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--s6);
    padding-block: var(--s6);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s6);
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
/* SEO-friendly keyword line — visually de-emphasized, crawlable */
.footer-keywords { font-size: 0.6875rem !important; color: rgba(255,255,255,0.14) !important; }


/* ── Scroll-triggered animation ─────────────────────────────── */
.js-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-reveal.is-visible { opacity: 1; transform: none; }
/* Stagger siblings */
.js-reveal:nth-child(2) { transition-delay: 0.08s; }
.js-reveal:nth-child(3) { transition-delay: 0.16s; }
.js-reveal:nth-child(4) { transition-delay: 0.24s; }
.js-reveal:nth-child(5) { transition-delay: 0.32s; }


/* ── Responsive ─────────────────────────────────────────────── */

/* ---- ≤ 1100 px (laptop) ---- */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s8);
    }
    .steps::before { display: none; }

    .form-layout {
        grid-template-columns: 1fr;
        gap: var(--s10);
    }
    .form-intro { max-width: 580px; }
}

/* ---- ≤ 900 px (tablet) ---- */
@media (max-width: 900px) {
    :root { --section-py: 3.5rem; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-pain-inner {
        grid-template-columns: 1fr;
        gap: var(--s6);
    }

    .split {
        grid-template-columns: 1fr;
        gap: var(--s8);
    }

    /* Benefits: 2 column, last one full width */
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .benefit-card:nth-child(n)  { grid-column: auto; }
    .benefit-card:nth-child(5)  { grid-column: 1 / 3; }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    .footer-main .footer-brand { grid-column: 1 / -1; }
}

/* ---- ≤ 680 px (mobile) ---- */
@media (max-width: 680px) {
    :root { --section-py: 2.75rem; }

    .container { padding-inline: var(--s4); }

    /* Nav: collapse to hamburger */
    .nav-toggle { display: flex; }
    .nav-desktop-cta { display: none; }
    .nav-mobile-cta { display: block; padding-top: var(--s4); width: 100%; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: var(--ink-950);
        border-top: 1px solid rgba(255,255,255,0.07);
        padding: var(--s4) var(--s6) var(--s6);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 12px 32px rgba(0,0,0,0.50);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu li      { width: 100%; }
    .nav-link {
        display: block;
        padding-block: var(--s4);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 1rem;
    }
    .nav-link::after { display: none; }

    /* Hero */
    .hero { padding-top: calc(72px + var(--s10)); }
    .hero-inner {
        padding-inline: var(--s4);
        padding-bottom: var(--s10);
    }
    .hero-pain-inner { padding-inline: var(--s4); }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-btns .btn { justify-content: center; }

    /* Services: 2 col on mobile */
    .services-grid { grid-template-columns: 1fr 1fr; gap: var(--s3); }

    /* Benefits: single column */
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit-card:nth-child(n) { grid-column: auto; }

    /* Steps: single column */
    .steps { grid-template-columns: 1fr; gap: var(--s8); }

    /* Form */
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: var(--s6) var(--s5); }

    /* Footer */
    .footer-main { grid-template-columns: 1fr; gap: var(--s8); }
    .footer-main .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; gap: var(--s3); }
}

/* ---- ≤ 400 px (small phone) ---- */
@media (max-width: 400px) {
    .hero-h1 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .btn-lg { padding-inline: var(--s6); font-size: 1rem; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    html { scroll-behavior: auto; }
    .js-reveal { opacity: 1; transform: none; }
}
