/* Expedite RCM website. Plain CSS, no external files. */

:root {
    --deep: #0c1f3d;
    --navy: #1a365d;
    --blue: #2f6fb5;
    --sky: #2e9bd6;
    --sky-light: #7dd3fc;
    --ink: #172335;
    --muted: #55657a;
    --bg: #ffffff;
    --soft: #f3f7fc;
    --border: #dfe8f3;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(12, 31, 61, 0.06), 0 4px 14px rgba(12, 31, 61, 0.06);
    --shadow: 0 10px 34px rgba(12, 31, 61, 0.12);
    --shadow-lg: 0 30px 80px rgba(4, 14, 32, 0.45);
    --max: 1160px;
    --accent: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    --brand: linear-gradient(135deg, #1a365d 0%, #2f6fb5 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

h1, h2, h3 {
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--deep);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 750;
}

h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--deep);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

.grad-text {
    background: linear-gradient(90deg, #7dd3fc, #c4ecff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--sky);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(223, 232, 243, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
}

.brand img {
    display: block;
    height: 48px;
    width: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: var(--soft);
    color: var(--navy);
}

.site-nav a[aria-current="page"] {
    background: #e8f4fc;
    color: var(--navy);
}

.site-nav a.btn {
    color: #fff;
    margin-left: 10px;
}

.site-nav a.btn:hover {
    background: var(--brand);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--navy);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(26, 54, 93, 0.32);
    filter: brightness(1.06);
}

.btn-accent {
    background: var(--accent);
    color: var(--deep);
    box-shadow: 0 8px 26px rgba(56, 189, 248, 0.45);
}

.btn-accent:hover {
    box-shadow: 0 14px 34px rgba(56, 189, 248, 0.55);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.94rem;
}

.btn .arrow {
    transition: transform 0.15s ease;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* Hero */

.hero {
    position: relative;
    color: #fff;
    padding: 96px 0 110px;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 88% -8%, rgba(56, 189, 248, 0.42), transparent 62%),
        radial-gradient(760px 460px at -8% 108%, rgba(47, 111, 181, 0.65), transparent 62%),
        linear-gradient(160deg, #0c1f3d 0%, #14305a 55%, #1a3f73 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 72%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
}

.hero-grid > *,
.split > * {
    min-width: 0;
}

.hero .lead {
    font-size: 1.22rem;
    color: #d5e3f5;
    max-width: 33em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    color: #c6d8ee;
    font-size: 0.95rem;
}

.hero-points li {
    position: relative;
    padding-left: 24px;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1f3d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat, var(--accent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e6f1fd;
    font-size: 0.86rem;
    font-weight: 600;
}

.eyebrow b {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--deep);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-hero {
    position: relative;
    color: #fff;
    padding: 72px 0 76px;
    overflow: hidden;
    background:
        radial-gradient(700px 380px at 90% -20%, rgba(56, 189, 248, 0.4), transparent 62%),
        linear-gradient(160deg, #0c1f3d 0%, #14305a 60%, #1a3f73 100%);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.2rem);
    margin-bottom: 0.3em;
}

.page-hero p {
    color: #d5e3f5;
    font-size: 1.18rem;
    max-width: 40em;
    margin: 0;
}

/* Drawn product window (illustration only, no real data) */

.app-wrap {
    position: relative;
}

.app-mock {
    position: relative;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transform-origin: left center;
}

.app-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: #eef3f9;
    border-bottom: 1px solid var(--border);
}

.app-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5d3e3;
}

.app-name {
    margin-left: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.app-main {
    display: grid;
    grid-template-columns: 54px 1fr;
    min-height: 318px;
}

.app-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 12px;
    background: var(--deep);
}

.app-side span {
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
}

.app-side span.on {
    background: var(--accent);
}

.app-content {
    padding: 16px;
    background: #f7fafd;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tile {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.tile-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.skeleton {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: #dde7f2;
}

.skeleton.strong {
    height: 13px;
    background: linear-gradient(90deg, var(--navy), var(--sky));
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 96px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.chart span {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--sky), var(--blue));
    opacity: 0.9;
}

.chart span:nth-child(even) {
    background: linear-gradient(180deg, #b9def3, #8fc4e6);
}

.work-rows {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.work-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid #eef3f9;
}

.work-row:last-child {
    border-bottom: 0;
}

.work-row .skeleton {
    flex: 1;
}

.pill {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.pill-ok {
    background: #dcf5e7;
    color: #14633a;
}

.pill-info {
    background: #e2f1fc;
    color: #1a4a7a;
}

.pill-due {
    background: #fdecd2;
    color: #8a4b08;
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(4, 14, 32, 0.32);
    color: var(--deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.float-chip i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1f3d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat, var(--accent);
}

.float-chip.one {
    left: -30px;
    bottom: -18px;
}

.float-chip.two {
    right: -22px;
    top: -20px;
}

/* Sections */

.section {
    padding: 92px 0;
}

.section-soft {
    background: var(--soft);
}

.section-head {
    max-width: 44em;
    margin-bottom: 44px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.14rem;
    margin: 0;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cards.two {
    grid-template-columns: repeat(2, 1fr);
}

.cards.four {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card:hover {
    transform: translateY(-5px);
    border-color: #b9dcf2;
    box-shadow: var(--shadow);
}

.card p {
    color: var(--muted);
    margin: 0;
}

.card .more {
    display: inline-block;
    margin-top: 16px;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.95rem;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(26, 54, 93, 0.22);
}

.icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon.light {
    background: #e6f3fb;
    color: var(--navy);
    box-shadow: none;
}

/* Workflow steps */

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.steps li {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px 22px;
    box-shadow: var(--shadow-sm);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.steps h3 {
    margin-bottom: 0.35em;
}

.steps p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Dark band (AI Assistant) */

.band-dark {
    position: relative;
    color: #dbe7f6;
    overflow: hidden;
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(56, 189, 248, 0.28), transparent 60%),
        radial-gradient(600px 380px at 0% 100%, rgba(47, 111, 181, 0.5), transparent 60%),
        #0c1f3d;
}

.band-dark h2 {
    color: #fff;
}

.band-dark .checks li {
    color: #dbe7f6;
}

.chat {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
}

.bubble {
    max-width: 86%;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bubble.you {
    margin-left: auto;
    border-bottom-right-radius: 4px;
    background: var(--accent);
    color: var(--deep);
    font-weight: 600;
}

.bubble.bot {
    border-bottom-left-radius: 4px;
    background: #fff;
    color: var(--ink);
}

.bubble:last-child {
    margin-bottom: 0;
}

/* Split feature blocks */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.feature-block {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.feature-block:last-of-type {
    border-bottom: 0;
}

.feature-block:nth-of-type(even) .split > :first-child {
    order: 2;
}

.checks {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
}

.checks li {
    position: relative;
    padding: 0 0 12px 34px;
    color: var(--ink);
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1f3d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat, var(--accent);
}

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jump a {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.jump a:hover {
    border-color: var(--sky);
    transform: translateY(-2px);
}

/* Panels used on Features and Support */

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.panel-head::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sky-light);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.25);
}

.panel-body {
    padding: 8px 20px 12px;
}

.line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eef3f9;
    font-size: 0.95rem;
}

.line:last-child {
    border-bottom: 0;
}

.line strong {
    color: var(--deep);
}

.tag {
    padding: 3px 12px;
    border-radius: 999px;
    background: #e6f3fb;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Call to action band */

.cta {
    position: relative;
    color: #fff;
    padding: 88px 0;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(640px 360px at 50% 120%, rgba(56, 189, 248, 0.45), transparent 65%),
        linear-gradient(160deg, #0c1f3d 0%, #1a3f73 100%);
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: #d5e3f5;
    font-size: 1.15rem;
    max-width: 36em;
    margin: 0 auto 28px;
}

/* Forms */

.form-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--deep);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b4c2d3;
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(46, 155, 214, 0.18);
    outline: none;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
    border-bottom: 0;
}

.contact-list span.label {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

kbd {
    padding: 2px 8px;
    border: 1px solid #b9c7d8;
    border-bottom-width: 2px;
    border-radius: 7px;
    background: #f6f9fc;
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 600;
    white-space: nowrap;
}

.numbered {
    margin: 0;
    padding-left: 1.3em;
}

.numbered li {
    padding: 0 0 10px 4px;
}

/* Footer */

.site-footer {
    background: #091830;
    color: #b9c9de;
    padding: 56px 0 26px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
}

.site-footer img {
    height: 46px;
    width: auto;
    margin-bottom: 14px;
}

.site-footer h2 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    padding: 4px 0;
}

.site-footer a {
    color: #dfe9f6;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--sky-light);
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8fa3bd;
    font-size: 0.88rem;
}

[hidden] {
    display: none !important;
}

/* Scroll reveal. Only active when scripts run, so content is never hidden without them. */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* Small screens */

@media (max-width: 980px) {
    .hero-grid,
    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-block:nth-of-type(even) .split > :first-child {
        order: 0;
    }

    .app-mock {
        transform: none;
    }

    .float-chip.one {
        left: 10px;
        bottom: -18px;
    }

    .float-chip.two {
        right: 10px;
        top: -34px;
    }

    .app-wrap {
        margin-top: 28px;
    }

    .cards,
    .cards.four {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 16px 18px;
    }

    .site-nav a {
        border-radius: 12px;
    }

    .site-nav a.btn {
        margin: 8px 0 0;
        text-align: center;
    }

    .hero {
        padding: 60px 0 76px;
    }

    .section {
        padding: 60px 0;
    }

    .feature-block {
        padding: 48px 0;
    }

    .cards,
    .cards.two,
    .cards.four,
    .steps,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 22px;
    }

    .tiles {
        grid-template-columns: 1fr 1fr;
    }

    .tile:nth-child(3) {
        display: none;
    }

    .float-chip {
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .card,
    .jump a,
    .js .reveal {
        transition: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Denial Management window in the hero (illustration only, no real data) */

.dm {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 318px;
}

.dm-views {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 10px;
    background: var(--deep);
}

.dm-view {
    padding: 7px 10px;
    border-radius: 9px;
    color: #c6d8ee;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.dm-view.on {
    background: var(--accent);
    color: var(--deep);
    font-weight: 800;
}

.dm-group {
    margin-top: 8px;
    padding: 0 10px;
    color: #7f97b5;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dm-cases {
    padding: 14px;
    background: #f7fafd;
}

.dm-row {
    display: grid;
    grid-template-columns: 1fr 64px 118px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    margin-bottom: 8px;
}

.dm-row.head {
    padding: 0 12px 4px;
    border: 0;
    background: none;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dm-row .pill {
    justify-self: start;
}

.pill-red {
    background: #fde2e1;
    color: #8f1d1a;
}

.dm-detail {
    margin-top: 10px;
    padding: 12px;
    border: 1px dashed #c3d3e6;
    border-radius: 11px;
    background: #fff;
}

.dm-detail b {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dm-detail .skeleton {
    margin-bottom: 7px;
}

/* Denial spotlight */

.spotlight {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: flow;
}

.flow li {
    position: relative;
    padding: 0 0 26px 62px;
    counter-increment: flow;
}

.flow li:last-child {
    padding-bottom: 0;
}

.flow li::before {
    content: counter(flow);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(26, 54, 93, 0.22);
}

.flow li::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 46px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, #9fd4f0, #dfe8f3);
}

.flow li:last-child::after {
    display: none;
}

.flow h3 {
    margin-bottom: 0.2em;
}

.flow p {
    color: var(--muted);
    margin: 0;
}

.minis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 56px;
}

.mini {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.mini h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4em;
}

.mini p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.mini .dot {
    display: block;
    width: 34px;
    height: 5px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--accent);
}

@media (max-width: 1080px) {
    .site-nav a {
        padding: 8px 10px;
        font-size: 0.93rem;
    }
}

@media (max-width: 980px) {
    .minis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .dm {
        grid-template-columns: 1fr;
    }

    .dm-views {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }

    .dm-group {
        display: none;
    }

    .dm-row {
        grid-template-columns: 1fr 52px 104px;
        gap: 8px;
        padding: 9px 10px;
    }

    .minis {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
}

/* AI page: example questions, and capability tiles on the dark band */

.asks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.asks li {
    position: relative;
    padding: 16px 18px 16px 48px;
    border: 1px solid var(--border);
    border-radius: 16px 16px 16px 4px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--deep);
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.45;
}

.asks li::before {
    content: "\201C";
    position: absolute;
    left: 16px;
    top: 8px;
    color: var(--sky);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    line-height: 1;
}

.minis.three {
    grid-template-columns: repeat(3, 1fr);
}

.band-dark .minis {
    margin-top: 52px;
}

.band-dark .mini {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.band-dark .mini h3 {
    color: #fff;
}

.band-dark .mini p {
    color: #c6d8ee;
}

@media (max-width: 980px) {
    .asks,
    .minis.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .asks,
    .minis.three {
        grid-template-columns: 1fr;
    }
}

/* Sales address on the About page */

.section-head .people-contact {
    margin-top: 24px;
}

/* Customer quotes (the section is commented out in index.html until real quotes arrive) */

.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.quote {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.quote p {
    color: var(--ink);
    font-size: 1.05rem;
}

.quote footer {
    color: var(--muted);
    font-size: 0.92rem;
}

.quote footer strong {
    display: block;
    color: var(--deep);
}

@media (max-width: 980px) {
    .quotes {
        grid-template-columns: 1fr;
    }
}

/* Colour pass: accent colours on top of the navy and sky brand */

:root {
    --g-blue: linear-gradient(135deg, #2f6fb5 0%, #38bdf8 100%);
    --g-teal: linear-gradient(135deg, #0d9488 0%, #34d399 100%);
    --g-violet: linear-gradient(135deg, #6d4fe0 0%, #a78bfa 100%);
    --g-amber: linear-gradient(135deg, #e07a10 0%, #fbbf24 100%);
    --g-rose: linear-gradient(135deg, #e0457b 0%, #fb7185 100%);
    --g-indigo: linear-gradient(135deg, #4338ca 0%, #818cf8 100%);
    --rainbow: linear-gradient(90deg, #38bdf8 0%, #34d399 25%, #fbbf24 50%, #fb7185 75%, #a78bfa 100%);
}

/* a thin colour line under the header and on top of the footer */

.site-header::after,
.site-footer::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--rainbow);
}

.site-footer {
    padding-top: 0;
}

.site-footer::before {
    margin-bottom: 56px;
}

/* hero and dark bands: a second and third glow */

.hero,
.page-hero {
    background:
        radial-gradient(820px 480px at 90% -10%, rgba(56, 189, 248, 0.45), transparent 62%),
        radial-gradient(640px 420px at 62% 118%, rgba(124, 92, 255, 0.42), transparent 62%),
        radial-gradient(700px 440px at -10% 105%, rgba(16, 185, 129, 0.30), transparent 62%),
        linear-gradient(160deg, #0c1f3d 0%, #14305a 55%, #1a3f73 100%);
}

.band-dark {
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(124, 92, 255, 0.38), transparent 60%),
        radial-gradient(620px 400px at 0% 100%, rgba(16, 185, 129, 0.26), transparent 60%),
        radial-gradient(560px 360px at 55% 40%, rgba(56, 189, 248, 0.14), transparent 65%),
        #0c1f3d;
}

.cta {
    background:
        radial-gradient(560px 340px at 22% 125%, rgba(16, 185, 129, 0.40), transparent 65%),
        radial-gradient(600px 360px at 78% 125%, rgba(124, 92, 255, 0.48), transparent 65%),
        radial-gradient(520px 320px at 50% -30%, rgba(56, 189, 248, 0.34), transparent 65%),
        linear-gradient(160deg, #0c1f3d 0%, #1a3f73 100%);
}

.grad-text {
    background: linear-gradient(90deg, #7dd3fc 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-accent {
    background: linear-gradient(135deg, #7dd3fc 0%, #a5b4fc 100%);
    box-shadow: 0 8px 26px rgba(125, 160, 252, 0.5);
}

.btn-accent:hover {
    box-shadow: 0 14px 34px rgba(125, 160, 252, 0.6);
}

.section-soft {
    background: linear-gradient(180deg, #f3f7fc 0%, #f5f3ff 100%);
}

.spotlight {
    background: linear-gradient(180deg, #ffffff 0%, #eefaf6 100%);
}

.kicker {
    padding: 4px 12px;
    border-radius: 999px;
    background: #e8f4fc;
    color: #1a5f9e;
}

.band-dark .kicker {
    background: rgba(255, 255, 255, 0.12);
    color: #c4ecff;
}

/* icon tiles take a different colour on each card */

.cards .card:nth-child(6n+1) .icon { background: var(--g-blue); box-shadow: 0 8px 18px rgba(47, 111, 181, 0.30); }
.cards .card:nth-child(6n+2) .icon { background: var(--g-teal); box-shadow: 0 8px 18px rgba(13, 148, 136, 0.30); }
.cards .card:nth-child(6n+3) .icon { background: var(--g-violet); box-shadow: 0 8px 18px rgba(109, 79, 224, 0.30); }
.cards .card:nth-child(6n+4) .icon { background: var(--g-amber); box-shadow: 0 8px 18px rgba(224, 122, 16, 0.30); }
.cards .card:nth-child(6n+5) .icon { background: var(--g-rose); box-shadow: 0 8px 18px rgba(224, 69, 123, 0.30); }
.cards .card:nth-child(6n+6) .icon { background: var(--g-indigo); box-shadow: 0 8px 18px rgba(67, 56, 202, 0.30); }

.cards .card .icon.light {
    color: #fff;
}

.cards .card {
    border-top: 3px solid transparent;
}

.cards .card:nth-child(6n+1) { border-top-color: #38bdf8; }
.cards .card:nth-child(6n+2) { border-top-color: #34d399; }
.cards .card:nth-child(6n+3) { border-top-color: #a78bfa; }
.cards .card:nth-child(6n+4) { border-top-color: #fbbf24; }
.cards .card:nth-child(6n+5) { border-top-color: #fb7185; }
.cards .card:nth-child(6n+6) { border-top-color: #818cf8; }

/* numbered steps and the denial flow */

.steps li:nth-child(5n+1)::before, .flow li:nth-child(5n+1)::before { background: var(--g-blue); }
.steps li:nth-child(5n+2)::before, .flow li:nth-child(5n+2)::before { background: var(--g-teal); }
.steps li:nth-child(5n+3)::before, .flow li:nth-child(5n+3)::before { background: var(--g-violet); }
.steps li:nth-child(5n+4)::before, .flow li:nth-child(5n+4)::before { background: var(--g-amber); }
.steps li:nth-child(5n+5)::before, .flow li:nth-child(5n+5)::before { background: var(--g-rose); }

.flow li::after {
    background: linear-gradient(180deg, #b9def3, #e3dcff);
}

/* small tiles */

.minis .mini:nth-child(6n+1) .dot { background: var(--g-blue); }
.minis .mini:nth-child(6n+2) .dot { background: var(--g-teal); }
.minis .mini:nth-child(6n+3) .dot { background: var(--g-violet); }
.minis .mini:nth-child(6n+4) .dot { background: var(--g-amber); }
.minis .mini:nth-child(6n+5) .dot { background: var(--g-rose); }
.minis .mini:nth-child(6n+6) .dot { background: var(--g-indigo); }

.mini .dot {
    width: 40px;
    height: 6px;
}

/* feature panels on the Features page take a colour each */

.feature-block:nth-of-type(6n+1) .panel-head { background: var(--g-blue); }
.feature-block:nth-of-type(6n+2) .panel-head { background: var(--g-violet); }
.feature-block:nth-of-type(6n+3) .panel-head { background: var(--g-teal); }
.feature-block:nth-of-type(6n+4) .panel-head { background: var(--g-indigo); }
.feature-block:nth-of-type(6n+5) .panel-head { background: var(--g-amber); }
.feature-block:nth-of-type(6n+6) .panel-head { background: var(--g-rose); }

.panel-head::before {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

/* example questions */

.asks li:nth-child(5n+1) { border-left: 4px solid #38bdf8; }
.asks li:nth-child(5n+2) { border-left: 4px solid #34d399; }
.asks li:nth-child(5n+3) { border-left: 4px solid #a78bfa; }
.asks li:nth-child(5n+4) { border-left: 4px solid #fbbf24; }
.asks li:nth-child(5n+5) { border-left: 4px solid #fb7185; }

.asks li:nth-child(5n+1)::before { color: #38bdf8; }
.asks li:nth-child(5n+2)::before { color: #10b981; }
.asks li:nth-child(5n+3)::before { color: #8b5cf6; }
.asks li:nth-child(5n+4)::before { color: #f59e0b; }
.asks li:nth-child(5n+5)::before { color: #f43f5e; }

/* chat bubbles and the mock window */

.bubble.you {
    background: linear-gradient(135deg, #7dd3fc 0%, #a5b4fc 100%);
}

.app-side span.on,
.dm-view.on {
    background: linear-gradient(135deg, #7dd3fc 0%, #a5b4fc 100%);
}

.skeleton.strong {
    background: linear-gradient(90deg, #2f6fb5, #a78bfa);
}

.eyebrow b {
    background: linear-gradient(135deg, #34d399 0%, #7dd3fc 100%);
}

/* Page headers match the home hero */

.page-hero {
    padding: 92px 0 96px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 72%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    margin-bottom: 0.4em;
}

@media (max-width: 760px) {
    .page-hero {
        padding: 60px 0 64px;
    }
}

/* Scheduler day view on Home and Features (illustration only, no real data) */

.cal {
    padding: 14px;
    background: #f7fafd;
}

.cal-head,
.cal-grid {
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cal-head {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.cal-times,
.cal-col {
    display: grid;
    grid-template-rows: repeat(10, 26px);
}

.cal-times span {
    grid-row: span 2;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

/* the lines between the half-hour slots */
.cal-col {
    border: 1px solid var(--border);
    border-radius: 11px;
    background: repeating-linear-gradient(180deg, #fff 0, #fff 25px, #eef3f9 25px, #eef3f9 26px);
    overflow: hidden;
}

.appt {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 2px 3px;
    padding: 0 8px;
    border-left: 4px solid #38bdf8;
    border-radius: 7px;
    background: #e2f1fc;
}

.appt .skeleton {
    flex: 1;
    height: 7px;
    background: rgba(12, 31, 61, 0.16);
}

.appt.confirmed {
    border-left-color: #10b981;
    background: #dcf5e7;
}

.appt.checked-in {
    border-left-color: #6d4fe0;
    background: #ebe5fd;
}

.appt.departed {
    border-left-color: #64748b;
    background: #e8edf3;
}

.appt.no-show {
    border-left-color: #e0457b;
    background: #fde4ec;
}

.appt.block {
    justify-content: center;
    padding: 0;
    border-left: 0;
    background: repeating-linear-gradient(135deg, #e3e9f1 0, #e3e9f1 6px, #f2f5f9 6px, #f2f5f9 12px);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cal-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: #38bdf8;
}

.cal-legend i.confirmed { background: #10b981; }
.cal-legend i.checked-in { background: #6d4fe0; }
.cal-legend i.departed { background: #64748b; }
.cal-legend i.no-show { background: #e0457b; }

/* Dark mode. Follows the visitor's device setting. The drawn product windows stay light, like screenshots. */

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --ink: #e3ebf6;
        --muted: #9fb1c9;
        --bg: #0a1322;
        --soft: #0e1a2f;
        --border: #24395b;
        --surface: #121f36;
        --heading: #f3f7fd;
        --link: #7cc7f8;
        --tint: rgba(125, 211, 252, 0.14);
        --tint-ink: #bfe3fb;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.28);
        --shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
    }

    /* the drawn windows keep the light colours they were drawn in */
    .app-mock,
    .cal {
        --ink: #172335;
        --muted: #55657a;
        --border: #dfe8f3;
        --soft: #f3f7fc;
        color-scheme: light;
    }

    h1, h2, h3 {
        color: var(--heading);
    }

    a,
    .card .more {
        color: var(--link);
    }

    /* header */

    .site-header {
        background: rgba(10, 19, 34, 0.86);
        border-bottom-color: rgba(36, 57, 91, 0.9);
    }

    .site-nav a:hover {
        background: var(--tint);
        color: #fff;
    }

    .site-nav a[aria-current="page"] {
        background: var(--tint);
        color: var(--tint-ink);
    }

    .nav-toggle {
        background: var(--surface);
    }

    .nav-toggle span {
        background: var(--ink);
    }

    /* buttons that sit on the page background */

    .btn:not(.btn-accent):not(.btn-ghost),
    .site-nav a.btn:hover {
        background: linear-gradient(135deg, #2a66ad 0%, #3aa0e0 100%);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    }

    /* sections */

    .section-soft {
        background: linear-gradient(180deg, #0e1a2f 0%, #121a35 100%);
    }

    .spotlight {
        background: linear-gradient(180deg, #0a1322 0%, #0b1d27 100%);
    }

    .kicker {
        background: var(--tint);
        color: #9bd8fb;
    }

    /* surfaces */

    .card,
    .steps li,
    .jump a,
    .panel,
    .form-card,
    .mini,
    .asks li,
    .quote {
        background: var(--surface);
    }

    a.card:hover {
        border-color: #3b6fa3;
    }

    .jump a {
        color: var(--tint-ink);
    }

    .asks li {
        color: var(--ink);
    }

    .icon.light,
    .tag {
        background: var(--tint);
        color: var(--tint-ink);
    }

    .line {
        border-bottom-color: var(--border);
    }

    .line strong,
    .field label,
    .quote footer strong {
        color: var(--heading);
    }

    .flow li::after {
        background: linear-gradient(180deg, #2c5a85, #3a3470);
    }

    /* the white answer bubble in the chat drawing */

    .bubble.bot {
        background: rgba(255, 255, 255, 0.12);
        color: #eaf1fb;
    }

    /* forms */

    .field input,
    .field textarea,
    .field select {
        border-color: #35507a;
        background: #0c172b;
        color: var(--ink);
    }

    kbd {
        border-color: #3a557f;
        background: #1a2c4c;
    }
}

@media (prefers-color-scheme: dark) and (max-width: 760px) {
    .site-nav {
        background: var(--bg);
    }
}

/* Privacy Policy and Terms: long text at a readable width */
.legal {
    max-width: 50em;
}

.legal h2 {
    font-size: 1.35rem;
    margin: 1.8em 0 0.5em;
}

.legal ul {
    padding-left: 1.3em;
}

.legal li {
    margin-bottom: 0.5em;
}

.footer-bottom a {
    color: inherit;
}
