:root {
    --ink: #14171F;
    --paper: #F1EEE6;
    --paper-raised: #FAF8F2;
    --stamp: #4B2E83;
    --stamp-light: #8C74C9;
    --stamp-dark: #38215F;
    --ledger: #2F6B4F;
    --rule: #CDC7B8;
    --rule-on-ink: rgba(255, 255, 255, .16);
    --muted: #6B665A;
    --muted-on-ink: rgba(236, 233, 226, .66);
    --paper-text: #ECE9E2;
    --font-display: 'Fraunces', ui-serif, Georgia, serif;
    --font-body: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    --maxw: 1180px;
    --maxw-narrow: 780px;
}

* {
    box-sizing: border-box
}

html, body {
    overflow-x: hidden
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

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

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

p, ul, ol {
    margin: 0
}

ul, ol {
    padding-left: 1.2em
}

li {
    margin: .4em 0
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px
}

.narrow {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    padding: 0 28px
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--stamp-light);
    display: inline-flex;
    align-items: center;
    gap: .5em
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stamp-light);
    display: inline-block
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .85em 1.4em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, color .18s ease
}

.btn-primary {
    background: var(--paper-raised);
    color: var(--ink)
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-1px)
}

.btn-ghost {
    background: transparent;
    color: var(--paper-text);
    border-color: var(--rule-on-ink)
}

.btn-ghost:hover {
    border-color: var(--stamp-light);
    color: var(--stamp-light)
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(241, 238, 230, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule)
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.logo {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: .5em;
    color: var(--ink)
}

.logo .logo-mark {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: none
}

.back {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--ink)
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px
}

/* language select: compact so all 8 locales fit the header row on any viewport */
.lang-select {
    font-family: var(--font-mono);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .5em 2em .5em .9em;
    border: 1.5px solid var(--rule);
    border-radius: 999px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2314171F' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .8em center / .6em;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    cursor: pointer
}

.lang-select:hover {
    border-color: var(--stamp)
}

/* ---------- industries dropdown ---------- */
.nav-dd {
    position: relative
}

.nav-dd summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: .45em
}

.nav-dd summary::-webkit-details-marker {
    display: none
}

.nav-dd summary::after {
    content: "";
    width: .42em;
    height: .42em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-.12em);
    transition: transform .18s ease
}

.nav-dd[open] summary::after {
    transform: rotate(-135deg) translateY(.12em)
}

.nav-dd summary:hover {
    color: var(--stamp)
}

.nav-dd-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 8px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    z-index: 60
}

.nav-dd-menu a {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    padding: .55em .9em;
    border-radius: 8px;
    white-space: nowrap
}

.nav-dd-menu a:hover {
    background: var(--paper);
    color: var(--stamp)
}

/* "New" badge on menu entries (features dropdown, mobile panel) */
.nav-new {
    display: inline-block;
    margin-left: .45em;
    padding: .15em .5em;
    border-radius: 999px;
    background: var(--stamp);
    color: var(--paper-raised);
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: .12em
}

/* Sub-page header: logo left; dropdowns + language select grouped on the
   right (.nav-right). Menus hang from the right edge of their summary so
   they never run off the viewport. On a phone the features dropdown stays
   visible (the new feature pages must be reachable from the menu), the
   industries dropdown hides (.nav-links-hide; reachable from the homepage)
   and the open menu spans the header width — header is sticky, so it is
   the menu's containing block. */
.nav-sub {
    display: flex;
    align-items: center;
    gap: 24px
}

.nav-sub .nav-dd summary {
    white-space: nowrap
}

.nav-sub .nav-dd-menu {
    left: auto;
    right: 0
}

@media (max-width: 640px) {
    /* tighter row so logo + features dropdown + language select fit a
       360px phone in every locale (long fr/pt labels wrap the wordmark
       onto two lines at worst) */
    .nav {
        padding: 14px 16px;
        gap: 10px
    }

    .nav-right {
        gap: 10px
    }

    .logo {
        font-size: .86rem;
        line-height: 1.15;
        gap: .45em
    }

    .nav-sub .nav-dd summary {
        font-size: .78rem
    }

    .lang-select {
        field-sizing: content;
        padding-left: .7em;
        padding-right: 1.7em;
        background-position: right .65em center
    }

    .nav-sub .nav-dd {
        position: static
    }

    .nav-sub .nav-dd-menu {
        top: 100%;
        left: 16px;
        right: 16px;
        min-width: 0
    }

    .nav-sub .nav-dd-menu a {
        white-space: normal
    }
}


.hero {
    background: var(--ink);
    color: var(--paper-text);
    padding: 64px 0 56px
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: #fff;
    margin: .5em 0 .5em;
    max-width: 760px
}

.hero .lead {
    font-size: 1.1rem;
    color: var(--muted-on-ink);
    max-width: 640px
}

.hero .hero-cta {
    margin-top: 1.6em;
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

main {
    padding: 64px 0 40px
}

h2 {
    font-size: 1.5rem;
    margin: 0 0 .8em
}

section.block {
    padding: 28px 0
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 8px
}

.pain-card {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 18px 20px
}

.pain-card h3 {
    font-size: 1.02rem;
    margin-bottom: .4em
}

.pain-card p {
    color: #2A2E3A;
    font-size: .94rem
}

.seg-feature {
    border-top: 1px solid var(--rule);
    padding: 20px 0
}

.seg-feature:first-of-type {
    border-top: none
}

.seg-feature h3 {
    font-size: 1.08rem;
    margin-bottom: .35em
}

.seg-feature p {
    color: #2A2E3A;
    font-size: .97rem
}

.seg-more {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--stamp);
    display: inline-block;
    margin-top: .5em
}

.seg-more:hover {
    color: var(--stamp-dark)
}

ol.how-list li {
    color: #2A2E3A;
    margin: .6em 0
}

.callout {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 20px 22px;
    margin: 1.4em 0
}

.callout p {
    color: #2A2E3A;
    font-size: .96rem;
    margin: 0
}

.callout .callout-label {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stamp);
    display: block;
    margin-bottom: .5em
}

.callout a {
    color: var(--stamp);
    text-decoration: underline
}

details.faq-item {
    border-bottom: 1px solid var(--rule);
    padding: 12px 0
}

details.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .98rem
}

details.faq-item p {
    color: #2A2E3A;
    font-size: .95rem;
    padding: .7em 0 .3em
}

.cta-band {
    background: var(--ink);
    color: var(--paper-text);
    padding: 72px 0;
    margin-top: 40px;
    text-align: center
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin: 0 0 .8em
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap
}

footer {
    border-top: 1px solid var(--rule);
    padding: 28px 24px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--muted)
}

footer a {
    color: var(--muted)
}

footer a:hover {
    color: var(--stamp)
}

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

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    max-width: 720px;
    margin: 0 auto;
    background: var(--ink);
    color: var(--paper-text);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
    line-height: 1.5
}

.cookie-banner[hidden] {
    display: none
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 320px
}

.cookie-banner a {
    text-decoration: underline
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex: none
}

.cookie-banner button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .88rem;
    border-radius: 999px;
    padding: .6em 1.3em;
    cursor: pointer;
    border: 1.5px solid var(--rule-on-ink);
    background: transparent;
    color: var(--paper-text)
}

.cookie-banner button.cookie-accept {
    background: var(--paper-raised);
    color: var(--ink);
    border-color: transparent
}

/* Product screenshot (feature / industry pages) */
.shot {
    max-width: var(--maxw, 1180px);
    margin: 2.5rem auto 0;
    padding: 0 20px
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--rule, #CDC7B8);
    box-shadow: 0 18px 50px rgba(20, 23, 31, .14)
}

.shot figcaption {
    margin-top: .7rem;
    font-size: .88rem;
    color: var(--muted, #6B665A);
    text-align: center
}

/* Typical-scenario cards (social proof) */
.stories {
    padding: 3.5rem 0
}

.stories .wrap {
    max-width: var(--maxw, 1180px);
    margin: 0 auto;
    padding: 0 20px
}

.stories .section-head {
    margin-bottom: 1.5rem
}

.stories h2 {
    font-size: 1.6rem;
    margin: .2rem 0 0
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem
}

.story {
    background: var(--paper-raised, #FAF8F2);
    border: 1px solid var(--rule, #CDC7B8);
    border-radius: 12px;
    padding: 1.4rem 1.5rem
}

.story-who {
    font-family: var(--font-mono, monospace);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted, #6B665A);
    margin: 0 0 .6rem
}

.story h3 {
    font-size: 1.08rem;
    margin: 0 0 .5rem
}

.story p:last-child {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55
}

.setup-link { margin: -4px 0 18px; }
.setup-link a { font-weight: 600; }
