/* ============================================================
   ITERATIUM — design system
   Elemental blueprint for the field.
   ============================================================ */

:root {
    --ink: #0E1B14;          /* deep forest near-black */
    --ink-2: #102A1F;        /* raised ink panel */
    --forest: #16352A;       /* panel green */
    --paper: #F4F6F0;        /* cool paper, faint sage */
    --paper-2: #ECEFE6;      /* sunken paper */
    --white: #FFFFFF;
    --lime: #A3E635;         /* electric chartreuse — energy / iteration */
    --lime-dim: #8BC926;
    --copper: #C9743B;       /* elemental warm accent */
    --copper-dim: #A85C2A;
    --moss: #5B7355;         /* muted green text */
    --line: rgba(14, 27, 20, 0.12);
    --line-strong: rgba(14, 27, 20, 0.22);
    --line-dark: rgba(244, 246, 240, 0.14);

    --shadow-sm: 0 1px 2px rgba(14, 27, 20, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(14, 27, 20, 0.22);
    --shadow-lg: 0 30px 70px -28px rgba(14, 27, 20, 0.4);

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "Hanken Grotesk", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --maxw: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--lime); color: var(--ink); }

/* Visible focus only for things people actually operate — not headings that
   get programmatic focus via FocusOnNavigate (they carry tabindex="-1"). */
:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- layout shell ---------- */
.site { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--copper);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--copper);
}
.section--ink .eyebrow, .section--forest .eyebrow { color: var(--lime); }
.section--ink .eyebrow::before, .section--forest .eyebrow::before { background: var(--lime); }

/* ---------- type scale ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}
.h-xl { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; font-weight: 700; }
.h-md { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--moss); max-width: 46ch; }
.section--ink .lede, .section--forest .lede { color: rgba(244, 246, 240, 0.78); }
.muted { color: var(--moss); }
.section--ink .muted, .section--forest .muted { color: rgba(244, 246, 240, 0.66); }
.mono { font-family: var(--font-mono); }
.accent-copper { color: var(--copper); }
.accent-lime { color: var(--lime-dim); }
.section--ink .accent-lime, .section--forest .accent-lime { color: var(--lime); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--lime); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--lime-dim); box-shadow: 0 8px 24px -8px rgba(139, 201, 38, 0.7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(14, 27, 20, 0.04); }
.section--ink .btn--ghost, .section--forest .btn--ghost { color: var(--paper); border-color: var(--line-dark); }
.section--ink .btn--ghost:hover, .section--forest .btn--ghost:hover { border-color: var(--lime); background: rgba(163, 230, 53, 0.08); }
.btn--copper { background: var(--copper); color: var(--paper); }
.btn--copper:hover { background: var(--copper-dim); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }

/* ============================================================
   ELEMENT TILE — the signature device
   ============================================================ */
.el-tile {
    position: relative;
    display: inline-grid;
    grid-template-rows: auto 1fr auto;
    aspect-ratio: 1 / 1;
    width: 84px;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    border: 1.5px solid var(--line-strong);
    background: var(--white);
    color: var(--ink);
    text-align: left;
    overflow: hidden;
    line-height: 1;
    flex: none;
}
.el-tile .el-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.6;
    letter-spacing: 0.04em;
}
.el-tile .el-sym {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    align-self: center;
    letter-spacing: -0.04em;
}
.el-tile .el-name {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.el-tile.dark { background: var(--ink); color: var(--paper); border-color: var(--line-dark); }
.el-tile.lime { background: var(--lime); color: var(--ink); border-color: transparent; }
.el-tile.copper { background: var(--copper); color: var(--paper); border-color: transparent; }
.el-tile.forest { background: var(--forest); color: var(--paper); border-color: var(--line-dark); }

/* category tints — the suite color-coded by the lifecycle of a job */
.el-tile.cat-win   { background: #F4E3D5; border-color: rgba(201,116,59,0.28); }
.el-tile.cat-win   .el-num { color: #A85C2A; opacity: 0.85; }
.el-tile.cat-plan  { background: #E7F3CD; border-color: rgba(110,158,24,0.3); }
.el-tile.cat-plan  .el-num { color: #5F8F12; opacity: 0.9; }
.el-tile.cat-run   { background: #CDE4D4; border-color: rgba(46,107,82,0.34); }
.el-tile.cat-run   .el-num { color: #2E6B52; opacity: 0.9; }
.el-tile.cat-scale { background: var(--ink); color: var(--paper); border-color: var(--line-dark); }
.el-tile.cat-scale .el-num { color: var(--lime); opacity: 0.9; }

/* small / large tile variants */
.el-tile.sm { width: 60px; border-radius: 10px; }
.el-tile.sm .el-sym { font-size: 1.5rem; }
.el-tile.lg { width: 120px; }
.el-tile.lg .el-sym { font-size: 3rem; }

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 246, 240, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav__inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0.7rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.nav__mark.el-tile { width: 42px; border-radius: 9px; padding: 0.25rem 0.35rem; }
.nav__mark.el-tile .el-num { font-size: 0.5rem; }
.nav__mark.el-tile .el-sym { font-size: 1.15rem; }
.nav__mark.el-tile .el-name { display: none; }
.nav__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 0.4rem; margin-left: 1rem; }
.nav__link {
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: var(--ink);
    position: relative;
    transition: background 0.15s ease;
}
.nav__link:hover { background: rgba(14, 27, 20, 0.05); }
.nav__link.is-active { color: var(--forest); }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0.85rem; right: 0.85rem; bottom: 0.18rem;
    height: 2px;
    background: var(--copper);
    border-radius: 2px;
}
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.nav__toggle { display: none; }
.nav__mobile { display: none; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0 var(--gutter) 3rem;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 3rem;
}
.footer__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.footer .nav__mark.el-tile { width: 42px; }
.footer__tag { color: rgba(244, 246, 240, 0.66); max-width: 38ch; margin-top: 1.1rem; }
.footer__mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--lime); margin-top: 1rem; text-transform: uppercase; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(244, 246, 240, 0.5); margin-bottom: 1rem; font-weight: 500; }
.footer__col a { display: block; padding: 0.32rem 0; color: rgba(244, 246, 240, 0.82); font-size: 0.96rem; transition: color 0.15s ease; }
.footer__col a:hover { color: var(--lime); }
.footer__base {
    border-top: 1px solid var(--line-dark);
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 1.4rem var(--gutter);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(244, 246, 240, 0.55);
}
.footer__base .footer__mono { margin: 0; color: rgba(244, 246, 240, 0.4); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding-block: clamp(3.5rem, 9vw, 7.5rem);
}
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
    opacity: 0.5;
}
.hero__glow {
    position: absolute;
    top: -10%; right: -5%;
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.16), transparent 62%);
    pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { margin: 0.4rem 0 1.4rem; }
.hero__title .grow { color: var(--lime); }
.hero__lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: rgba(244, 246, 240, 0.8); max-width: 50ch; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__proof { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__proof .stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__proof .stat b { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--paper); line-height: 1; }
.hero__proof .stat span { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(244, 246, 240, 0.55); }

/* hero visual: the iteration atom of element tiles */
.hero__visual { display: flex; justify-content: center; }
.atom {
    position: relative;
    display: grid;
    place-items: center;
    width: min(360px, 80vw);
    aspect-ratio: 1;
}
.atom__ring { position: absolute; inset: 0; border: 1px solid var(--line-dark); border-radius: 50%; }
.atom__ring--2 { inset: 14%; border-color: rgba(163,230,53,0.18); }
.atom__ring--3 { inset: 28%; border-style: dashed; border-color: rgba(201,116,59,0.3); }
.atom__core { position: relative; z-index: 2; }
.atom__core .el-tile { width: 132px; box-shadow: var(--shadow-lg); }
.atom__core .el-tile .el-sym { font-size: 3.4rem; }
.atom__sat {
    position: absolute;
    --r: 0deg;
    transform: rotate(var(--r)) translateY(calc(-1 * min(170px, 38vw))) rotate(calc(-1 * var(--r)));
}
.atom__sat .el-tile { width: 56px; box-shadow: var(--shadow-md); }
.atom__sat .el-tile .el-sym { font-size: 1.3rem; }

@media (prefers-reduced-motion: no-preference) {
    .atom__spin { animation: spin 40s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .atom__spin .atom__sat .el-tile { animation: counter 40s linear infinite; }
    @keyframes counter { to { transform: rotate(-360deg); } }
}

/* ---------- periodic strip (the suite) ---------- */
.suite { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.suite .el-tile { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.suite .el-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* grouped suite — labeled periodic categories by job phase */
.suite-groups { display: flex; flex-direction: column; }
.suite-group {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.75rem;
    align-items: start;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}
.suite-group:first-child { border-top: none; padding-top: 0.4rem; }
.suite-group__name { font-size: 1.15rem; display: flex; align-items: center; gap: 0.55rem; }
.suite-group__dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.suite-group__tag { color: var(--moss); font-size: 0.88rem; margin-top: 0.45rem; max-width: 26ch; }
.suite-group__idx { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--moss); text-transform: uppercase; }
.cat-dot-win   { background: #C9743B; }
.cat-dot-plan  { background: #6E9E18; }
.cat-dot-run   { background: #2E6B52; }
.cat-dot-scale { background: var(--ink); }
@media (max-width: 760px) {
    .suite-group { grid-template-columns: 1fr; gap: 0.9rem; padding: 1.3rem 0; }
}

/* ---------- feature grid / cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.6rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.card p { color: var(--moss); font-size: 0.98rem; }
.section--ink .card { background: var(--ink-2); border-color: var(--line-dark); }
.section--ink .card h3 { color: var(--paper); }
.section--ink .card p { color: rgba(244, 246, 240, 0.68); }
.card__head { display: flex; align-items: center; gap: 0.9rem; }

/* ---------- split feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 6vw, 5.5rem); }
.split--reverse .split__media { order: -1; }
.split__media {
    background: var(--ink);
    border-radius: 20px;
    padding: 1.6rem;
    color: var(--paper);
    box-shadow: var(--shadow-md);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* mock UI panel used inside split media */
.panel { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; width: 100%; }
.panel__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-dark); }
.panel__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244,246,240,0.2); display: block; }
.panel__bar i:first-child { background: var(--copper); }
.panel__bar span { margin-left: auto; font-family: var(--font-mono); font-size: 0.66rem; color: rgba(244,246,240,0.5); letter-spacing: 0.08em; }
.panel__body { padding: 1rem; display: grid; gap: 0.6rem; }
.row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: 9px; background: rgba(244,246,240,0.04); font-size: 0.85rem; }
.row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.row .rmono { font-family: var(--font-mono); font-size: 0.74rem; color: rgba(244,246,240,0.6); margin-left: auto; }
.dot--lime { background: var(--lime); } .dot--copper { background: var(--copper); } .dot--moss { background: var(--moss); }

/* route mini-map */
.routemap { position: relative; height: 240px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-dark); overflow: hidden; width: 100%; }
.routemap svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; display: block; line-height: 1; letter-spacing: -0.03em; }
.stat-card .lbl { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--moss); margin-top: 0.5rem; }
.section--ink .stat-card .lbl, .section--forest .stat-card .lbl { color: rgba(244,246,240,0.6); }
.stat-card b .accent { color: var(--lime-dim); }
.section--ink .stat-card b .accent, .section--forest .stat-card b .accent { color: var(--lime); }

/* ---------- pill / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--moss); }
.section--ink .pill, .section--forest .pill { border-color: var(--line-dark); color: rgba(244,246,240,0.7); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--lime); color: var(--ink); border-radius: 24px; padding: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.cta-band__mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
}
.price--feature { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; box-shadow: var(--shadow-lg); }
.price__tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); }
.price--feature .price__tag { color: var(--lime); }
.price__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin: 0.3rem 0 0.6rem; }
.price__amt { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price__amt small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--moss); letter-spacing: 0; }
.price--feature .price__amt small { color: rgba(244,246,240,0.6); }
.price__desc { color: var(--moss); margin: 0.8rem 0 1.3rem; font-size: 0.95rem; }
.price--feature .price__desc { color: rgba(244,246,240,0.7); }
.price__list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.7rem; }
.price__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.94rem; --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"); }
.price__list li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 5px; background: var(--lime); -webkit-mask: var(--check) center / 12px no-repeat; mask: var(--check) center / 12px no-repeat; }
.price__badge { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 0.3rem 0.6rem; border-radius: 999px; }
.price .btn { margin-top: auto; }

/* ---------- process timeline (a genuine sequence) ---------- */
.timeline { display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-bottom: 2.4rem; position: relative; }
.tl-step:last-child { padding-bottom: 0; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-node { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; background: var(--ink); color: var(--lime); flex: none; }
.tl-line { width: 1px; flex: 1; background: var(--line-strong); margin-top: 0.4rem; }
.tl-step:last-child .tl-line { display: none; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tl-body p { color: var(--moss); }

/* ---------- forms ---------- */
.form-card { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
/* The form card is always light, even inside an ink section — keep its text dark. */
.section--ink .form-card .muted, .form-card .muted { color: var(--moss); }
.form-card label { color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field .req { color: var(--copper); }
.field input, .field select, .field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(22, 53, 42, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.success {
    background: var(--forest);
    color: var(--paper);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

/* generic helpers */
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.maxw-prose { max-width: 62ch; }
.flow > * + * { margin-top: 1.1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { order: -1; margin-bottom: 1rem; }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
    .nav__links, .nav__cta { display: none; }
    .nav__actions { margin-left: auto; }
    .nav__toggle {
        display: inline-flex; flex-direction: column; gap: 5px;
        background: none; border: none; cursor: pointer; padding: 0.5rem;
    }
    .nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
    .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav__mobile { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.5rem var(--gutter) 1.2rem; border-top: 1px solid var(--line); }
    .nav__mlink { padding: 0.7rem 0.2rem; font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .nav__mobile .btn { margin-top: 0.7rem; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .hero__proof { gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
