/* ==========================================================================
   Allmire — Homepage refresh
   Scoped to body.home so pages sharing style-modern.css are unaffected.
   Layers: dot-grid base · dotted guides/dividers/connectors · faded checker accents
   ========================================================================== */

body.home {
    /* Brand palette */
    --ink: #0b1b33;
    --ink-2: #33415c;
    --ink-3: #5b6b85;
    --ink-4: #8a97ab;
    --brand: #0066ff;
    --brand-deep: #0047d6;
    --cyan: #00b8f5;
    --violet: #7c5cff;
    --surface: #ffffff;
    --surface-tint: #f6f8fc;
    --hairline: rgba(11, 27, 51, 0.08);
    --hairline-strong: rgba(11, 27, 51, 0.14);

    /* Pattern tokens (kept low-contrast on purpose) */
    --dot-color: rgba(11, 27, 51, 0.11);
    --dot-size: 22px;
    --guide-color: rgba(11, 27, 51, 0.12);
    --checker-color: rgba(0, 102, 255, 0.07);

    --grad-brand: linear-gradient(100deg, #0066ff 0%, #6a5cff 55%, #00b8f5 100%);
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-card:
        0 1px 1px rgba(11, 27, 51, 0.03),
        0 4px 10px -2px rgba(11, 27, 51, 0.05),
        0 18px 40px -12px rgba(11, 27, 51, 0.10);
    --shadow-float:
        0 2px 4px rgba(11, 27, 51, 0.04),
        0 14px 30px -8px rgba(11, 27, 51, 0.14),
        0 40px 80px -24px rgba(0, 72, 214, 0.22);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --radius-lg: 20px;
    --radius-md: 14px;

    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--surface);
    /* Base texture: subtle dot grid across the whole page */
    background-image: radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 0);
    background-size: var(--dot-size) var(--dot-size);
    font-feature-settings: "cv11", "ss01";
}

/* ---------- Reusable pattern utilities ---------- */

.checker-accent {
    position: absolute;
    pointer-events: none;
    background-image:
        conic-gradient(var(--checker-color) 25%, transparent 0 50%, var(--checker-color) 0 75%, transparent 0);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}

.dotted-divider {
    position: relative;
    max-width: 1200px;
    height: 3px;
    margin: 0 auto;
    background-image: radial-gradient(circle, var(--guide-color) 1px, transparent 1.4px);
    background-size: 9px 3px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.dotted-divider__node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid rgba(0, 102, 255, 0.35);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--surface);
}

/* Vertical dotted guide lines framing the content column */
.home-main {
    position: relative;
    isolation: isolate;
    overflow-x: clip; /* decorative accents may bleed past the viewport */
}

.page-guides {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page-guides::before,
.page-guides::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-image: radial-gradient(circle, var(--guide-color) 0.8px, transparent 1.2px);
    background-size: 1px 8px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
}

.page-guides::before { left: max(16px, calc(50% - 600px)); }
.page-guides::after  { right: max(16px, calc(50% - 600px)); }

.home-main > section,
.home-main > .dotted-divider {
    position: relative;
    z-index: 1;
}

/* ---------- Typography ---------- */

body.home h1,
body.home h2,
body.home h3,
body.home .form-title,
body.home .logo-text,
body.home .footer-logo {
    font-family: var(--font-display);
}

body.home .section-header {
    max-width: 680px;
    margin: 0 auto 56px;
}

body.home .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 10px;
    margin-bottom: 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--brand-deep);
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.14);
}

body.home .section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

body.home .section-title {
    font-size: clamp(1.62rem, 3.402vw, 2.43rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 16px;
    text-wrap: balance;
}

body.home .section-description {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-3);
}

body.home .text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Sections ---------- */

body.home .home-main > section:not(.hero) {
    /* One shared rhythm for every section */
    padding: clamp(40px, 5vw, 64px) 0;
    background: transparent;
}

body.home .container {
    max-width: 1200px;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* Tinted sections keep the dot grid visible through a translucent wash */
body.home .messaging,
body.home .fax,
body.home .reviews {
    background:
        linear-gradient(180deg, rgba(246, 248, 252, 0) 0%, rgba(246, 248, 252, 0.85) 18%, rgba(246, 248, 252, 0.85) 82%, rgba(246, 248, 252, 0) 100%) !important;
}

/* ---------- Navigation ---------- */

body.home .navbar {
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.home .navbar.scrolled {
    background: rgba(255, 255, 255, 0.78);
    border-bottom-color: var(--hairline);
    box-shadow: 0 6px 24px -12px rgba(11, 27, 51, 0.12);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
}

body.home .nav-container {
    max-width: 1200px;
    padding: 14px clamp(16px, 4vw, 40px);
}

body.home .logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--ink);
}

body.home .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    padding: 7px 12px;
    border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

body.home .nav-link:hover,
body.home .nav-link.active {
    color: var(--ink);
    background: rgba(11, 27, 51, 0.05);
}

body.home .nav-link-cta {
    color: #fff;
    background: var(--ink);
    padding: 7px 16px;
    margin-left: 8px;
    font-weight: 600;
}

body.home .nav-link-cta:hover {
    color: #fff;
    background: var(--brand);
    filter: none;
}

body.home .nav-signin {
    border-radius: 999px;
    font-size: 14px;
    padding: 7px 14px;
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

body.home .nav-signin:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

/* ---------- Buttons ---------- */

.btn-pill {
    --btn-bg: var(--ink);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px 12px 22px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 0;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-pill--primary {
    color: #fff;
    background: var(--brand);
    box-shadow:
        0 1px 2px rgba(0, 41, 128, 0.25),
        0 8px 22px -6px rgba(0, 102, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-pill--primary:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow:
        0 1px 2px rgba(0, 41, 128, 0.25),
        0 14px 30px -8px rgba(0, 102, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-pill--ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.btn-pill--ghost:hover {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(11, 27, 51, 0.24), 0 6px 18px -8px rgba(11, 27, 51, 0.2);
}

.btn-pill:active { transform: translateY(0) scale(0.98); }

.btn-pill:focus-visible,
body.home a:focus-visible,
body.home button:focus-visible,
body.home summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Arrow whose stem draws in on hover */
.btn-arrow {
    width: 10px;
    height: 10px;
    margin-left: 4px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-arrow__stem {
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.btn-arrow__head {
    transition: transform 0.2s var(--ease);
}

.btn-pill:hover .btn-arrow__stem,
.text-link:hover .btn-arrow__stem { opacity: 1; }

.btn-pill:hover .btn-arrow__head,
.text-link:hover .btn-arrow__head { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */

body.home .hero {
    position: relative;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Soft colour mesh — drifts very slowly */
.hero-bg__mesh {
    position: absolute;
    inset: -20% -10% 0 -10%;
    background:
        radial-gradient(38% 46% at 78% 22%, rgba(0, 102, 255, 0.20), transparent 70%),
        radial-gradient(30% 40% at 92% 58%, rgba(0, 184, 245, 0.18), transparent 70%),
        radial-gradient(34% 44% at 62% 70%, rgba(124, 92, 255, 0.14), transparent 70%),
        radial-gradient(40% 50% at 10% 0%, rgba(0, 184, 245, 0.08), transparent 70%);
    filter: blur(10px);
    animation: meshDrift 22s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

/* Clean white wash so the body dot-grid fades out toward the copy */
.hero-bg__wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, #fff 100%),
        radial-gradient(60% 70% at 18% 45%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 70%);
}

/* Cursor spotlight: a brighter brand-coloured dot grid revealed around the pointer */
.hero-bg__spot {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 102, 255, 0.55) 1.1px, transparent 0);
    background-size: var(--dot-size) var(--dot-size);
    -webkit-mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 75%);
            mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 75%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.hero.is-pointer .hero-bg__spot { opacity: 1; }

.hero-bg .checker-accent--hero {
    width: 520px;
    height: 520px;
    right: -120px;
    top: 40px;
}

.hero-bg .checker-accent--hero-sm {
    width: 220px;
    height: 220px;
    left: -60px;
    bottom: 120px;
    --checker-color: rgba(11, 27, 51, 0.05);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(120px, 15vh, 168px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

.hero-copy > * {
    animation: heroRise 0.9s var(--ease) both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }

@keyframes heroRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    margin-bottom: 28px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 4px 14px -6px rgba(11, 27, 51, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-eyebrow:hover {
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.35), 0 8px 20px -8px rgba(0, 102, 255, 0.3);
}

.hero-eyebrow__badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: var(--grad-brand);
}

.hero-eyebrow .btn-arrow { color: var(--brand); }
.hero-eyebrow:hover .btn-arrow__stem { opacity: 1; }
.hero-eyebrow:hover .btn-arrow__head { transform: translateX(3px); }

.hero-title {
    margin: 0 0 22px;
    font-weight: 800;
    color: var(--ink);
}

.hero-title__main {
    display: block;
    font-size: clamp(1.895rem, 4.52vw, 3.463rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-title__accent {
    background: var(--grad-brand);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: accentFlow 8s ease-in-out infinite alternate;
}

@keyframes accentFlow {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

.hero-title__sub {
    display: block;
    margin-top: 22px;
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 1.7vw, 1.3rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink-2);
}

.hero-title__sub em {
    font-style: normal;
    font-weight: 700;
    color: var(--ink);
    background-image: linear-gradient(90deg, rgba(0, 102, 255, 0.22), rgba(124, 92, 255, 0.22));
    background-repeat: no-repeat;
    background-size: 0% 0.38em;
    background-position: 0 88%;
    animation: underlineDraw 1.1s 0.7s var(--ease) forwards;
}

@keyframes underlineDraw {
    to { background-size: 100% 0.38em; }
}

.hero-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    font-family: var(--font-body);
}

.hero-cap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 8px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px var(--hairline-strong);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-cap:hover {
    transform: translateY(-2px);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.3), 0 8px 18px -8px rgba(0, 102, 255, 0.35);
}

.hero-cap__dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--brand);
    background: rgba(0, 102, 255, 0.09);
}

.hero-lede {
    max-width: 540px;
    margin: 0 0 34px;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ---------- Hero product composition ---------- */

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 560 / 540;
    justify-self: end;
    animation: heroRise 1s 0.2s var(--ease) both;
}

.hero-visual__wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-visual__wires path {
    fill: none;
    stroke: rgba(0, 102, 255, 0.45);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 1 7;
    animation: wireFlow 1.6s linear infinite;
}

.hero-visual__wires circle {
    fill: #fff;
    stroke: rgba(0, 102, 255, 0.6);
    stroke-width: 1.5;
}

@keyframes wireFlow {
    to { stroke-dashoffset: -16; }
}

.hv-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(11, 27, 51, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-body);
    transition: transform 0.5s var(--ease);
}

.hv-card strong { font-weight: 600; color: var(--ink); }

/* Main inbox window */
.hv-chat {
    left: 12%;
    top: 11%;
    width: 72%;
    z-index: 2;
    overflow: hidden;
}

.hv-chat__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--hairline);
    background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
}

.hv-dots { display: inline-flex; gap: 5px; }
.hv-dots i { width: 8px; height: 8px; border-radius: 50%; background: #dfe4ec; }

.hv-chat__title {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
}

.hv-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #0f9f6e;
}

.hv-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #12b981;
    box-shadow: 0 0 0 0 rgba(18, 185, 129, 0.5);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(18, 185, 129, 0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(18, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 185, 129, 0); }
}

.hv-chat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px dashed var(--hairline-strong);
}

.hv-chat__head div { display: flex; flex-direction: column; min-width: 0; }
.hv-chat__head strong { font-size: 13px; }
.hv-chat__head span { font-size: 11px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hv-avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #00b8f5);
}

.hv-chat__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
}

.hv-msg {
    max-width: 82%;
    padding: 8px 12px;
    font-size: 12.5px;
    line-height: 1.45;
    border-radius: 14px;
}

.hv-msg--out {
    align-self: flex-end;
    color: #fff;
    background: var(--brand);
    border-bottom-right-radius: 4px;
}

.hv-msg--in {
    align-self: flex-start;
    color: var(--ink);
    background: #eef2f8;
    border-bottom-left-radius: 4px;
}

.hv-paylink {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 82%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.22), 0 6px 16px -8px rgba(0, 102, 255, 0.35);
}

.hv-paylink > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hv-paylink strong { font-size: 12px; }
.hv-paylink span { font-size: 11px; color: var(--ink-4); }

.hv-paylink__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: var(--grad-brand);
}

.hv-paylink .hv-paylink__amt {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.hv-status {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #0f9f6e;
}

/* Floating call card */
.hv-call {
    right: 0;
    top: 0;
    width: 44%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    animation: floatY 7s ease-in-out infinite;
}

.hv-call__icon {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    background: #12b981;
}

.hv-call__icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(18, 185, 129, 0.45);
    animation: ring 2s var(--ease) infinite;
}

@keyframes ring {
    from { transform: scale(0.85); opacity: 1; }
    to   { transform: scale(1.35); opacity: 0; }
}

.hv-call div { display: flex; flex-direction: column; min-width: 0; }
.hv-call strong { font-size: 12.5px; }
.hv-call span { font-size: 11px; color: var(--ink-4); }

/* Floating payout card */
.hv-payout {
    left: -2%;
    bottom: -9%;
    width: 42%;
    z-index: 3;
    padding: 14px 16px;
    animation: floatY 8s 1s ease-in-out infinite;
}

.hv-payout__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hv-payout__tag {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--brand-deep);
    background: rgba(0, 102, 255, 0.08);
}

.hv-payout__value {
    margin: 4px 0 10px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.hv-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 34px;
}

.hv-bars i {
    flex: 1;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.85), rgba(0, 184, 245, 0.55));
    transform-origin: bottom;
    animation: barGrow 1s var(--ease) both;
}

.hv-bars i:nth-child(1) { height: 38%; animation-delay: 0.5s; opacity: 0.55; }
.hv-bars i:nth-child(2) { height: 52%; animation-delay: 0.56s; opacity: 0.6; }
.hv-bars i:nth-child(3) { height: 44%; animation-delay: 0.62s; opacity: 0.65; }
.hv-bars i:nth-child(4) { height: 66%; animation-delay: 0.68s; opacity: 0.7; }
.hv-bars i:nth-child(5) { height: 58%; animation-delay: 0.74s; opacity: 0.8; }
.hv-bars i:nth-child(6) { height: 80%; animation-delay: 0.80s; opacity: 0.9; }
.hv-bars i:nth-child(7) { height: 100%; animation-delay: 0.86s; }

@keyframes barGrow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---------- Logo strip ---------- */

.hero-logos {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px clamp(16px, 4vw, 40px) 40px;
}

.hero-logos::before {
    content: "";
    display: block;
    height: 3px;
    margin-bottom: 26px;
    background-image: radial-gradient(circle, var(--guide-color) 1px, transparent 1.4px);
    background-size: 9px 3px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

body.home .logo-carousel__caption {
    text-align: center;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-4);
}

body.home .logo-carousel {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

body.home .logo-carousel__marquee {
    display: flex;
    flex-shrink: 0;
    gap: 56px;
    padding: 0 56px 0 0;
    margin: 0;
    list-style: none;
    animation: marquee 40s linear infinite;
}

body.home .logo-carousel:hover .logo-carousel__marquee { animation-play-state: paused; }

body.home .logo-carousel__text {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-3);
    opacity: 0.55;
    transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

body.home .logo-carousel__item:hover .logo-carousel__text {
    opacity: 1;
    color: var(--ink);
}

/* ==========================================================================
   Messaging
   ========================================================================== */

body.home .messaging-content {
    gap: clamp(40px, 6vw, 96px);
}

body.home .feature-list {
    gap: 4px;
    margin-top: 32px;
}

body.home .feature-item {
    gap: 16px;
    padding: 16px;
    margin: 0 -16px;
    border-radius: var(--radius-md);
    transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

body.home .feature-item:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline);
}

body.home .feature-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 19px;
    color: var(--brand);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.10), rgba(124, 92, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.12);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

body.home .feature-item:hover .feature-icon-wrap {
    transform: translateY(-1px) scale(1.05);
    color: #fff;
    background: var(--grad-brand);
}

body.home .feature-item .feature-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 4px;
}

body.home .feature-item .feature-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-3);
}

body.home .messaging-demo {
    position: relative;
}

body.home .messaging-demo .checker-accent {
    inset: -10% -10% -10% -10%;
}

body.home .phone-mockup {
    position: relative;
    z-index: 1;
    max-width: 300px;
}

body.home .phone-frame {
    background: linear-gradient(160deg, #1b2a44, #0b1b33);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        var(--shadow-float),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.home .phone-screen {
    position: relative;
    border-radius: 31px;
    min-height: 520px;
    padding: 46px 16px 16px;
    background: #fff;
}

body.home .phone-screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 84px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #0b1b33;
}

body.home .message-content {
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 18px;
}

body.home .message-received .message-content {
    background: #eef2f8;
    color: var(--ink);
}

body.home .message-sent .message-content {
    background: var(--brand);
}

body.home .message-time {
    font-size: 11px;
    color: var(--ink-4);
}

/* ==========================================================================
   Calling
   ========================================================================== */

body.home .calling-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

body.home .calling-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Dotted connector running behind the row of icons */
body.home .calling-row::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 51px;
    height: 3px;
    background-image: radial-gradient(circle, rgba(0, 102, 255, 0.35) 1px, transparent 1.4px);
    background-size: 9px 3px;
    z-index: 0;
}

body.home .calling-card {
    position: relative;
    z-index: 1;
    padding: 28px 24px 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.home .calling-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-brand);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}

body.home .calling-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

body.home .calling-card:hover::before { opacity: 1; }

/* Original icon tile: dark-to-blue shimmering gradient with a white glyph */
body.home .calling-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%),
        linear-gradient(135deg, #05070f 0%, #0a1228 30%, #0a3a8c 60%, #0066ff 85%, #4d8eff 100%);
    background-size: 100% 100%, 220% 100%;
    box-shadow:
        0 6px 16px rgba(5, 8, 16, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    animation: iconShimmer 5s linear infinite;
}

@keyframes iconShimmer {
    0%   { background-position: 0 0, 0% 50%; }
    100% { background-position: 0 0, 200% 50%; }
}

body.home .calling-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    color: var(--ink);
}

body.home .calling-card p {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--ink-3);
}

/* ==========================================================================
   Payments
   ========================================================================== */

body.home .payments-content { gap: clamp(40px, 6vw, 96px); }

body.home .payments-demo {
    position: relative;
    padding: 36px 28px 44px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline);
    overflow: hidden;
}

body.home .payments-demo .checker-accent {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -140px;
}

body.home .payment-flow {
    position: relative;
    z-index: 1;
    margin-bottom: 36px;
    gap: 8px;
}

body.home .flow-step { opacity: 1; }

body.home .step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 22px;
    color: var(--ink-4);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--hairline-strong);
    transition: all 0.45s var(--ease);
}

body.home .flow-step.active .step-icon {
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 0 0 5px rgba(0, 102, 255, 0.1), 0 10px 22px -8px rgba(0, 102, 255, 0.6);
    transform: translateY(-2px);
}

body.home .step-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

body.home .step-content p {
    font-size: 0.8rem;
    color: var(--ink-4);
}

/* Dotted, flowing connectors between steps */
body.home .flow-connector {
    flex: 0 0 44px;
    height: 3px;
    margin-bottom: 44px;
    background: none;
    background-image: radial-gradient(circle, rgba(0, 102, 255, 0.55) 1px, transparent 1.4px);
    background-size: 7px 3px;
    animation: dotsFlow 0.9s linear infinite;
}

body.home .flow-connector::after { display: none; }

@keyframes dotsFlow {
    to { background-position: 7px 0; }
}

@keyframes dotsFlowY {
    to { background-position: 0 7px; }
}

body.home .payment-card-visual { position: relative; z-index: 1; }

body.home .card-3d {
    width: 300px;
    height: 188px;
}

body.home .card-face {
    border-radius: 18px;
    padding: 22px;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(0, 184, 245, 0.9), transparent 55%),
        radial-gradient(120% 120% at 0% 100%, rgba(124, 92, 255, 0.95), transparent 60%),
        linear-gradient(135deg, #0047d6, #0066ff);
    box-shadow: 0 30px 60px -20px rgba(0, 71, 214, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.home .card-face::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0);
    background-size: 12px 12px;
    -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000);
            mask-image: linear-gradient(120deg, transparent 40%, #000);
}

body.home .card-chip {
    width: 42px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f6e7b4, #d8b75b);
}

body.home .card-number {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

body.home .reviews { overflow: hidden; }

body.home .reviews .checker-accent {
    width: 600px;
    height: 600px;
    left: -260px;
    top: -120px;
    --checker-color: rgba(124, 92, 255, 0.06);
}

body.home .reviews-grid {
    gap: 20px;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

body.home .review-card {
    position: relative;
    padding: 28px 28px 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.home .review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

body.home .review-card::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 1;
    color: rgba(0, 102, 255, 0.10);
}

body.home .review-stars {
    color: #f5a524;
    font-size: 14px;
    margin-bottom: 14px;
}

body.home .review-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    margin-bottom: 22px;
}

body.home .review-author {
    gap: 12px;
    padding-top: 18px;
    border-top: 1px dashed var(--hairline-strong);
}

body.home .review-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--grad-brand);
}

body.home .review-card:nth-child(3n+2) .review-avatar { background: linear-gradient(135deg, #7c5cff, #00b8f5); }
body.home .review-card:nth-child(3n) .review-avatar   { background: linear-gradient(135deg, #00b8f5, #0066ff); }

body.home .review-author__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

body.home .review-author-name { color: var(--ink); font-size: 14px; }
body.home .review-author-name::after { display: none; }
body.home .review-author-role { font-size: 13px; color: var(--ink-4); }

/* ==========================================================================
   FAQ
   ========================================================================== */

body.home .faq { background: transparent; }

body.home .faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

body.home .faq-item {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    box-shadow: inset 0 0 0 1px var(--hairline-strong);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease);
}

body.home .faq-item:hover {
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.25);
}

body.home .faq-item[open] {
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.3), var(--shadow-card);
}

body.home .faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

body.home .faq-item summary::-webkit-details-marker { display: none; }

body.home .faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        linear-gradient(var(--brand), var(--brand)) center / 10px 1.6px no-repeat,
        linear-gradient(var(--brand), var(--brand)) center / 1.6px 10px no-repeat,
        rgba(0, 102, 255, 0.08);
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

body.home .faq-item[open] summary::after { transform: rotate(135deg); }

body.home .faq-item p {
    padding: 0 22px 22px;
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--ink-3);
    animation: faqIn 0.35s var(--ease);
}

@keyframes faqIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Demo
   ========================================================================== */

body.home .demo {
    overflow: hidden;
    background:
        radial-gradient(50% 60% at 85% 40%, rgba(0, 102, 255, 0.08), transparent 70%),
        radial-gradient(40% 50% at 10% 90%, rgba(124, 92, 255, 0.07), transparent 70%) !important;
}

body.home .demo .checker-accent {
    width: 520px;
    height: 520px;
    right: -160px;
    top: -80px;
}

body.home .demo-content { gap: clamp(40px, 6vw, 96px); }

body.home .demo-features {
    gap: 10px;
    margin-top: 28px;
}

body.home .demo-feature {
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

body.home .demo-feature i { color: var(--brand); font-size: 16px; }

body.home .demo-form-wrapper {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 24px;
    border: 0;
    background: #fff;
    box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
}

body.home .demo-form-wrapper::before {
    top: 0;
    left: 24px;
    right: 24px;
    width: auto;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    opacity: 1;
}

body.home .form-title {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

body.home .form-group { margin-bottom: 14px; }

body.home .form-input {
    padding: 18px 14px 8px;
    border-radius: 12px;
    background: #f8fafd;
    border-color: var(--hairline-strong);
    box-shadow: none;
    font-family: var(--font-body);
}

body.home .form-input:hover { border-color: rgba(11, 27, 51, 0.28); background: #fff; }

body.home .form-input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

body.home .form-input:focus + .form-label,
body.home .form-input:not(:placeholder-shown) + .form-label {
    top: 12px;
    transform: none;
    padding: 0;
    font-size: 10.5px;
    background: transparent;
}

body.home .form-label {
    left: 15px;
    padding: 0;
    color: var(--ink-4);
}

body.home .checkbox-custom {
    border-radius: 6px;
    border-width: 1.5px;
    border-color: var(--hairline-strong);
}

body.home .btn-full {
    margin-top: 8px;
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 10px 24px -10px rgba(11, 27, 51, 0.5);
}

body.home .btn-full:hover {
    background: var(--brand);
    box-shadow: 0 14px 30px -10px rgba(0, 102, 255, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */

body.home .footer {
    position: relative;
    overflow: hidden;
    background: #071226;
}

body.home .footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: var(--dot-size) var(--dot-size);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
            mask-image: linear-gradient(180deg, #000, transparent 70%);
    pointer-events: none;
}

body.home .footer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -280px;
    width: 900px;
    height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(0, 102, 255, 0.35), rgba(124, 92, 255, 0.12) 55%, transparent);
    pointer-events: none;
}

body.home .footer .container { position: relative; z-index: 1; }

body.home .footer-cta { padding: 96px 0 72px; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }

body.home .footer-cta__title {
    font-size: clamp(1.62rem, 3.564vw, 2.6325rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-wrap: balance;
}

body.home .footer-cta__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

body.home .footer-cta__actions { gap: 12px; }

body.home .footer-cta .btn-pill--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.home .footer-cta .btn-pill--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

body.home .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

body.home .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 520px;
    margin-left: auto;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

body.home .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

body.home .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Hover lift on cards must win over the reveal reset */
body.home .reveal.is-visible.calling-card:hover,
body.home .reveal.is-visible.review-card:hover {
    transform: translateY(-4px);
    transition-delay: 0s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-visual {
        justify-self: center;
        max-width: 520px;
    }

    body.home .calling-row { grid-template-columns: repeat(2, 1fr); }
    body.home .calling-row::before { display: none; }
}

@media (max-width: 880px) {
    body.home .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    body.home .footer-links { max-width: none; margin-left: 0; gap: 40px; }
    .page-guides { display: none; }
}

@media (max-width: 768px) {
    body.home .navbar {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom-color: var(--hairline);
    }

    body.home .nav-menu { background: #fff; }

    .hero-inner { padding-top: 112px; }

    .hero-actions .btn-pill { flex: 1 1 auto; justify-content: center; }

    body.home .section-header,
    body.home .calling-header { margin-bottom: 40px; }

    body.home .feature-item { margin: 0; padding: 14px 0; }

    /* Payment flow stacks vertically: turn connectors into vertical dotted lines */
    body.home .payment-flow { gap: 4px; }
    body.home .flow-connector {
        flex: 0 0 26px;
        width: 3px;
        height: 26px;
        margin: 0 auto;
        background-size: 3px 7px;
        animation-name: dotsFlowY;
    }
    body.home .feature-item:hover { background: none; box-shadow: none; }
}

@media (max-width: 560px) {
    body.home .calling-row { grid-template-columns: 1fr; }

    /* Simplify the hero composition on phones */
    .hero-visual {
        aspect-ratio: auto;
        padding: 44px 0 132px;
    }

    .hero-visual__wires { display: none; }

    .hv-chat {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
    }

    .hv-call {
        top: 0;
        right: 8px;
        width: auto;
        max-width: 78%;
    }

    .hv-payout {
        left: 8px;
        bottom: 0;
        width: 62%;
    }

    body.home .payments-demo { padding: 28px 16px 36px; }
    body.home .card-3d { width: 100%; max-width: 280px; height: 176px; }

    body.home .reviews .checker-accent,
    body.home .demo .checker-accent { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.home *,
    body.home *::before,
    body.home *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    body.home .reveal { opacity: 1; transform: none; }
    .hero-title__sub em { background-size: 100% 0.38em; }
}

/* Icon/avatar badges inside the mock cards: beat the generic `.hv-* span` text rules */
.hv-card .hv-avatar { color: #fff; font-size: 11px; }
.hv-card .hv-call__icon { color: #fff; font-size: 16px; }
.hv-card .hv-paylink__icon { color: #fff; font-size: 14px; }
.hv-paylink .hv-paylink__amt--link { color: var(--brand); font-size: 12.5px; }

/* Payout label reads as written ("Processed Today"), and keeps the tag on one line */
.hv-payout .hv-payout__label { gap: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; white-space: nowrap; }
.hv-card.hv-payout { width: 47%; }
@media (max-width: 560px) { .hv-card.hv-payout { width: auto; max-width: calc(100% - 16px); } }

/* ==========================================================================
   Fax
   ========================================================================== */

body.home .fax-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

body.home .fax-demo { position: relative; }

body.home .fax-demo .checker-accent { inset: -12% -10%; }

.fax-window {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(11, 27, 51, 0.06);
}

.fax-compose {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px 20px;
    border-bottom: 1px dashed var(--hairline-strong);
}

.fax-compose__row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.fax-compose__row > span:first-child {
    width: 64px;
    flex-shrink: 0;
    color: var(--ink-4);
    font-weight: 500;
}

.fax-compose__row strong { font-weight: 600; color: var(--ink); }

.fax-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-deep);
    background: rgba(0, 102, 255, 0.08);
}

.fax-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafd;
    box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.fax-file__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: var(--grad-brand);
}

.fax-file__meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fax-file__meta strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.fax-file__meta > span:not(.fax-progress) { font-size: 11.5px; color: var(--ink-4); }

.fax-progress {
    display: block;
    height: 4px;
    margin-top: 6px;
    border-radius: 4px;
    background: rgba(11, 27, 51, 0.08);
    overflow: hidden;
}

.fax-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--grad-brand);
    transform-origin: left;
    animation: faxUpload 2.4s var(--ease) infinite;
}

@keyframes faxUpload {
    0%   { transform: scaleX(0); }
    60%  { transform: scaleX(1); }
    100% { transform: scaleX(1); }
}

.fax-send {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 8px 18px -8px rgba(0, 102, 255, 0.6);
}

.fax-inbox { padding: 16px 20px 18px; }

.fax-inbox__label {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-4);
}

.fax-inbox__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.fax-inbox__item + .fax-inbox__item { border-top: 1px solid var(--hairline); }

.fax-inbox__item > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fax-inbox__item strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.fax-inbox__item > div span { font-size: 11.5px; color: var(--ink-4); }

.fax-inbox__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--brand);
    background: rgba(0, 102, 255, 0.08);
}

.fax-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #0f9f6e;
    background: rgba(18, 185, 129, 0.12);
}

@media (max-width: 1024px) {
    body.home .fax-content { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 560px) {
    .fax-compose__row { flex-wrap: wrap; gap: 4px 12px; }
    .fax-compose__row > span:first-child { width: auto; }
}


/* ---------- Hero SMS phone (replaces the inbox window) ---------- */
.hv-card.hv-phone {
    left: 24%;
    top: 4%;
    width: 52%;
    z-index: 2;
    padding: 9px;
    border-radius: 40px;
    background: linear-gradient(160deg, #1b2a44, #0b1b33);
    box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hv-phone__screen {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    padding: 40px 14px 18px;
}

.hv-phone__island {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 76px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #0b1b33;
}

.hv-phone__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
}

.hv-phone__head .hv-avatar { width: 34px; height: 34px; margin-bottom: 4px; }
.hv-phone__head strong { font-size: 12.5px; }
.hv-phone__head > span:not(.hv-avatar) { font-size: 10.5px; color: var(--ink-4); }

.hv-phone__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hv-sms { display: flex; flex-direction: column; }
.hv-sms--in  { align-items: flex-start; }
.hv-sms--out { align-items: flex-end; }

.hv-sms .hv-msg { max-width: 86%; border-radius: 16px; }
.hv-sms .hv-msg--in  { border-bottom-left-radius: 16px; }
.hv-sms .hv-msg--out { border-bottom-right-radius: 16px; }

.hv-sms .hv-paylink { align-self: flex-start; width: 86%; }

.hv-time {
    margin-top: 3px;
    padding: 0 6px;
    font-size: 10px;
    color: var(--ink-4);
}

.hv-typing {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}

.hv-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a3adbd;
    animation: typing 1.4s infinite;
}

.hv-typing i:nth-child(2) { animation-delay: 0.2s; }
.hv-typing i:nth-child(3) { animation-delay: 0.4s; }

/* Floating cards sit around the phone */
.hv-card.hv-call   { top: 14%; right: -2%; width: 42%; }
.hv-card.hv-payout { left: -2%; bottom: 6%; width: 44%; }

@media (max-width: 560px) {
    .hv-card.hv-phone {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .hv-card.hv-call   { top: 0; right: 0; width: auto; max-width: 80%; }
    .hv-card.hv-payout { left: 0; bottom: 0; width: auto; max-width: calc(100% - 16px); }
}

/* Phone layout: call card top-left, funding card bottom-right, overlapping only the phone's empty edges */
.hv-card.hv-phone  { left: 27%; top: 0; width: 50%; }
.hv-card.hv-call   { left: -6%; right: auto; top: 16%; width: 44%; }
.hv-card.hv-payout { left: auto; right: -6%; bottom: 6%; width: 40%; }

@media (max-width: 560px) {
    .hv-card.hv-phone  { left: auto; }
    .hv-card.hv-call   { left: 0; top: 0; width: auto; max-width: 80%; }
    .hv-card.hv-payout { right: 0; bottom: 0; width: auto; }
}

/* Footer without the CTA band: give the link grid its own top spacing */
body.home .footer { padding-top: 64px; }
.hv-card.hv-phone  { left: 21%; width: 58%; }
.hv-card.hv-call   { left: -8%; top: 14%; width: 42%; }
.hv-card.hv-payout { right: -8%; bottom: -12%; width: 40%; }
@media (max-width: 560px) {
    .hv-card.hv-phone  { left: auto; width: 100%; }
    .hv-card.hv-call   { left: 0; top: 0; width: auto; }
    .hv-card.hv-payout { right: 0; bottom: 0; width: auto; }
}


/* Hero headline: exactly two lines ("Best pharmacy service" / "wins. Always.") */
.hero-title__line { display: block; white-space: nowrap; }

@media (min-width: 1081px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 48px;
    }
}

/* Very narrow phones: let it wrap rather than overflow */
@media (max-width: 400px) {
    .hero-title__line { white-space: normal; }
}

/* Wider phone now that the copy column is wider */
@media (min-width: 1081px) {
    .hv-card.hv-phone  { left: 12%; width: 70%; }
    .hv-card.hv-call   { left: -10%; top: 12%; width: 50%; }
    .hv-card.hv-payout { right: -10%; bottom: -12%; width: 48%; }
}
.hero-title__sub em { white-space: nowrap; }

/* ---------- Reviews: single looping row ---------- */
body.home .reviews-marquee {
    position: relative;
    overflow: hidden;
    padding: 12px 0 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

body.home .reviews-track {
    display: flex;
    width: max-content;
    animation: reviewsLoop 160s linear infinite;
}

body.home .reviews-marquee:hover .reviews-track { animation-play-state: paused; }

body.home .reviews-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

body.home .reviews-group .review-card {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

body.home .reviews-group .review-text { flex: 1; }

@keyframes reviewsLoop {
    to { transform: translateX(-50%); }
}

@media (max-width: 560px) {
    body.home .reviews-group .review-card { width: 290px; }
}

/* Reduced motion: no auto-scroll, let people swipe/scroll instead */
@media (prefers-reduced-motion: reduce) {
    body.home .reviews-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    body.home .reviews-track { animation: none !important; }
    body.home .reviews-group[aria-hidden="true"] { display: none; }
}

/* Payment steps: equal-width columns, icons on one line, dots centred between icons */
@media (min-width: 769px) {
    body.home .payment-flow { align-items: flex-start; }
    body.home .flow-step { flex: 1 1 0; min-width: 0; }
    body.home .flow-step .step-icon,
    body.home .flow-step.active .step-icon { transform: none; }
    body.home .flow-connector {
        align-self: flex-start;
        flex: 0 0 48px;
        margin: 25px 0 0;  /* (52px icon / 2) - (3px line / 2) */
    }
}

@media (min-width: 1081px) {
    .hv-card.hv-phone { top: 8%; }
    .hv-card.hv-call  { top: -2%; width: 44%; }
}

/* ---------- Demo form: squared, modern ---------- */
body.home .demo-form-wrapper {
    border-radius: 8px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow:
        0 1px 2px rgba(11, 27, 51, 0.04),
        0 24px 60px -24px rgba(11, 27, 51, 0.22),
        inset 0 0 0 1px var(--hairline-strong);
}

body.home .demo-form-wrapper::before {
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
}

body.home .form-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

body.home .demo-form .form-title + .form-group { margin-top: 22px; }

body.home .form-input {
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--hairline-strong);
    padding: 20px 14px 8px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

body.home .form-input:hover { background: #fff; border-color: rgba(11, 27, 51, 0.3); }

body.home .form-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}

body.home .checkbox-custom { border-radius: 4px; width: 18px; height: 18px; }

body.home .form-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
    left: 5px;
    top: 1px;
}

body.home .btn-full {
    border-radius: 6px;
    padding: 14px 22px;
    background: var(--ink);
    box-shadow: none;
}

body.home .btn-full:hover {
    background: var(--brand);
    box-shadow: 0 10px 24px -10px rgba(0, 102, 255, 0.55);
    transform: none;
}
@media (min-width: 1081px) {
    .hv-card.hv-payout { bottom: -24%; }
}

/* Slimmer, phone-proportioned device */
@media (min-width: 1081px) {
    .hv-card.hv-phone  { width: 290px; left: calc(50% - 145px); top: 4%; }
    .hv-card.hv-call   { left: -4%; top: 10%; width: 46%; }
    .hv-card.hv-payout { right: -4%; bottom: 2%; width: 46%; }
}
.hv-card.hv-phone { max-width: 300px; }
.hv-phone__body .hv-msg { font-size: 12px; }
.hv-phone__screen { padding: 38px 12px 16px; }
@media (min-width: 1081px) {
    .hv-card.hv-call   { top: 0; left: -2%; width: 44%; }
    .hv-card.hv-payout { bottom: -22%; right: -2%; width: 44%; }
}
@media (min-width: 1081px) {
    .hv-card.hv-payout { right: -12%; }
}
@media (min-width: 1081px) { .hv-card.hv-payout { width: auto; } }
body.home .message-sent .message-time { text-align: right; }

/* ==========================================================================
   Mobile polish
   ========================================================================== */
@media (max-width: 768px) {
    /* Tap targets ≥ 44px */
    body.home .nav-toggle {
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1001;
    }
    body.home .nav-signin { min-height: 40px; padding: 8px 16px; }
    body.home .hero-eyebrow { min-height: 40px; }
    body.home .footer-column a { padding: 10px 0; }
    body.home .footer-bottom__links a { display: inline-block; padding: 10px 4px; }
    body.home .footer-social a { width: 44px; height: 44px; }
    body.home .form-checkbox { min-height: 44px; padding-top: 2px; }

    /* iOS zooms into inputs under 16px — keep form text at 16px */
    body.home .form-input { font-size: 16px; }

    /* Mobile menu: larger, left-aligned links with a dimmed backdrop */
    body.home .nav-menu {
        width: min(86%, 360px);
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 88px 24px 32px;
        background: #fff;
        box-shadow: -24px 0 60px -20px rgba(11, 27, 51, 0.3);
    }
    body.home .nav-menu .nav-link {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 17px;
        font-weight: 600;
        color: var(--ink);
    }
    body.home .nav-menu .nav-link-cta {
        justify-content: center;
        margin: 16px 0 0;
        color: #fff;
    }
    body.home.menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(11, 27, 51, 0.35);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}
