:root {
    --font: Inter, system-ui, sans-serif;
    --text: #16181d;
    --muted: #5c606a;
    --brand: #7ce38b;
    --brand-soft: rgb(124 227 139 / 0.55);
    --ok: #1e7b36;
    --no: #9aa0aa;
    --rule: #e6e7ea;
    --bg: #ffffff;
    --surface: #f6f7f8;
    --todo-bg: #fff4d6;
    --todo-text: #7a4b00;
    --nav-height: 64px;
    --gutter: 24px;
}

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

html { scroll-padding-top: var(--nav-height); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3 { text-wrap: balance; }

/* centered column: 1266px of content plus the side gutter */
.page {
    max-width: calc(1266px + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

/* facts that are not confirmed yet: visible on purpose, so they cannot go live unnoticed */
.todo {
    padding: 1px 6px;
    border: 1px dashed currentColor;
    border-radius: 4px;
    background: var(--todo-bg);
    color: var(--todo-text);
    font-size: 0.875em;
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(255 255 255 / 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
    height: var(--nav-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-mark {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
    background: #eceef1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.lang-switch {
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
}

.lang-switch [aria-current] {
    color: var(--text);
    font-weight: 600;
}

.lang-switch a:hover { color: var(--text); }

.button {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--text);
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
    border-color: var(--muted);
    background: var(--muted);
}

.button-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.button-outline {
    background: transparent;
    color: var(--text);
}

.button-outline:hover {
    border-color: var(--text);
    background: var(--text);
    color: #fff;
}

/* ---------- hero ---------- */

.hero {
    padding-block: 144px 128px;
}

.hero-title {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

/* brand-green marker behind the key phrase */
.hero-title mark {
    color: inherit;
    white-space: nowrap;
    background: linear-gradient(transparent 62%, var(--brand-soft) 62%, var(--brand-soft) 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-lead {
    max-width: 18.5em; /* the <br> in the markup ends line 1 after the first sentence */
    margin: 28px 0 0;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.5;
    color: var(--muted);
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 40px;
}

.hero-note {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

/* ---------- shared section parts ---------- */

.section {
    padding-block: 112px;
    border-top: 1px solid var(--rule);
}

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

.eyebrow {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-title {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-lead {
    max-width: 38em;
    margin: 20px 0 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

.check,
.cross {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.check {
    background: var(--brand-soft);
    color: var(--ok);
}

.cross {
    background: #eceef1;
    color: var(--muted);
}

/* ---------- features: on your own vs. with Curimata ---------- */

.versus-head,
.versus-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
}

.versus-head {
    margin-top: 56px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.versus-head span:first-child { color: var(--muted); }

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

.versus-row {
    padding-block: 32px;
    border-bottom: 1px solid var(--rule);
}

.versus-label {
    display: none;
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.versus-pain {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--muted);
    text-wrap: pretty;
}

.versus-fix {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.versus-proof {
    display: flex;
    gap: 10px;
    margin: 10px 0 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.versus-proof .check { margin-top: 3px; }

/* ---------- security ---------- */

.flow {
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr) auto minmax(48px, 0.4fr) minmax(0, 1.3fr);
    align-items: center;
    margin: 56px 0 0;
    padding: 48px 40px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--bg);
}

.flow-node {
    padding: 14px 20px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.flow-room {
    padding: 24px 28px;
    border: 2px solid var(--text);
    border-radius: 16px;
    text-align: center;
}

.flow-room strong {
    display: block;
    font-size: 1.125rem;
    white-space: nowrap;
}

.flow-room span {
    font-size: 0.875rem;
    color: var(--muted);
}

/* connector line with an optional label above it */
.flow-link {
    position: relative;
    height: 2px;
    margin-inline: 12px;
    background: var(--text);
}

.flow-link::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -4px;
    border-block: 5px solid transparent;
    border-left: 8px solid var(--text);
}

.flow-link span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 160px;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--muted);
    text-align: center;
}

.flow-targets {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-targets li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.flow-targets small {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted);
}

.flow-targets .blocked {
    border-style: dashed;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0 0;
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--bg);
}

.stat-figure {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

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

/* ---------- operations tabs ---------- */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 48px 0 0;
}

/* without JavaScript all panels show, so the tab buttons are not needed */
html:not(.js) .tabs { display: none; }

.tab {
    padding: 10px 20px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.tab:hover {
    color: var(--text);
    border-color: var(--text);
}

.tab[aria-selected="true"] {
    border-color: var(--text);
    background: var(--text);
    color: #fff;
}

.panels {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.panel {
    max-width: 760px;
    padding: 40px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--surface);
}

.panel[hidden] { display: none; }

.panel h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.panel p {
    margin: 12px 0 0;
    font-size: 1.0625rem;
    color: var(--muted);
}

/* ---------- start ---------- */

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

.card-plain {
    padding-top: 24px;
    border-top: 2px solid var(--text);
}

.card-plain h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

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

/* ---------- pricing ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 56px 0 0;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--bg);
}

.plan h3 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.plan-tagline {
    margin: 4px 0 0;
    color: var(--muted);
}

.plan-price {
    margin: 28px 0 0;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.plan-price small {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}

.plan-price sup {
    font-size: 0.875rem;
    letter-spacing: 0;
}

.plan-billing {
    margin: 6px 0 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.plan-includes {
    margin: 28px 0 12px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-weight: 600;
}

.plan ul {
    display: grid;
    gap: 10px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.plan li {
    display: flex;
    gap: 10px;
    font-size: 0.9375rem;
}

.plan li .check { margin-top: 2px; }

.plan .button { margin-top: auto; }

sup a {
    padding-inline: 1px;
    color: var(--muted);
    font-weight: 500;
}

sup a:hover { color: var(--text); }

.compare-title {
    margin: 80px 0 0;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.scroll-hint {
    display: none;
    margin: 8px 0 0;
    font-size: 0.875rem;
    color: var(--muted);
}

/* the table scrolls inside its box on small screens, never the page */
.table-scroll {
    position: relative; /* keeps the hidden cell labels inside the scroll box */
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--bg);
}

.compare {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.compare th,
.compare td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.compare tbody tr:last-child > * { border-bottom: 0; }

.compare thead > tr > * {
    background: var(--surface);
    font-size: 1rem;
}

.compare tbody th {
    width: 34%;
    font-weight: 500;
    color: var(--muted);
}

.compare .group th {
    padding-top: 28px;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compare .no { color: var(--no); }

.footnotes {
    max-width: 60em;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--muted);
}

.footnotes li + li { margin-top: 8px; }

/* ---------- IT and procurement ---------- */

.enterprise-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 24px 48px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 56px 0 0;
}

.fact-card {
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--bg);
}

.fact-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.fact-card dl { margin: 0; }

.fact {
    display: grid;
    grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
    gap: 16px;
    padding-block: 14px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9375rem;
}

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

.fact dt { color: var(--muted); }

.fact dd { margin: 0; }

.documents {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin: 24px 0 0;
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--bg);
}

.documents h3 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.documents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
    padding-block: 40px;
    border-top: 1px solid var(--rule);
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 32px;
}

.footer-inner p { margin: 0; }

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

.footer-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ---------- skip link ---------- */

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--gutter);
    z-index: 20;
}

.skip-link:focus { top: 12px; }

.footer-links [aria-current] {
    color: var(--text);
    font-weight: 600;
}

/* ---------- legal pages ---------- */

.legal {
    padding-block: 96px 112px;
}

.legal-body { max-width: 44rem; }

.legal h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.legal .meta {
    margin: 12px 0 0;
    color: var(--muted);
}

.legal .intro {
    margin: 24px 0 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
}

.legal section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
}

.legal h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.legal p { margin: 0 0 12px; }

.legal ul {
    margin: 0 0 12px;
    padding-left: 1.25em;
}

.legal li + li { margin-top: 6px; }

/* links inside legal text must look like links */
.legal-body a {
    text-decoration: underline;
    text-decoration-color: var(--muted);
    text-underline-offset: 3px;
}

.legal-body a:hover { text-decoration-color: var(--text); }

@media (max-width: 760px) {
    .legal { padding-block: 56px 72px; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
    .plans {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

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

    /* flow diagram turns vertical */
    .flow {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 32px 24px;
    }

    .flow-link {
        width: 2px;
        height: 72px;
        margin: 12px 0;
    }

    .flow-link::after {
        right: -4px;
        top: auto;
        bottom: -1px;
        border-block: 0;
        border-inline: 5px solid transparent;
        border-top: 8px solid var(--text);
    }

    .flow-link span {
        bottom: auto;
        top: 50%;
        left: 16px;
        max-width: 120px;
        transform: translateY(-50%);
        text-align: left;
    }

    .flow-targets {
        width: 100%;
        max-width: 360px;
    }
}

/* small screens: brand and button on row 1, links and language switch on row 2 */
@media (max-width: 760px) {
    html { scroll-padding-top: 112px; }

    :root { --gutter: 16px; }

    .nav {
        grid-template-columns: 1fr auto;
        height: auto;
        padding-block: 12px 8px;
        gap: 8px 12px;
    }

    .nav-actions { display: contents; }

    /* links and language switch share row 2, one at each side */
    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        margin-left: -10px;
    }

    .nav-links a { padding-inline: 10px; }

    .lang-switch {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: end;
    }

    .nav .button {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .section { padding-block: 72px; }

    /* each row shows its own labels, so the column head is not needed */
    .versus-head { display: none; }

    .versus {
        margin-top: 32px;
        border-top: 1px solid var(--text);
    }

    .versus-row {
        grid-template-columns: 1fr;
        row-gap: 20px;
        padding-block: 28px;
    }

    .versus-label { display: block; }

    .stats,
    .cards-3 { grid-template-columns: 1fr; }

    .cards-3 { gap: 32px; }

    .stat {
        flex-direction: column;
        gap: 12px;
    }

    .stat,
    .panel,
    .plan,
    .fact-card,
    .documents { padding: 24px; }

    .fact {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .scroll-hint { display: block; }
}

@media (max-width: 600px) {
    .hero { padding-block: 72px 80px; }

    .hero-lead { margin-top: 20px; }

    .hero-cta { margin-top: 32px; }
}

@media (max-width: 360px) {
    .nav-links { margin-left: -8px; }

    .nav-links a {
        padding-inline: 8px;
        font-size: 0.875rem;
    }
}
