:root {
    color-scheme: light;
    --bg: #f7fbff;
    --bg-soft: #eef8ff;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-tint: #f4f9fc;
    --text: #0f172a;
    --muted: #475569;
    --subtle: #64748b;
    --line: #d8e5ee;
    --line-strong: #c3d4e2;
    --primary: #0ea5e9;
    --primary-strong: #0369a1;
    --accent: #f97316;
    --accent-strong: #ea580c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --ink: #07111f;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 34px 90px rgba(15, 23, 42, 0.18);
    --radius: 8px;
    --radius-sm: 6px;
    --max-width: 1180px;
    --font-heading: "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-accent: "Instrument Serif", Georgia, serif;
    --hero-bg: linear-gradient(180deg, #eaf7ff 0%, #f7fbff 100%);
    --hero-text: #07111f;
    --hero-muted: #475569;
    --hero-accent: #0891b2;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #07111f;
    --bg-soft: #0d1d2f;
    --surface: #101c2d;
    --surface-raised: #13243a;
    --surface-tint: #0d1b2c;
    --text: #f8fafc;
    --muted: #b6c2d2;
    --subtle: #91a1b6;
    --line: rgba(226, 232, 240, 0.16);
    --line-strong: rgba(226, 232, 240, 0.28);
    --primary: #38bdf8;
    --primary-strong: #7dd3fc;
    --accent: #fb923c;
    --accent-strong: #fdba74;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --ink: #030712;
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 36px 90px rgba(0, 0, 0, 0.44);
    --hero-bg: #07111f;
    --hero-text: #f8fafc;
    --hero-muted: #c7d4e4;
    --hero-accent: #12bfd7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(255, 255, 255, 0) 28rem),
        linear-gradient(180deg, var(--bg), var(--surface-tint) 56%, var(--bg));
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[data-theme="dark"] body {
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(7, 17, 31, 0) 30rem),
        linear-gradient(180deg, var(--bg), #091829 56%, var(--bg));
}

body::before {
    content: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin: 0;
}

h1,
h2,
h3,
.brand,
.nav-cta,
.primary-button,
.lab-tab,
.inbox-tab,
.section-badge {
    font-family: var(--font-heading);
    letter-spacing: 0;
}

section {
    scroll-margin-top: 112px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #ffffff;
    font-weight: 700;
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.42);
    outline-offset: 3px;
}

.site-header {
    position: relative;
    z-index: 1000;
}

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    width: min(calc(100% - 32px), var(--max-width));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-tint);
}

.nav-links a {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    background: var(--surface);
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.icon-button:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
}

[data-theme="light"] .sun-icon,
[data-theme="dark"] .moon-icon {
    display: none;
}

.nav-cta,
.primary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-cta {
    padding: 0 16px;
}

.primary-button {
    padding: 0 20px;
}

.nav-cta:hover,
.primary-button:hover {
    background: var(--accent-strong);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
    transform: translateY(-1px);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.hero-section {
    width: 100%;
    margin: 0;
    padding: 148px 24px 112px;
    background: var(--hero-bg);
    color: var(--hero-text);
    text-align: center;
}

.hero-copy {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.eyebrow,
.section-badge,
.live-badge,
.complete-badge,
.priority-badge,
.routine-badge,
.med-badge,
.panel-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--primary-strong);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.eyebrow {
    margin-bottom: 20px;
    padding: 8px 10px;
    max-width: 100%;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.72);
        opacity: 0.72;
    }
}

.hero-section h1 {
    color: var(--hero-text);
    font-size: clamp(2.35rem, 5vw, 4.65rem);
    font-weight: 700;
    line-height: 1.02;
    text-wrap: balance;
}

.hero-accent {
    display: block;
    color: var(--hero-accent);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.96em;
    font-weight: 400;
    line-height: 0.9;
    text-wrap: balance;
}

.hero-accent span {
    display: inline;
}

.hero-subheadline {
    width: min(100%, 720px);
    margin: 28px auto 0;
    color: var(--hero-muted);
    font-size: clamp(1rem, 1.22vw, 1.12rem);
    line-height: 1.5;
}

.lead-form {
    display: flex;
    width: min(100%, 480px);
    margin: 24px auto 0;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.lead-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    padding: 0 14px;
    min-height: 46px;
    outline: 0;
}

.lead-form input::placeholder {
    color: var(--subtle);
}

.lead-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), var(--shadow-sm);
}

.form-status {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.form-status:empty {
    display: none;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--danger);
}

.product-lab,
.video-shell,
.feature-card,
.impact-card,
.faq-item,
.waitlist-section,
.inbox-mockup,
.flow-board {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.summary-box,
.draft-message,
.chat-bubble,
.patient-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-tint);
}

.live-badge {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(254, 242, 242, 0.88);
    color: var(--danger);
    padding: 7px 8px;
}

.trust-section {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0 0 64px;
}

.trust-item {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.trust-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    line-height: 1;
}

.trust-item span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

.section-header {
    width: min(calc(100% - 48px), 650px);
    margin: 0 auto 28px;
    text-align: center;
}

.section-badge {
    margin: 0 auto 14px;
    padding: 7px 9px;
    color: var(--primary-strong);
}

.section-header h2,
.workflow-copy h2,
.impact-copy h2,
.waitlist-section h2 {
    color: var(--text);
    font-size: clamp(1.58rem, 2.6vw, 2.35rem);
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
}

.section-header p,
.workflow-copy p,
.impact-copy p,
.waitlist-section p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.96rem;
}

.demo-section,
.problem-section,
.platform-section,
.workflow-section,
.impact-section,
.faq-section {
    padding: 90px 0;
}

.problem-section {
    width: min(calc(100% - 48px), 980px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 54px;
    align-items: start;
    padding-top: 74px;
    padding-bottom: 98px;
    border-top: 1px solid var(--line);
}

.problem-copy .section-badge {
    margin-left: 0;
}

.problem-copy h2 {
    color: var(--text);
    font-size: clamp(1.52rem, 2.4vw, 2.12rem);
    font-weight: 700;
    line-height: 1.12;
    text-wrap: balance;
}

.problem-copy p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.98rem;
}

.solution-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.solution-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.solution-item > span {
    color: var(--primary-strong);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.solution-item h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.solution-item p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.93rem;
}

.demo-section {
    width: min(calc(100% - 48px), 980px);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding-top: 96px;
    padding-bottom: 106px;
    background: transparent;
}

[data-theme="dark"] .demo-section {
    background: transparent;
}

.demo-layout {
    width: min(100%, 920px);
    margin: 0 auto;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow-md);
}

.demo-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #020617;
}

.video-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.82);
    color: #ffffff;
    padding: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    transition: opacity 180ms ease, transform 180ms ease;
}

.video-overlay:hover {
    transform: translate(-50%, -50%) translateY(-1px);
}

.video-overlay[hidden],
.video-shell.is-playing .video-overlay {
    display: none;
}

.play-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
}

.feature-card h3,
.panel-heading h3 {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.25;
}

.feature-card p,
.panel-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.platform-grid {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.platform-section {
    padding-top: 78px;
    padding-bottom: 126px;
}

.feature-card {
    padding: 18px;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-icon,
.scenario-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-strong);
}

.feature-icon {
    margin-bottom: 16px;
}

.workflow-section {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.88fr);
    gap: 30px;
    align-items: start;
    padding-top: 118px;
    padding-bottom: 124px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.workflow-copy {
    position: sticky;
    top: 112px;
}

.workflow-copy .section-badge,
.impact-copy .section-badge,
.waitlist-section .section-badge {
    margin-left: 0;
}

.product-lab {
    overflow: hidden;
}

.lab-tabs {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-tint);
}

.lab-tab {
    flex: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lab-tab:hover,
.lab-tab.active {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.lab-panel {
    padding: 18px;
}

.lab-panel[hidden] {
    display: none;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-status {
    flex: 0 0 auto;
    padding: 7px 9px;
    color: var(--success);
}

.panel-status.urgent {
    color: var(--danger);
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.scenario-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 68px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-tint);
    color: var(--text);
    padding: 12px;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.scenario-button:hover,
.scenario-button.active {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.12);
}

.scenario-icon.urgent {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.scenario-button strong,
.scenario-button small {
    display: block;
}

.scenario-button strong {
    font-family: var(--font-heading);
    font-size: 0.94rem;
}

.scenario-button small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.inbox-mockup {
    display: grid;
    grid-template-columns: minmax(210px, 0.42fr) minmax(0, 0.88fr);
    gap: 0;
    overflow: hidden;
    box-shadow: none;
}

.inbox-list {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px;
    border-right: 1px solid var(--line);
    background: var(--surface-tint);
}

.inbox-tab {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    padding: 11px;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.inbox-tab:hover,
.inbox-tab.active {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.inbox-tab span,
.inbox-tab small {
    display: block;
}

.inbox-tab span {
    font-weight: 700;
}

.inbox-tab small {
    margin-top: 3px;
    color: var(--subtle);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
}

.call-panel {
    min-width: 0;
    padding: 16px;
}

.call-panel[hidden] {
    display: none;
}

.call-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.complete-badge,
.priority-badge,
.routine-badge,
.med-badge {
    padding: 7px 8px;
}

.complete-badge {
    color: var(--success);
}

.priority-badge {
    border-color: rgba(220, 38, 38, 0.22);
    color: var(--danger);
}

.routine-badge {
    color: var(--primary-strong);
}

.med-badge {
    color: var(--warning);
}

.chat-bubble,
.summary-box,
.draft-message {
    padding: 12px 13px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.chat-bubble + .chat-bubble,
.generated-actions,
.draft-message {
    margin-top: 12px;
}

.chat-bubble.owner {
    background: var(--surface-tint);
}

.chat-bubble.agent {
    border-color: rgba(14, 165, 233, 0.26);
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary-strong);
}

.generated-actions {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.generated-actions strong {
    font-family: var(--font-heading);
}

.generated-actions label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
}

.generated-actions input {
    accent-color: var(--success);
}

.generated-actions input:disabled {
    opacity: 1;
}

.draft-message {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.08);
    color: color-mix(in srgb, var(--success) 70%, var(--text));
}

.flow-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    box-shadow: none;
}

.flow-column {
    display: grid;
    align-content: start;
    gap: 9px;
    min-height: 260px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-tint);
}

.flow-column.active {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(254, 242, 242, 0.54);
}

[data-theme="dark"] .flow-column.active {
    background: rgba(127, 29, 29, 0.16);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.column-header span {
    color: var(--subtle);
}

.patient-card {
    display: grid;
    gap: 4px;
    padding: 10px;
    box-shadow: none;
}

.patient-card strong {
    font-family: var(--font-heading);
}

.patient-card span,
.patient-card small {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.patient-card.warning {
    border-color: rgba(245, 158, 11, 0.28);
}

.patient-card.urgent {
    border-color: rgba(220, 38, 38, 0.3);
}

.patient-card.done {
    border-color: rgba(16, 185, 129, 0.28);
}

.impact-section {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.52fr) minmax(0, 0.78fr);
    gap: 34px;
    align-items: center;
    padding-top: 118px;
    padding-bottom: 112px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.impact-card {
    padding: 16px;
}

.impact-card strong {
    display: block;
    color: var(--primary-strong);
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 2.5vw, 2.22rem);
    line-height: 1;
}

.impact-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.waitlist-section {
    width: min(calc(100% - 48px), 980px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0 82px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.waitlist-section .lead-form {
    width: 100%;
    margin: 0;
    box-shadow: var(--shadow-sm);
}

.waitlist-form-area {
    min-width: 0;
}

.faq-section {
    width: min(calc(100% - 48px), 900px);
    margin: 0 auto;
}

.faq-section .section-header {
    width: 100%;
}

.faq-grid {
    display: grid;
    gap: 10px;
}

.faq-item {
    box-shadow: none;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 18px;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 16px 18px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
}

.accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-strong);
    transition: transform 180ms ease;
}

.accordion-icon::after {
    transform: rotate(90deg);
}

.faq-item.active .accordion-icon::after {
    transform: rotate(0deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
}

.accordion-content p {
    padding: 0 18px 16px;
    color: var(--muted);
    font-size: 0.94rem;
}

.site-footer {
    padding: 46px 24px 38px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-tint) 72%, transparent);
}

.footer-inner {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 0.72fr);
    gap: 48px;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 14px;
}

.footer-brand p {
    max-width: 360px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 32px;
}

.footer-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-column h2 {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-column a {
    color: var(--muted);
    font-weight: 600;
    transition: color 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: var(--primary-strong);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 0.9rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .problem-section,
    .workflow-section,
    .impact-section {
        grid-template-columns: 1fr;
    }

    .workflow-copy {
        position: static;
    }
}

@media (max-width: 780px) {
    .nav-links {
        display: none;
    }

    .hero-section {
        padding-top: 126px;
        padding-bottom: 90px;
    }

    .trust-section,
    .impact-grid,
    .waitlist-section {
        grid-template-columns: 1fr;
    }

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

    .inbox-mockup {
        grid-template-columns: 1fr;
    }

    .inbox-list {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 16px;
    }

    .navbar {
        top: 10px;
        width: calc(100% - 16px);
        padding: 9px;
    }

    .brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .nav-actions {
        gap: 7px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
    }

    .nav-cta {
        display: none;
    }

    .problem-section,
    .trust-section,
    .demo-layout,
    .platform-grid,
    .workflow-section,
    .impact-section,
    .waitlist-section,
    .faq-section {
        width: calc(100% - 28px);
    }

    .hero-section {
        width: 100%;
        padding: 124px 14px 86px;
    }

    .hero-copy,
    .problem-copy,
    .solution-list,
    .section-header,
    .demo-layout,
    .waitlist-section {
        max-width: 100%;
        min-width: 0;
    }

    .hero-section h1 {
        max-width: 9.6ch;
        margin: 0 auto;
        font-size: clamp(2rem, 8.8vw, 2.68rem);
        line-height: 1.04;
    }

    .hero-accent {
        font-size: 0.92em;
        line-height: 0.95;
    }

    .hero-accent span {
        display: block;
    }

    .problem-copy h2 {
        max-width: 12ch;
    }

    .problem-copy p,
    .solution-item p {
        overflow-wrap: break-word;
    }

    .section-header h2 {
        width: min(100%, 14ch);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subheadline,
    .section-header p {
        width: min(100%, 30ch);
        margin-left: auto;
        margin-right: auto;
    }

    .lead-form {
        flex-direction: column;
        margin-top: 22px;
        padding: 10px;
    }

    .lead-form input,
    .lead-form .primary-button {
        width: 100%;
    }

    .trust-section {
        grid-template-columns: 1fr;
        padding-bottom: 48px;
    }

    .section-header {
        width: calc(100% - 32px);
    }

    .demo-section,
    .problem-section,
    .platform-section,
    .workflow-section,
    .impact-section,
    .faq-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

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

    .problem-section {
        gap: 28px;
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        border-top: 0;
    }

    .solution-item {
        min-width: 0;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .solution-item > div {
        min-width: 0;
    }

    .problem-copy p,
    .solution-item p,
    .section-header p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .lab-tabs {
        overflow-x: visible;
        justify-content: flex-start;
    }

    .lab-tab {
        min-width: 0;
        padding: 9px 7px;
        font-size: 0.82rem;
        white-space: normal;
    }

    .flow-board {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .panel-heading,
    .waitlist-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .waitlist-section {
        gap: 22px;
        padding: 62px 0 68px;
    }

    .waitlist-section .primary-button {
        width: 100%;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 34px;
    }
}

@media (max-width: 480px) {
    .eyebrow,
    .section-badge {
        white-space: normal;
    }
}

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

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
