:root {
    --display: "Plus Jakarta Sans", system-ui, sans-serif;
    --body: "Hanken Grotesk", system-ui, sans-serif;

    --navy: #151948;
    --navy-down: #0f1132;
    --navy-field: #1e2468;
    --amber: #ffbd4a;
    --amber-over: #ffb22b;
    --amber-ink: #33260f;
    --purple: #772ac2;
    --purple-over: #6622a8;

    --band: var(--navy);
    --final-bg: var(--navy-down);

    --wrap: 1180px;
    --pad: 48px;
    --seam: 0.42;
    --r: 14px;
    --nav-h: 78px;

    --floor: #f6f5f9;
    --fg: #1b1726;
    --fg-muted: #4e4860;
    --fg-faint: #716b82;
    --accent: var(--purple);
    --accent-ink: #ffffff;
    --accent-quiet: var(--purple-over);
    --line: #e3e0ec;
    --surface: #ffffff;
    --surface-2: #efedf5;
    --field-bg: #ffffff;
    --field-ink: #1b1726;
    --field-hint: #8a8495;
    --field-ring: #d9d5e4;
    --shot-bg: #ffffff;
    --shot-shadow: 0 22px 48px -28px rgba(6, 10, 20, 0.34);
    --shot-rim: inset 0 0 0 1px rgba(10, 14, 22, 0.08);
    --nav-stuck: rgba(21, 25, 72, 0.9);
}

.nav,
.hero {
    --accent: var(--amber);
    --accent-ink: var(--amber-ink);
    --accent-quiet: var(--amber-over);
}
.hero {
    --field-bg: #1a1f58;
    --field-ink: #ffffff;
    --field-hint: rgba(255, 255, 255, 0.45);
    --field-ring: rgba(255, 255, 255, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--fg);
    background: var(--floor);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
p {
    margin: 0;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

h1,
h2,
h3 {
    font-family: var(--display);
    letter-spacing: -0.03em;
    margin: 0;
}

.eyebrow {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 26px;
}

.link {
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
    padding-bottom: 1px;
}
.link:hover {
    border-bottom-color: var(--accent);
}

.btn {
    display: inline-block;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    border: 0;
    border-radius: 10px;
    padding: 13px 22px;
    cursor: pointer;
}
.btn--accent {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn--accent:hover {
    background: var(--accent-quiet);
}

.band,
.field {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
}

.band {
    height: var(--band-h, 680px);
    background: var(--band);
}

.hero,
.features,
.about,
.final,
.footer {
    position: relative;
    z-index: 1;
}

.field {
    height: var(--field-h, 2400px);
    opacity: 0.62;
    background-position: center top;
    background-image:
        repeating-linear-gradient(to right, var(--g1) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(to bottom, var(--g1) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(to right, var(--g0) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(to bottom, var(--g0) 0 1px, transparent 1px 24px);
    -webkit-mask-image: var(--fade), var(--cut);
    mask-image: var(--fade), var(--cut);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    --g0: rgba(227, 227, 232, 0.055);
    --g1: rgba(227, 227, 232, 0.13);
    --cut: var(--cut-lit);
}
.field--ink {
    --g0: rgba(32, 33, 50, 0.05);
    --g1: rgba(32, 33, 50, 0.12);
    --cut: var(--cut-ink);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    transition: background 0.25s ease;
}
.nav.is-stuck,
.nav.is-open {
    background: var(--nav-stuck);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav__in {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-top: 24px;
    padding-bottom: 24px;
}
.nav__logo img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}
.nav__links {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.66);
}
.nav__links a:hover {
    color: #fff;
}
.nav__cta {
    font-size: 15px;
    padding: 9px 18px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    width: 42px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}
.burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.88);
    transition:
        transform 0.22s ease,
        opacity 0.18s ease;
}
.nav.is-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav.is-open .burger span:nth-child(2) {
    opacity: 0;
}
.nav.is-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navmenu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}
.nav.is-open .navmenu {
    max-height: 300px;
}
.navmenu__in {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 6px;
    padding-bottom: 22px;
}
.navmenu__in a {
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.navmenu__in a.btn {
    margin-top: 14px;
    border-top: 0;
    text-align: center;
    color: var(--accent-ink);
}

.hero__in {
    padding-top: 84px;
}
.hero h1 {
    max-width: 860px;
    font-weight: 800;
    font-size: clamp(40px, 5.2vw + 20px, 62px);
    line-height: 1.05;
    color: #fff;
}
.hero h1 em {
    font-style: normal;
    color: var(--amber);
}
.hero__sub {
    margin-top: 38px;
    max-width: 54ch;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.76);
}
.hero__sub--2 {
    margin-top: 18px;
}
.hero__sub b {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}
.hero__form {
    margin-top: 52px;
}
.wl-note {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

form.wl {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    max-width: 520px;
}
.wl-field {
    flex: 1 1 0;
    min-width: 0;
}
form.wl input {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 16px;
    padding: 13px 16px;
    border: 1px solid var(--field-ring);
    border-radius: 10px;
    background: var(--field-bg);
    color: var(--field-ink);
}
form.wl input::placeholder {
    color: var(--field-hint);
}
.wl-field.ml-error input {
    border-color: #ffb4a8;
    box-shadow: 0 0 0 1px #ffb4a8;
}
form.wl .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}
form.wl .btn.loading {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;
    min-height: 48px;
}
.wl-spin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid currentColor;
    border-right-color: transparent;
    animation: wl-spin 0.9s linear infinite;
}
@keyframes wl-spin {
    to {
        transform: rotate(360deg);
    }
}
.wl-done {
    display: flex;
    align-items: center;
    max-width: 520px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--field-bg);
    color: var(--field-ink);
    border: 1px solid var(--field-ring);
}
.d-none {
    display: none !important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero__shot {
    position: relative;
    margin-top: 140px;
    padding-bottom: 140px;
}

.shot {
    position: relative;
    aspect-ratio: var(--ar, 1.6);
    overflow: hidden;
    border-radius: var(--r);
    background: var(--shot-bg);
    box-shadow: var(--shot-shadow);
}
.shot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: var(--shot-rim);
}
.shot--term {
    container-type: inline-size;
    background: var(--navy-down);
    --shot-rim: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.term {
    margin: 0;
    padding: 3cqw 3.2cqw;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 2.1cqw;
    line-height: 1.45;
    white-space: pre;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
}
.term i {
    font-style: normal;
    color: #ffffff;
}
.term b {
    font-weight: 400;
    color: var(--amber);
}
.term em {
    font-style: normal;
    font-weight: 700;
    color: var(--amber);
}
.term__ps {
    color: rgba(255, 255, 255, 0.38);
}
.term__cmd {
    color: #fff;
}
.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--fx, 50%) var(--fy, 50%);
    transform: scale(var(--z, 1));
    transform-origin: var(--fx, 50%) var(--fy, 50%);
}

.shot--hero {
    --ar: 1.74;
}
.shot:has([data-shot="hero-doc-editor"]) {
    --z1: 1.2;
    --fx1: 100%;
    --fy1: 27%;
    --zm: 2.06;
    --fxm: 100%;
    --fym: 20%;
    --zs: 1.49;
    --fxs: 100%;
    --fys: 20%;
}
.shot:has([data-shot="items-graph"]) {
    --z1: 1.33;
    --fx1: 0%;
    --fy1: 34%;
    --zm: 1.75;
    --fxm: 30%;
    --fym: 32%;
    --zs: 2.17;
    --fxs: 44%;
    --fys: 30%;
}
.shot:has([data-shot="risk-grid"]) {
    --z1: 1.72;
    --fx1: 33%;
    --fy1: 22%;
    --zm: 1.95;
    --fxm: 45%;
    --fym: 21%;
    --zs: 2.3;
    --fxs: 58%;
    --fys: 20%;
}
.shot:has([data-shot="doc-editor-cgm"]) {
    --z1: 1.67;
    --fx1: 42%;
    --fy1: 87%;
    --zm: 2;
    --fxm: 50%;
    --fym: 88%;
    --zs: 2.22;
    --fxs: 55%;
    --fys: 90%;
}

.shot {
    --z: var(--z1);
    --fx: var(--fx1);
    --fy: var(--fy1);
}
@media (max-width: 1000px) {
    .shot {
        --z: var(--zm);
        --fx: var(--fxm);
        --fy: var(--fym);
    }
}
@media (max-width: 700px) {
    .shot {
        --z: var(--zs);
        --fx: var(--fxs);
        --fy: var(--fys);
    }
}

.features {
    padding: 104px 0 150px;
    scroll-margin-top: 90px;
}
.features h3 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}
.step p {
    color: var(--fg-muted);
}

.feat__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
}
.step {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.step__in {
    display: block;
}
.step p {
    margin-top: 16px;
    font-size: 16px;
}

@media (min-width: 821px) {
    .step {
        margin-bottom: 26vh;
        opacity: 0.3;
        transition: opacity 0.4s ease;
    }
    .step:last-child {
        margin-bottom: 0;
    }
    .step.is-on {
        opacity: 1;
    }
    .step__in {
        border-left: 2px solid var(--line);
        padding: 4px 0 4px 24px;
        transition: border-color 0.4s ease;
    }
    .step.is-on .step__in {
        border-left-color: var(--accent);
    }
    .feat__shots {
        position: relative;
        align-self: stretch;
    }
    .stepshot {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--y, 0px);
        height: 0;
        margin: 0;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    .stepshot.is-on {
        opacity: 1;
    }
    .stepshot .shot {
        position: absolute;
        left: 0;
        right: 0;
        transform: translateY(-50%);
    }
}

.about {
    padding: 104px 0 148px;
    scroll-margin-top: 90px;
}
.ab .eyebrow {
    margin-bottom: 22px;
}
.ab__quote {
    margin: 0;
    max-width: 880px;
    font-family: var(--body);
    font-weight: 500;
    font-size: 30px;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.ab__quote em {
    display: block;
    margin-top: 0.6em;
    font-style: normal;
    font-weight: 600;
    color: var(--accent);
}
.ab__by {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
}
.ab__portrait {
    width: 62px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    object-position: 50% 22%;
}
.ab__who {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ab__who b {
    font-weight: 600;
}
.ab__who span {
    font-size: 15px;
    color: var(--fg-faint);
}
.ab__who .link {
    margin-top: 6px;
    font-size: 15px;
}

.final {
    padding: 160px 0;
    background: var(--final-bg);
    scroll-margin-top: var(--nav-h);
}
.final {
    --field-bg: #1a1f58;
    --fg: #ffffff;
    --fg-muted: rgba(255, 255, 255, 0.78);
    --accent: var(--amber);
    --accent-ink: var(--amber-ink);
    --accent-quiet: var(--amber-over);
    --line: rgba(255, 255, 255, 0.12);
    --field-ink: #ffffff;
    --field-hint: rgba(255, 255, 255, 0.45);
    --field-ring: rgba(255, 255, 255, 0.2);
    color: var(--fg);
}
.final__in {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}
.final h2 {
    font-size: 36px;
    font-weight: 700;
}
.final__p {
    margin-top: 10px;
    color: var(--fg-muted);
}
.final__form {
    flex: 1 1 420px;
}

.footer {
    padding: 46px 0 52px;
}
.footer {
    border-top: 1px solid var(--line);
}
.footer__in {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--fg-faint);
}
.footer__logo {
    height: 20px;
    width: auto;
    opacity: 0.85;
}
.footer__in span:last-child {
    margin-left: auto;
}

@media (max-width: 1000px) {
    :root {
        --pad: 28px;
        --nav-h: 72px;
    }
    .nav__in {
        gap: 16px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .nav__links {
        display: none;
    }
    .nav__cta {
        display: none;
    }
    .burger {
        display: flex;
        margin-left: auto;
    }
    .navmenu {
        display: block;
    }
    .hero__sub {
        font-size: 18px;
    }
    .hero__shot {
        margin-top: 96px;
        padding-bottom: 96px;
    }
    .shot--hero {
        --ar: 1.45;
    }
    .features h3 {
        font-size: 25px;
    }

    .ab__quote {
        font-size: 24px;
    }
    .about {
        padding: 72px 0 96px;
    }
    .final {
        padding: 92px 0;
    }
}

@media (max-width: 820px) {
    .features {
        padding: 104px 0 40px;
    }
    .feat__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        max-width: 600px;
    }
    .feat__list,
    .feat__shots {
        display: contents;
    }
    .step {
        margin-bottom: 26px;
        cursor: default;
    }
    .stepshot {
        margin-bottom: 120px;
    }
    .step:nth-child(1) {
        order: 1;
    }
    .stepshot:nth-child(1) {
        order: 2;
    }
    .step:nth-child(2) {
        order: 3;
    }
    .stepshot:nth-child(2) {
        order: 4;
    }
    .step:nth-child(3) {
        order: 5;
    }
    .stepshot:nth-child(3) {
        order: 6;
    }
    .step:nth-child(4) {
        order: 7;
    }
    .stepshot:nth-child(4) {
        order: 8;
    }
}

@media (max-width: 700px) {
    .hero__in {
        padding-top: 32px;
    }
    .shot--hero {
        --ar: 1.05;
    }
    .footer__in {
        flex-wrap: wrap;
        gap: 10px 20px;
    }
    .footer__in span:last-child {
        margin-left: 0;
        flex: 1 0 100%;
    }
}

@media (max-width: 430px) {
    form.wl {
        flex-wrap: wrap;
    }
    .wl-field,
    form.wl .btn {
        flex: 1 1 100%;
    }
}

.wl-err {
    margin: 12px 0 0;
    font-size: 14px;
    color: #ffb4a8;
}
.wl-err--server {
    flex: 1 1 100%;
    margin-top: 4px;
}
.wl-field .wl-err {
    margin-top: 8px;
}
.wl-field.ml-error .wl-err:empty {
    display: block;
}
.wl-field.ml-error .wl-err:empty::before {
    content: "Please enter a valid email address.";
}
.wl-err:empty {
    display: none;
}
.final .wl-err {
    color: #ffb4a8;
}

.hero--page .hero__in {
    padding-bottom: 140px;
}
.hero--page h1 {
    font-size: clamp(34px, 3.6vw + 16px, 48px);
}
.hero--page .hero__sub {
    margin-top: 28px;
}
.hero--page .hero__sub a {
    color: var(--amber);
    font-weight: 600;
    border-bottom: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
}
.hero--page .hero__sub a:hover {
    border-bottom-color: var(--amber);
}
.hero--page .hero__actions {
    margin-top: 44px;
}
.page-fill {
    position: relative;
    z-index: 1;
    min-height: 220px;
}

@media (max-width: 1000px) {
    .hero--page .hero__in {
        padding-bottom: 96px;
    }
}
