/* ==========================================================================
   We Do Development — warm organic system

   Colour carries the page instead of decorating it: baked clay, ochre and
   sage on a cream base, with whole sections filled edge to edge. Shapes are
   soft and slightly irregular. Sections sit close together so the page feels
   generous rather than empty.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Instrument+Sans:ital,wght@0,400..700;1,400..600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
    /* ── warm ground ──────────────────────────────────────────────────── */
    --cream: #fdf6ec;
    --cream-deep: #f7e8d5;
    --sand: #f0d9bd;

    /* ── clay (primary) ───────────────────────────────────────────────── */
    --clay-100: #fde8dc;
    --clay-200: #f9cbb0;
    --clay-300: #f2a97f;
    --clay-400: #e8834f;
    --clay-500: #b4491d; /* the workhorse — dark enough for cream text (4.9:1) */
    --clay-600: #9a3c17;
    --clay-700: #8d3715;
    --clay-800: #632711;
    --clay-bright: #d4622e; /* decorative only: shapes, dots, never text bg */

    /* ── ochre (secondary warm) ───────────────────────────────────────── */
    --ochre-200: #fbe3ab;
    --ochre-400: #f0b73f;
    --ochre-500: #dd9c1c;
    --ochre-700: #9c6a0e;

    /* ── sage (cool counterweight) ────────────────────────────────────── */
    --sage-100: #eef2e4;
    --sage-200: #dbe4c8;
    --sage-400: #a8bd85;
    --sage-500: #86a05f;
    --sage-600: #4d5f33; /* darkened so cream text clears 4.5:1 */
    --sage-700: #3d4c28;

    /* ── warm neutrals ────────────────────────────────────────────────── */
    --bark-900: #2a1f18; /* deep warm brown, near-black */
    --bark-800: #3d2e23;
    --bark-700: #574438;
    --bark-500: #6f5c4d; /* meets 4.5:1 on cream and on sand */
    --bark-300: #bfae9e;

    --text: var(--bark-900);
    --text-soft: var(--bark-700);
    --text-faint: var(--bark-500);
    --rule: color-mix(in srgb, var(--bark-900) 14%, transparent);

    /* ── type ─────────────────────────────────────────────────────────── */
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --body: "Instrument Sans", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    /* ── scale & rhythm ───────────────────────────────────────────────── */
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --rhythm: clamp(
        3rem,
        5.5vw,
        5.25rem
    ); /* deliberately tighter than before */

    --step--1: clamp(0.8rem, 0.77rem + 0.14vw, 0.88rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
    --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.28rem + 1.1vw, 2.25rem);
    --step-3: clamp(1.95rem, 1.5rem + 2.2vw, 3.2rem);
    --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 5.2rem);

    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 30px;
    --r-xl: 44px;
    --r-pill: 999px;
    /* irregular radii — the organic tell */
    --r-blob: 62% 38% 46% 54% / 54% 48% 52% 46%;

    --shadow-sm: 0 2px 8px color-mix(in srgb, var(--bark-900) 8%, transparent);
    --shadow-md: 0 8px 24px color-mix(in srgb, var(--bark-900) 12%, transparent);
    --shadow-lg: 0 20px 50px
        color-mix(in srgb, var(--bark-900) 16%, transparent);
}

/* ── base ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0;
    text-wrap: balance;
}
h1 {
    font-size: var(--step-4);
    font-weight: 700;
    letter-spacing: -0.042em;
}
h2 {
    font-size: var(--step-3);
    font-weight: 650;
    letter-spacing: -0.035em;
}
h3 {
    font-size: var(--step-1);
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--clay-700);
    text-underline-offset: 0.2em;
}
a:hover {
    color: var(--clay-800);
}
img {
    display: block;
    max-width: 100%;
}
:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid var(--clay-500);
    outline-offset: 3px;
    border-radius: 4px;
}
::selection {
    background: var(--clay-200);
    color: var(--bark-900);
}

/* ── layout ─────────────────────────────────────────────────────────── */
.container {
    width: min(75rem, 100% - 2 * var(--gutter));
    margin-inline: auto;
}
.section {
    padding-block: var(--rhythm);
}
.section--tight {
    padding-block: calc(var(--rhythm) * 0.6);
}
.lead {
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--text-soft);
    max-width: 40ch;
}
.muted {
    color: var(--text-faint);
}

/* ── coloured bands ─────────────────────────────────────────────────── */
/* Full-bleed fills — the main device for keeping the page warm and full. */
.band {
    position: relative;
}
.band--cream {
    background: var(--cream-deep);
}
.band--sand {
    background: var(--sand);
}
.band--clay {
    background: var(--clay-500);
    color: var(--cream);
}
.band--sage {
    background: var(--sage-600);
    color: var(--cream);
}
.band--bark {
    background: var(--bark-900);
    color: var(--cream);
}

.band--clay h2,
.band--sage h2,
.band--bark h2,
.band--clay h3,
.band--sage h3,
.band--bark h3 {
    color: var(--cream);
}
.band--clay .lead,
.band--sage .lead {
    color: color-mix(in srgb, var(--cream) 88%, transparent);
}
.band--bark .lead {
    color: var(--bark-300);
}

/* soft curved transitions between bands */
.band--curved {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    margin-top: calc(-1 * var(--r-sm));
}
.band--curved-both {
    border-radius: var(--r-xl);
}

/* organic blobs floating behind content */
.band__blob {
    position: absolute;
    border-radius: var(--r-blob);
    pointer-events: none;
    opacity: 0.5;
    animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
    to {
        transform: translate(14px, -18px) rotate(8deg) scale(1.06);
    }
}

/* ── eyebrow ────────────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clay-700);
    background: var(--clay-100);
    padding: 0.45em 1em;
    border-radius: var(--r-pill);
    margin-bottom: 1.25rem;
}
.eyebrow--sage {
    color: var(--sage-700);
    background: var(--sage-200);
}
.band--clay .eyebrow,
.band--sage .eyebrow,
.band--bark .eyebrow {
    color: var(--cream);
    background: color-mix(in srgb, #ffffff 18%, transparent);
}

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    font-family: var(--body);
    font-weight: 600;
    font-size: var(--step-0);
    padding: 0.95em 1.9em;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--clay-500);
    color: var(--cream);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: var(--clay-600);
    color: var(--cream);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    border-color: color-mix(in srgb, var(--bark-900) 22%, transparent);
    color: var(--text);
}
.btn--ghost:hover {
    border-color: var(--clay-500);
    color: var(--clay-700);
    background: var(--clay-100);
}

.btn--oncolor {
    background: var(--cream);
    color: var(--clay-700);
}
.btn--oncolor:hover {
    background: #fff;
    color: var(--clay-800);
}

/* WhatsApp green — kept at brand hue but dark enough for cream text */
.btn--whatsapp {
    background: #1d7a4c;
    color: var(--cream);
    justify-self: start;
    margin-top: 0.35rem;
}
.btn--whatsapp:hover {
    background: #15613b;
    color: var(--cream);
}

.btn__arrow {
    transition: transform 0.2s ease;
}
.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ── header ─────────────────────────────────────────────────────────── */
.nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
    padding-block: 1.35rem;
}
.nav-brand {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
}
.nav-brand__logo {
    display: block;
    height: 32px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: clamp(1rem, 2.2vw, 1.9rem);
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-weight: 600;
    font-size: var(--step-0);
    text-decoration: none;
    color: var(--text-soft);
    padding: 0.4em 0.1em;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 3px;
    border-radius: var(--r-pill);
    background: var(--clay-400);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.nav-links a:hover {
    color: var(--text);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-links a[aria-current="page"] {
    color: var(--clay-700);
}

/* slightly smaller than a body button so it sits inside the nav bar */
.nav-cta {
    padding: 0.6em 1.35em;
    font-size: var(--step--1);
}

.lang {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: var(--cream-deep);
    border-radius: var(--r-pill);
}
.lang a {
    font-size: var(--step--1);
    font-weight: 700;
    text-decoration: none;
    padding: 0.35em 0.85em;
    border-radius: var(--r-pill);
    color: var(--text-faint);
}
.lang a:hover {
    background: var(--clay-100);
    color: var(--clay-700);
}
.lang a.is-active {
    background: var(--clay-500);
    color: var(--cream);
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero__title {
    max-width: 14ch;
    margin-bottom: 1.35rem;
}

/* rotating word — warm clay, slight tilt for personality */
.rotator {
    display: block;
    position: relative;
    overflow: hidden;
    height: 1.05em;
    color: var(--clay-500);
}
.rotator__word {
    position: absolute;
    inset: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(105%);
}
.rotator__word.is-active {
    opacity: 1;
    transform: translateY(0);
}
.rotator--ready .rotator__word {
    transition:
        transform 0.58s cubic-bezier(0.34, 1.42, 0.64, 1),
        opacity 0.3s ease;
}
.rotator--ready .rotator__word.is-leaving {
    opacity: 0;
    transform: translateY(-105%);
    transition:
        transform 0.4s cubic-bezier(0.5, 0, 0.75, 0),
        opacity 0.24s ease;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.9rem;
}

/* hero art — stacked organic shapes with the code card on top */
.hero__art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 22rem;
}
.hero__shape {
    position: absolute;
    border-radius: var(--r-blob);
    animation: drift 16s ease-in-out infinite alternate;
}
/* decorative only — no text sits on these, so the brighter tints are fine */
.hero__shape--1 {
    width: 68%;
    aspect-ratio: 1;
    background: var(--ochre-200);
    top: 2%;
    right: 6%;
}
.hero__shape--2 {
    width: 52%;
    aspect-ratio: 1;
    background: var(--sage-200);
    bottom: 4%;
    left: 2%;
    animation-delay: -6s;
}
.hero__shape--3 {
    width: 34%;
    aspect-ratio: 1;
    background: var(--clay-200);
    top: 38%;
    right: 44%;
    animation-delay: -11s;
}

.codecard {
    position: relative;
    z-index: 1;
    width: min(100%, 25rem);
    background: var(--bark-900);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-1.5deg);
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.8;
}
.codecard__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    background: color-mix(in srgb, #ffffff 6%, var(--bark-900));
}
.codecard__dot {
    width: 9px;
    height: 9px;
    border-radius: var(--r-pill);
    background: var(--bark-700);
}
.codecard__dot:nth-child(1) {
    background: var(--clay-bright);
}
.codecard__dot:nth-child(2) {
    background: var(--ochre-400);
}
.codecard__dot:nth-child(3) {
    background: var(--sage-400);
}
.codecard__file {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--bark-500);
}
.codecard__code {
    margin: 0;
    padding: 1.1rem 1.2rem 1.5rem;
    color: var(--bark-300);
    overflow-x: auto;
}
.tok-c {
    color: var(--bark-500);
}
.tok-k {
    color: var(--clay-300);
}
.tok-f {
    color: var(--sage-400);
}
.tok-t {
    color: var(--ochre-400);
}
.tok-s {
    color: var(--sage-400);
}
.tok-v {
    color: var(--bark-300);
}
.tok-b {
    color: var(--clay-300);
}

/* ── stats ──────────────────────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
}
.stat {
    background: var(--cream);
    border-radius: var(--r-lg);
    padding: clamp(1.35rem, 2.5vw, 1.9rem);
    border: 2px solid transparent;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.35, 0.64, 1),
        border-color 0.25s ease;
}
.stat:hover {
    transform: translateY(-3px);
    border-color: var(--clay-200);
}
.stat__value {
    font-family: var(--display);
    font-size: var(--step-3);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--clay-600);
}
.stat:nth-child(2) .stat__value {
    color: var(--sage-600);
}
.stat:nth-child(3) .stat__value {
    color: #8a5c0c;
} /* ochre deep enough on cream */
.stat__label {
    margin-top: 0.4rem;
    font-size: var(--step--1);
    color: var(--text-faint);
    font-weight: 500;
}

/* ── cards ──────────────────────────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.2vw, 1.6rem);
}
.card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--cream);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 2.8vw, 2.1rem);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.28s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card__mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--r-blob);
    background: var(--clay-500);
    color: var(--cream);
    margin-bottom: 0.35rem;
    transition: border-radius 0.4s ease;
}
.card:hover .card__mark {
    border-radius: 46% 54% 58% 42% / 42% 56% 44% 58%;
}
.card:nth-child(2) .card__mark {
    background: var(--sage-600);
}
.card:nth-child(3) .card__mark {
    background: #8a5c0c;
}
.card__mark svg {
    width: 1.45rem;
    height: 1.45rem;
}
.card__title {
    font-family: var(--display);
    font-size: var(--step-1);
    font-weight: 650;
}
.card__body {
    margin: 0;
    font-size: var(--step-0);
    color: var(--text-soft);
}

/* ── steps ──────────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2.2vw, 1.75rem);
}
.step {
    position: relative;
}
.step__num {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.8rem;
    border-radius: var(--r-blob);
    background: color-mix(in srgb, #ffffff 22%, transparent);
    font-family: var(--mono);
    font-size: var(--step--1);
    font-weight: 500;
}
.step__title {
    font-family: var(--display);
    font-size: var(--step-1);
    font-weight: 650;
    margin-bottom: 0.35rem;
}
.step__body {
    margin: 0;
    font-size: var(--step-0);
    opacity: 0.88;
}

/* ── split ──────────────────────────────────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}
.ticks {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.ticks li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: var(--step-0);
}
.ticks li::before {
    content: "";
    flex: none;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.1rem;
    border-radius: var(--r-blob);
    background: var(--clay-300);
}
.ticks li:nth-child(2)::before {
    background: var(--sage-400);
}
.ticks li:nth-child(3)::before {
    background: var(--ochre-400);
}

/* ── deploy panel ───────────────────────────────────────────────────── */
.deploy {
    background: var(--bark-900);
    color: var(--bark-300);
    border-radius: var(--r-lg);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    font-family: var(--mono);
    font-size: var(--step--1);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 0.9rem;
}
.deploy__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
}
.deploy__pulse {
    width: 8px;
    height: 8px;
    border-radius: var(--r-pill);
    flex: none;
    background: var(--sage-400);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage-400) 70%, transparent);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    70% {
        box-shadow: 0 0 0 7px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}
.deploy__branch {
    color: var(--clay-300);
}
.deploy__status {
    margin-left: auto;
    color: var(--bark-500);
}
.deploy__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.deploy__list li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.deploy__list b {
    color: var(--cream);
    font-weight: 500;
}
.deploy__ok {
    color: var(--sage-400);
}
.deploy__meta {
    margin-left: auto;
    color: var(--bark-500);
    white-space: nowrap;
    font-size: 0.72rem;
}
.deploy__foot {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
    font-size: 0.72rem;
    color: var(--bark-500);
}
.deploy__foot b {
    color: var(--sage-400);
    font-weight: 500;
}

/* ── chips ──────────────────────────────────────────────────────────── */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    font-size: var(--step--1);
    padding: 0.55em 1.15em;
    border-radius: var(--r-pill);
    background: var(--cream);
    color: var(--text-soft);
    transition:
        transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
        color 0.2s ease,
        background-color 0.2s ease;
}
/* On hover the chip picks up its tool's brand colour. --brand falls back to
   clay so an unmapped tool still behaves like the rest of the site. */
.chips li:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--brand, var(--clay-500)) 12%, var(--cream));
    color: var(--brand, var(--clay-700));
}
.chips__icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    /* icon carries the brand colour at rest; the label stays neutral */
    color: var(--brand, var(--text-faint));
    transition: color 0.2s ease;
}
/* an unmatched tool name renders an empty <svg>; collapse it so the gap doesn't show */
.chips__icon:empty {
    display: none;
}

/* Brand hues, darkened where needed so they clear 4.5:1 on cream. */
.chip--symfony    { --brand: #1a1a1a; }
.chip--react      { --brand: #0b7c8c; }  /* React cyan is too light at brand value */
.chip--shopify    { --brand: #4a7c22; }
.chip--typescript { --brand: #2563b0; }
.chip--vue        { --brand: #35735a; }
.chip--nuxt       { --brand: #00654a; }
.chip--laravel    { --brand: #c0341d; }
.chip--wordpress  { --brand: #1c6a91; }

/* ── faq ────────────────────────────────────────────────────────────── */
.faq {
    display: grid;
    gap: 0.7rem;
}
.faq details {
    background: var(--cream);
    border-radius: var(--r-md);
    padding: 1.1rem clamp(1.15rem, 2.2vw, 1.7rem);
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.faq summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: var(--step-1);
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: "+";
    margin-left: auto;
    flex: none;
    font-family: var(--mono);
    color: var(--clay-500);
    font-size: var(--step-1);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.faq details[open] summary::after {
    transform: rotate(135deg);
}
.faq details p {
    margin: 0.6rem 0 0;
    color: var(--text-soft);
    /* the panel spans the full grid, but the answer keeps a readable measure */
    max-width: 62ch;
}

/* ── banner ─────────────────────────────────────────────────────────── */
.banner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 4vw, 3.25rem);
    background: var(--clay-500);
    color: var(--cream);
}
.banner--sage {
    background: var(--sage-600);
}
.banner h2 {
    max-width: 18ch;
}
.banner p {
    margin: 0.5rem 0 0;
    max-width: 42ch;
    color: color-mix(in srgb, var(--cream) 88%, transparent);
}
.banner .btn {
    margin-left: auto;
}
.banner__blob {
    position: absolute;
    width: 22rem;
    aspect-ratio: 1;
    right: -6rem;
    top: -8rem;
    border-radius: var(--r-blob);
    background: color-mix(in srgb, #ffffff 12%, transparent);
    pointer-events: none;
    animation: drift 20s ease-in-out infinite alternate;
}
.banner > *:not(.banner__blob) {
    position: relative;
    z-index: 1;
}

/* ── plans ──────────────────────────────────────────────────────────── */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.2vw, 1.6rem);
    align-items: start;
}
.plan {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--cream);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 2.8vw, 2.1rem);
    border: 2px solid transparent;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.25s ease;
}
.plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.plan--featured {
    background: var(--clay-500);
    color: var(--cream);
    box-shadow: var(--shadow-md);
}
.plan__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.plan__name {
    font-family: var(--display);
    font-size: var(--step-1);
    font-weight: 650;
}
.plan__badge {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--cream);
    color: var(--clay-700);
    padding: 0.3em 0.8em;
    border-radius: var(--r-pill);
}
.plan__price {
    font-family: var(--display);
    font-size: var(--step-3);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}
.plan__note {
    margin: 0;
    font-size: var(--step--1);
    color: var(--text-faint);
}
.plan--featured .plan__note {
    color: var(--clay-100);
}
.plan__features {
    list-style: none;
    margin: 0.5rem 0 auto;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    font-size: var(--step-0);
}
.plan__features li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.plan__features li::before {
    content: "✓";
    color: var(--sage-600);
    flex: none;
    font-weight: 700;
}
/* sage on clay fails contrast — use the cream the rest of the card already uses */
.plan--featured .plan__features li::before {
    color: var(--cream);
    opacity: 0.9;
}
.plan .btn {
    margin-top: 1.25rem;
    width: 100%;
}

/* ── table ──────────────────────────────────────────────────────────── */
.table-wrap {
    background: var(--cream);
    border-radius: var(--r-lg);
    overflow: hidden;
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step-0);
}
.table th {
    text-align: left;
    font-family: var(--mono);
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 1rem clamp(1rem, 2vw, 1.6rem);
    border-bottom: 2px solid var(--rule);
    white-space: nowrap;
}
.table td {
    padding: 0.95rem clamp(1rem, 2vw, 1.6rem);
    border-bottom: 1px solid var(--rule);
    color: var(--text-soft);
}
.table td:first-child {
    color: var(--text);
    font-weight: 500;
}
.table tbody tr:last-child td {
    border-bottom: 0;
}

/* ── forms ──────────────────────────────────────────────────────────── */
.form {
    display: grid;
    gap: 1.1rem;
    max-width: 40rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.field {
    display: grid;
    gap: 0.35rem;
}
.field label {
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--text-soft);
}
.input {
    width: 100%;
    font: inherit;
    font-size: var(--step-0);
    padding: 0.8em 1.1em;
    color: var(--text);
    caret-color: var(--clay-500);
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: var(--r-md);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}
.input::placeholder {
    color: var(--bark-300);
}
.input:hover {
    border-color: var(--clay-200);
}
.input:focus-visible {
    outline: none;
    border-color: var(--clay-500);
}
textarea.input {
    min-height: 8rem;
    resize: vertical;
}
.form-error {
    font-size: var(--step--1);
    color: var(--clay-700);
    font-weight: 500;
}
.form-error ul {
    margin: 0;
    padding-left: 1.1rem;
}
.flash {
    padding: 1rem 1.4rem;
    margin-bottom: 1.75rem;
    border-radius: var(--r-md);
    background: var(--sage-200);
    color: var(--sage-700);
    font-weight: 500;
}

/* ── contact aside ──────────────────────────────────────────────────── */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}
.info {
    background: var(--cream);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 2.8vw, 2rem);
    display: grid;
    gap: 0.9rem;
}
.info--sage {
    background: var(--sage-200);
}
.info__title {
    font-family: var(--display);
    font-size: var(--step-1);
    font-weight: 650;
}
.info__lines {
    line-height: 1.9;
}
.info__big {
    font-size: var(--step-1);
    font-weight: 600;
}
/* ── socials ────────────────────────────────────────────────────────── */
.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
}
.socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: var(--r-pill);
    background: var(--clay-100);
    color: var(--clay-700);
    transition:
        background-color 0.2s ease,
        transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.socials a:hover {
    background: var(--clay-200);
    color: var(--clay-800);
    transform: translateY(-2px);
}
.socials__icon {
    width: 1em;
    height: 1em;
    flex: none;
}
/* Icon-only pills (X) need even padding on all sides, not the narrower inline
   padding a labelled pill uses — otherwise the mark sits in a cramped oval. */
.socials a:has(.visually-hidden) {
    padding: 0.6em;
    width: 2.4em;
    height: 2.4em;
    justify-content: center;
    gap: 0;
}
.socials a:has(.visually-hidden) .socials__icon {
    width: 0.95em;
    height: 0.95em;
}

/* keeps the label for screen readers while hiding it visually */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* icon-only variant for the footer */
.socials--plain a {
    background: none;
    padding: 0.45em;
    color: var(--text-faint);
}
.socials--plain a:hover {
    background: var(--clay-100);
    color: var(--clay-700);
}
.socials--plain .socials__icon {
    width: 1.15rem;
    height: 1.15rem;
}

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    padding-block: 1.75rem 2.5rem;
    font-size: var(--step--1);
    color: var(--text-faint);
}
.site-footer__brand {
    display: inline-flex;
}
.site-footer__logo {
    height: 24px;
    width: auto;
}
.site-footer__right {
    margin-left: auto;
    display: inline-flex;
}
.site-footer__copy {
    width: 100%;
    padding-top: 0.5rem;
}
@media (min-width: 60rem) {
    .site-footer__copy {
        width: auto;
        padding-top: 0;
    }
}

/* ── scroll reveal ──────────────────────────────────────────────────── */
.reveal-armed [data-reveal] {
    opacity: 0;
    transform: translateY(1rem);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.reveal-armed [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}
.reveal-armed [data-reveal][style*="--i"] {
    transition-delay: calc(var(--i) * 70ms);
}

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 60rem) {
    .hero,
    .split,
    .contact {
        grid-template-columns: 1fr;
    }
    .grid-3,
    .plans {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .codecard {
        transform: none;
    }
    .hero__art {
        min-height: 18rem;
    }
    .banner .btn {
        margin-left: 0;
    }
}
@media (max-width: 40rem) {
    .stats,
    .steps {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .nav {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }
    .nav-brand {
        margin-right: 0;
        width: 100%;
    }
    .hero__title {
        max-width: none;
    }
}

/* ── reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .rotator {
        height: auto;
    }
    .rotator__word {
        position: static;
        white-space: normal;
    }
    .rotator__word:not(.is-active) {
        display: none;
    }
}
