:root {
    --ink: #1d2d36;
    --ink-soft: #4f626d;
    --primary: #405e70;
    --primary-dark: #2d4655;
    --purple: #725b91;
    --purple-dark: #5c477b;
    --teal-soft: #e7f0f2;
    --purple-soft: #f0edf5;
    --surface: #ffffff;
    --surface-soft: #f6f8f9;
    --line: #d8e0e4;
    --success: #356c59;
    --danger: #9c3838;
    --shadow: 0 18px 46px rgba(33, 51, 61, 0.13);
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

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

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

h1,
h2,
h3 {
    letter-spacing: -0.025em;
    line-height: 1.12;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6.2vw, 76px);
    font-weight: 660;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 640;
}

h3 {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 640;
}

p {
    color: var(--ink-soft);
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.narrow {
    width: min(calc(100% - 40px), 780px);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(216, 224, 228, 0.88);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 34px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 205px;
    height: auto;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-navigation a,
.text-link {
    color: #344751;
    font-size: 14px;
    font-weight: 590;
    text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    color: var(--purple-dark);
}

.mobile-nav-link {
    display: none;
}

.header-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 18px;
}

.menu-button {
    display: none;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: var(--ink);
    padding: 7px 10px;
    font-weight: 630;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--purple);
    border-radius: 6px;
    background: var(--purple);
    color: #ffffff;
    padding: 11px 18px;
    font-weight: 650;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover,
.button:focus-visible {
    border-color: var(--purple-dark);
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.button-secondary {
    border-color: #9badb6;
    background: transparent;
    color: var(--primary-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--primary-dark);
    background: var(--teal-soft);
    color: var(--primary-dark);
}

.button-small {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
}

.button-wide {
    width: 100%;
}

.hero {
    overflow: hidden;
    padding: 92px 0 72px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
}

.hero-copy {
    max-width: 920px;
}

.hero-copy > p {
    max-width: 690px;
    margin-bottom: 30px;
    font-size: 21px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 22px;
    color: #667780;
    font-size: 14px;
}

.hero-notes span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--success);
    font-weight: 700;
}

.product-frame {
    overflow: hidden;
    margin-top: 58px;
    border: 1px solid #cfd9de;
    border-radius: 8px;
    background: #eaf0f3;
    box-shadow: var(--shadow);
}

.product-frame img {
    width: 100%;
    height: auto;
}

.frame-bar {
    display: flex;
    height: 34px;
    align-items: center;
    border-bottom: 1px solid #d5dee2;
    background: #f7f9fa;
    color: #667780;
    padding: 0 12px;
    font-size: 12px;
}

.frame-bar::before {
    content: "BPMN Assistant workspace";
}

.proof-strip {
    border-block: 1px solid var(--line);
    background: var(--surface);
}

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

.proof-grid div {
    min-height: 108px;
    padding: 26px 28px;
    border-right: 1px solid var(--line);
}

.proof-grid div:first-child {
    border-left: 1px solid var(--line);
}

.proof-grid strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 17px;
}

.proof-grid span {
    color: var(--ink-soft);
    font-size: 14px;
}

.section {
    padding: 100px 0;
}

.section-compact {
    padding: 72px 0;
}

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

.section-dark {
    background: var(--primary-dark);
    color: #ffffff;
}

.section-dark h2,
.section-dark h3 {
    color: #ffffff;
}

.section-dark p,
.section-dark li {
    color: #d9e3e8;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-heading p {
    margin-bottom: 0;
    font-size: 18px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(48px, 7vw, 90px);
}

.split-reverse {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.split-copy p {
    font-size: 18px;
}

.split-copy .button {
    margin-top: 8px;
}

.feature-lines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.feature-line {
    padding-top: 22px;
    border-top: 3px solid var(--line);
}

.feature-line:nth-child(2) {
    border-top-color: #b7a8cb;
}

.feature-line:nth-child(3) {
    border-top-color: #a8c4cb;
}

.feature-line p {
    margin-bottom: 0;
}

.plain-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    position: relative;
    margin: 13px 0;
    padding-left: 25px;
}

.plain-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9fcabb;
    font-weight: 750;
}

.screenshot {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(33, 51, 61, 0.11);
}

.screenshot img {
    width: 100%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin-inline: auto;
}

.price-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 34px;
}

.price-card-featured {
    border: 2px solid var(--purple);
}

.price-card h2,
.price-card h3 {
    margin-bottom: 8px;
    font-size: 29px;
}

.price {
    margin: 18px 0 0;
    color: var(--ink);
    font-size: 46px;
    font-weight: 680;
    letter-spacing: -0.04em;
    line-height: 1;
}

.price span {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.price-card .plain-list {
    flex: 1 1 auto;
    margin-bottom: 26px;
}

.tax-note {
    margin: 22px auto 0;
    text-align: center;
    font-size: 13px;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 760px;
    margin: 30px auto 0;
}

.topup {
    border-left: 3px solid var(--primary);
    background: var(--surface-soft);
    padding: 20px 22px;
}

.topup strong {
    display: block;
    font-size: 20px;
}

.topup span {
    color: var(--ink-soft);
}

.page-hero {
    padding: 86px 0 62px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(40px, 5.4vw, 66px);
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;
    font-size: 20px;
}

.feature-section {
    padding: 84px 0;
    border-bottom: 1px solid var(--line);
}

.feature-section:last-child {
    border-bottom: 0;
}

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

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

.details-list summary {
    display: flex;
    min-height: 70px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    font-size: 18px;
    font-weight: 640;
    list-style: none;
}

.details-list summary::-webkit-details-marker {
    display: none;
}

.details-list summary::after {
    content: "+";
    color: var(--purple);
    font-size: 25px;
    font-weight: 400;
}

.details-list details[open] summary::after {
    content: "−";
}

.details-list details p {
    max-width: 720px;
    padding: 0 42px 20px 0;
}

.form-card {
    max-width: 680px;
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: clamp(24px, 5vw, 46px);
    box-shadow: 0 14px 34px rgba(33, 51, 61, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

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

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

.form-field label,
.checkbox-field {
    color: var(--ink);
    font-size: 14px;
    font-weight: 620;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #b9c6cc;
    border-radius: 5px;
    background: #ffffff;
    color: var(--ink);
    padding: 11px 12px;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(114, 91, 145, 0.14);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 500;
}

.checkbox-field input {
    margin-top: 5px;
}

.form-note,
.form-status {
    margin: 14px 0 0;
    font-size: 13px;
}

.form-status {
    display: none;
    border-radius: 5px;
    padding: 10px 12px;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-error {
    background: #f8e9e9;
    color: var(--danger);
}

.form-status.is-success {
    background: #e8f2ed;
    color: var(--success);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-option {
    border-top: 3px solid var(--line);
    padding-top: 22px;
}

.contact-option a {
    color: var(--purple-dark);
    font-weight: 640;
}

.legal h2 {
    margin-top: 44px;
    font-size: 27px;
}

.legal h3 {
    margin-top: 30px;
}

.legal ul {
    color: var(--ink-soft);
}

.callout {
    border-left: 3px solid var(--purple);
    background: var(--purple-soft);
    padding: 20px 24px;
}

.callout p:last-child {
    margin-bottom: 0;
}

.cta-section {
    padding: 76px 0;
    background: var(--teal-soft);
    text-align: center;
}

.cta-section h2 {
    max-width: 700px;
    margin-inline: auto;
}

.cta-section p {
    max-width: 650px;
    margin: 0 auto 24px;
    font-size: 18px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #f4f7f8;
    padding: 60px 0 24px;
}

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

.footer-logo {
    width: 190px;
    margin-bottom: 18px;
}

.footer-grid p {
    max-width: 340px;
    font-size: 14px;
}

.footer-grid h2 {
    margin-bottom: 15px;
    font-size: 15px;
    letter-spacing: 0;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--ink-soft);
    font-size: 14px;
    text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--purple-dark);
}

.footer-bottom {
    display: flex;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    justify-content: space-between;
    color: #687a84;
    font-size: 12px;
}

.muted {
    color: #71818a;
}

@media (max-width: 920px) {
    .header-inner {
        gap: 18px;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .site-navigation {
        display: none;
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: var(--surface);
        box-shadow: var(--shadow);
        padding: 8px;
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation a {
        padding: 10px;
    }

    .site-navigation .mobile-nav-link {
        display: block;
    }

    .site-navigation .mobile-nav-action {
        margin-top: 4px;
        border-radius: 5px;
        background: var(--purple);
        color: #ffffff;
        text-align: center;
    }

    .header-actions .text-link {
        display: none;
    }

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

    .proof-grid div:nth-child(3) {
        border-left: 1px solid var(--line);
    }

    .proof-grid div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .split,
    .split-reverse {
        grid-template-columns: 1fr;
    }

    .split-reverse .split-copy {
        order: -1;
    }

    .feature-lines {
        grid-template-columns: 1fr;
    }

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

    .footer-grid > div:last-child {
        grid-column: 2;
    }
}

@media (max-width: 680px) {
    .shell,
    .narrow {
        width: min(calc(100% - 28px), var(--shell));
    }

    .header-inner {
        min-height: 68px;
    }

    .brand img {
        width: 170px;
    }

    .header-actions {
        display: none;
    }

    .site-navigation {
        top: 68px;
        right: 14px;
        left: 14px;
    }

    h1 {
        font-size: 43px;
    }

    h2 {
        font-size: 32px;
    }

    .hero {
        padding: 62px 0 54px;
    }

    .hero-copy > p,
    .page-hero p {
        font-size: 18px;
    }

    .product-frame {
        margin-top: 42px;
    }

    .product-frame img {
        width: 930px;
        max-width: none;
        transform: translateX(-35%);
    }

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

    .proof-grid div,
    .proof-grid div:first-child,
    .proof-grid div:nth-child(3) {
        min-height: auto;
        border: 0;
        border-bottom: 1px solid var(--line);
        padding: 20px 14px;
    }

    .section,
    .feature-section {
        padding: 68px 0;
    }

    .page-hero {
        padding: 60px 0 44px;
    }

    .pricing-grid,
    .topup-grid,
    .contact-options,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .price-card {
        padding: 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 24px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-grid > div:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
