/* ── Custom Properties ── */
:root {
    --bg-dark: #0d0f1e;
    --bg-dark-2: #161929;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --accent: #3a6fea;
    --accent-2: #4a8fd4;
    --accent-glow: rgba(58, 111, 234, 0.35);
    --text: #1e293b;
    --text-muted: #475569;
    --text-light: #f1f5f9;
    --text-dim: #a8b8cc;
    --success: #15803d;
    --disabled: #94a3b8;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 2px 16px rgba(0,0,0,0.07);
    --shadow-sm: 0 1px 4px rgba(15,23,42,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
    --shadow-focus: 0 0 0 4px rgba(58, 111, 234, 0.18);
    --nav-h: 64px;

    /* Spacing scale */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Type scale */
    --fs-xs: .78rem;
    --fs-sm: .88rem;
    --fs-base: 1rem;
    --fs-md: 1.05rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.4rem;
    --fs-2xl: 1.75rem;
    --fs-3xl: 2.5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-card);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Accessibility ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
    z-index: 9999;
    transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform .15s ease, box-shadow .2s ease, opacity .15s ease, background .15s ease, color .15s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(180deg, #6894ee 0%, var(--accent) 60%, #1858d8 100%);
    color: #fff;
    box-shadow:
        0 6px 24px var(--accent-glow),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -1px 0 rgba(0,0,0,.10);
}
.btn-primary:hover {
    box-shadow:
        0 12px 40px var(--accent-glow),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -1px 0 rgba(0,0,0,.10);
    opacity: .98;
}
.btn-ghost {
    background: rgba(255,255,255,.04);
    color: var(--text-light);
    border: 1.5px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.09); }
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: .9rem 2.25rem; font-size: 1.05rem; }

/* ── Section layout ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--bg-dark-2); color: var(--text-light); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .75rem;
    letter-spacing: -0.015em;
}
.section-head p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}
.section-dark .section-head p { color: var(--text-dim); }
.accent-line {
    width: 48px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: .75rem auto 0;
}

/* ── Navigation ── */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background .25s, box-shadow .25s;
}
#nav.scrolled {
    background: rgba(13,15,30,.97);
    box-shadow: 0 2px 24px rgba(0,0,0,.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.nav-links a {
    color: rgba(255,255,255,.92);
    font-size: .92rem;
    font-weight: 500;
    padding: .45rem .85rem;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .nav-cta {
    background: var(--accent);
    color: #fff;
    margin-left: .5rem;
    padding: .45rem 1.25rem;
    border-radius: 50px;
}
.nav-links .nav-cta:hover { opacity: .9; background: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
#home {
    min-height: 100svh;
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 3rem) 0 5rem;
}
#home::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 240px;
    background:
        radial-gradient(ellipse 50% 100% at 50% 100%, rgba(58,111,234,.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Single soft wash anchored behind the mockup — not floating orbs */
.hero-wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 60% at 72% 48%, rgba(58,111,234,.20), transparent 70%),
        radial-gradient(ellipse 22% 35% at 80% 18%, rgba(120,90,220,.10), transparent 70%);
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

/* Left column: copy */
.hero-copy { max-width: 540px; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .76rem;
    font-weight: 600;
    color: #b9c4d6;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 1.5rem;
}
.hero-kicker-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}
.hero-copy h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    color: var(--text-light);
    margin: 0 0 1.4rem;
    letter-spacing: -0.03em;
}
.hero-headline-accent {
    color: #8fb3ff;
    font-style: italic;
    font-weight: 700;
}
/* Retained: still used by the Client Portal section heading */
.gradient-text {
    background: linear-gradient(135deg, #88abf2 0%, #3a6fea 38%, #c2557a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.12rem;
    color: #b8c6d8;
    line-height: 1.6;
    margin: 0 0 2.25rem;
    max-width: 480px;
}
.hero-ctas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.hero-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-light);
    font-size: .95rem;
    font-weight: 600;
    padding: .5rem 0;
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.hero-link svg { transition: transform .2s ease; }
.hero-link:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.45);
}
.hero-link:hover svg { transform: translateX(3px); }

/* Right column: stylized schedule mockup */
.hero-mock {
    position: relative;
    transform: perspective(1800px) rotateY(-5deg) rotateX(1.5deg);
    transform-origin: right center;
}
.hero-mock-frame {
    background: #ffffff;
    color: var(--text);
    border-radius: 18px;
    box-shadow:
        0 30px 80px rgba(0,0,0,.45),
        0 8px 24px rgba(0,0,0,.30),
        0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
    width: 100%;
    max-width: 660px;
    margin-left: auto;
}
.hero-mock-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.1rem;
    background: #fafbfd;
    border-bottom: 1px solid #eef1f6;
    font-size: .82rem;
    color: var(--text-muted);
}
.hero-mock-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.hero-mock-title { font-weight: 600; color: var(--text); }
.hero-mock-spacer { flex: 1; }
.hero-mock-chip {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: .25rem .55rem;
    border-radius: 6px;
}
.hero-mock-chip.is-active {
    background: var(--accent);
    color: #fff;
}

/* In-app toolbar row beneath the day bar */
.hero-mock-toolbar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .8rem;
    background: #fff;
    border-bottom: 1px solid #eef1f6;
    font-size: .74rem;
    color: var(--text-muted);
}
.hero-mock-search {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 1 220px;
    min-width: 0;
    padding: .3rem .55rem;
    border: 1px solid #e6ebf3;
    border-radius: 6px;
    background: #fafbfd;
    color: #94a3b8;
    overflow: hidden;
    white-space: nowrap;
}
.hero-mock-search em {
    font-style: normal;
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-mock-pill {
    font-size: .68rem;
    font-weight: 600;
    color: var(--text);
    padding: .28rem .55rem;
    border-radius: 6px;
    border: 1px solid #e6ebf3;
    background: #fafbfd;
    white-space: nowrap;
}
.hero-mock-btn-new {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    padding: .35rem .7rem;
    border-radius: 6px;
    background: linear-gradient(180deg, #4f80ef 0%, var(--accent) 100%);
    box-shadow: 0 1px 2px rgba(58,111,234,.30);
    white-space: nowrap;
}
.hero-mock-grid {
    display: grid;
    grid-template-columns: 32px repeat(5, minmax(0, 1fr));
    grid-template-rows: 42px repeat(6, 54px);
    position: relative;
    padding: .25rem .5rem .65rem;
}
.hero-mock-head {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .35rem .25rem .3rem;
    border-bottom: 1px solid #eef1f6;
    min-width: 0;
}

/* Circular initial avatar with status dot (mirrors MudAvatar + MudBadge in real schedule) */
.hero-mock-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    line-height: 1;
}
.hero-mock-avatar.c1 { background: #3a6fea; }
.hero-mock-avatar.c2 { background: #c2557a; }
.hero-mock-avatar.c3 { background: #15803d; }
.hero-mock-avatar.c4 { background: #d97706; }
.hero-mock-avatar.c5 { background: #7c3aed; }
.hero-mock-avatar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    border: 1.5px solid #fff;
}
.hero-mock-avatar.is-away::after { background: #94a3b8; }
.hero-mock-name {
    font-weight: 600;
    color: var(--text);
    font-size: .74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.005em;
    min-width: 0;
}

/* Diagonal-striped boundary block — matches .uds-boundary in Schedule.razor.css
   (135deg / rgba(128,128,128) / 3px-on / 7px-off / 10px period). Stripe alpha
   bumped from real .07 to .18 because the hero cells are small and tilted —
   .07 would vanish at this scale. */
.hero-mock-boundary {
    position: relative;
    background: repeating-linear-gradient(
        135deg,
        rgba(128,128,128,.18) 0,
        rgba(128,128,128,.18) 3px,
        transparent 3px,
        transparent 10px
    );
    min-width: 0;
    overflow: hidden;
}
/* Resize-handle bar — mirrors .uds-boundary-handle (10px in real app; 6px in
   the hero to stay proportional to the 54px rows). */
.hero-mock-boundary::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(128,128,128,.28);
    pointer-events: none;
}
.hero-mock-boundary--start::before {
    bottom: 0;
    border-top: 1px solid rgba(128,128,128,.35);
}
.hero-mock-boundary--end::before {
    top: 0;
    border-bottom: 1px solid rgba(128,128,128,.35);
}
.hero-mock-time {
    grid-column: 1;
    font-size: .7rem;
    color: #94a3b8;
    text-align: right;
    padding: .2rem .45rem 0 0;
    line-height: 1;
}
.hero-mock-rule {
    border-top: 1px dashed #eef1f6;
    pointer-events: none;
}
.hero-mock-appt {
    margin: 2px 3px;
    padding: .32rem .45rem;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 3px solid;
    min-width: 0;
}
.hero-mock-appt strong {
    font-weight: 600;
    color: var(--text);
    font-size: .76rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-mock-appt small {
    color: var(--text-muted);
    font-size: .68rem;
    line-height: 1.1;
}
.hero-mock-appt.c1 { background: #e8efff; border-left-color: #3a6fea; }
.hero-mock-appt.c2 { background: #fdeef1; border-left-color: #c2557a; }
.hero-mock-appt.c3 { background: #e6f4ee; border-left-color: #15803d; }
.hero-mock-appt.c4 { background: #fff5e0; border-left-color: #d97706; }

/* Reserved/hold block — diagonal hash to signal "not bookable" without using a real appt */
.hero-mock-appt-hold {
    margin: 2px 3px;
    border-radius: 7px;
    border: 1px dashed #cbd5e1;
    background:
        repeating-linear-gradient(45deg, rgba(148,163,184,.10) 0 4px, transparent 4px 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .4rem;
    overflow: hidden;
    min-width: 0;
}
.hero-mock-appt-hold em {
    font-style: italic;
    font-size: .66rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Now-line — matches .uds-now-line in Schedule.razor.css (1px / rgba red /
   7px dot at left edge). */
.hero-mock-now {
    position: relative;
    pointer-events: none;
    align-self: start;
    z-index: 2;
    height: 0;
}
.hero-mock-now::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(229, 57, 53, .55);
}
.hero-mock-now-dot {
    position: absolute;
    top: -3px; left: -4px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(229, 57, 53, .65);
}

/* Floating SMS reply card, layered over the schedule's bottom-left corner */
.hero-mock-sms {
    position: absolute;
    bottom: -22px;
    left: -10px;
    background: #ffffff;
    color: var(--text);
    border-radius: 12px;
    box-shadow:
        0 18px 40px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.06);
    padding: .65rem .9rem;
    min-width: 200px;
    transform: rotate(-2.5deg);
    z-index: 3;
}
.hero-mock-sms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .15rem;
}
.hero-mock-sms-from { font-weight: 700; font-size: .78rem; }
.hero-mock-sms-time { color: var(--text-muted); font-size: .7rem; }
.hero-mock-sms-body { color: var(--text-muted); font-size: .82rem; }

/* Floating totals card — mirrors the SMS card; balances the composition */
.hero-mock-totals {
    position: absolute;
    top: -26px;
    right: -18px;
    background: #ffffff;
    color: var(--text);
    border-radius: 12px;
    box-shadow:
        0 18px 40px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.06);
    padding: .65rem .9rem .7rem;
    min-width: 168px;
    transform: rotate(2.5deg);
    z-index: 3;
}
.hero-mock-totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .15rem;
}
.hero-mock-totals-label {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero-mock-totals-trend {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    font-size: .68rem;
    font-weight: 700;
    color: #15803d;
    background: #e6f4ee;
    padding: .08rem .35rem;
    border-radius: 4px;
}
.hero-mock-totals-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: .1rem 0 .25rem;
}
.hero-mock-totals-meta {
    font-size: .68rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ─── Hero polish: atmosphere, editorial detail, typography, motion ─── */

/* Grain overlay via inline SVG turbulence (kills the flat-gradient AI look) */
#home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.7'/></svg>");
    background-size: 240px 240px;
    opacity: .075;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Editorial tick-rail on the hero's left edge */
.hero-ticks {
    position: absolute;
    left: clamp(.75rem, 3vw, 2.25rem);
    top: 32%;
    width: 14px;
    height: 220px;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04)) 50% 0 / 1px 100% no-repeat,
        repeating-linear-gradient(180deg, rgba(255,255,255,.22) 0 1px, transparent 1px 28px) 100% 0 / 7px 100% no-repeat;
}
.hero-ticks-label {
    position: absolute;
    top: -1.55rem;
    left: -2px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .64rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.32);
    white-space: nowrap;
}

/* Hero-scoped typography — rest of page keeps the existing system stack */
#home .hero-copy,
#home .hero-desc,
#home .hero-link,
#home .hero-mock {
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    font-optical-sizing: auto;
}
#home .hero-copy h1 {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 144;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.98;
}
#home .hero-headline-accent {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 144;
    font-style: italic;
    font-weight: 600;
    color: #8fb3ff;
}
#home .hero-mock-sms-from {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: .84rem;
    letter-spacing: -0.01em;
}
#home .hero-kicker,
#home .hero-mock-title,
#home .hero-mock-time,
#home .hero-mock-totals-label {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
#home .hero-mock-title { font-weight: 500; letter-spacing: -0.005em; }
#home .hero-mock-time,
#home .hero-mock-title,
#home .hero-mock-sms-time,
#home .hero-mock-totals-value,
#home .hero-mock-totals-meta { font-variant-numeric: tabular-nums; }

/* Page-load reveal: staggered, ~600ms each, ease-out */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroMockRise {
    from { opacity: 0; transform: perspective(1800px) rotateY(-5deg) rotateX(1.5deg) translateY(40px); }
    to   { opacity: 1; transform: perspective(1800px) rotateY(-5deg) rotateX(1.5deg) translateY(0); }
}
@keyframes smsArrive {
    from { opacity: 0; transform: rotate(-14deg) translateY(18px); }
    to   { opacity: 1; transform: rotate(-2.5deg) translateY(0); }
}
@keyframes totalsArrive {
    from { opacity: 0; transform: rotate(14deg) translateY(-14px); }
    to   { opacity: 1; transform: rotate(2.5deg) translateY(0); }
}
@keyframes ticksRise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes livePulse {
    0%, 70%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
    35%           { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
@keyframes nowPulse {
    0%, 70%, 100% { box-shadow: 0 0 0 2px rgba(229,57,53,.28); }
    35%           { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
}

#home .hero-kicker   { opacity: 0; animation: heroRise .60s cubic-bezier(.2,.7,.2,1)   60ms forwards; }
#home .hero-copy h1  { opacity: 0; animation: heroRise .65s cubic-bezier(.2,.7,.2,1)  160ms forwards; }
#home .hero-desc     { opacity: 0; animation: heroRise .65s cubic-bezier(.2,.7,.2,1)  260ms forwards; }
#home .hero-ctas     { opacity: 0; animation: heroRise .65s cubic-bezier(.2,.7,.2,1)  360ms forwards; }
#home .hero-mock        { opacity: 0; animation: heroMockRise .85s cubic-bezier(.2,.7,.2,1) 480ms forwards; }
#home .hero-mock-totals { opacity: 0; animation: totalsArrive .75s cubic-bezier(.2,.7,.2,1) 880ms forwards; }
#home .hero-mock-sms    { opacity: 0; animation: smsArrive .75s cubic-bezier(.2,.7,.2,1)   1080ms forwards; }
#home .hero-ticks       { opacity: 0; animation: ticksRise .80s cubic-bezier(.2,.7,.2,1)    600ms forwards; }

/* Continuous, low-key "alive" pulses */
#home .hero-mock-dot     { animation: livePulse 2.4s ease-in-out 1.6s infinite; }
#home .hero-mock-now-dot { animation: nowPulse  2.6s ease-in-out 1.9s infinite; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    /* Keep entrance-animated elements visible after the 0.001ms run */
    #home .hero-kicker,
    #home .hero-copy h1,
    #home .hero-desc,
    #home .hero-ctas,
    #home .hero-mock,
    #home .hero-mock-sms,
    #home .hero-mock-totals,
    #home .hero-ticks { opacity: 1 !important; }
}

/* ─── Page-wide cohesion: pull hero typography voice into the rest of the page ─── */

/* Section H2s adopt the Fraunces voice (display opsz) so the whole document
   reads as one editorial system, not a hero glued onto a generic SaaS page. */
.section-head h2,
.portal-text h2,
.split-text h2 {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 144;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
}
.split-text h4 {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* Big numbers across trust bar + pricing — unify with the hero totals voice
   (DM Sans 700, tabular-nums). Pricing keeps weight 800 for the larger scale. */
.trust-item strong,
.price-amount,
.price-amount sup,
.price-amount sub {
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    font-optical-sizing: auto;
    font-variant-numeric: tabular-nums;
}

/* Kicker label replaces .accent-line under each H2. Mirrors the hero's
   "Built for appointment-based shops" pattern: small mono uppercase above
   the headline. */
.section-head .kicker,
.split-text .kicker {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
    margin: 0 0 .65rem;
    line-height: 1;
}
.section-head .kicker { text-align: center; }
.section-dark .section-head .kicker,
.section-dark .split-text .kicker { color: #8fb3ff; }

/* Retire the 4px blue dash now that kickers carry the hierarchy signal. */
.accent-line { display: none; }

/* Testimonial avatars cycle the hero schedule's c1-c5 palette + one cyan
   accent so the roster looks like distinct people, not 6 identical chips. */
.testi-card:nth-child(6n+1) .testi-initials { background: #3a6fea; }
.testi-card:nth-child(6n+2) .testi-initials { background: #c2557a; }
.testi-card:nth-child(6n+3) .testi-initials { background: #15803d; }
.testi-card:nth-child(6n+4) .testi-initials { background: #d97706; }
.testi-card:nth-child(6n+5) .testi-initials { background: #7c3aed; }
.testi-card:nth-child(6n+6) .testi-initials { background: #0891b2; }

/* ── Trust bar ── */
.trust-bar {
    background: var(--bg-dark-2);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 1.25rem 0;
    text-align: center;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.trust-item {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    color: #c8d6e5;
    font-size: .9rem;
    position: relative;
}
.trust-item + .trust-item::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    transform: translateY(-50%);
}
.trust-item strong { color: #fff; font-size: 1.1rem; font-weight: 700; }

/* ── Industries strip ── */
.industries {
    background: var(--bg-dark);
    padding: 3rem 0 3.25rem;
    border-top: 1px solid rgba(255,255,255,.07);
    position: relative;
}
.industries::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 200px at 50% 0%, rgba(58,111,234,.06), transparent 70%);
    pointer-events: none;
}
.industries > .container { position: relative; }
.industries p {
    text-align: center;
    color: var(--text-dim);
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 600;
}
.industry-icons {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.industry-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    transition: transform .25s ease;
    cursor: default;
}
.industry-icon:hover { transform: translateY(-3px); }
.industry-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 100%);
    border: 1px solid rgba(255,255,255,.09);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(232,236,245,.82);
    transition: border-color .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.industry-icon-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
    pointer-events: none;
    opacity: .8;
}
.industry-icon:hover .industry-icon-badge {
    color: #b1c8f6;
    background:
        linear-gradient(145deg, rgba(58,111,234,.22) 0%, rgba(74,143,212,.10) 100%);
    border-color: rgba(58,111,234,.55);
    box-shadow:
        0 12px 32px rgba(58,111,234,.22),
        inset 0 0 0 1px rgba(255,255,255,.04);
}
.industry-icon-badge svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: relative;
    z-index: 1;
}
.industry-icon span {
    font-size: .76rem;
    color: var(--text-dim);
    text-align: center;
    white-space: nowrap;
    transition: color .25s ease;
    letter-spacing: .02em;
    font-weight: 500;
}
.industry-icon:hover span { color: var(--text-light); }

/* ── Features grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(58,111,234,.30);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(58,111,234,.12), rgba(74,143,212,.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
}
.feature-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--text);
    letter-spacing: -0.005em;
}
.feature-card p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.feature-card.highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, #f1f5fd 0%, #fff 100%);
    box-shadow: 0 1px 0 rgba(58,111,234,.08);
}
.feature-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 50px;
    margin-bottom: .6rem;
}

/* ── Client Portal section ── */
.portal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.portal-text h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}
.portal-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.portal-list { margin-bottom: 2rem; }
.portal-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem 0;
    font-size: .97rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.portal-list li:last-child { border-bottom: none; }
.portal-list .check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(22,163,74,.12);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.portal-mockup {
    background: linear-gradient(145deg, #1a1d30 0%, #0d0f1e 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.mockup-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #c2557a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}
.mockup-header div { flex: 1; }
.mockup-name { color: var(--text-light); font-weight: 600; font-size: .95rem; }
.mockup-sub { color: var(--text-dim); font-size: .78rem; }
.mockup-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.mockup-stat {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: .85rem 1rem;
}
.mockup-stat-label { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.mockup-stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text-light); }
.mockup-stat-value span { color: var(--accent); }
.mockup-appt {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.mockup-appt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.mockup-appt-info { flex: 1; }
.mockup-appt-title { color: var(--text-light); font-size: .88rem; font-weight: 600; }
.mockup-appt-date { color: var(--text-dim); font-size: .76rem; }
.mockup-appt-badge {
    background: rgba(22,163,74,.18);
    color: #4ade80;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 50px;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.testi-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(58,111,234,.18);
}
.testi-stars { color: #f4c542; font-size: 1rem; letter-spacing: 1px; }
.testi-quote {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.testi-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #c2557a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .88rem;
    flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: .9rem; }
.testi-company { font-size: .8rem; color: var(--text-muted); }
.capterra-link {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.capterra-link img { height: 52px; width: auto; border-radius: 8px; }

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.price-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(58,111,234,.10), var(--shadow);
}
.price-card.featured:hover {
    box-shadow: 0 0 0 4px rgba(58,111,234,.14), var(--shadow-lg);
}
.price-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.price-card.featured .price-header { background: linear-gradient(135deg, #f1f5fd 0%, #fff 100%); }
.price-tier { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.price-name { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; letter-spacing: -0.01em; }
.price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}
.price-amount sup { font-size: 1.2rem; vertical-align: super; font-weight: 700; }
.price-amount sub { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.price-note { font-size: .83rem; color: var(--text-muted); margin-top: .4rem; }
.price-features {
    padding: 1.5rem 2rem;
    flex: 1;
}
.price-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    font-size: .9rem;
    color: var(--text);
    border-bottom: 1px solid var(--bg-light);
}
.price-features li:last-child { border-bottom: none; }
.price-features .icon-yes { color: var(--success); flex-shrink: 0; }
.price-features .icon-no { color: var(--disabled); flex-shrink: 0; }
.price-cta { padding: 1.5rem 2rem; }
.price-cta .btn { width: 100%; justify-content: center; }
.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: .9rem;
    color: var(--text-muted);
}

/* ── Brief/Split sections ── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-reversed > .split-text { order: 2; }
.split-reversed > .split-visual { order: 1; }

.split-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .75rem;
    letter-spacing: -0.015em;
}
.split-text p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1rem; }
.split-list li {
    display: flex;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
}
.split-list li:last-child { border-bottom: none; }
.split-list .icon-wrap {
    width: 36px;
    height: 36px;
    background: rgba(58,111,234,.1);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.split-list h4 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.split-list p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.split-visual {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
}
.section-dark .split-visual {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.07);
}
.visual-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(58,111,234,.2), rgba(74,143,212,.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 1.25rem;
}
.split-visual h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.split-visual p { font-size: .92rem; color: var(--text-muted); }
.section-dark .split-visual h3 { color: var(--text-light); }
.section-dark .split-visual p { color: var(--text-dim); }

/* ── Video section ── */
.video-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.youtube-player {
    display: block;
    position: relative;
    cursor: pointer;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.youtube-player img {
    position: absolute;
    top: -16.84%;
    left: 0;
    width: 100%;
    height: auto;
}
.youtube-player .play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 68px;
    height: 68px;
    background: rgba(0,0,0,.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.youtube-player:hover .play-btn { background: var(--accent); transform: translate(-50%,-50%) scale(1.08); }

/* ── FAQ ── */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
details.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
details.faq-item:hover { border-color: var(--border-strong); }
details.faq-item[open] {
    border-color: rgba(58,111,234,.45);
    box-shadow: var(--shadow-sm);
}
summary.faq-q {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: .97rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    user-select: none;
}
summary.faq-q::-webkit-details-marker { display: none; }
.faq-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform .25s ease, color .15s ease;
}
details[open] summary .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    font-size: .91rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-answer a { color: var(--accent); text-decoration: underline; }

/* ── Contact ── */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: .75rem;
    letter-spacing: -0.015em;
}
.contact-text p { color: var(--text-dim); margin-bottom: 1.25rem; }
.contact-text a:not(.btn) { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-dim); letter-spacing: .02em; }
.form-group input,
.form-group textarea {
    padding: .8rem 1rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    color: var(--text-light);
    font: inherit;
    font-size: .92rem;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.32); }
.form-group input:hover,
.form-group textarea:hover { background: rgba(255,255,255,.08); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,.09);
    outline: none;
    box-shadow: 0 0 0 4px rgba(58,111,234,.18);
}
.form-submit {
    background: var(--accent);
    color: #fff;
    padding: .85rem 2.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity .15s, transform .15s, box-shadow .2s;
    align-self: flex-start;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.form-submit:hover { opacity: .96; transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); }
.form-note {
    font-size: .8rem;
    color: var(--text-dim);
    margin-top: -.25rem;
}
#form-success {
    display: none;
    background: rgba(22,163,74,.15);
    border: 1px solid rgba(22,163,74,.3);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #4ade80;
    font-size: .92rem;
}

/* ── Footer ── */
footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 2.5rem 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-logo img { height: 32px; width: auto; }
.footer-copy {
    font-size: .82rem;
    color: var(--text-dim);
}
.footer-copy a { color: var(--text-dim); transition: color .15s ease; }
.footer-copy a:hover { color: var(--text-light); }
.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: .85rem;
    color: var(--text-dim);
    transition: color .15s;
}
.footer-links a:hover { color: var(--text-light); }
.social-row {
    display: flex;
    gap: .75rem;
}
.social-row a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social-row a:hover { background: rgba(255,255,255,.12); color: var(--text-light); transform: translateY(-2px); }

/* ── Cookie consent ── */
#cookie-consent {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 520px;
    width: calc(100% - 3rem);
    background: #1e2237;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.5rem;
    z-index: 5000;
    color: var(--text-dim);
    font-size: .88rem;
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-inner p { flex: 1; min-width: 200px; line-height: 1.55; }
.cookie-inner a { color: var(--accent); }
.cookie-accept {
    background: var(--accent);
    color: #fff;
    padding: .5rem 1.25rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: opacity .15s ease;
}
.cookie-accept:hover { opacity: .92; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-ticks { display: none; }
}

@media (max-width: 768px) {
    :root { --nav-h: 56px; }
    .section { padding: 3.5rem 0; }
    .section-head { margin-bottom: 2.25rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(13,15,30,.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem;
        flex-direction: column;
        gap: .25rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .75rem 1rem; border-radius: 8px; display: block; width: 100%; }
    .nav-links .nav-cta { margin-left: 0; margin-top: .25rem; text-align: center; }
    .nav-toggle { display: flex; }
    #nav { background: rgba(13,15,30,.97); }
    .hero-shell {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    .hero-copy { max-width: none; }
    .hero-mock {
        transform: none;
        max-width: 460px;
        margin: 0 auto;
    }
    .hero-mock-frame { margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr; }
    .portal-split,
    .split-section,
    .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
    .portal-split .portal-mockup { order: -1; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
    .faq-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .trust-bar-inner { gap: 1.5rem; }
    .trust-item + .trust-item::before { display: none; }
}

@media (max-width: 480px) {
    .hero-shell { padding: 0 1rem; }
    .hero-mock-grid {
        grid-template-columns: 24px repeat(5, minmax(0, 1fr));
        grid-template-rows: 28px repeat(6, 46px);
    }
    .hero-mock-appt strong { font-size: .66rem; }
    .hero-mock-appt small { font-size: .60rem; }
    .hero-mock-search { display: none; }
    .hero-mock-pill { font-size: .62rem; padding: .22rem .45rem; }
    .hero-mock-sms,
    .hero-mock-totals { display: none; }
    .industry-icon span { display: none; }
    .industry-icons { gap: 1.25rem; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
