/* SoftAware Commerce — one stylesheet, no build step.
   Order: fonts, tokens, base, layout, buttons, header, heroes, sections,
   components, insights, forms, footer, motion. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --ink-950: #0a0920;
    --ink-900: #100f2c;
    --ink-800: #1a1940;
    --ink-700: #2a2957;
    --ink-600: #45446c;
    --ink-500: #5d5c7e;
    --ink-400: #85849f;
    --ink-300: #b4b3c6;
    --paper: #fbfaf7;
    --tint: #f3f1ea;
    --tint-2: #ebe8de;
    --white: #ffffff;
    --line: #e4e1d7;
    --line-strong: #cfcbbd;
    --teal-300: #6fdccd;
    --teal-400: #34c9b5;
    --teal-500: #17b3a0;
    --teal-600: #0e9585;
    --teal-700: #0a7468;
    --teal-50: #e6f7f4;
    --magento: #ee6a2c;
    --magento-soft: #fdeee5;
    --shopify: #5c9a3c;
    --shopify-soft: #ecf5e5;
    --danger: #b3261e;

    --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
    --step-2: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
    --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
    --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem);
    --step-5: clamp(2.5rem, 1.7rem + 3.9vw, 4.6rem);

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 9vw, 8rem);
    --radius-s: 10px;
    --radius: 16px;
    --radius-l: 24px;
    --shadow-s: 0 1px 2px rgba(16, 15, 44, 0.05), 0 2px 8px rgba(16, 15, 44, 0.04);
    --shadow: 0 2px 4px rgba(16, 15, 44, 0.04), 0 12px 32px -8px rgba(16, 15, 44, 0.12);
    --shadow-l: 0 4px 8px rgba(16, 15, 44, 0.04), 0 32px 64px -16px rgba(16, 15, 44, 0.22);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --header-h: 72px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-800);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink-900);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: var(--tint);
}

/* The serif accent inside headings. */
h1 em, h2 em, .footer-cta__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.01em;
    color: var(--teal-700);
}

:focus-visible {
    outline: 2px solid var(--teal-600);
    outline-offset: 3px;
    border-radius: 4px;
}
::selection { background: var(--teal-300); color: var(--ink-950); }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-s);
    background: var(--ink-900);
    color: var(--white);
    text-decoration: none;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}
.container--narrow { --container: 760px; }
.container--mid { --container: 980px; }

.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink-900); color: var(--ink-300); }
.section--flush-top { padding-top: 0; }
.section--light + .section--light:not(.section-cta) { padding-top: 0; }
.page-hero + .section--light { padding-top: clamp(1rem, 3vw, 2.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--step-3); }
.section-lead {
    margin: 1.1rem 0 0;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-500);
}
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
.section-head-row .section-head { margin-bottom: 0; }

.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark h2 em { color: var(--teal-300); }
.section--dark .section-lead { color: var(--ink-300); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--teal-700);
}
.eyebrow::before {
    content: "";
    width: 1.4rem;
    height: 1px;
    background: currentColor;
}
.eyebrow a { text-decoration: none; }
.eyebrow--on-dark, .section--dark .eyebrow { color: var(--teal-300); }
.eyebrow--pill {
    padding: 0.4rem 0.85rem 0.4rem 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-700);
}
.eyebrow--pill::before { content: none; }
.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(23, 179, 160, 0.18);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 550;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--small { padding: 0.7rem 1.05rem; font-size: 0.9rem; }
.btn--primary { background: var(--ink-900); color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 20px -8px rgba(16, 15, 44, 0.5); }
.btn--primary:hover { background: var(--teal-700); transform: translateY(-1px); }
.btn--dark { background: var(--ink-900); color: var(--white); }
.btn--dark:hover { background: var(--ink-700); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink-900); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-900); background: var(--white); }
.btn--light { background: var(--white); color: var(--ink-900); }
.btn--light:hover { background: var(--teal-300); }
.section--dark .btn--ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--white); }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 250, 247, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink-900);
    text-decoration: none;
    flex-shrink: 0;
}
.logo__text {
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1;
}
.logo__text span { font-weight: 400; color: var(--ink-500); }
.logo-mark { color: var(--ink-900); transition: transform 0.6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo--on-dark, .logo--on-dark .logo-mark { color: var(--white); }
.logo--on-dark .logo__text span { color: var(--ink-300); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink-600);
    text-decoration: none;
    transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav__link:hover, .nav__link.is-current { color: var(--ink-900); }
.nav__link.is-current { background: rgba(16, 15, 44, 0.06); }
.nav__item--has-panel .nav__link { padding-right: 0.2rem; }
.nav__toggle {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 2rem;
    margin-right: 0.3rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-400);
    cursor: pointer;
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__item--has-panel:hover .nav__toggle,
.nav__toggle[aria-expanded="true"] { color: var(--ink-900); transform: rotate(180deg); }

.nav__panel {
    position: absolute;
    top: 100%;
    left: -1rem;
    width: 38rem;
    padding-top: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav__item--has-panel:hover .nav__panel,
.nav__item--has-panel:focus-within .nav__panel,
.nav__item.is-open .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.nav__panel-inner {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 0.5rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    box-shadow: var(--shadow-l);
}
.nav__panel-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.2rem;
    border-radius: var(--radius);
    background: var(--ink-900);
    background-image: radial-gradient(120% 90% at 100% 0%, rgba(23, 179, 160, 0.45), transparent 60%);
    color: var(--ink-300);
    text-decoration: none;
}
.nav__panel-title { display: flex; align-items: center; gap: 0.4rem; color: var(--white); font-weight: 600; }
.nav__panel-text { font-size: 0.85rem; line-height: 1.45; }
.nav__sublink {
    display: flex;
    gap: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-s);
    text-decoration: none;
    transition: background-color 0.15s var(--ease);
}
.nav__sublink:hover { background: var(--tint); }
.nav__subicon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9px;
    background: var(--teal-50);
    color: var(--teal-700);
}
.nav__sublabel { display: block; font-size: 0.93rem; font-weight: 600; color: var(--ink-900); line-height: 1.3; }
.nav__subtext { display: block; font-size: 0.82rem; color: var(--ink-500); line-height: 1.4; }
.nav__cta { display: none; }

.menu-button {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}
.menu-button__bars { position: relative; display: block; width: 1.35rem; height: 0.6rem; margin: auto; }
.menu-button__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--ink-900);
    transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-button__bars span:first-child { top: 0; }
.menu-button__bars span:last-child { top: 100%; }
.menu-button[aria-expanded="true"] .menu-button__bars span:first-child { top: 50%; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars span:last-child { top: 50%; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .nav__link { padding-inline: 0.6rem; font-size: 0.9rem; }
    .site-header__inner { gap: 0.75rem; }
}

@media (max-width: 960px) {
    .menu-button { display: block; }
    .site-header__cta { margin-left: auto; }
    /* Absolute, not fixed: the header's backdrop-filter makes it the
       containing block, so a fixed drawer would be clipped to the header. */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        margin: 0;
        padding: 1rem var(--gutter) 2rem;
        background: var(--paper);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .nav__link, .nav__item--has-panel .nav__link { flex: 1; padding: 1.05rem 0; border-radius: 0; font-size: 1.15rem; color: var(--ink-900); }
    .nav__link.is-current { background: none; color: var(--teal-700); }
    .nav__toggle { width: 3rem; height: 3rem; margin: 0; }
    .nav__panel {
        position: static;
        width: 100%;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .nav__item.is-open .nav__panel { display: block; }
    .nav__item--has-panel:hover .nav__toggle { transform: none; }
    .nav__item.is-open .nav__toggle { transform: rotate(180deg); }
    .nav__panel-inner { display: block; padding: 0 0 0.75rem; border: 0; box-shadow: none; background: none; }
    .nav__panel-intro { display: none; }
    .nav__sublink { padding-inline: 0; }
    .nav__cta { display: inline-flex; margin-top: 1.5rem; width: 100%; padding-block: 1rem; font-size: 1rem; }
    body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
    .site-header__cta { display: none; }
    .menu-button { margin-left: auto; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 1.75rem; font-size: 0.85rem; color: var(--ink-500); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--ink-300); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink-900); text-decoration: underline; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.home-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(48rem 30rem at 85% 8%, rgba(23, 179, 160, 0.16), transparent 62%),
        radial-gradient(40rem 26rem at 8% 0%, rgba(238, 106, 44, 0.07), transparent 60%),
        linear-gradient(to right, rgba(16, 15, 44, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(to bottom, rgba(16, 15, 44, 0.045) 1px, transparent 1px) 0 0 / 72px 72px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
    pointer-events: none;
}
.home-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.home-hero__title { font-size: var(--step-5); letter-spacing: -0.035em; line-height: 1.02; }
.home-hero__lead {
    max-width: 34rem;
    margin: 1.6rem 0 0;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-600);
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.home-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    margin-top: 2.2rem;
    font-size: 0.92rem;
    color: var(--ink-600);
}
.home-hero__points li { display: flex; align-items: center; gap: 0.45rem; }
.home-hero__points .icon { color: var(--teal-600); }

.home-hero__visual { position: relative; padding: 2rem 1.5rem 3rem 0.5rem; }
.mock {
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    box-shadow: var(--shadow-l);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    transform-origin: left center;
}
.mock__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.mock__bar span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--tint-2); }
.mock__bar i {
    margin-left: 0.8rem;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    background: var(--tint);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-style: normal;
    color: var(--ink-400);
}
.mock__body { padding: 1.1rem; }
.mock__nav { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.mock__nav b { width: 1.6rem; height: 1.6rem; border-radius: 8px; background: var(--ink-900); }
.mock__nav span { width: 2.6rem; height: 0.45rem; border-radius: 4px; background: var(--tint-2); }
.mock__nav em { margin-left: auto; width: 4.2rem; height: 1.5rem; border-radius: 999px; background: var(--tint); }
.mock__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
}
.mock__hero .l { display: block; height: 0.65rem; border-radius: 5px; background: rgba(255, 255, 255, 0.85); }
.mock__hero .l--1 { width: 85%; }
.mock__hero .l--2 { width: 55%; margin-top: 0.5rem; background: rgba(255, 255, 255, 0.4); }
.mock__btn { display: block; width: 4.6rem; height: 1.5rem; margin-top: 1rem; border-radius: 999px; background: var(--teal-400); }
.mock__art {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 30%, rgba(111, 220, 205, 0.9), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(238, 106, 44, 0.75), transparent 55%),
        var(--ink-600);
}
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.9rem; }
.mock__card { padding: 0.55rem; border: 1px solid var(--line); border-radius: 12px; }
.mock__card i { display: block; aspect-ratio: 1; border-radius: 8px; margin-bottom: 0.55rem; }
.mock__card .c1 { background: linear-gradient(140deg, #f6e9d8, #eecfae); }
.mock__card .c2 { background: linear-gradient(140deg, #dcefe9, #b5ddd2); }
.mock__card .c3 { background: linear-gradient(140deg, #e3e2f3, #c2c0e6); }
.mock__card span { display: block; height: 0.42rem; border-radius: 4px; background: var(--tint-2); }
.mock__card span.s { width: 45%; margin-top: 0.35rem; background: var(--ink-300); }

.float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    font-size: 0.8rem;
    line-height: 1.25;
    color: var(--ink-600);
    backdrop-filter: blur(8px);
    animation: float 9s ease-in-out infinite;
}
.float b { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink-900); }
.float small { font-size: 0.74rem; color: var(--ink-500); }
.float__icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; }
.float__icon--magento { background: var(--magento-soft); color: var(--magento); }
.float__icon--shopify { background: var(--shopify-soft); color: var(--shopify); }
.float--a { top: -0.6rem; left: -1.6rem; }
.float--b { right: 0; top: 30%; animation-delay: -3s; }
.float--c { left: -0.5rem; bottom: 0.5rem; flex-direction: column; align-items: flex-start; gap: 0.4rem; animation-delay: -5s; }
.float--d { right: 1.2rem; bottom: 0; flex-direction: column; align-items: flex-start; gap: 0.3rem; animation-delay: -7s; }
.float__row { display: flex; align-items: center; gap: 0.5rem; }
.float__row .ok { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--teal-500); }
.vitals { display: flex; gap: 0.25rem; }
.vitals i { width: 1.6rem; height: 0.35rem; border-radius: 3px; background: var(--teal-500); }
.float--d b { color: var(--teal-700); }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.capabilities {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}
.capabilities li {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--ink-600);
}

@media (max-width: 960px) {
    .home-hero__grid { grid-template-columns: 1fr; }
    .home-hero__visual { max-width: 34rem; padding: 1.5rem 0.5rem 2.5rem; }
    .mock { transform: none; }
    .float--a { left: 0; }
}
@media (max-width: 520px) {
    .float--b, .float--c { display: none; }
    .home-hero__visual { padding: 1.5rem 0 2rem; }
    .float--a { top: -0.2rem; }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.page-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(44rem 26rem at 90% 0%, var(--glow, rgba(23, 179, 160, 0.16)), transparent 62%),
        linear-gradient(to right, rgba(16, 15, 44, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(to bottom, rgba(16, 15, 44, 0.04) 1px, transparent 1px) 0 0 / 72px 72px;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
    pointer-events: none;
}
.page-hero--magento { --glow: rgba(238, 106, 44, 0.13); }
.page-hero--shopify { --glow: rgba(92, 154, 60, 0.15); }
.page-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.page-hero--solo .page-hero__grid { grid-template-columns: minmax(0, 52rem); }
.page-hero__title { font-size: var(--step-4); letter-spacing: -0.032em; line-height: 1.05; }
.page-hero__lead {
    max-width: 40rem;
    margin: 1.5rem 0 0;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-600);
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.page-hero__actions:empty { display: none; }
.page-hero--plain { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero--center { text-align: center; padding-bottom: var(--section); }
.page-hero--center .eyebrow::before { content: none; }
.page-hero--center .page-hero__lead { margin-inline: auto; }

.glance {
    padding: 1.6rem 1.6rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.glance__title {
    margin: 0 0 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-500);
}
.glance__list li {
    display: flex;
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--ink-800);
}
.glance__list .icon { flex: none; margin-top: 0.15rem; color: var(--teal-600); }
.page-hero--magento .glance__list .icon { color: var(--magento); }
.page-hero--shopify .glance__list .icon { color: var(--shopify); }

@media (max-width: 900px) {
    .page-hero__grid { grid-template-columns: 1fr; align-items: start; }
}

.topic-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.chip {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-700);
    text-decoration: none;
    transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
a.chip:hover { border-color: var(--ink-900); }
.chip.is-current { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.chip--static { background: var(--white); border-color: var(--line); font-family: var(--font-mono); font-size: 0.78rem; }

.link-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 2rem 0 2.5rem; }
.link-list a { font-weight: 550; color: var(--teal-700); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1rem; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards > li { display: flex; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    text-decoration: none;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.section--tint .card { border-color: transparent; box-shadow: var(--shadow-s); }
.card--link:hover { border-color: var(--ink-900); box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: var(--teal-50);
    color: var(--teal-700);
}
.card__tag {
    align-self: flex-start;
    margin-bottom: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--tint);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-600);
}
.card__title { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
.card__text { margin: 0.7rem 0 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink-500); }
.card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-900);
}
.card__more .icon { transition: transform 0.25s var(--ease); }
.card--link:hover .card__more .icon { transform: translateX(4px); }
@media (max-width: 1020px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }

/* ---------- Platforms (home) ---------- */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.platform {
    --accent: var(--magento);
    --accent-soft: var(--magento-soft);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    overflow: hidden;
}
.platform::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 12rem;
    background: radial-gradient(60% 100% at 100% 0%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}
.platform > * { position: relative; }
.platform--shopify { --accent: var(--shopify); --accent-soft: var(--shopify-soft); }
.platform__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.platform__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
}
.platform__kicker { margin: 0 0 0.2rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-500); }
.platform__name { font-size: var(--step-2); }
.platform__text { color: var(--ink-600); }
.platform__label { margin: 0.8rem 0 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-900); }
.platform__fit li { display: flex; gap: 0.6rem; padding: 0.3rem 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-700); }
.platform__fit .icon { flex: none; margin-top: 0.25rem; color: var(--accent); }
.platform__links { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.6rem 0 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.platform__links a {
    display: block;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-700);
    text-decoration: none;
    transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.platform__links a:hover { border-color: var(--ink-900); color: var(--ink-900); }
.platform .btn { align-self: flex-start; margin-top: auto; }
.platforms__footnote {
    max-width: 44rem;
    margin: 2.2rem auto 0;
    text-align: center;
    color: var(--ink-500);
}
.platforms__footnote a { color: var(--ink-900); font-weight: 550; }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- Principles (dark) ---------- */
.section-principles { overflow: hidden; }
.section-principles::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50rem 30rem at 100% 0%, rgba(23, 179, 160, 0.22), transparent 60%),
        radial-gradient(36rem 24rem at 0% 100%, rgba(238, 106, 44, 0.1), transparent 60%);
    pointer-events: none;
}
.principles { position: relative; }
.principles__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.principles__list li {
    padding: 2.2rem 2.5rem 2.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.principles__list li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.14); }
.principles__list li:nth-child(even) { padding-left: 2.5rem; padding-right: 0; }
.principles__n { display: block; margin-bottom: 1.2rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-300); }
.principles__list h3 { font-size: var(--step-2); line-height: 1.2; }
.principles__list p { margin: 0.8rem 0 0; color: var(--ink-300); }
@media (max-width: 760px) {
    .principles__list { grid-template-columns: 1fr; }
    .principles__list li, .principles__list li:nth-child(even) { padding: 1.8rem 0; border-right: 0; }
    .principles__list li:nth-child(odd) { border-right: 0; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.steps:has(> :nth-child(5)), .steps:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
}
.section--tint .step { border-color: transparent; box-shadow: var(--shadow-s); }
.step__number {
    display: block;
    margin-bottom: 2.2rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--teal-600);
}
.step__body { display: flex; flex-direction: column; flex: 1; }
.step__meta { margin: 0 0 0.4rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.step__title { font-size: 1.2rem; line-height: 1.25; }
.step__text { margin: 0.7rem 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-500); }
.step__outputs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 1.3rem; }
.step__outputs li {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--teal-50);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--teal-700);
}
@media (max-width: 1020px) { .steps, .steps:has(> :nth-child(5)), .steps:has(> :nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .steps, .steps:has(> :nth-child(5)), .steps:has(> :nth-child(7)), .steps:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; }
    .step__number { margin-bottom: 1.2rem; }
}

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.section-split--flip .split__copy { order: 2; }
.split__copy { position: sticky; top: calc(var(--header-h) + 2rem); }
.split__copy .section-title { margin-bottom: 1.5rem; }
.split__copy p { color: var(--ink-600); }
.split__copy .btn { margin-top: 1rem; }
.split__list li {
    display: flex;
    gap: 1.25rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line-strong);
}
.split__list li:last-child { border-bottom: 1px solid var(--line-strong); }
.split__marker {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--teal-700);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.split__list h3 { font-size: 1.15rem; line-height: 1.3; }
.split__list p { margin: 0.45rem 0 0; font-size: 0.97rem; color: var(--ink-500); }
.section--dark .split__copy p, .section--dark .split__list p { color: var(--ink-300); }
.section--dark .split__list li { border-color: rgba(255, 255, 255, 0.16); }
.section--dark .split__marker { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: var(--teal-300); }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split__copy { position: static; }
    .section-split--flip .split__copy { order: 0; }
}

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 1rem; }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checklist__group {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
}
.section--tint .checklist__group { border-color: transparent; box-shadow: var(--shadow-s); }
.checklist__group h3 {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-600);
}
.checklist__group li { display: flex; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.97rem; line-height: 1.5; }
.checklist__group .icon { flex: none; margin-top: 0.2rem; color: var(--teal-600); }
@media (max-width: 900px) { .checklist--3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .checklist--2 { grid-template-columns: 1fr; } }

/* ---------- Table ---------- */
.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    overflow-x: auto;
}
.section--tint .table-wrap { border-color: transparent; box-shadow: var(--shadow-s); }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.96rem; line-height: 1.5; }
.compare th, .compare td { padding: 1.05rem 1.4rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
    background: var(--ink-900);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.compare thead td { background: var(--ink-900); }
.compare tbody th { width: 22%; font-weight: 600; color: var(--ink-900); background: var(--paper); }
.compare tbody td { color: var(--ink-600); }
.compare tbody tr:hover td { background: #fdfcf9; }
.table-note { max-width: 48rem; margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--ink-500); }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; font-size: 1.06rem; line-height: 1.75; color: var(--ink-700); }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin-bottom: 0; }
.prose h2 { margin-top: 2.4em; font-size: var(--step-2); line-height: 1.2; }
.prose h3 { margin-top: 2em; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.8em; }
.prose a { color: var(--teal-700); font-weight: 500; }
.prose a:hover { color: var(--ink-900); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5rem; }
.prose ul > li::before { content: ""; position: absolute; left: 0.2rem; top: 0.75em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--teal-500); }
.prose ol { list-style: decimal; }
.prose ol > li { padding-left: 0.3rem; }
.prose ol > li::marker { font-family: var(--font-mono); font-size: 0.85em; color: var(--teal-700); }
.prose li + li { margin-top: 0.5em; }
.prose li > ul, .prose li > ol { margin-top: 0.5em; }
.prose blockquote {
    margin-inline: 0;
    padding: 0.4rem 0 0.4rem 1.5rem;
    border-left: 2px solid var(--teal-500);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--ink-900);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.75rem 0.9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--tint); font-weight: 600; color: var(--ink-900); }
.prose pre { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--ink-900); color: #e8e7f4; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose img { border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.section-prose .section-title { margin-bottom: 1.5rem; }
.prose-layout--aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.note {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    padding: 1.6rem;
    border-radius: var(--radius-l);
    background: var(--ink-900);
    color: var(--ink-300);
}
.note h3 { margin-bottom: 1rem; color: var(--white); font-size: 1.1rem; }
.note li { position: relative; padding: 0.55rem 0 0.55rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.93rem; line-height: 1.5; }
.note li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--teal-400); }
.note a { color: var(--white); }
@media (max-width: 860px) {
    .prose-layout--aside { grid-template-columns: 1fr; }
    .note { position: static; }
}

/* ---------- Stack ---------- */
.stack { margin: 0; border-top: 1px solid var(--line-strong); }
.stack__group { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-strong); }
.stack dt { font-weight: 600; color: var(--ink-900); }
.stack dd { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
@media (max-width: 620px) { .stack__group { grid-template-columns: 1fr; gap: 0.8rem; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq__item { border-top: 1px solid var(--line-strong); }
.faq__item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.12rem; font-weight: 550; line-height: 1.4; letter-spacing: -0.015em; text-wrap: pretty; }
.faq__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink-700);
    transition: transform 0.25s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.faq__item summary:hover .faq__icon { border-color: var(--ink-900); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.faq__answer { padding: 0 3.5rem 1.5rem 0; color: var(--ink-600); }
.faq__answer p { margin: 0; }
.faq__answer a { color: var(--teal-700); font-weight: 500; }
@media (max-width: 860px) {
    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout .section-head { position: static; }
    .faq__answer { padding-right: 0; }
}

/* ---------- Related ---------- */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related a {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.section--tint .related a { border-color: transparent; box-shadow: var(--shadow-s); }
.related a:hover { border-color: var(--ink-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.related__icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); }
.related__text { flex: 1; }
.related__text strong { display: block; color: var(--ink-900); line-height: 1.3; }
.related__text span { display: block; margin-top: 0.3rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-500); }
.related__arrow { flex: none; color: var(--ink-400); transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.related a:hover .related__arrow { color: var(--ink-900); transform: translate(2px, -2px); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius-l);
    background: var(--teal-50);
    border: 1px solid rgba(23, 179, 160, 0.25);
}
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { max-width: 36rem; margin: 0.6rem 0 0; color: var(--ink-600); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Insights ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    overflow: hidden;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.post-card:hover { border-color: var(--ink-900); box-shadow: var(--shadow); transform: translateY(-3px); }
.section--tint .post-card { border-color: transparent; box-shadow: var(--shadow-s); }
.post-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    background: var(--ink-900);
}
.post-card__media::before, .post-card__media::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.post-card__media::before { width: 70%; aspect-ratio: 1; right: -18%; top: -45%; background: radial-gradient(circle, var(--c1), transparent 68%); }
.post-card__media::after { width: 60%; aspect-ratio: 1; left: -15%; bottom: -55%; background: radial-gradient(circle, var(--c2), transparent 68%); }
.post-card__media--magento { --c1: rgba(238, 106, 44, 0.85); --c2: rgba(23, 179, 160, 0.5); }
.post-card__media--shopify { --c1: rgba(122, 181, 92, 0.85); --c2: rgba(23, 179, 160, 0.55); }
.post-card__media--strategy { --c1: rgba(23, 179, 160, 0.85); --c2: rgba(120, 116, 220, 0.6); }
.post-card__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.post-card__glyph {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 0.8rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); }
.post-card__meta span:first-child { color: var(--teal-700); }
.post-card__title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card__excerpt { margin: 0.7rem 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-500); }
.post-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin: auto 0 0; padding-top: 1.3rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-900); }
.post-card__more .icon { transition: transform 0.25s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(4px); }
.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__media { flex: 1 1 52%; aspect-ratio: auto; min-height: 20rem; }
.post-card--featured .post-card__body { flex: 1 1 48%; justify-content: center; padding: clamp(1.75rem, 4vw, 3rem); }
.post-card--featured .post-card__title { font-size: var(--step-3); line-height: 1.12; }
.post-card--featured .post-card__excerpt { font-size: 1.05rem; }
.post-card--featured .post-card__more { margin-top: 0; }
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-card--featured { flex-direction: column; }
    .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
}
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; justify-content: center; gap: 0.4rem; }
.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--ink-900); }
.empty-state { padding: 3rem 0; color: var(--ink-500); }

/* ---------- Article & document ---------- */
.article__head, .doc__head { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.article__title, .doc__title { font-size: var(--step-4); letter-spacing: -0.032em; line-height: 1.06; }
.article__lead { margin: 1.5rem 0 0; font-size: var(--step-1); line-height: 1.55; color: var(--ink-600); }
.article__meta, .doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin: 2rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-500);
}
.article__figure { margin-bottom: 3rem; }
.article__figure img { width: 100%; border-radius: var(--radius-l); }
.prose--article { max-width: none; }
.article .prose, .doc .prose { padding-bottom: clamp(3rem, 6vw, 5rem); }
.article__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--section);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: var(--radius-l);
    background: var(--tint);
}
.article__cta h2 { font-size: 1.35rem; }
.article__cta p { max-width: 28rem; margin: 0.5rem 0 0; font-size: 0.97rem; color: var(--ink-600); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact__form-wrap {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--white);
    box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { margin: 0 0 1.15rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-900); }
.field label span { margin-left: 0.3rem; font-weight: 400; color: var(--ink-400); }
.field input, .field select, .field textarea {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--paper);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235d5c7e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal-600);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(23, 179, 160, 0.16);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { display: block; min-height: 0; margin-top: 0.35rem; font-size: 0.84rem; color: var(--danger); }
.field__error:empty { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form__privacy { flex: 1 1 14rem; margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--ink-500); }
.form__privacy a { color: var(--ink-700); }
.form__status { margin-bottom: 1.25rem; padding: 0.95rem 1.1rem; border-radius: 12px; font-size: 0.96rem; line-height: 1.5; }
.form__status.is-success { background: var(--teal-50); color: var(--teal-700); border: 1px solid rgba(23, 179, 160, 0.3); }
.form__status.is-error { background: #fdecea; color: var(--danger); border: 1px solid rgba(179, 38, 30, 0.25); }
.form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }
.contact__aside { display: grid; gap: 1rem; }
.contact__card, .contact__next { padding: 1.6rem; border-radius: var(--radius-l); }
.contact__card { background: var(--ink-900); color: var(--ink-300); }
.contact__card h2 { margin-bottom: 0.8rem; color: var(--white); font-size: 1.15rem; }
.contact__card p { margin: 0.35rem 0 0; font-size: 0.95rem; }
.contact__card a { color: var(--ink-300); }
.contact__card a:hover { color: var(--white); }
.contact__mail { color: var(--teal-300) !important; font-size: 1.1rem; font-weight: 550; text-decoration: none; overflow-wrap: anywhere; }
.contact__next { border: 1px solid var(--line); background: var(--white); }
.contact__next h2 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.contact__next ol { counter-reset: next; }
.contact__next li { position: relative; padding: 0.9rem 0 0.9rem 2.4rem; border-top: 1px solid var(--line); counter-increment: next; }
.contact__next li:first-child { border-top: 0; }
.contact__next li::before {
    content: counter(next, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal-700);
}
.contact__next strong { display: block; color: var(--ink-900); line-height: 1.35; }
.contact__next span { display: block; margin-top: 0.2rem; font-size: 0.92rem; line-height: 1.5; color: var(--ink-500); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
    background: var(--ink-950);
    color: var(--ink-300);
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(56rem 30rem at 85% 0%, rgba(23, 179, 160, 0.2), transparent 60%);
    pointer-events: none;
}
.site-footer .container { position: relative; }
.footer-cta { padding-bottom: clamp(3rem, 6vw, 5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-cta__title { max-width: 18ch; color: var(--white); font-size: var(--step-4); letter-spacing: -0.032em; line-height: 1.05; }
.footer-cta__title em { color: var(--teal-300); display: block; }
.footer-cta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 2.2rem; }
.footer-cta__mail { color: var(--white); font-size: 1.05rem; text-decoration-color: rgba(255, 255, 255, 0.35); }
.footer-cta__mail:hover { text-decoration-color: var(--teal-300); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand__text { max-width: 24rem; margin: 1.3rem 0 1.5rem; font-size: 0.95rem; line-height: 1.6; }
.footer-contact li + li { margin-top: 0.5rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; text-decoration: none; }
.footer-contact a:hover, .footer-col a:hover, .footer-legal a:hover { color: var(--white); }
.footer-col__title { margin-bottom: 1.1rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }
.footer-col__title a { font-size: inherit; text-decoration: none; }
.footer-col li + li { margin-top: 0.6rem; }
.footer-col a { font-size: 0.95rem; text-decoration: none; }
.footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    color: var(--ink-400);
}
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 1.4rem; }
.footer-legal a { text-decoration: none; }
.footer-note { max-width: 56rem; margin: 1.2rem 0 0; font-size: 0.76rem; line-height: 1.6; color: var(--ink-500); }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@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; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .footer-cta, .article__cta, .page-hero__actions { display: none !important; }
    body { background: #fff; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
