/* ---------- tokens ---------- */
:root {
    --ink: #14171F;
    --ink-soft: #2A2E3A;
    --paper: #F1EEE6;
    --paper-raised: #FAF8F2;
    --stamp: #4B2E83; /* rubber-stamp purple, used on light bg */
    --stamp-light: #8C74C9; /* same ink, lightened for use on dark bg */
    --stamp-dark: #38215F;
    --ledger: #2F6B4F; /* confirmed / success ink */
    --ledger-light: #6FAE8C;
    --carbon: #EAD6DA; /* carbon-copy pink */
    --rule: #CDC7B8; /* hairline on paper */
    --rule-on-ink: rgba(255, 255, 255, .16);
    --muted: #6B665A; /* secondary text on paper */
    --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, SFMono-Regular, Menlo, monospace;

    --maxw: 1180px;
    --radius: 14px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

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.5;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, p, ul {
    margin: 0
}

ul {
    padding: 0;
    list-style: none
}

button {
    font: inherit;
    cursor: pointer
}

:focus-visible {
    outline: 2px solid var(--stamp);
    outline-offset: 3px;
    border-radius: 4px;
}

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

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

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

.on-ink .eyebrow {
    color: var(--stamp-light)
}

.on-ink .eyebrow::before {
    background: var(--stamp-light)
}

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

.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;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--stamp);
    color: #fff
}

.btn-primary:hover {
    background: var(--stamp-dark);
    transform: translateY(-1px)
}

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

.on-ink .btn-primary:hover {
    background: #fff
}

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

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

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

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

.btn-text {
    font-weight: 600;
    color: var(--stamp);
    border-bottom: 1.5px solid transparent
}

.btn-text:hover {
    border-color: var(--stamp)
}

.on-ink .btn-text {
    color: var(--stamp-light)
}

.on-ink .btn-text:hover {
    border-color: var(--stamp-light)
}

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

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

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .92rem;
    font-weight: 500
}

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

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

.nav-dd summary {
    list-style: none;
    cursor: pointer;
    font-size: .92rem;
    font-weight: 500;
    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-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)
}

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

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

/* language select: compact so all 8 locales fit the header row on any
   viewport — always visible, never hidden behind the burger */
.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)
}

.burger {
    display: none;
    background: transparent;
    border: 1.5px solid var(--rule);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: none;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative
}

.burger span::before, .burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink)
}

.burger span::before {
    top: -6px
}

.burger span::after {
    top: 6px
}

.mobile-panel {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 28px 20px;
    border-top: 1px solid var(--rule);
}

.mobile-panel a {
    padding: 12px 4px;
    border-bottom: 1px dashed var(--rule);
    font-size: .98rem;
    font-weight: 500
}

.mobile-panel .btn {
    margin-top: 10px;
    justify-content: center
}

header.open .mobile-panel {
    display: flex
}

/* ---------- hero ---------- */
.hero {
    background: var(--ink);
    color: var(--paper-text);
    padding: 88px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 85% 15%, rgba(140, 116, 201, .18), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns:1.05fr .95fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.6rem, 4.6vw, 4.1rem);
    line-height: 1.04;
    margin: .5em 0 .5em;
    color: #fff;
}

.hero h1 em {
    font-style: italic;
    color: var(--stamp-light)
}

.hero p.lead {
    font-size: 1.12rem;
    color: var(--muted-on-ink);
    max-width: 520px;
    margin-bottom: 2em;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center
}

/* ---------- ticket ---------- */
.ticket-stage {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.ticket {
    width: 100%;
    max-width: 380px;
    background: var(--paper-raised);
    color: var(--ink);
    border-radius: 10px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .05);
    transform: rotate(-4deg);
    transition: transform .35s ease;
    opacity: 0;
    transform-origin: 60% 40%;
}

.ticket-stage:hover .ticket {
    transform: rotate(-1.5deg) translateY(-4px)
}

.ticket.reveal {
    animation: ticketIn .8s cubic-bezier(.2, .9, .2, 1.2) forwards;
}

@keyframes ticketIn {
    0% {
        opacity: 0;
        transform: rotate(-14deg) scale(.82) translateY(24px)
    }
    100% {
        opacity: 1;
        transform: rotate(-4deg) scale(1) translateY(0)
    }
}

.perf {
    height: 12px;
    background-image: radial-gradient(circle, var(--ink) 3.2px, transparent 3.4px);
    background-size: 18px 12px;
    background-repeat: repeat-x;
    background-position: 2px center;
}

.ticket-body {
    padding: 26px 26px 8px
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px
}

.ticket-head .tk-name {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: .06em;
    font-size: .82rem;
    text-transform: uppercase
}

.ticket-head .tk-no {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--muted)
}

.tk-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--rule);
    font-size: .92rem;
}

.tk-row .tk-label {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px
}

.tk-row .tk-value {
    font-weight: 600;
    text-align: right
}

.ticket-stub {
    padding: 20px 26px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stub-meta {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.6
}

.stamp-badge {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ledger);
    border: 2px solid var(--ledger);
    border-radius: 999px;
    padding: .55em 1em;
    transform: rotate(-9deg);
    box-shadow: 0 0 0 3px rgba(47, 107, 79, .12);
    white-space: nowrap;
}

/* ---------- enterprise / on-premise note ---------- */
.enterprise-note {
    padding: 36px 0;
    border-top: 1px dashed var(--rule);
    text-align: center
}

.enterprise-note p {
    font-size: .92rem;
    color: var(--muted)
}

.enterprise-link {
    color: var(--stamp);
    font-weight: 600
}

.enterprise-link:hover {
    text-decoration: underline
}

/* ---------- language strip ---------- */
.lang-strip {
    padding: 52px 0;
    border-bottom: 1px solid var(--rule)
}

.lang-strip .wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    text-align: center
}

.lang-strip h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--muted);
    font-family: var(--font-body)
}

.lang-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
}

.lang-chip {
    font-family: var(--font-mono);
    font-size: .82rem;
    letter-spacing: .05em;
    border: 1px dashed var(--rule);
    background: var(--paper-raised);
    border-radius: 8px;
    padding: .5em .9em;
}

.lang-chip:nth-child(odd) {
    transform: rotate(-1.4deg)
}

.lang-chip:nth-child(even) {
    transform: rotate(1.1deg)
}

/* ---------- sections generic ---------- */
section {
    padding: 104px 0
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px
}

.section-head h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin: .4em 0 .5em;
    line-height: 1.12
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem
}

/* ---------- features ---------- */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-card {
    background: var(--paper-raised);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 260px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease, background .2s ease;
}

.feature-card.reveal {
    opacity: 1;
    transform: translateY(0)
}

.feature-card:hover {
    background: #fff
}

.tag {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--stamp);
    border: 1px solid var(--stamp);
    border-radius: 6px;
    padding: .3em .6em;
    display: inline-block;
    width: fit-content;
    transform: rotate(-1deg);
}

.feature-card h3 {
    font-size: 1.18rem;
    font-weight: 600
}

.feature-card p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55
}

.card-more {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 600;
    color: var(--stamp);
    margin-top: auto;
    padding-top: 4px;
}

.card-more:hover {
    text-decoration: underline
}

/* ---------- how it works ---------- */
.how {
    background: var(--carbon)
}

.how-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.how-step {
    padding: 0 28px;
    position: relative
}

.how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    bottom: 8px;
    border-right: 1px dashed rgba(20, 23, 31, .25);
}

.step-no {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--stamp);
    display: block;
    margin-bottom: 14px;
    letter-spacing: .08em;
}

.how-step h3 {
    font-size: 1.3rem;
    margin-bottom: .5em
}

.how-step p {
    color: var(--ink-soft);
    font-size: .98rem
}

/* ---------- customers / member card ---------- */
.customers {
    overflow: hidden
}

.cust-grid {
    display: grid;
    grid-template-columns:1fr .9fr;
    gap: 56px;
    align-items: center;
}

.cust-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.12;
    margin-bottom: .6em
}

.cust-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1.6em;
    max-width: 480px
}

.card-stage {
    display: flex;
    justify-content: center
}

.member-card {
    width: 100%;
    max-width: 340px;
    background: var(--ink);
    color: var(--paper-text);
    border-radius: 16px;
    padding: 28px 26px;
    transform: rotate(3deg);
    box-shadow: 0 24px 60px -18px rgba(20, 23, 31, .35);
    opacity: 0;
    transform-origin: 40% 60%;
}

.member-card.reveal {
    animation: cardIn .8s cubic-bezier(.2, .9, .2, 1.2) forwards
}

@keyframes cardIn {
    0% {
        opacity: 0;
        transform: rotate(11deg) scale(.85) translateY(20px)
    }
    100% {
        opacity: 1;
        transform: rotate(3deg) scale(1) translateY(0)
    }
}

.mc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 26px
}

.mc-brand {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    color: var(--stamp-light);
    text-transform: uppercase
}

.mc-since {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--muted-on-ink)
}

.mc-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 22px
}

.mc-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-top: 1px solid var(--rule-on-ink);
    font-size: .9rem
}

.mc-row .mc-label {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-on-ink)
}

.mc-row .mc-value {
    font-weight: 600
}

/* ---------- trust ---------- */
.trust-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 44px
}

.trust-item h3 {
    font-size: 1.1rem;
    margin-bottom: .5em;
    display: flex;
    gap: .5em;
    align-items: baseline
}

.trust-item h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ledger);
    display: inline-block;
    flex: none
}

.trust-item p {
    color: var(--muted);
    font-size: .96rem
}

/* ---------- industries ---------- */
.seg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center
}

.seg-chip {
    font-family: var(--font-mono);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .7em 1.3em;
    border: 1.5px solid var(--rule);
    border-radius: 999px;
    color: var(--ink);
    transition: border-color .18s ease, color .18s ease, transform .18s ease
}

.seg-chip:hover {
    border-color: var(--stamp);
    color: var(--stamp);
    transform: translateY(-1px)
}

/* ---------- final cta ---------- */
.cta-band {
    background: var(--ink);
    color: var(--paper-text);
    position: relative;
    padding: 100px 0 90px;
}

.tear {
    height: 0;
    border-top: 2px dashed var(--rule-on-ink);
    margin-bottom: 0;
}

.cta-band .wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px
}

.cta-band h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    color: #fff;
    max-width: 620px;
    line-height: 1.1
}

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

.cta-band .signin-note {
    color: var(--muted-on-ink);
    font-size: .92rem
}

/* ---------- footer ---------- */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--rule)
}

.foot-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px
}

.foot-langs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--muted)
}

.foot-links {
    display: flex;
    gap: 22px;
    font-size: .88rem
}

.foot-links a:hover {
    color: var(--stamp)
}

.foot-bottom {
    margin-top: 26px;
    font-size: .78rem;
    color: var(--muted);
    font-family: var(--font-mono)
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns:1fr;
        gap: 48px
    }

    .ticket-stage {
        order: -1
    }

    .feature-card {
        flex-basis: 45%
    }

    .how-grid {
        grid-template-columns:1fr;
        gap: 36px
    }

    .how-step:not(:last-child)::after {
        display: none
    }

    .how-step:not(:last-child) {
        padding-bottom: 20px;
        border-bottom: 1px dashed rgba(20, 23, 31, .25)
    }

    .cust-grid {
        grid-template-columns:1fr
    }

    .card-stage {
        order: -1
    }

    .trust-grid {
        grid-template-columns:1fr;
        gap: 32px
    }
}

@media (max-width: 760px) {
    .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary {
        display: none
    }

    .burger {
        display: flex
    }

    section {
        padding: 72px 0
    }

    .hero {
        padding: 56px 0 80px
    }
}

@media (max-width: 560px) {
    .feature-card {
        flex-basis: 100%
    }

    .wrap {
        padding: 0 20px
    }
}

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

    .ticket, .member-card, .feature-card {
        opacity: 1 !important;
        transform: none !important
    }
}

.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
}

    
