/* ============================================================
   site.css · Public-facing marketing styles
   Source of truth: designs/02-teal-trust.html
   ------------------------------------------------------------
   Loaded AFTER tokens.css on every public page (index, plans,
   contact, company, 404, privacy, terms).
   The authenticated app uses assets/css/app.css and is NOT
   affected by this file.
   ============================================================ */

/* ---------------------------------------------------------
   1.  Reset / base
   --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    /* Prevent iOS Safari from inflating text in landscape orientation. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-fg);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*
     * Belt-and-braces: even if a future child element forgets a
     * max-width and tries to push the document wider than the
     * viewport, we never let the page scroll horizontally on
     * touch devices. position:sticky on the header still works
     * because we don't set overflow on <html>.
     */
    overflow-x: clip;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

/* ---------------------------------------------------------
   2.  Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1;
}

.btn:focus-visible {
    outline: 2px solid var(--color-brand-500);
    outline-offset: 2px;
}

.btn-ghost { color: var(--color-fg-muted); background: transparent; }
.btn-ghost:hover { color: var(--color-fg); }

.btn-primary { background: var(--color-brand-600); color: var(--color-brand-fg); }
.btn-primary:hover { background: var(--color-brand-700); }

.btn-outline {
    border-color: var(--color-border-2);
    color: var(--color-fg);
    background: #fff;
}
.btn-outline:hover { border-color: var(--color-brand-600); color: var(--color-brand-600); }

.btn-lg {
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: 8px;
}

.btn-on-brand { background: #fff; color: var(--color-brand-600); }
.btn-on-brand:hover { background: var(--color-brand-50); }

.btn-on-brand-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.btn-on-brand-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

/* ---------------------------------------------------------
   3.  Site header (sticky, blurred)
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--color-fg);
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--color-brand-600);
    color: #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(13,148,136,.3);
    flex-shrink: 0;
}

.logo-mark svg {
    width: 22px;
    height: 22px;
}

/*
 * Brand wordmark — rasterised from assets/icons/logo-wordmark.svg via sips
 * at 3x DPR (intrinsic 660x90). Sizing it once here means every consumer
 * (header, footer, future surfaces) renders the wordmark at the same
 * confident 18px cap height. width/height are also set as HTML attributes
 * on the <img> tag so the slot is reserved before the image loads, which
 * prevents the header from jumping during first paint.
 */
.logo-wordmark {
    display: block;
    height: 18px;
    width: 112px;
}

nav.primary {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav.primary a {
    color: var(--color-fg-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s;
}

nav.primary a:hover,
nav.primary a:focus-visible { color: var(--color-brand-600); }

.header-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Header language switcher (pill button + dropdown) */
.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-fg-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    position: relative;
}
.lang-pill:hover { color: var(--color-brand-600); border-color: var(--color-brand-200); }
.lang-pill svg { width: 12px; height: 12px; }
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    min-width: 140px;
    display: none;
    z-index: 60;
}
.lang-pill[aria-expanded="true"] + .lang-menu,
.lang-menu:hover { display: block; }
.lang-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-fg-muted);
}
.lang-menu a:hover { background: var(--color-surface); color: var(--color-brand-700); }
.lang-menu a.is-active { color: var(--color-brand-700); font-weight: 600; }

/* ---------------------------------------------------------
   3a. Mobile navigation (hamburger + slide-down drawer)
   ------------------------------------------------------------
   The hamburger button + drawer panel are emitted by every page
   that includes partials/public/header.php. They stay completely
   inert on desktop (the button is display:none and the drawer is
   the [hidden] attribute). On phones / small tablets (≤900px) the
   button appears on the right of the header and the drawer slides
   down beneath it, giving logged-out visitors access to Features,
   Pricing, Contact, About + the language switcher.
   --------------------------------------------------------- */

.nav-toggle {
    /* Hidden on desktop. Shown via the ≤900px media query below. */
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: 4px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-fg);
    cursor: pointer;
    position: relative;
    flex-direction: column;
    gap: 5px;
    transition: background-color .15s ease, border-color .15s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: var(--color-surface);
    border-color: var(--color-brand-200);
    outline: none;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .15s ease;
    transform-origin: center;
}

/* Animate the three bars into a clean × when the drawer is open. */
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Drawer that slides down from below the header bar. */
.mobile-nav {
    /* Anchored to the bottom edge of the sticky header. position:absolute
       so the drawer overlays page content instead of pushing it down. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 8px 0 16px;
    /* Closed state — translate up + fade out. The is-open class flips
       this to translate(0). The [hidden] attribute provides the final
       display:none after the transition has completed (set in JS). */
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
    /* Respect the safe-area on iOS notch devices. */
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    /* Ensure it stays scrollable if the user adds many languages. */
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav.is-open {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 8px 18px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-fg);
    border-radius: var(--radius);
    transition: background-color .15s ease, color .15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: var(--color-surface);
    color: var(--color-brand-700);
    outline: none;
}

.mobile-nav-section {
    margin-top: 8px;
    padding: 14px 18px 4px;
    border-top: 1px solid var(--color-border);
}

/* Account CTA section — its own area between nav links and language list.
   We override the inherited section padding-bottom so the button sits
   visually balanced inside its slot, and force the button to span the
   full drawer width since it's the primary action on mobile. */
.mobile-nav-cta-section {
    padding: 14px 18px 14px;
}

.mobile-nav-cta {
    display: flex;
    width: 100%;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
}

.mobile-nav-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-fg-faint);
}

.mobile-nav-section-icon { color: var(--color-fg-faint); }

.mobile-nav-lang-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.mobile-nav-lang-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--color-fg-muted);
    background: var(--color-surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.mobile-nav-lang-item:hover,
.mobile-nav-lang-item:focus-visible {
    background: var(--color-brand-50);
    color: var(--color-brand-700);
    border-color: var(--color-brand-200);
    outline: none;
}

.mobile-nav-lang-item.is-active {
    background: var(--color-brand-50);
    color: var(--color-brand-700);
    border-color: var(--color-brand-200);
    font-weight: 600;
}

.mobile-nav-lang-code {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-fg-faint);
}

.mobile-nav-lang-item.is-active .mobile-nav-lang-code,
.mobile-nav-lang-item:hover .mobile-nav-lang-code,
.mobile-nav-lang-item:focus-visible .mobile-nav-lang-code {
    color: var(--color-brand-600);
}

.mobile-nav-lang-name {
    flex: 1;
    font-weight: 500;
}

/* When the drawer is open, lock body scroll horizontally to prevent
   the page from shifting under the overlay on small viewports. */
body.mobile-nav-open { overflow-x: hidden; }

/* Honour reduced-motion users — no slide / no morph. */
@media (prefers-reduced-motion: reduce) {
    .nav-toggle-bar,
    .mobile-nav { transition: none; }
}

/* ---------------------------------------------------------
   4.  Hero (homepage)
   --------------------------------------------------------- */
.hero {
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 80% 20%, var(--color-brand-100) 0%, transparent 60%),
        radial-gradient(50% 50% at 10% 80%, var(--color-brand-50) 0%, transparent 60%);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-brand-50);
    color: var(--color-brand-700);
    border: 1px solid var(--color-brand-200);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 22px;
    /*
     * Without max-width the pill is sized by its content and can grow
     * wider than the viewport when a translated string is long (e.g.
     * the French "Conçu pour les boutiques qui vendent dans le monde
     * entier"). Because .hero uses overflow:hidden to clip its decorative
     * radial backgrounds, the overflowing tail of the pill gets visually
     * cut off on iPhone-class screens — which is the "not all words
     * visible" bug. Capping max-width + allowing normal word-wrap inside
     * the pill keeps the entire string readable on every viewport.
     */
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-brand-500);
    box-shadow: 0 0 0 3px var(--color-brand-100);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.025em;
    font-weight: 700;
    margin-bottom: 20px;
    /* Safety net for very long words in DE/FR/IT translations. */
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.hero h1 span { color: var(--color-brand-600); }

.lede {
    font-size: 19px;
    color: var(--color-fg-muted);
    max-width: 540px;
    margin-bottom: 32px;
}

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

.hero-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--color-fg-muted);
    flex-wrap: wrap;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta svg {
    color: var(--color-brand-600);
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* ---------------------------------------------------------
   5.  Dashboard mock (right side of hero)
   --------------------------------------------------------- */
.dash {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.dash-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.dash-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-2);
}

.dash-bar .url {
    margin-left: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-fg-faint);
    flex: 1;
}

.dash-body { padding: 22px; }

.dash-h {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dash-h h4 { font-size: 14px; font-weight: 600; }

.dash-h .live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-brand-50);
    color: var(--color-brand-700);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.dash-h .live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-brand-500);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 14px;
}

.stat .l {
    font-size: 11px;
    color: var(--color-fg-faint);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.stat .v {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.stat .d {
    font-size: 11px;
    color: var(--color-brand-700);
    margin-top: 4px;
}

.chart {
    height: 80px;
    background: linear-gradient(180deg, var(--color-brand-50), transparent);
    border-radius: 8px;
    position: relative;
    border-bottom: 2px solid var(--color-brand-600);
}

.chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ---------------------------------------------------------
   6.  Logos row
   --------------------------------------------------------- */
.logos {
    padding: 56px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.logos h6 {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-fg-faint);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 28px;
}

.logos-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    align-items: center;
    justify-items: center;
}

.logo-text {
    color: var(--color-fg-faint);
    font-size: 17px;
    font-weight: 600;
    transition: color .2s;
}

.logo-text:hover { color: var(--color-fg-muted); }

/*
 * .logo-img — real brand marks in the "Connects with the platforms
 * you already use" strip. Desaturated and dimmed by default so the
 * brand stripe stays calm inside the Data-Trust palette; restored
 * to full brand colour on hover and keyboard focus so users still
 * recognise the platforms at a glance.
 */
.logo-img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter .2s ease, transform .2s ease;
}

.logo-img:hover,
.logo-img:focus-visible {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-1px);
}

/* Square brand marks (Google "G") read smaller at the same height,
   so we give them a touch more room to balance the row visually. */
.logo-img--square { height: 36px; }

/* ---------------------------------------------------------
   7.  Section heads + feature grid
   --------------------------------------------------------- */
.features { padding: 100px 0; }

.section-head {
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-brand-600);
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 700;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-head p {
    color: var(--color-fg-muted);
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.feature {
    padding: 32px;
    background: #fff;
    transition: background .2s;
}

.feature:hover { background: var(--color-surface); }

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--color-brand-50);
    color: var(--color-brand-600);
    border: 1px solid var(--color-brand-100);
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.feature-icon svg { width: 20px; height: 20px; }

.feature h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: 8px;
}

.feature p {
    color: var(--color-fg-muted);
    font-size: 14.5px;
}

/* ---------------------------------------------------------
   8.  Split section (text + code card)
   --------------------------------------------------------- */
.split {
    padding: 100px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.split .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 700;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.split .lede {
    font-size: 17px;
    color: var(--color-fg-muted);
    margin-bottom: 24px;
}

.check-list { list-style: none; }

.check-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
}

.check-list svg {
    flex-shrink: 0;
    color: var(--color-brand-600);
    margin-top: 3px;
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.check-list strong { display: block; margin-bottom: 2px; }

.check-list span {
    color: var(--color-fg-muted);
    font-size: 14px;
}

.code-card {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
}

.code-card pre { white-space: pre; }
.code-card .com { color: #64748b; }
.code-card .key { color: #5eead4; }
.code-card .str { color: #fcd34d; }
.code-card .num { color: #a5b4fc; }

/* ---------------------------------------------------------
   9.  CTA card
   --------------------------------------------------------- */
.cta { padding: 100px 0; }

.cta-card {
    background: var(--color-brand-600);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 100% 0%, rgba(255,255,255,.15) 0%, transparent 50%),
        radial-gradient(50% 60% at 0% 100%, rgba(255,255,255,.1) 0%, transparent 50%);
}

.cta-card > * { position: relative; }

.cta-card h3 {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 700;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cta-card p {
    color: rgba(255,255,255,.85);
    font-size: 18px;
    max-width: 540px;
    margin: 0 auto 28px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------
   10. Site footer
   --------------------------------------------------------- */
.site-footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-fg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid p {
    color: var(--color-fg-muted);
    font-size: 14px;
    max-width: 320px;
    margin-top: 14px;
}

.footer-col h6 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-fg-faint);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--color-fg-muted);
    padding: 5px 0;
}

.footer-col a:hover { color: var(--color-brand-600); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--color-fg-faint);
}

/* ---------------------------------------------------------
   11. Long-form content (privacy / terms)
   --------------------------------------------------------- */
.legal-page {
    padding: 80px 0;
    background: var(--color-bg);
}

.legal-page .container { max-width: 800px; }

.legal-page h1 {
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 700;
    margin-bottom: 16px;
}

.legal-page .legal-meta {
    color: var(--color-fg-faint);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 36px 0 12px;
    letter-spacing: -.01em;
}

.legal-page h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 10px;
}

.legal-page p,
.legal-page ul,
.legal-page ol {
    color: var(--color-fg-muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 24px;
    list-style: disc;
}

.legal-page ol { list-style: decimal; }

.legal-page a {
    color: var(--color-brand-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover { color: var(--color-brand-600); }

/* ---------------------------------------------------------
   12. Forms (contact)
   --------------------------------------------------------- */
.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-fg);
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--color-fg);
    background: #fff;
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.55;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-brand-500);
    box-shadow: 0 0 0 3px var(--color-brand-100);
}

.form-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 14px;
}

.form-msg-success {
    background: var(--color-brand-50);
    border: 1px solid var(--color-brand-200);
    color: var(--color-brand-700);
}

.form-msg-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Honeypot field — visually hidden, screen-reader hidden, but DOM-present. */
.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* ---------------------------------------------------------
   13. Pricing (plans.php)
   ---------------------------------------------------------
   Plans are displayed on a single horizontal row that scrolls
   horizontally on desktop when there are too many cards to fit.
   `safe center` keeps cards centered when they all fit, and
   falls back to flex-start as soon as overflow would clip them.
   The wrapper gets vertical padding so card hover-lift isn't
   clipped, and a styled scrollbar so the affordance is obvious. */
.plans-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin-top: 48px;
    padding: 14px 4px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    justify-content: safe center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.plans-grid::-webkit-scrollbar { height: 10px; }
.plans-grid::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--radius-full);
}
.plans-grid::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.plans-grid::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-300);
    background-clip: padding-box;
    border: 2px solid transparent;
}

.plan {
    flex: 0 0 300px;
    width: 300px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

/* Mobile: a single horizontal row of 300px cards is awkward to
   tap-scroll, so we revert to the original stacked column. */
@media (max-width: 640px) {
    .plans-grid {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
        padding: 0;
        justify-content: flex-start;
    }
    .plan {
        flex: 1 1 auto;
        width: auto;
        scroll-snap-align: none;
    }
}

.plan:hover {
    border-color: var(--color-brand-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.plan.is-popular {
    border-color: var(--color-brand-600);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand-600);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.plan h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.plan-tagline {
    font-size: 14px;
    color: var(--color-fg-muted);
    margin-bottom: 20px;
    min-height: 38px;
}

.plan-price {
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
    font-size: 38px;
    font-weight: 700;
    color: var(--color-fg);
    line-height: 1;
    letter-spacing: -.02em;
}

.plan-price-period {
    font-size: 14px;
    color: var(--color-fg-muted);
    font-family: var(--font-sans);
    font-weight: 500;
    margin-left: 4px;
}

.plan-features {
    margin: 24px 0 28px;
    flex: 1;
}

.plan-features li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--color-fg-muted);
}

.plan-features svg {
    flex-shrink: 0;
    color: var(--color-brand-600);
    width: 16px;
    height: 16px;
    margin-top: 4px;
    stroke-width: 2.5;
}

.plan .btn { width: 100%; }

/* ---------------------------------------------------------
   14. 404
   --------------------------------------------------------- */
.error-hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 0%, var(--color-brand-50) 0%, transparent 60%);
    z-index: -1;
}

.error-hero h1 {
    font-size: clamp(72px, 12vw, 144px);
    font-weight: 800;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--color-brand-600), var(--color-brand-900));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-hero h2 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 600;
    letter-spacing: -.01em;
    margin-top: 8px;
}

.error-hero p {
    color: var(--color-fg-muted);
    font-size: 17px;
    max-width: 520px;
    margin: 16px auto 32px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------
   15. Reduced-motion / responsive
   --------------------------------------------------------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rise   { animation: rise .6s ease-out both; }
.rise-2 { animation: rise .6s ease-out .12s both; }

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

/* ---------------------------------------------------------
   Responsive: tablet & below (≤900px)
   --------------------------------------------------------- */
@media (max-width: 900px) {
    .hero { padding: 64px 0 56px; }
    .hero .container,
    .split .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-grid { grid-template-columns: 1fr; }
    .logos-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
    .cta-card { padding: 40px 28px; }
    nav.primary { display: none; }
    /* Compact the section rhythm so vertical scroll doesn't feel endless. */
    .features,
    .split,
    .cta { padding: 72px 0; }

    /* Show the hamburger and hide the desktop language pill + the
       top-bar CTA button — both are reachable inside the mobile
       drawer (CTA section + language section). */
    .nav-toggle  { display: inline-flex; }
    .header-cta  { display: none; }
}

/* ---------------------------------------------------------
   Responsive: phone & below (≤560px)
   Goal: keep every word readable on iPhone-class screens
   without sacrificing the Data-Trust look.
   --------------------------------------------------------- */
@media (max-width: 560px) {
    /* More breathing room: less side padding gives the content the
       extra ~16px it needs to fit longer translated headlines. */
    .container { padding: 0 18px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Hero ------------------------------------------------- */
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: clamp(32px, 8vw, 48px); }
    .pill {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 18px;
    }
    .lede {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .hero-meta {
        gap: 12px 18px;
        font-size: 12px;
    }
    .hero-actions { gap: 10px; }

    /* Dashboard mock --------------------------------------- */
    .dash-body { padding: 16px; }
    .dash-h h4 { font-size: 13px; }
    .dash-h .live { font-size: 10px; padding: 3px 8px; }
    .stat-grid { gap: 8px; margin-bottom: 14px; }
    .stat { padding: 10px; border-radius: 8px; }
    .stat .l { font-size: 10px; }
    .stat .v { font-size: 16px; }
    .stat .d { font-size: 10px; }

    /* Logos row -------------------------------------------- */
    .logos { padding: 40px 0; }
    .logos h6 { margin-bottom: 22px; }
    .logos-row { gap: 18px 14px; }
    .logo-img { height: 26px; }
    .logo-img--square { height: 30px; }

    /* Features --------------------------------------------- */
    .features { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .section-head p { font-size: 15px; }
    .feature { padding: 22px; }
    .feature h3 { font-size: 16px; }
    .feature p { font-size: 14px; }
    .feature-icon { width: 38px; height: 38px; margin-bottom: 14px; }

    /* Split ------------------------------------------------ */
    .split { padding: 56px 0; }
    .split .container { gap: 32px; }
    .check-list li { padding: 8px 0; font-size: 14.5px; }
    .check-list span { font-size: 13.5px; }
    .code-card {
        padding: 16px;
        font-size: 12px;
        line-height: 1.6;
    }

    /* CTA -------------------------------------------------- */
    .cta { padding: 56px 0; }
    .cta-card { padding: 32px 20px; border-radius: var(--radius-lg); }
    .cta-card h3 { font-size: 26px; }
    .cta-card p { font-size: 16px; }

    /*
     * Site header on phones.
     * The desktop .btn is 38px tall while the language pill is only
     * 30px. We shrink the account link ("Login" or "Go to app") to
     * match the lang pill's height, pull in the padding, and squeeze
     * the gaps so logo + account link + pill comfortably
     * fit a 320–375px viewport without dominating the screen.
     */
    .site-header .container { padding: 0 14px; }
    .header-cta { gap: 6px; }
    .header-cta .btn {
        height: 30px;
        padding: 0 12px;
        font-size: 12.5px;
        font-weight: 600;
        border-radius: var(--radius-full);
    }
    /* Match the slimmer top-bar rhythm on phones. */
    .nav-toggle {
        width: 34px;
        height: 34px;
        margin-left: 2px;
    }
    .nav-toggle-bar { width: 16px; }
    .nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* ---------------------------------------------------------
   Responsive: iPhone-SE class (≤380px)
   Last-mile defence for the narrowest production phones.
   --------------------------------------------------------- */
@media (max-width: 380px) {
    .container { padding: 0 14px; }

    .hero h1 { font-size: clamp(28px, 8.5vw, 36px); }
    .pill { font-size: 11.5px; }

    /* Dashboard mock: keep the 3-up grid but shrink the
       tabular-num "12,418" so it never clips its cell. */
    .dash-body { padding: 14px; }
    .stat { padding: 9px; }
    .stat .v { font-size: 14px; letter-spacing: -.03em; }
    .stat .l { font-size: 9.5px; }
    .dash-h h4 { font-size: 12px; }

    /* Logos: 3 cols stay, just tighten the row. */
    .logos-row { gap: 14px 10px; }
    .logo-img { height: 22px; max-width: 100%; }
    .logo-img--square { height: 26px; }
}
