/* ==========================================================================
   ShopFiles landing page design system
   Self-contained — used only by index.php. Other pages keep Tailwind.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Ink foundation */
    --ink-950: #060b16;
    --ink-900: #0a1322;
    --ink-800: #0e1a2e;
    --ink-750: #122239;
    --ink-700: #17263f;
    --ink-line: rgba(150, 182, 255, 0.14);
    --ink-line-strong: rgba(150, 182, 255, 0.24);

    /* Paper / publishing neutrals */
    --paper: #f7f4ed;
    --paper-2: #efeade;
    --paper-line: #e3dccb;
    --white: #ffffff;

    /* Text */
    --tx-dark-1: #eaf0fc;
    --tx-dark-2: #a6b5d1;
    --tx-dark-3: #7385a5;
    --tx-light-1: #15233b;
    --tx-light-2: #48566e;
    --tx-light-3: #6b7890;

    /* Accents */
    --blue: #2f6bff;
    --blue-deep: #1f52d8;
    --blue-soft: rgba(47, 107, 255, 0.12);
    --mint: #35e0a6;
    --mint-deep: #0f9e74;
    --mint-soft: rgba(53, 224, 166, 0.12);
    --amber: #f2b23e;
    --red: #e2574b;

    /* Shape */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    /* Elevation */
    --shadow-1: 0 1px 2px rgba(10, 19, 34, 0.06), 0 4px 14px rgba(10, 19, 34, 0.07);
    --shadow-2: 0 2px 6px rgba(10, 19, 34, 0.08), 0 18px 44px rgba(10, 19, 34, 0.14);
    --shadow-dark: 0 2px 6px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.42);

    /* Type */
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 0.9, 0.3, 1);
    --t-fast: 180ms;
    --t-med: 320ms;

    /* Layout */
    --container: 1160px;
    --nav-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tx-light-1);
    background: var(--ink-950);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
    border-radius: 4px;
}
.on-light :focus-visible { outline-color: var(--blue); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    background: var(--white);
    color: var(--tx-light-1);
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 32px);
}

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

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 22px; height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.7;
}
.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.005em;
}

.section-head { max-width: 660px; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.022em;
    font-weight: 700;
    margin: 14px 0 16px;
}
.section-head p { font-size: 1.08rem; }

/* Section color schemes */
.on-dark { background: var(--ink-900); color: var(--tx-dark-2); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--tx-dark-1); }
.on-dark .eyebrow { color: var(--mint); }
.on-paper { background: var(--paper); color: var(--tx-light-2); }
.on-white { background: var(--white); color: var(--tx-light-2); }
.on-paper h1, .on-paper h2, .on-paper h3, .on-paper h4,
.on-white h1, .on-white h2, .on-white h3, .on-white h4 { color: var(--tx-light-1); }
.on-paper .eyebrow, .on-white .eyebrow { color: var(--blue-deep); }

section { padding-block: clamp(64px, 9vw, 110px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
    min-height: 48px;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 18px rgba(47, 107, 255, 0.35);
}
.btn-primary:hover { background: var(--blue-deep); }

.btn-mint {
    background: var(--mint);
    color: #06281c;
    box-shadow: 0 6px 18px rgba(53, 224, 166, 0.28);
}
.btn-mint:hover { background: #2bcf97; }

.btn-ghost-dark {
    color: var(--tx-dark-1);
    box-shadow: inset 0 0 0 1.5px var(--ink-line-strong);
}
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px rgba(150, 182, 255, 0.5); background: rgba(150, 182, 255, 0.06); }

.btn-ghost-light {
    color: var(--tx-light-1);
    box-shadow: inset 0 0 0 1.5px #c9d2e2;
}
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue-deep); }

.btn-sm { padding: 10px 20px; font-size: 0.92rem; min-height: 40px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--blue-deep);
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.on-dark .text-link { color: var(--mint); }

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
    border-bottom: 1px solid transparent;
    background: transparent;
}
.site-nav.is-scrolled {
    background: rgba(7, 12, 22, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--ink-line);
}
.site-nav .container {
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--tx-dark-1);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--blue) 0%, #1d3fae 100%);
    display: grid;
    place-items: center;
    flex: none;
    color: #fff;
    margin-right: 10px;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand .tld { color: var(--tx-dark-3); font-weight: 500; margin-left: 1px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}
.nav-links a {
    padding: 9px 13px;
    border-radius: var(--r-pill);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--tx-dark-2);
    text-decoration: none;
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
}
.nav-links a:hover { color: var(--tx-dark-1); background: rgba(150, 182, 255, 0.08); }
.nav-links a.is-active { color: var(--tx-dark-1); background: rgba(150, 182, 255, 0.12); }

.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-login {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--tx-dark-2);
    text-decoration: none;
    padding: 8px 4px;
}
.nav-login:hover { color: var(--tx-dark-1); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    place-items: center;
    color: var(--tx-dark-1);
}
.nav-toggle .bars { position: relative; width: 20px; height: 14px; }
.nav-toggle .bars span {
    position: absolute; left: 0;
    width: 100%; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast), top var(--t-med) var(--ease-out);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 99;
    background: rgba(7, 12, 22, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ink-line);
    padding: 10px 0 26px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
    display: block;
    padding: 14px clamp(20px, 4vw, 32px);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--tx-dark-1);
    text-decoration: none;
    border-bottom: 1px solid rgba(150, 182, 255, 0.07);
}
.mobile-menu a:hover { background: rgba(150, 182, 255, 0.07); }
.mobile-menu .mobile-cta { margin: 18px clamp(20px, 4vw, 32px) 0; border: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 480px at 82% -10%, rgba(47, 107, 255, 0.16), transparent 62%),
        radial-gradient(700px 420px at -10% 40%, rgba(53, 224, 166, 0.07), transparent 60%),
        var(--ink-950);
    color: var(--tx-dark-2);
    padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
    padding-bottom: clamp(64px, 8vw, 104px);
    overflow: hidden;
}
.hero::before {
    /* faint page-grid, publishing cue */
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--ink-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(closest-side at 70% 20%, rgba(0,0,0,0.5), transparent 90%);
    -webkit-mask-image: radial-gradient(closest-side at 70% 20%, rgba(0,0,0,0.5), transparent 90%);
    pointer-events: none;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.35rem, 5vw, 3.7rem);
    line-height: 1.06;
    letter-spacing: -0.028em;
    font-weight: 800;
    color: var(--tx-dark-1);
    margin: 20px 0 22px;
}
.hero h1 .serif-accent { color: var(--mint); font-weight: 500; }
.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    max-width: 34em;
    margin-bottom: 14px;
}
.hero-modes {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--tx-dark-3);
    margin-bottom: 30px;
}
.hero-modes .chip-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--ink-line-strong);
    color: var(--tx-dark-2);
    font-weight: 500;
}
.hero-modes .chip-mini svg { width: 13px; height: 13px; color: var(--mint); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    font-size: 0.92rem;
    color: var(--tx-dark-3);
}
.hero-proof .proof {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}
.hero-proof strong {
    color: var(--tx-dark-1);
    font-size: 1.06rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hero-proof .stars { color: var(--amber); letter-spacing: 1px; font-size: 0.85rem; }

/* Hero pipeline visual */
.pipeline {
    position: relative;
    background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
    border: 1px solid var(--ink-line);
    border-radius: var(--r-lg);
    padding: clamp(22px, 3vw, 30px);
    box-shadow: var(--shadow-dark);
}
.pipeline-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tx-dark-3);
    margin-bottom: 20px;
}
.pipeline-title .live-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mint);
    font-size: 0.72rem;
}
.pipeline-title .live-dot::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--mint);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.35; } }

.pipe-step {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding-block: 8px;
}
.pipe-step + .pipe-step { margin-top: 6px; }
.pipe-rail {
    position: relative;
    display: flex;
    justify-content: center;
}
.pipe-node {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ink-700);
    border: 1px solid var(--ink-line);
    color: var(--tx-dark-3);
    transition: background var(--t-med), color var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
    z-index: 1;
}
.pipe-node svg { width: 18px; height: 18px; }
.pipe-step:not(:last-child) .pipe-rail::after {
    content: "";
    position: absolute;
    top: 44px; bottom: -18px;
    width: 2px;
    background: var(--ink-line);
    border-radius: 2px;
}
.pipe-step:not(:last-child) .pipe-rail::before {
    content: "";
    position: absolute;
    top: 44px; bottom: -18px;
    width: 2px;
    border-radius: 2px;
    background: var(--mint);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 600ms var(--ease-out);
    z-index: 1;
}
.pipe-step.is-done .pipe-rail::before { transform: scaleY(1); }
.pipe-step.is-active .pipe-node,
.pipe-step.is-done .pipe-node {
    background: var(--mint-soft);
    border-color: rgba(53, 224, 166, 0.45);
    color: var(--mint);
}
.pipe-step.is-active .pipe-node { box-shadow: 0 0 0 5px rgba(53, 224, 166, 0.08); }
.pipe-body { min-width: 0; padding-top: 2px; }
.pipe-body h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--tx-dark-2);
    transition: color var(--t-med);
}
.pipe-step.is-active .pipe-body h3, .pipe-step.is-done .pipe-body h3 { color: var(--tx-dark-1); }
.pipe-body p { font-size: 0.85rem; color: var(--tx-dark-3); margin-top: 2px; }
.pipe-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pipe-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--ink-700);
    border: 1px solid var(--ink-line);
    color: var(--tx-dark-3);
    transition: color var(--t-med), border-color var(--t-med), background var(--t-med);
}
.pipe-step.is-active .pipe-tags span, .pipe-step.is-done .pipe-tags span {
    color: var(--mint);
    border-color: rgba(53, 224, 166, 0.35);
    background: rgba(53, 224, 166, 0.07);
}
.pipeline-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-line);
    font-size: 0.78rem;
    color: var(--tx-dark-3);
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--ink-900);
    border-top: 1px solid var(--ink-line);
    padding-block: 34px;
    color: var(--tx-dark-3);
}
.trust-strip .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 34px;
    justify-content: center;
}
.trust-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.trust-items { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center; }
.trust-items .t-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tx-dark-2);
}
.trust-items .t-item svg { width: 17px; height: 17px; opacity: 0.85; }
.trust-items .t-item small { font-weight: 500; color: var(--tx-dark-3); font-size: 0.78rem; }
.format-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.format-chips span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 11px;
    border-radius: 6px;
    border: 1px solid var(--ink-line-strong);
    color: var(--tx-dark-2);
}

/* ---------- Outcomes ---------- */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 34px);
}
.outcome {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-lg);
    padding: clamp(24px, 3vw, 34px);
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.outcome h3 { font-size: 1.32rem; letter-spacing: -0.015em; font-weight: 700; }
.outcome > p { flex-grow: 1; }
.outcome-visual {
    border-radius: var(--r-md);
    border: 1px solid var(--paper-line);
    background: linear-gradient(180deg, #fbf9f4, #f3efe6);
    padding: 18px;
    min-height: 150px;
    display: grid;
    align-content: center;
    gap: 8px;
    overflow: hidden;
}
.outcome-caps { display: flex; flex-wrap: wrap; gap: 7px; }
.outcome-caps span {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: var(--r-pill);
    background: var(--blue-soft);
    color: var(--blue-deep);
}

/* mini checkout visual */
.mini-checkout {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--paper-line);
    box-shadow: var(--shadow-1);
    padding: 14px;
    display: grid;
    gap: 9px;
    font-size: 0.8rem;
}
.mini-checkout .mc-row { display: flex; justify-content: space-between; align-items: center; color: var(--tx-light-2); }
.mini-checkout .mc-row strong { color: var(--tx-light-1); }
.mini-checkout .mc-field {
    height: 30px;
    border-radius: 7px;
    border: 1px solid var(--paper-line);
    background: #fbfaf7;
    display: flex; align-items: center;
    padding-inline: 10px;
    color: var(--tx-light-3);
    font-size: 0.76rem;
}
.mini-checkout .mc-pay {
    height: 34px;
    border-radius: var(--r-pill);
    background: var(--blue);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* mini protected doc visual */
.mini-doc {
    position: relative;
    width: min(150px, 70%);
    margin-inline: auto;
    aspect-ratio: 3 / 4;
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    padding: 14px 12px;
    overflow: hidden;
}
.mini-doc .line { height: 5px; border-radius: 3px; background: #e7e2d6; margin-bottom: 7px; }
.mini-doc .line.w60 { width: 60%; }
.mini-doc .line.w80 { width: 80%; }
.mini-doc .wm-diag {
    position: absolute;
    inset: auto -20% 28% -20%;
    transform: rotate(-24deg);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(31, 82, 216, 0.34);
    white-space: nowrap;
    text-align: center;
}
.mini-doc .qr-corner { position: absolute; right: 9px; bottom: 9px; width: 26px; height: 26px; color: var(--tx-light-1); opacity: 0.8; }

/* mini delivery visual */
.mini-mail {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--paper-line);
    box-shadow: var(--shadow-1);
    padding: 14px;
    font-size: 0.78rem;
    display: grid;
    gap: 8px;
}
.mini-mail .mm-head { display: flex; align-items: center; gap: 8px; color: var(--tx-light-1); font-weight: 600; }
.mini-mail .mm-head svg { width: 15px; height: 15px; color: var(--mint-deep); }
.mini-mail .mm-sub { color: var(--tx-light-3); }
.mini-mail .mm-attach {
    display: flex; align-items: center; gap: 8px;
    border: 1px dashed #cfc8b8;
    border-radius: 7px;
    padding: 7px 10px;
    color: var(--tx-light-2);
    font-weight: 600;
}
.mini-mail .mm-attach svg { width: 14px; height: 14px; color: var(--blue-deep); }
.mini-mail .mm-attach .lock { color: var(--mint-deep); margin-left: auto; }

/* ---------- Protection demo ---------- */
.demo-section {
    background:
        radial-gradient(760px 420px at 15% 0%, rgba(53, 224, 166, 0.08), transparent 60%),
        var(--ink-900);
}
.demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.demo-controls { display: grid; gap: 10px; }
.demo-toggle {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 15px 18px;
    border-radius: var(--r-md);
    background: var(--ink-800);
    border: 1px solid var(--ink-line);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.demo-toggle:hover { border-color: var(--ink-line-strong); }
.demo-toggle[aria-pressed="true"] { border-color: rgba(53, 224, 166, 0.45); background: var(--ink-750); }
.demo-toggle .dt-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--ink-700);
    color: var(--tx-dark-3);
    transition: color var(--t-fast), background var(--t-fast);
}
.demo-toggle .dt-icon svg { width: 18px; height: 18px; }
.demo-toggle[aria-pressed="true"] .dt-icon { background: var(--mint-soft); color: var(--mint); }
.demo-toggle .dt-text strong { display: block; color: var(--tx-dark-1); font-size: 0.98rem; font-weight: 600; }
.demo-toggle .dt-text span { font-size: 0.83rem; color: var(--tx-dark-3); }
.demo-toggle .dt-switch {
    width: 42px; height: 24px;
    border-radius: var(--r-pill);
    background: var(--ink-700);
    border: 1px solid var(--ink-line-strong);
    position: relative;
    flex: none;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.demo-toggle .dt-switch::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--tx-dark-3);
    transition: transform var(--t-med) var(--ease-out), background var(--t-fast);
}
.demo-toggle[aria-pressed="true"] .dt-switch { background: rgba(53, 224, 166, 0.25); border-color: rgba(53, 224, 166, 0.5); }
.demo-toggle[aria-pressed="true"] .dt-switch::after { transform: translateX(18px); background: var(--mint); }

.demo-meta {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--tx-dark-3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.demo-meta strong { color: var(--mint); font-variant-numeric: tabular-nums; }

/* Document preview */
.doc-stage {
    position: relative;
    background: var(--ink-800);
    border: 1px solid var(--ink-line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 34px);
    box-shadow: var(--shadow-dark);
}
.doc-stage .stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.78rem;
    color: var(--tx-dark-3);
}
.doc-stage .stage-bar .file-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink-700);
    border: 1px solid var(--ink-line);
    padding: 6px 13px;
    border-radius: 8px;
    color: var(--tx-dark-2);
    font-weight: 600;
}
.doc-stage .stage-bar .file-tab svg { width: 14px; height: 14px; color: var(--red); }
.stage-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.stage-badges .sb {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(53, 224, 166, 0.1);
    border: 1px solid rgba(53, 224, 166, 0.35);
    color: var(--mint);
}
.stage-badges .sb svg { width: 11px; height: 11px; }

.doc-preview {
    position: relative;
    width: min(360px, 100%);
    margin-inline: auto;
    aspect-ratio: 17 / 22;
    background: #fdfcf9;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    padding: clamp(20px, 4vw, 34px) clamp(18px, 3.5vw, 30px);
    overflow: hidden;
    color: var(--tx-light-1);
    transition: filter var(--t-med);
}
.doc-preview .doc-h {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 4px;
}
.doc-preview .doc-sub { font-size: 0.72rem; color: var(--tx-light-3); margin-bottom: 16px; }
.doc-preview .doc-line { height: 7px; border-radius: 4px; background: #e9e4d8; margin-bottom: 10px; }
.doc-preview .doc-line.short { width: 62%; }
.doc-preview .doc-line.mid { width: 84%; }

.doc-layer { opacity: 0; transition: opacity var(--t-med) var(--ease-out); pointer-events: none; }
.doc-preview.has-wm .layer-wm,
.doc-preview.has-order .layer-order,
.doc-preview.has-qr .layer-qr,
.doc-preview.has-print .layer-print { opacity: 1; }

.layer-wm {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.layer-wm span {
    transform: rotate(-27deg);
    font-size: clamp(0.72rem, 1.6vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(31, 82, 216, 0.22);
    white-space: nowrap;
    text-transform: uppercase;
}
.layer-order {
    position: absolute;
    left: 0; right: 0; bottom: 10px;
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    color: var(--tx-light-3);
}
.layer-qr {
    position: absolute;
    right: 14px; bottom: 26px;
    width: clamp(44px, 9vw, 58px);
    height: clamp(44px, 9vw, 58px);
    color: #1c2434;
}
.layer-print {
    position: absolute;
    top: 12px; right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--red);
    border: 1px solid rgba(226, 87, 75, 0.5);
    border-radius: 6px;
    padding: 3px 8px;
    background: rgba(226, 87, 75, 0.07);
}
.layer-print svg { width: 11px; height: 11px; }

/* encrypted state */
.doc-preview .layer-lock {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(12, 20, 35, 0);
    opacity: 0;
    transition: opacity var(--t-med);
    pointer-events: none;
}
.doc-preview.is-locked { filter: blur(0px); }
.doc-preview.is-locked .doc-body-content { filter: blur(5px); }
.doc-preview.is-locked .layer-lock { opacity: 1; background: rgba(250, 249, 244, 0.35); }
.layer-lock .lock-card {
    background: var(--ink-900);
    color: var(--tx-dark-1);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-dark);
}
.layer-lock .lock-card svg { width: 16px; height: 16px; color: var(--mint); }
.doc-body-content { transition: filter var(--t-med); }

.demo-disclaimer {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--tx-dark-3);
    text-align: center;
}

/* ---------- Modes (standalone vs WooCommerce) ---------- */
.mode-switch {
    display: inline-flex;
    background: var(--paper-2);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-pill);
    padding: 5px;
    gap: 4px;
    margin-inline: auto;
}
.mode-switch button {
    padding: 11px 26px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--tx-light-2);
    transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
    min-height: 44px;
}
.mode-switch button[aria-selected="true"] {
    background: var(--ink-900);
    color: var(--tx-dark-1);
    box-shadow: var(--shadow-1);
}
.mode-panels { margin-top: clamp(30px, 4vw, 44px); }
.mode-panel[hidden] { display: none; }
.mode-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    padding: clamp(26px, 4vw, 48px);
}
.mode-panel h3 { font-size: 1.5rem; letter-spacing: -0.018em; margin-bottom: 8px; }
.mode-panel .mode-for {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mint-deep);
    background: var(--mint-soft);
    border-radius: var(--r-pill);
    padding: 4px 12px;
    margin-bottom: 14px;
}
.mode-panel ul { display: grid; gap: 11px; margin-top: 16px; }
.mode-panel ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.97rem;
}
.mode-panel ul li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--mint-deep); }

.mode-diagram {
    border-radius: var(--r-md);
    background: var(--ink-900);
    border: 1px solid var(--ink-line);
    padding: clamp(20px, 3vw, 30px);
    display: grid;
    gap: 12px;
    color: var(--tx-dark-2);
}
.mode-diagram .md-box {
    border: 1px solid var(--ink-line-strong);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tx-dark-1);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink-800);
}
.mode-diagram .md-box svg { width: 16px; height: 16px; color: var(--mint); flex: none; }
.mode-diagram .md-box small { margin-left: auto; font-weight: 500; color: var(--tx-dark-3); font-size: 0.72rem; }
.mode-diagram .md-arrow {
    justify-self: center;
    color: var(--tx-dark-3);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.mode-diagram .md-arrow::before { content: "↓"; color: var(--mint); font-size: 0.95rem; }
.mode-note { text-align: center; margin-top: 22px; font-size: 0.92rem; color: var(--tx-light-3); }

/* ---------- How it works ---------- */
.steps-rail { position: relative; display: grid; gap: 0; }
.step-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding-bottom: clamp(28px, 4vw, 40px);
}
.step-row:last-child { padding-bottom: 0; }
.step-num {
    position: relative;
    display: flex;
    justify-content: center;
}
.step-num::after {
    content: "";
    position: absolute;
    top: 52px; bottom: -4px;
    width: 2px;
    background: var(--paper-line);
}
.step-row:last-child .step-num::after { display: none; }
.step-num i {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 700;
    font-size: 1.02rem;
    background: var(--white);
    border: 2px solid var(--blue);
    color: var(--blue-deep);
    z-index: 1;
}
.step-body h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 4px; }
.step-body p { max-width: 56ch; }
.step-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--blue-deep);
    background: var(--blue-soft);
    border-radius: var(--r-pill);
    padding: 3px 11px;
}

.how-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(36px, 5vw, 64px);
    align-items: start;
}
.how-aside {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    background: var(--ink-900);
    border-radius: var(--r-lg);
    border: 1px solid var(--ink-line);
    padding: clamp(24px, 3vw, 34px);
    color: var(--tx-dark-2);
    box-shadow: var(--shadow-2);
}
.how-aside h3 { color: var(--tx-dark-1); font-size: 1.15rem; margin-bottom: 14px; }
.how-aside ul { display: grid; gap: 10px; }
.how-aside li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.how-aside li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--mint); }
.how-aside .aside-cta { margin-top: 22px; }

/* ---------- Feature explorer ---------- */
.tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(26px, 4vw, 38px);
}
.tab-btn {
    padding: 10px 19px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--tx-light-2);
    background: var(--white);
    border: 1px solid var(--paper-line);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    min-height: 42px;
}
.tab-btn:hover { border-color: #c8bfa9; }
.tab-btn[aria-selected="true"] {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: var(--tx-dark-1);
}
.tab-panel[hidden] { display: none; }
.tab-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.feat {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-md);
    padding: 20px 22px;
}
.feat h4 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 9px; }
.feat h4 svg { width: 17px; height: 17px; color: var(--blue-deep); flex: none; }
.feat p { font-size: 0.9rem; }
.feat .pro-flag {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--mint-deep);
    background: var(--mint-soft);
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: auto;
}

/* ---------- Pricing ---------- */
.pricing-note {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 0 auto clamp(34px, 5vw, 48px);
    font-size: 0.95rem;
    color: var(--tx-light-2);
}
.pricing-note span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pricing-note svg { width: 16px; height: 16px; color: var(--mint-deep); }

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 30px);
    max-width: 880px;
    margin-inline: auto;
    align-items: stretch;
}
.price-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-lg);
    padding: clamp(26px, 3.5vw, 38px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-1);
}
.price-card.is-featured {
    background: var(--ink-900);
    border-color: var(--ink-line);
    color: var(--tx-dark-2);
    box-shadow: var(--shadow-2);
}
.price-card.is-featured h3, .price-card.is-featured .price { color: var(--tx-dark-1); }
.price-flag {
    position: absolute;
    top: -13px; left: 28px;
    background: var(--mint);
    color: #06281c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: var(--r-pill);
}
.price-card h3 { font-size: 1.28rem; font-weight: 700; }
.price-for { font-size: 0.9rem; margin: 4px 0 18px; }
.price-card.is-featured .price-for { color: var(--tx-dark-3); }
.price { font-size: 2.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--tx-light-1); }
.price small { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: inherit; opacity: 0.65; }
.price-sub { font-size: 0.82rem; margin-top: 7px; }
.price-card.is-featured .price-sub { color: var(--tx-dark-3); }
.price-card ul { display: grid; gap: 11px; margin: 24px 0 28px; flex-grow: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.price-card li svg { width: 17px; height: 17px; flex: none; margin-top: 2.5px; color: var(--mint-deep); }
.price-card.is-featured li svg { color: var(--mint); }
.price-foot { text-align: center; margin-top: 26px; font-size: 0.92rem; color: var(--tx-light-3); }
.price-foot a { color: var(--blue-deep); font-weight: 600; }

/* ---------- Full site setup ---------- */
.setup-section {
    background:
        radial-gradient(720px 420px at 88% 10%, rgba(47, 107, 255, 0.14), transparent 60%),
        var(--ink-900);
}
.setup-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(36px, 5vw, 70px);
    align-items: start;
}
.setup-list { display: grid; gap: 15px; margin-top: 26px; }
.setup-list li { display: flex; gap: 13px; align-items: flex-start; }
.setup-list li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--mint); }
.setup-list strong { color: var(--tx-dark-1); display: block; font-size: 0.98rem; }
.setup-list span { font-size: 0.88rem; color: var(--tx-dark-3); }
.setup-card {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    background: var(--ink-800);
    border: 1px solid var(--ink-line);
    border-radius: var(--r-lg);
    padding: clamp(26px, 3.5vw, 38px);
    box-shadow: var(--shadow-dark);
}
.setup-card .price { color: var(--tx-dark-1); }
.setup-steps { display: grid; gap: 0; margin: 24px 0 26px; }
.setup-steps li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding-block: 9px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--ink-line);
}
.setup-steps li:last-child { border-bottom: 0; }
.setup-steps b { color: var(--mint); font-variant-numeric: tabular-nums; font-size: 0.8rem; flex: none; }
.setup-card .btn { width: 100%; }
.setup-card .setup-alt { text-align: center; margin-top: 14px; font-size: 0.88rem; color: var(--tx-dark-3); }
.setup-card .setup-alt a { color: var(--tx-dark-1); font-weight: 600; }

/* ---------- Reviews ---------- */
.reviews-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(30px, 5vw, 48px);
}
.rating-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-md);
    padding: 14px 22px;
    box-shadow: var(--shadow-1);
}
.rating-summary .rs-score { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--tx-light-1); }
.rating-summary .rs-meta { font-size: 0.85rem; line-height: 1.45; }
.rating-summary .stars { color: var(--amber); letter-spacing: 2px; font-size: 0.95rem; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-md);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    break-inside: avoid;
}
.review-card.is-featured {
    grid-column: span 2;
    background: var(--ink-900);
    border-color: var(--ink-line);
    color: var(--tx-dark-2);
}
.review-card.is-featured blockquote { color: var(--tx-dark-1); font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.5; font-weight: 400; }
.review-card .stars { color: var(--amber); letter-spacing: 2px; font-size: 0.85rem; }
.review-card blockquote { margin: 0; font-size: 0.97rem; flex-grow: 1; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-who .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--blue-soft);
    color: var(--blue-deep);
    flex: none;
}
.review-card.is-featured .avatar { background: rgba(53, 224, 166, 0.14); color: var(--mint); }
.review-who .rw-name { font-weight: 600; color: var(--tx-light-1); font-size: 0.93rem; }
.review-card.is-featured .rw-name { color: var(--tx-dark-1); }
.review-who .rw-src { font-size: 0.78rem; color: var(--tx-light-3); }
.review-card.is-featured .rw-src { color: var(--tx-dark-3); }
.reviews-foot { text-align: center; margin-top: clamp(28px, 4vw, 40px); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin-inline: auto; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 19px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--tx-light-1);
    transition: background var(--t-fast);
}
.faq-q:hover { background: #fbfaf6; }
.faq-q .faq-chev {
    flex: none;
    width: 22px; height: 22px;
    color: var(--tx-light-3);
    transition: transform var(--t-med) var(--ease-out);
}
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); color: var(--blue-deep); }
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--t-med) var(--ease-out);
}
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 24px 20px; font-size: 0.96rem; }

/* ---------- Final CTA ---------- */
.final-cta {
    background:
        radial-gradient(800px 400px at 50% 120%, rgba(47, 107, 255, 0.22), transparent 65%),
        var(--ink-950);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--ink-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(closest-side at 50% 100%, rgba(0,0,0,0.45), transparent);
    -webkit-mask-image: radial-gradient(closest-side at 50% 100%, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
}
.final-cta .container { position: relative; max-width: 760px; }
.final-cta h2 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}
.final-cta h2 .serif-accent { color: var(--mint); }
.final-cta p { font-size: 1.1rem; margin-bottom: 32px; }
.final-cta .hero-ctas { justify-content: center; }
.final-reassure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-size: 0.88rem;
    color: var(--tx-dark-3);
}
.final-reassure span { display: inline-flex; align-items: center; gap: 7px; }
.final-reassure svg { width: 14px; height: 14px; color: var(--mint); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink-950);
    border-top: 1px solid var(--ink-line);
    color: var(--tx-dark-3);
    padding: clamp(44px, 6vw, 64px) 0 34px;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(28px, 4vw, 48px);
    margin-bottom: 42px;
}
.footer-brand p { margin-top: 12px; max-width: 30ch; }
.site-footer h4 {
    color: var(--tx-dark-1);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.site-footer ul { display: grid; gap: 9px; }
.site-footer ul a { color: var(--tx-dark-3); text-decoration: none; transition: color var(--t-fast); }
.site-footer ul a:hover { color: var(--tx-dark-1); }
.footer-bottom {
    border-top: 1px solid var(--ink-line);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}
.footer-bottom a { color: var(--tx-dark-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--tx-dark-1); }

/* ---------- Language switcher ---------- */
.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6b5d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
    border: 1px solid var(--ink-line-strong);
    border-radius: var(--r-pill);
    color: var(--tx-dark-2);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 30px 7px 14px;
    cursor: pointer;
    min-height: 38px;
}
.lang-select:hover { color: var(--tx-dark-1); border-color: rgba(150, 182, 255, 0.5); }
.lang-select option { color: #15233b; background: #fff; }
.mobile-lang { padding: 14px clamp(20px, 4vw, 32px) 0; }
.lang-select-mobile { width: 100%; }

.footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    justify-content: center;
}
.footer-langs a {
    color: var(--tx-dark-3);
    text-decoration: none;
    font-size: 0.82rem;
}
.footer-langs a:hover { color: var(--tx-dark-1); }
.footer-langs a.is-current { color: var(--mint); font-weight: 600; }

/* ---------- Order / checkout page ---------- */
.order-page { background: var(--paper); color: var(--tx-light-2); }
.order-nav { position: sticky; }
.order-main { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.order-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.order-head h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -0.022em;
    font-weight: 700;
    color: var(--tx-light-1);
    margin-bottom: 6px;
}
.order-plan { font-size: 1.05rem; color: var(--tx-light-3); }

.order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
    max-width: 1040px;
    margin-inline: auto;
}
.order-fields { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.field-card, .summary-card {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 30px);
    box-shadow: var(--shadow-1);
}
.fc-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--tx-light-1);
    margin-bottom: 16px;
}
.f-group { margin-bottom: 16px; }
.f-group:last-child { margin-bottom: 0; }
.f-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.f-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tx-light-1);
    margin-bottom: 6px;
}
.f-group label small {
    font-weight: 400;
    color: var(--tx-light-3);
    font-size: 0.78rem;
}
.f-group input, .f-group select {
    width: 100%;
    font: inherit;
    font-size: 0.97rem;
    color: var(--tx-light-1);
    background: #fbfaf7;
    border: 1.5px solid #d8d2c2;
    border-radius: 10px;
    padding: 11px 14px;
    min-height: 46px;
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.f-group input:focus, .f-group select:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}
.f-group select { cursor: pointer; }

.type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.customer-type-btn {
    padding: 12px 10px;
    border-radius: 10px;
    border: 1.5px solid #d8d2c2;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tx-light-2);
    background: #fbfaf7;
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
    min-height: 46px;
}
.customer-type-btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.customer-type-btn.active {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue-deep);
}
#businessFields { margin-bottom: 16px; }

.summary-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    padding-block: 7px;
}
.sum-row .sum-num { font-weight: 600; color: var(--tx-light-1); white-space: nowrap; }
.sum-muted { color: var(--tx-light-3); }
.sum-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--paper-line);
    margin-top: 10px;
    padding-top: 14px;
    font-weight: 700;
    color: var(--tx-light-1);
    font-size: 1.05rem;
}
.sum-total .sum-num { font-size: 1.25rem; }

.vat-status {
    margin-top: 14px;
    font-size: 0.84rem;
    line-height: 1.5;
    border-radius: 10px;
    padding: 10px 13px;
}
.vat-status.is-info { background: var(--blue-soft); color: var(--blue-deep); }
.vat-status.is-ok { background: var(--mint-soft); color: var(--mint-deep); }

.consents { margin-top: 18px; display: grid; gap: 12px; }
.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--tx-light-2);
    cursor: pointer;
}
.consent input {
    margin-top: 3px;
    width: 17px; height: 17px;
    accent-color: var(--blue);
    cursor: pointer;
}
.consent a { color: var(--blue-deep); font-weight: 600; }

.pay-title { margin-top: 22px; }
.btn-pay { width: 100%; font-size: 1.05rem; padding-block: 15px; }
.secure-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--tx-light-3);
    text-align: center;
}
.secure-note svg { flex: none; margin-top: 2px; color: var(--mint-deep); }

.order-footer { margin-top: 0; }

/* Compatibility classes toggled by the checkout scripts */
.hidden { display: none !important; }
.border-green-500 { border-color: #22c55e !important; }
.border-red-500 { border-color: var(--red) !important; }
.bg-blue-50 { background: var(--blue-soft); }

@media (max-width: 900px) {
    .order-grid { grid-template-columns: 1fr; }
    .summary-card { position: static; }
}
@media (max-width: 520px) {
    .f-row.two { grid-template-columns: 1fr; }
    .order-nav .nav-login { font-size: 0.85rem; }
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .pipe-step .pipe-node, .pipe-step .pipe-tags span, .pipe-step .pipe-body h3 { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
    /* Verbose translations (de, el, fr) need tighter nav links */
    .nav-links { gap: 0; }
    .nav-links a { padding: 9px 10px; font-size: 0.9rem; }
}
@media (max-width: 1150px) {
    /* Collapse to the mobile menu before verbose-language navs overflow */
    .nav-links { display: none; }
    .nav-login { display: none; }
    .order-nav .nav-login { display: inline-block; }
    .nav-toggle { display: grid; }
}
@media (max-width: 1020px) {
    .nav-links { display: none; }
    .nav-login { display: none; }
    .order-nav .nav-login { display: inline-block; }
    .nav-toggle { display: grid; }
    .hero .container { grid-template-columns: 1fr; }
    .pipeline { max-width: 560px; }
    .outcomes-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
    .demo-grid { grid-template-columns: 1fr; }
    .mode-panel { grid-template-columns: 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .how-aside { position: static; }
    .tab-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .setup-wrap { grid-template-columns: 1fr; }
    .setup-card { position: static; }
    .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-card.is-featured { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --nav-h: 62px; }
    .site-nav .container { gap: 12px; }
    /* Phone top bar: brand + hamburger only — the mobile menu carries the
       language switcher and CTA. The order page has no menu, so it keeps
       its language select and drops the back-link text instead. */
    #siteNav .nav-actions .btn,
    #siteNav .nav-actions .lang-select { display: none; }
    /* Full-width mobile CTAs may wrap gracefully; pills elsewhere stay one line */
    .hero-ctas .btn, .btn-pay, .setup-card .btn { width: 100%; white-space: normal; }
    .price-grid { grid-template-columns: 1fr; }
    .tab-panel { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .review-card.is-featured { grid-column: auto; }
    .review-card.is-featured blockquote { font-size: 1.1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .mode-switch { width: 100%; }
    .mode-switch button { flex: 1; padding-inline: 10px; font-size: 0.9rem; }
    .step-row { grid-template-columns: 44px 1fr; gap: 14px; }
    .step-num i { width: 38px; height: 38px; font-size: 0.9rem; }
    .step-num::after { top: 44px; }
    .trust-strip .container { flex-direction: column; }
}

@media (max-width: 560px) {
    /* Order page: brand + language select only; the brand links home. */
    .order-nav .nav-login { display: none; }
}
