:root {
    color-scheme: light;
    --page: oklch(96.8% 0.012 260);
    --page-soft: oklch(94.8% 0.018 260);
    --surface: oklch(99% 0.004 260);
    --surface-strong: oklch(100% 0.002 260);
    --ink: oklch(22% 0.04 257);
    --ink-soft: oklch(45% 0.04 257);
    --muted: oklch(61% 0.035 257);
    --primary: oklch(53% 0.2 262);
    --primary-hover: oklch(44% 0.19 262);
    --primary-soft: oklch(94% 0.04 262);
    --line: oklch(86% 0.018 257);
    --line-strong: oklch(78% 0.026 257);
    --success: oklch(58% 0.14 156);
    --warning: oklch(73% 0.14 78);
    --danger: oklch(63% 0.18 28);
    --shadow: 0 16px 22px oklch(24% 0.06 257 / 0.1);
    --shadow-soft: 0 8px 16px oklch(24% 0.06 257 / 0.07);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body:has(.mobile-sticky-cta) {
    padding-bottom: 0;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

::selection {
    background: var(--primary);
    color: var(--surface);
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

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

:focus-visible {
    outline: 3px solid oklch(72% 0.16 262 / 0.48);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 76px;
    padding: 0 clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: oklch(99% 0.004 260 / 0.9);
    color: var(--ink);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-size: 1.04rem;
    font-weight: 900;
}

.brand img {
    width: 42px;
    height: 42px;
}

.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 720;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--primary);
    color: var(--surface);
    box-shadow: 0 18px 42px oklch(38% 0.18 262 / 0.25);
}

.button-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 22px 52px oklch(38% 0.18 262 / 0.3);
}

.button-ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
}

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

.button-small {
    min-height: 44px;
    padding: 10px 17px;
    font-size: 0.92rem;
}

.button-wide {
    width: 100%;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
    min-height: calc(100svh - 76px);
    padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 70px) clamp(56px, 7vw, 88px);
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface), var(--page));
    color: var(--ink);
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -18vw -26vw 42vw;
    height: 42vw;
    min-height: 330px;
    background: linear-gradient(135deg, oklch(94% 0.04 262 / 0.74), oklch(91% 0.035 214 / 0.58));
    border-radius: 42px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.hero-copy,
.automation-film {
    position: relative;
    z-index: 1;
}

.hero-note,
.section-note,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0;
}

.section-note::before,
.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.25rem, 5.2vw, 4rem);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 900;
}

h1 span {
    display: block;
    color: var(--primary);
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 890;
}

h3 {
    margin: 0;
    font-size: clamp(1.12rem, 1.45vw, 1.45rem);
    line-height: 1.16;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 630px;
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.58;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 0;
}

.hero-promises {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.hero-promises li {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.automation-film {
    color: var(--ink);
}

.film-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--surface);
}

.film-topbar strong {
    margin-left: 8px;
    font-size: 0.9rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: var(--danger); }
.dot-yellow { background: var(--warning); }
.dot-green { background: var(--success); }

.film-pill {
    margin-left: auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-size: 0.72rem;
    font-weight: 850;
}

.film-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 26px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--surface);
}

.film-caption h2 {
    max-width: 620px;
    font-size: clamp(1.35rem, 2.25vw, 2.25rem);
    line-height: 1.08;
}

.film-controls {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.film-control {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 850;
}

.film-control:hover {
    border-color: var(--primary);
    color: var(--primary-hover);
}

.film-scene {
    position: relative;
    display: grid;
    grid-template-columns: minmax(128px, 0.95fr) minmax(76px, 0.48fr) minmax(122px, 0.82fr) minmax(128px, 0.86fr);
    gap: clamp(8px, 1.2vw, 14px);
    align-items: center;
    min-height: 360px;
    padding: clamp(20px, 2.4vw, 28px);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--surface);
}

.source-window,
.destination-stack,
.automation-core,
.run-example {
    position: relative;
    z-index: 3;
}

.source-window {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.source-window span,
.destination-stack span,
.automation-core span,
.manual-lane span,
.automated-lane span,
.problem-list span,
.process-rail span {
    display: block;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
}

.source-window strong {
    display: block;
    margin-top: 12px;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.source-window p {
    margin: 6px 0 14px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.source-window em {
    display: inline-flex;
    padding: 7px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 850;
}

.run-example {
    min-width: 76px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: var(--surface);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 10px 18px oklch(38% 0.18 262 / 0.2);
}

.automation-core {
    min-width: 122px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: var(--surface);
    box-shadow: var(--shadow-soft);
}

.automation-core span {
    color: oklch(82% 0.08 249);
}

.automation-core strong {
    display: block;
    margin-top: 8px;
    line-height: 1.16;
}

.automation-core small {
    display: inline-flex;
    margin-top: 14px;
    padding: 6px 9px;
    border-radius: 999px;
    background: oklch(100% 0.002 260 / 0.12);
    color: oklch(92% 0.025 257);
    font-weight: 850;
}

.destination-stack {
    display: grid;
    gap: 12px;
}

.destination-stack div {
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    opacity: 0.72;
    transform: translateY(4px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}

.destination-stack div.is-done {
    border-color: oklch(72% 0.12 156);
    background: oklch(96% 0.028 156);
    opacity: 1;
    transform: translateY(0);
}

.destination-stack strong {
    display: block;
    margin-top: 4px;
}

.demo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.route-svg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.route-svg path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: left center;
}

.data-chip {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    padding: 8px 10px;
    border: 1px solid oklch(85% 0.07 262);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 8px 16px oklch(38% 0.18 262 / 0.14);
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.96);
    will-change: transform, opacity;
}

.cursor-demo {
    position: absolute;
    z-index: 5;
    width: 34px;
    height: 42px;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 10px 16px oklch(20% 0.05 257 / 0.26));
    will-change: transform, opacity;
}

.cursor-demo svg {
    width: 34px;
    height: 42px;
}

.cursor-demo path {
    fill: var(--ink);
    stroke: var(--surface);
    stroke-width: 2.2px;
    stroke-linejoin: round;
}

.cursor-demo span {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.35);
}

.problem-strip,
.before-after,
.process-section,
.pricing-section,
.review-section,
.faq-section {
    padding: clamp(78px, 10vw, 150px) clamp(18px, 5vw, 72px);
}

.problem-strip {
    background: var(--page);
}

.problem-strip > h2,
.process-intro h2,
.before-after-copy h2,
.review-copy h2 {
    max-width: 1020px;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: clamp(40px, 6vw, 80px);
}

.problem-list article {
    min-height: 360px;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.problem-list h3 {
    margin-top: 28px;
    font-size: clamp(1.55rem, 2.3vw, 2.35rem);
}

.problem-list p {
    margin: 18px 0 28px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.problem-list a,
.direct-link a:not(.button),
.form-card a:not(.button) {
    color: var(--primary-hover);
    font-weight: 850;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.before-after {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
    background: var(--ink);
    color: var(--surface);
}

.before-after-copy {
    position: sticky;
    top: 116px;
}

.comparison-board {
    display: grid;
    gap: 18px;
}

.manual-lane,
.automated-lane {
    padding: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid oklch(100% 0.002 260 / 0.16);
}

.manual-lane {
    background: oklch(100% 0.002 260 / 0.05);
}

.automated-lane {
    background: oklch(53% 0.2 262 / 0.16);
    color: var(--surface);
}

.manual-lane span,
.automated-lane span {
    color: currentColor;
    opacity: 0.72;
}

.comparison-board ul {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.comparison-board li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    color: inherit;
}

.comparison-board li::before {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: oklch(100% 0.002 260 / 0.14);
    font-size: 0.78rem;
    font-weight: 900;
}

.automated-lane li::before {
    background: oklch(82% 0.08 249);
    color: var(--ink);
}

.before-after .section-note,
.faq-section .section-note {
    color: oklch(82% 0.08 249);
}

.process-section {
    background: var(--page);
}

.process-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
    margin-top: clamp(40px, 6vw, 76px);
}

.process-rail article {
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface), oklch(97% 0.018 260));
}

.process-rail span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--surface);
    letter-spacing: 0;
}

.process-rail p,
.pricing-section p,
.review-copy p,
.faq-list p {
    color: var(--ink-soft);
}

.pricing-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: end;
    background: var(--surface);
    color: var(--ink);
}

.pricing-section p {
    margin: 0;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.review-section {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
    background: linear-gradient(180deg, var(--page), var(--page-soft));
}

.review-copy {
    position: sticky;
    top: 116px;
}

.form-card {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.form-intro p,
.small-note,
.form-disclaimer,
.direct-link,
.copy-status {
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.field,
.form-intro,
.optional-field,
.summary-box {
    margin-top: 22px;
}

.field-grid {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface-strong);
    color: var(--ink);
    padding: 13px 14px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px oklch(53% 0.2 262 / 0.16);
    outline: none;
}

.optional-field {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: var(--page);
}

.optional-field summary {
    cursor: pointer;
    font-weight: 850;
}

.summary-box {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.faq-section {
    background: var(--ink);
    color: var(--surface);
}

.faq-section h2 {
    max-width: 760px;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 880px;
    margin-top: 42px;
}

.faq-list details {
    border: 1px solid oklch(100% 0.002 260 / 0.16);
    border-radius: 18px;
    background: oklch(100% 0.002 260 / 0.07);
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 900;
}

.faq-list p {
    color: oklch(88% 0.025 257);
}

.mobile-sticky-cta {
    display: none;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 44px;
    padding: 48px clamp(18px, 5vw, 72px);
    background: oklch(18% 0.04 257);
    color: var(--surface);
}

.site-footer p {
    max-width: 360px;
    color: oklch(88% 0.025 257);
}

.site-footer h3 {
    margin-bottom: 14px;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.site-footer a:not(.brand) {
    display: block;
    margin-top: 8px;
    color: oklch(90% 0.025 257);
}

.policy-page {
    background: var(--page);
}

.policy-hero,
.policy-content {
    padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.policy-wrap,
.policy-card {
    max-width: 920px;
}

.policy-card {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.policy-section + .policy-section {
    margin-top: 36px;
}

.policy-section h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

@media (max-width: 1120px) {
    .hero,
    .before-after,
    .pricing-section,
    .review-section {
        grid-template-columns: 1fr;
    }

    .process-rail,
    .problem-list {
        grid-template-columns: 1fr;
    }

    .problem-list article {
        min-height: auto;
    }

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

@media (max-width: 760px) {
    body {
        padding-bottom: 80px;
    }

    .site-header {
        grid-template-columns: auto 1fr;
        min-height: 68px;
    }

    .nav-links,
    .site-header > .button {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 46px 16px 76px;
    }

    .hero::before {
        inset: auto -40vw -28vw 14vw;
        min-height: 260px;
    }

    h1 {
        font-size: clamp(2.25rem, 11vw, 3.55rem);
    }

    h2 {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-promises {
        display: none;
    }

    .film-caption {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 22px;
    }

    .film-controls {
        justify-content: flex-start;
    }

    .film-scene {
        grid-template-columns: 1fr;
        min-height: 680px;
        gap: 16px;
        padding: 22px;
    }

    .run-example {
        justify-self: start;
    }

    .destination-stack {
        grid-template-columns: 1fr;
    }

    .manual-lane,
    .automated-lane {
        padding: 26px;
    }

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

    .problem-strip,
    .before-after,
    .process-section,
    .pricing-section,
    .review-section,
    .faq-section {
        padding: 72px 16px;
    }

    .mobile-sticky-cta {
        position: fixed;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        left: 14px;
        z-index: 45;
        display: inline-flex;
        justify-content: center;
        min-height: 56px;
        padding: 15px 18px;
        border-radius: 999px;
        background: var(--primary);
        color: var(--surface);
        box-shadow: 0 18px 42px oklch(24% 0.06 257 / 0.32);
        text-decoration: none;
        font-weight: 950;
    }

    .mobile-sticky-cta.is-hidden {
        display: none;
    }
}

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

    .cursor-demo,
    .data-chip {
        display: none;
    }

    .route-svg path {
        opacity: 1;
    }

    .destination-stack div {
        opacity: 1;
        transform: none;
    }
}
