/* Homepage. Sits on tokens.css. The real product makes the case: real screens in app windows,
   real step lists on one aligned rail, and plain hairline structure. */

/* ---------- Shared section scaffolding ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 { font-size: var(--t-h2); letter-spacing: -0.032em; line-height: 1.1; }
.section-head p { margin-top: var(--s-4); color: var(--c-ink-2); font-size: 1.0625rem; line-height: 1.65; max-width: 60ch; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); max-width: none; }
.section-head-row > div { max-width: 46rem; }
.section-head-row .link-arrow { flex: none; padding-bottom: 0.35rem; }
.section-head-center { text-align: center; margin-inline: auto; }
.section-head-center p { margin-inline: auto; }

.link-arrow svg { width: 0.95em; height: 0.95em; }

.tag {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 0.2rem 0.55rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 500; line-height: 1.2;
    background: var(--c-paper-2); color: var(--c-ink-2);
}
.pill {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 0.18rem 0.55rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 550; line-height: 1.25;
    background: var(--c-paper-2); color: var(--c-ink-2);
}
.pill-teal { background: var(--c-teal-50); color: var(--c-teal-700); box-shadow: inset 0 0 0 1px var(--c-teal-100); }
.pill-soft, .pill-flag { background: var(--c-yellow-soft); color: #6a520f; }

.ticks { display: grid; gap: 0.65rem; }
.ticks li { position: relative; padding-left: 1.65rem; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 0.28em; width: 1.05rem; height: 1.05rem;
    border-radius: 50%; background: var(--c-teal-50);
    box-shadow: inset 0 0 0 1px var(--c-teal-100);
}
.ticks li::after {
    content: ""; position: absolute; left: 0.3rem; top: calc(0.28em + 0.3rem); width: 0.45rem; height: 0.26rem;
    border-left: 1.6px solid var(--c-teal); border-bottom: 1.6px solid var(--c-teal);
    transform: rotate(-45deg);
}

/* ---------- App windows ---------- */
.window {
    position: relative; background: var(--c-white); overflow: hidden;
    border-radius: var(--r-3); box-shadow: 0 0 0 1px rgba(11, 31, 39, 0.08), var(--sh-window);
}
.window img, .window video { width: 100%; height: auto; }
.window-bar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    min-height: 2.6rem; padding: 0.45rem 1rem;
    background: var(--c-paper); border-bottom: 1px solid var(--c-rule);
    font-size: 0.8125rem; color: var(--c-ink-2);
}
.window-crumb { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; min-width: 0; }
.window-crumb svg { width: 0.85rem; height: 0.85rem; color: var(--c-ink-3); flex: none; }
.window-url { font-variant-numeric: tabular-nums; color: var(--c-ink-2); }
.window-caption { margin-top: 0.9rem; font-size: 0.875rem; line-height: 1.55; color: var(--c-ink-2); max-width: 60ch; }
.window-caption strong { color: var(--c-ink); font-weight: 600; }
.window-caption + .window { margin-top: var(--s-7); }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(3.5rem, 2rem + 4.5vw, 6rem) 0 clamp(4rem, 2.5rem + 5vw, 7rem);
    background: var(--c-dark); color: var(--c-on-ink);
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1;
    background: rgba(255, 255, 255, 0.08);
}
.hero-inner {
    display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: center;
}
.hero h1 {
    font-size: clamp(2.3rem, 1.3rem + 2.7vw, 3.65rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em;
    color: #fff; text-wrap: balance;
}
.hero h1 span { display: block; margin-top: 0.12em; color: var(--c-on-ink-2); }
.hero-lede { margin-top: var(--s-5); max-width: 36rem; font-size: 1.0625rem; line-height: 1.65; color: var(--c-on-ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-5); font-size: 0.9375rem; }
.hero-links a {
    display: inline-flex; align-items: center; gap: 0.5rem; color: var(--c-on-ink-2); text-decoration: none;
    transition: color var(--dur-1) var(--ease-out);
}
.hero-links a:hover { color: #fff; }
.hero-links svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* Stage: one app window cycling the four workspaces */
.stage { position: relative; }
/* A soft teal light behind the product window */
.stage::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: -12%; right: -12%; top: 4%; bottom: -6%;
    background: radial-gradient(closest-side, rgba(40, 103, 125, 0.55), rgba(40, 103, 125, 0.18) 55%, transparent);
    filter: blur(24px);
}
.stage-tabs {
    display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: var(--s-4);
    border-radius: 10px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs button {
    position: relative; overflow: hidden; flex: none;
    padding: 0.5rem 0.95rem; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
    font-size: 0.875rem; font-weight: 500; color: var(--c-on-ink-2); white-space: nowrap;
    transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.stage-tabs button:hover { color: #fff; }
.stage-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.stage-progress {
    position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.25rem; height: 2px; border-radius: 2px;
    background: var(--c-yellow); transform: scaleX(0); transform-origin: left center; opacity: 0;
}
.stage.is-auto [aria-selected="true"] .stage-progress { opacity: 0.9; animation: stage-progress 7.5s linear forwards; }
.stage.is-auto:hover [aria-selected="true"] .stage-progress,
.stage.is-auto:focus-within [aria-selected="true"] .stage-progress { animation-play-state: paused; }
@keyframes stage-progress { to { transform: scaleX(1); } }

.window-hero { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 50px 100px -30px rgba(0, 0, 0, 0.6); }

/* "In the loop": a band of light in the logo colors runs around the product window */
@property --loop-angle { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.loop-frame {
    --loop: conic-gradient(from var(--loop-angle),
        transparent 0deg, transparent 200deg, #5fa3ba 260deg, var(--c-yellow) 310deg, var(--c-orange) 345deg, transparent 360deg);
    position: relative; padding: 2px; border-radius: 14px;
    background: var(--loop), rgba(255, 255, 255, 0.1);
}
.loop-frame::before {
    content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 16px;
    background: var(--loop); filter: blur(16px); opacity: 0.75;
}
@media (prefers-reduced-motion: no-preference) {
    .loop-frame { animation: loop-angle 6s linear infinite; }
}
@keyframes loop-angle { to { --loop-angle: 360deg; } }
.window-hero .window-crumb { transition: opacity var(--dur-1) var(--ease-out); }
.stage-body { position: relative; aspect-ratio: 1600 / 1047; container-type: inline-size; background: var(--c-white); }
.stage-panel {
    position: absolute; inset: 0; opacity: 0; visibility: hidden; filter: blur(4px);
    transition: opacity 420ms var(--ease-out), filter 420ms var(--ease-out), visibility 0s linear 420ms;
}
.stage-panel.is-active { opacity: 1; visibility: visible; filter: none; transition-delay: 0s; }
.stage-panel > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.stage-caption { margin-top: var(--s-4); min-height: 3em; font-size: 0.875rem; line-height: 1.5; color: var(--c-on-ink-2); max-width: 46rem; }
.stage-more { display: inline-flex; align-items: center; gap: 0.15rem; margin-left: 0.25rem; color: #fff; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: border-color var(--dur-1) var(--ease-out); }
.stage-more:hover { border-bottom-color: #fff; }
.stage-more svg { width: 0.85rem; height: 0.85rem; transition: transform var(--dur-1) var(--ease-out); }
.stage-more:hover svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .stage-more svg { transition: none; } }

/* Illustrative app views, scaled with the window (container units) */
.mock-frame { position: relative; aspect-ratio: 1600 / 1047; container-type: inline-size; background: var(--c-white); }
.window-caption a { color: var(--c-teal-700); }
.mock {
    position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr;
    font-size: 1.62cqw; line-height: 1.45; color: var(--c-ink); background: var(--c-white);
}
.mock b { font-weight: 600; }
.mock-top {
    display: flex; align-items: center; gap: 1em; padding: 0.95em 1.6em;
    border-bottom: 1px solid var(--c-rule); white-space: nowrap; overflow: hidden;
}
.mock-top strong { font-size: 1.12em; font-weight: 600; }
.mock-top > span { color: var(--c-ink-2); }
.mock-tag {
    margin-left: auto; font-style: normal; font-size: 0.85em; font-weight: 500; color: var(--c-ink-2);
    padding: 0.2em 0.65em; border-radius: 999px; background: var(--c-paper-2);
}
.mock-main { display: grid; grid-template-columns: 14em minmax(0, 1fr); min-height: 0; }
.mock-rail { padding: 1.2em 0.9em; border-right: 1px solid var(--c-rule); display: grid; gap: 0.2em; align-content: start; }
.mock-rail li { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.65em; border-radius: 0.45em; color: var(--c-ink-2); white-space: nowrap; }
.mock-rail li b {
    display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%;
    font-size: 0.85em; font-weight: 600; color: var(--c-ink-2); font-variant-numeric: tabular-nums;
}
.mock-rail li.done::before {
    content: ""; flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; background: #e7f4ec
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%232f8a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.mock-rail li.done { color: var(--c-ink); }
.mock-rail li.on { background: var(--c-ink); color: #fff; font-weight: 600; }
.mock-rail li.on b { background: rgba(255, 255, 255, 0.16); color: #fff; }
.mock-rail-plain li.on { background: var(--c-teal-50); color: var(--c-teal-700); box-shadow: inset 0 0 0 1px var(--c-teal-100); }
.mock-body { padding: 1.5em 2em; overflow: hidden; }
.mh { font-size: 1.45em; font-weight: 600; letter-spacing: -0.02em; }
.ms { margin-top: 0.2em; color: var(--c-ink-2); }

.mock-card { margin-top: 1.2em; border-radius: 0.7em; box-shadow: 0 0 0 1px var(--c-rule), 0 0.3em 1em -0.4em rgba(11, 31, 39, 0.15); }
.mock-card-head { display: flex; align-items: center; gap: 0.7em; padding: 0.85em 1.1em; border-bottom: 1px solid var(--c-rule); font-weight: 550; }
.mock-ground { padding: 0.15em 0.55em; border-radius: 0.35em; background: var(--c-ink); color: #fff; font-size: 0.9em; font-weight: 600; }
.mock-status { margin-left: auto; padding: 0.2em 0.65em; border-radius: 999px; background: var(--c-yellow-soft); color: var(--c-yellow-ink, #6a520f); font-size: 0.85em; font-weight: 550; white-space: nowrap; }
.mock-points { padding: 0.5em 1.1em 0.2em 2.6em; list-style: decimal; }
.mock-points li { padding: 0.45em 0 0.45em 0.3em; }
.mock-points li::marker { color: var(--c-ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-points span { display: block; }
.mock-points em { display: block; margin-top: 0.15em; font-style: normal; font-size: 0.9em; color: var(--c-teal-700); }
.mock-likely { margin: 0.3em 1.1em 0; padding: 0.7em 0.9em; border-radius: 0.45em; background: var(--c-paper); color: var(--c-ink-2); }
.mock-likely b { color: var(--c-ink); }
.mock-actions { display: flex; gap: 0.5em; padding: 0.9em 1.1em 1em; }
.mock-btn { padding: 0.45em 0.95em; border-radius: 0.45em; font-weight: 550; box-shadow: inset 0 0 0 1px var(--c-rule-strong); }
.mock-btn-primary { background: var(--c-teal); color: #fff; box-shadow: none; }

.mock-chart { width: 100%; margin-top: 1.1em; border-collapse: collapse; }
.mock-chart th, .mock-chart td { padding: 0.75em 0.8em; border-bottom: 1px solid var(--c-rule); text-align: left; }
.mock-chart thead th { font-weight: 550; color: var(--c-ink-2); font-size: 0.92em; background: var(--c-paper); }
.mock-chart thead th:not(:first-child), .mock-chart td { text-align: center; width: 6.6em; }
.mock-chart tbody th { font-weight: 500; }
.mp { display: inline-block; padding: 0.15em 0.6em; border-radius: 999px; font-style: normal; font-size: 0.86em; font-weight: 550; }
.mp-yes { background: var(--c-teal-50); color: var(--c-teal-700); box-shadow: inset 0 0 0 1px var(--c-teal-100); }
.mp-part { background: var(--c-yellow-soft); color: #6a520f; }
.mp-no { background: var(--c-paper-2); color: var(--c-ink-2); }
.mock-verdict { margin-top: 1.1em; padding: 0.8em 1em; border-radius: 0.5em; background: var(--c-paper); color: var(--c-ink-2); }
.mock-verdict b { color: var(--c-ink); }

.mock-tabs { display: inline-flex; gap: 1.3em; }
.mock-tabs b { color: var(--c-teal-700); }
.mock-cal-wrap { padding: 1.1em 1.6em 1.4em; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.mock-cal-head { display: flex; align-items: center; gap: 1.2em; }
.mock-cal-head > b { font-size: 1.3em; letter-spacing: -0.02em; }
.mock-seg { display: inline-flex; padding: 0.15em; border-radius: 0.5em; background: var(--c-paper-2); }
.mock-seg span { padding: 0.25em 0.75em; border-radius: 0.4em; color: var(--c-ink-2); }
.mock-seg .on { background: #fff; color: var(--c-ink); font-weight: 550; box-shadow: 0 1px 2px rgba(11, 31, 39, 0.12); }
.mock-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45em; color: var(--c-ink-2); }
.mock-legend .ev { width: 1.6em; height: 0.75em; padding: 0; margin: 0 0 0 0.6em; }
.mock-cal {
    margin-top: 0.9em; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: auto;
    grid-template-rows: auto repeat(5, 1fr);
    border-top: 1px solid var(--c-rule); border-left: 1px solid var(--c-rule);
}
.mock-cal > span {
    display: flex; flex-direction: column; gap: 0.25em; min-height: 0; overflow: hidden;
    padding: 0.35em 0.45em; border-right: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule);
    font-size: 0.92em; font-variant-numeric: tabular-nums; color: var(--c-ink);
}
.mock-cal > .dow { padding: 0.4em 0.45em; font-size: 0.85em; font-weight: 550; color: var(--c-ink-2); background: var(--c-paper); }
.mock-cal > .out { color: var(--c-ink-3); background: #fbfcfc; }
.mock-cal > .today { font-weight: 700; color: var(--c-teal-700); box-shadow: inset 0 2px 0 var(--c-teal); }
.ev {
    display: block; padding: 0.2em 0.4em; border-radius: 0.3em; font-style: normal; font-size: 0.86em; font-weight: 550;
    line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-due { background: var(--c-teal); color: #fff; }
.ev-final { background: #fff; color: var(--c-teal-700); box-shadow: inset 0 0 0 1px var(--c-teal); }

/* The signature moment: a proposal, then acceptance (sits over the Drafting view) */
.proposal-card {
    position: absolute; z-index: 2; left: clamp(-3.5rem, -3.5vw, -1.5rem); bottom: 4.5rem;
    width: min(23.5rem, 58%);
    padding: 1rem 1.1rem; background: var(--c-white); color: var(--c-ink);
    border-radius: var(--r-3); box-shadow: 0 0 0 1px rgba(11, 31, 39, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.45);
    transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s;
}
.stage[data-active]:not([data-active="drafting"]) .proposal-card {
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
}
.proposal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.proposal-title { font-size: 0.8125rem; font-weight: 600; }
.proposal-claim { margin-top: 0.7rem; font-size: 0.9375rem; line-height: 1.6; }
.mark-del { color: var(--c-ink-2); text-decoration-color: var(--c-ink-3); }
.mark-ins {
    text-decoration: none; padding: 0.05rem 0.15rem; border-radius: 3px;
    background: var(--c-yellow-soft); box-shadow: inset 0 -2px 0 var(--c-yellow);
    transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.proposal-foot { display: grid; margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid var(--c-rule); }
.proposal-pending, .proposal-done { grid-area: 1 / 1; display: flex; align-items: center; gap: var(--s-3); min-height: 1.9rem; }
.proposal-pending { justify-content: space-between; }
.proposal-why { font-size: 0.8125rem; color: var(--c-ink-2); }
.proposal-buttons { display: inline-flex; gap: 0.4rem; }
.chip {
    display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; border-radius: var(--r-1);
    font-size: 0.8125rem; font-weight: 550; border: 1px solid var(--c-rule-strong); color: var(--c-ink);
    transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.chip-accept { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.proposal-done { font-size: 0.8125rem; font-weight: 550; color: var(--c-teal-700); opacity: 0; visibility: hidden; }
.proposal-done svg { width: 1.1rem; height: 1.1rem; flex: none; }
.proposal-pending, .proposal-done { transition: opacity var(--dur-2) var(--ease-out), visibility var(--dur-2); }
.mark-del { transition: opacity var(--dur-2) var(--ease-out); }

.proposal-card.is-preview .mark-ins { animation: ins-in 900ms var(--ease-out) 500ms both; }
.proposal-card.is-pressing .chip-accept { transform: scale(0.94); background: var(--c-teal-700); }
.proposal-card.is-accepted .mark-del { opacity: 0; }
.proposal-card.is-accepted.is-settled .mark-del { display: none; }
.proposal-card.is-accepted .mark-ins { background-color: transparent; box-shadow: inset 0 -1px 0 transparent; }
.proposal-card.is-accepted .proposal-pending { opacity: 0; visibility: hidden; }
.proposal-card.is-accepted .proposal-done { opacity: 1; visibility: visible; }
@keyframes ins-in {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* ---------- Proof ---------- */
.proof { padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 68rem; }
.proof-grid p { padding: 0.25rem clamp(1rem, 2.5vw, 2rem); font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); text-align: center; }
.proof-grid p + p { border-left: 1px solid var(--c-rule); }
.proof-grid strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Overview ---------- */
.overview { padding: var(--section-y) 0; border-top: 1px solid var(--c-rule); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--c-rule); border-radius: var(--r-3); overflow: hidden; background: var(--c-white); }
.tools li + li { border-left: 1px solid var(--c-rule); }
.tool {
    display: flex; flex-direction: column; height: 100%;
    padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-decoration: none; color: inherit;
    transition: background-color var(--dur-1) var(--ease-out);
}
.tool:hover { background: var(--c-paper); }
.tool-icon {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px;
    background: var(--c-teal-50); color: var(--c-teal); box-shadow: inset 0 0 0 1px var(--c-teal-100);
}
.tool-icon svg { width: 1.4rem; height: 1.4rem; }
.tool h3 { margin-top: var(--s-5); font-size: 1.125rem; letter-spacing: -0.015em; }
.tool-meta { margin-top: 0.3rem; font-size: 0.8125rem; font-weight: 500; color: var(--c-teal-700); }
.tool p:not(.tool-meta) { margin-top: var(--s-3); font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); }
.tool-link {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: var(--s-5);
    font-size: 0.875rem; font-weight: 550; color: var(--c-teal);
}
.tool-link svg { width: 0.9rem; height: 0.9rem; flex: none; transition: transform var(--dur-1) var(--ease-out); }
.tool:hover .tool-link svg { transform: translateX(3px); }

/* ---------- Workspace sections ---------- */
.ws { padding: var(--section-y) 0; border-top: 1px solid var(--c-rule); }
.ws-alt { background: var(--c-paper); }
.ws-head {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-6) var(--s-8);
    padding-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
    border-bottom: 1px solid var(--c-rule);
}
.ws-head h2 { font-size: var(--t-h2); letter-spacing: -0.032em; line-height: 1.1; }
.ws-lede { margin-top: var(--s-4); max-width: 64ch; font-size: 1.0625rem; line-height: 1.65; color: var(--c-ink-2); }
.ws-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.rows dd a { color: var(--c-teal-700); }
.ws-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: start; }
.ws-list h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-5); }
.ws-visual { position: sticky; top: calc(var(--header-h) + 2rem); }

/* Steps: one rail, centered on every marker */
.steps { display: grid; }
.step { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: var(--s-4); padding-bottom: var(--s-5); }
.step:last-child { padding-bottom: 0; }
.step::before {
    content: ""; position: absolute; left: calc(1rem - 0.5px); top: 2.375rem; bottom: 0.375rem;
    width: 1px; background: var(--c-rule-strong);
}
.step:last-child::before { display: none; }
.step-num {
    display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
    font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1;
    color: var(--c-teal-700); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-teal-100);
    transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.step.is-lit .step-num { background: var(--c-teal); color: #fff; box-shadow: inset 0 0 0 1px var(--c-teal); }
.step-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 2rem; }
.step-title strong { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.step-desc { margin-top: 0.2rem; font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); }
.step-watch {
    flex: none; display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.6rem 0.2rem 0.45rem; border-radius: 999px;
    font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums;
    color: var(--c-teal-700); text-decoration: none; box-shadow: inset 0 0 0 1px var(--c-teal-100);
    transition: background-color var(--dur-1) var(--ease-out);
}
.step-watch:hover { background: var(--c-teal-50); }
.step-watch svg { width: 0.8rem; height: 0.8rem; }

/* Definition rows */
.rows > div {
    display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--s-2) var(--s-5);
    padding: 1rem 0; border-top: 1px solid var(--c-rule);
}
.rows > div:last-child { border-bottom: 1px solid var(--c-rule); }
.rows dt { font-weight: 600; font-size: 0.9375rem; }
.rows dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); }
.rows-wide > div { grid-template-columns: 11rem minmax(0, 1fr); }
.rows dd p + .ticks { margin-top: var(--s-3); }

.views-label { margin-top: var(--s-6); font-size: 0.875rem; font-weight: 600; }
.views { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: var(--s-3); }
.views li {
    padding: 0.28rem 0.7rem; border-radius: 999px; font-size: 0.8125rem; color: var(--c-ink-2);
    background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-rule-strong);
}

/* Feature grid (open on desktop, collapsible on phones) */
.more { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.more > summary { display: none; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.features > div { padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--c-rule); }
.features dt { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; }
.features dd { margin: 0.45rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); }
.features code { font-size: 0.85em; padding: 0.05rem 0.3rem; border-radius: 4px; background: var(--c-paper-2); color: var(--c-ink); }

/* ForTech report */
.report {
    margin-top: var(--s-6); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
    background: var(--c-white); border-radius: var(--r-3);
    box-shadow: 0 0 0 1px var(--c-rule), var(--sh-1);
}
.report-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-4) var(--s-8); margin-bottom: var(--s-6); }
.report-head h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.report-head p { color: var(--c-ink-2); line-height: 1.65; }
.features-report > div:nth-last-child(-n+3) { padding-bottom: 0; }

/* Illustrative tables */
.table-scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.data thead th {
    text-align: left; font-weight: 550; font-size: 0.8125rem; color: var(--c-ink-2);
    padding: 0.7rem 1rem; border-bottom: 1px solid var(--c-rule); white-space: nowrap;
}
.data td, .data tbody th { padding: 0.95rem 1rem; border-bottom: 1px solid var(--c-rule); vertical-align: top; text-align: left; }
.data tbody tr:last-child td, .data tbody tr:last-child th { border-bottom: 0; }
.data tbody th { font-weight: 500; }
.ground { font-weight: 600; white-space: nowrap; }
.data .num { white-space: nowrap; }
.cell-strong { display: block; font-weight: 550; }
.cell-note { display: block; margin-top: 0.2rem; font-size: 0.8125rem; line-height: 1.45; color: var(--c-ink-2); }
.rejections td:first-child { width: 5.5rem; }

.featuremap { min-width: 32rem; }
.featuremap thead th:not(:first-child), .featuremap td { text-align: center; width: 3.25rem; }
.featuremap td { vertical-align: middle; }
.featuremap tbody th { white-space: nowrap; }
.featuremap tbody th .pill { margin-left: 0.4rem; }
.dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c-rule-strong); vertical-align: middle; }
.dot-yes { background: var(--c-teal); box-shadow: none; }
.open-work { background: #fffcf1; }

.docket td:nth-child(3), .docket td:nth-child(4) { white-space: nowrap; }
.date { font-weight: 550; }
.date-due { color: var(--c-ink); }
.date-final { color: var(--c-ink-2); font-weight: 450; }
.docket-entry-m { display: none; }

/* ---------- Platform ---------- */
.platform { padding: var(--section-y) 0; border-top: 1px solid var(--c-rule); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
.group-title { font-size: 1rem; font-weight: 600; margin-bottom: var(--s-4); }
.ticks-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.25rem; font-size: 0.875rem; }
.ticks-inline li::before { top: 0.18em; }
.ticks-inline li::after { top: calc(0.18em + 0.3rem); }

.tasks { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); background: var(--c-white); border-radius: var(--r-3); box-shadow: 0 0 0 1px var(--c-rule); }
.tasks > summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding: 1.1rem 1.5rem; cursor: pointer; list-style: none; font-weight: 550;
    border-radius: var(--r-3); transition: background-color var(--dur-1) var(--ease-out);
}
.tasks > summary::-webkit-details-marker { display: none; }
.tasks > summary:hover { background: var(--c-paper); }
.tasks > summary svg { width: 1.1rem; height: 1.1rem; color: var(--c-ink-2); transition: transform var(--dur-2) var(--ease-out); }
.tasks[open] > summary svg { transform: rotate(180deg); }
.tasks[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 1px solid var(--c-rule); }
.tasks-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--s-6) var(--s-7); padding: var(--s-6) 1.5rem var(--s-6); }
.task-group h4 { font-size: 0.875rem; font-weight: 600; color: var(--c-teal-700); margin-bottom: var(--s-3); }
.task-group dl > div + div { margin-top: 0.85rem; }
.task-group dt { font-size: 0.875rem; font-weight: 600; }
.task-group dd { margin: 0.15rem 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--c-ink-2); }

/* ---------- Custom solutions band ---------- */
.solutions-band { background: var(--c-dark); color: var(--c-on-ink); padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.solutions-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: center; }
.solutions-copy h2 { font-size: var(--t-h2); letter-spacing: -0.032em; line-height: 1.1; color: #fff; max-width: 16ch; }
.solutions-copy p { margin-top: var(--s-4); max-width: 34rem; line-height: 1.65; color: var(--c-on-ink-2); }
.solutions-copy .hero-actions { margin-top: var(--s-6); }
.solutions-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: var(--r-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); overflow: hidden;
}
.solutions-list li { padding: 1.5rem 1.6rem; }
.solutions-list li:nth-child(even) { box-shadow: -1px 0 0 rgba(255, 255, 255, 0.1); }
.solutions-list li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.solutions-list strong { display: block; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.solutions-list span { display: block; margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.55; color: var(--c-on-ink-2); }
@media (max-width: 900px) { .solutions-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
    .solutions-list { grid-template-columns: minmax(0, 1fr); }
    .solutions-list li:nth-child(even) { box-shadow: none; }
    .solutions-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ---------- Tutorials ---------- */
.tutorials-sec { padding: var(--section-y) 0; background: var(--c-paper); border-top: 1px solid var(--c-rule); }
.tutorials-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.film figcaption { margin-top: 0.9rem; font-size: 0.875rem; line-height: 1.55; color: var(--c-ink-2); }
.film figcaption strong { color: var(--c-ink); font-weight: 600; }
.film video { background: var(--c-dark); }
.chapters ol { border-top: 1px solid var(--c-rule); }
.chapters li a {
    display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: var(--s-3);
    padding: 0.62rem 0.5rem; border-bottom: 1px solid var(--c-rule); text-decoration: none; font-size: 0.9375rem;
    transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.chapters li a:hover { background: var(--c-white); color: var(--c-teal-700); }
.chap-num, .chap-time { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--c-ink-2); }
.chap-num { text-align: right; padding-right: 0.25rem; }
.chap-name { font-weight: 500; }
.chapters-foot { margin-top: var(--s-5); }

/* ---------- Learn ---------- */
.learn { padding: var(--section-y) 0; border-top: 1px solid var(--c-rule); }
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.learn-col h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: var(--s-3); }
.link-list { border-top: 1px solid var(--c-rule); }
.link-list li { border-bottom: 1px solid var(--c-rule); }
.link-list a {
    position: relative; display: block; padding: 0.85rem 1.75rem 0.85rem 0; text-decoration: none; font-size: 0.9375rem; line-height: 1.45;
    transition: color var(--dur-1) var(--ease-out);
}
.link-list a::after {
    content: ""; position: absolute; right: 0.35rem; top: 50%; width: 0.45rem; height: 0.45rem;
    border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg); color: var(--c-ink-3);
    transition: transform var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.link-list a:hover { color: var(--c-teal-700); }
.link-list a:hover::after { color: var(--c-teal); transform: translate(3px, -50%) rotate(45deg); }
.news-list time { display: block; margin-bottom: 0.15rem; font-size: 0.8125rem; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Pricing ---------- */
.pricing { padding: var(--section-y) 0; background: var(--c-paper); border-top: 1px solid var(--c-rule); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; max-width: 68rem; margin-inline: auto; }
.plan {
    display: flex; flex-direction: column; padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    background: var(--c-white); border-radius: var(--r-3); box-shadow: 0 0 0 1px var(--c-rule), var(--sh-1);
}
.plan h3 { display: flex; align-items: center; gap: var(--s-3); font-size: 1.0625rem; }
.plan-flag {
    padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 550; letter-spacing: 0;
    background: var(--c-teal-50); color: var(--c-teal-700); box-shadow: inset 0 0 0 1px var(--c-teal-100);
}
.price { display: flex; align-items: baseline; gap: 0.25rem; margin: var(--s-4) 0 var(--s-5); }
.price .amount { font-size: 2.75rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--c-ink-2); font-size: 0.9375rem; }
.plan .btn { width: 100%; }
.plan .ticks { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--c-rule); font-size: 0.9375rem; }
.trial-note { margin-top: auto; padding-top: var(--s-5); font-size: 0.875rem; }
.trial-note a { color: var(--c-teal-700); font-weight: 500; }
.plan-featured { box-shadow: 0 0 0 1.5px var(--c-teal), var(--sh-window); }

.credits {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6) clamp(1.5rem, 1rem + 2vw, 3rem);
    max-width: 68rem; margin: var(--s-6) auto 0; padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    background: var(--c-white); border-radius: var(--r-3); box-shadow: 0 0 0 1px var(--c-rule), var(--sh-1);
}
.credits-head h3 { font-size: 1.1875rem; }
.credits-head p { margin-top: var(--s-2); font-size: 0.9375rem; color: var(--c-ink-2); }
.credits-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin-top: var(--s-5) !important; }
.credits-rate .amount { font-size: 2rem; font-weight: 600; letter-spacing: -0.035em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.credits-rate span:last-child { font-size: 0.875rem; }
.ledger h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: var(--s-2); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 0.65rem 0; border-bottom: 1px solid var(--c-rule); vertical-align: top; }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 0; }
.ledger th { text-align: left; font-weight: 500; }
.ledger th span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--c-ink-2); }
.ledger td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: var(--s-4); }
.ledger td span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--c-teal-700); }
.ledger-featured th { color: var(--c-teal-700); }
.credits-note { grid-column: 1 / -1; padding-top: var(--s-4); border-top: 1px solid var(--c-rule); font-size: 0.8125rem; color: var(--c-ink-2); }

/* ---------- Trust ---------- */
.trust { padding: var(--section-y) 0; border-top: 1px solid var(--c-rule); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
.trust-intro h2 { font-size: var(--t-h2); letter-spacing: -0.032em; line-height: 1.1; }
.trust-intro p { margin-top: var(--s-4); color: var(--c-ink-2); line-height: 1.65; }
.trust-intro .trust-contact { margin-top: var(--s-5); font-size: 0.9375rem; }
.trust-contact a { color: var(--c-teal-700); font-weight: 500; }
.trust-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) clamp(1.5rem, 1rem + 2vw, 3rem); }
.trust-cols h3 { font-size: 1rem; font-weight: 600; padding-bottom: var(--s-3); margin-bottom: var(--s-4); border-bottom: 1px solid var(--c-rule); }
.trust-cols .ticks { font-size: 0.9375rem; line-height: 1.55; color: var(--c-ink-2); }
.trust-cols strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Close ---------- */
.close { background: var(--c-dark); color: var(--c-on-ink); }
.close-inner { padding: clamp(4.5rem, 3rem + 5vw, 7.5rem) 0; text-align: center; }
.close-inner img { width: 3.25rem; height: 3.25rem; margin: 0 auto var(--s-5); }
.close h2 { font-size: var(--t-h2); letter-spacing: -0.032em; line-height: 1.1; color: #fff; max-width: 20ch; margin-inline: auto; }
.close p { margin-top: var(--s-4); color: var(--c-on-ink-2); }
.close .hero-actions { margin-top: var(--s-6); justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tools li:nth-child(3) { border-left: 0; }
    .tools li:nth-child(n+3) { border-top: 1px solid var(--c-rule); }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features-report > div:nth-last-child(-n+3) { padding-bottom: var(--s-6); }
    .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .credits-head { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .ws-head { grid-template-columns: 1fr; align-items: start; }
    .ws-body, .tutorials-grid, .trust-grid, .platform-grid { grid-template-columns: minmax(0, 1fr); }
    .ws-visual { position: static; }
    .report-head { grid-template-columns: 1fr; }
    .plans { grid-template-columns: 1fr; max-width: 30rem; }
    .learn-grid { grid-template-columns: 1fr; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-copy { max-width: 40rem; }
    .proposal-card { left: auto; right: var(--s-4); bottom: -1.5rem; width: min(22rem, 80%); }
    .stage-caption { margin-top: var(--s-7); }
}
@media (max-width: 820px) {
    .more > summary {
        display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
        padding: 1rem 0; border-top: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule); font-weight: 600;
    }
    .more > summary::-webkit-details-marker { display: none; }
    .more > summary::after {
        content: ""; width: 0.5rem; height: 0.5rem; margin-right: 0.3rem;
        border-right: 1.5px solid var(--c-ink-2); border-bottom: 1.5px solid var(--c-ink-2);
        transform: translateY(-25%) rotate(45deg); transition: transform var(--dur-2) var(--ease-out);
    }
    .more[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
    .more[open] > summary { border-bottom: 0; }
    .features > div:first-child { border-top: 0; padding-top: var(--s-2); }
}
@media (max-width: 640px) {
    .hero-actions .btn { flex: 1 1 10rem; }
    .hero-links { flex-direction: column; }
    .stage-tabs { display: grid; grid-template-columns: repeat(4, auto); width: 100%; }
    .stage-tabs button { padding: 0.5rem 0.55rem; font-size: 0.8125rem; }
    .stage-progress { left: 0.55rem; right: 0.55rem; }
    .proposal-card { position: relative; right: auto; bottom: auto; width: auto; margin: -1.25rem var(--s-3) 0; }
    .stage-caption { margin-top: var(--s-4); }
    .window-url { display: none; }
    .window-bar { flex-wrap: wrap; row-gap: 0.3rem; }
    .window-crumb { white-space: nowrap; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-grid p { text-align: left; padding: var(--s-4) 0; }
    .proof-grid p + p { border-left: 0; border-top: 1px solid var(--c-rule); }
    .tools { grid-template-columns: 1fr; }
    .tools li + li { border-left: 0; border-top: 1px solid var(--c-rule); }
    .features { grid-template-columns: 1fr; }
    .rows > div, .rows-wide > div { grid-template-columns: 1fr; gap: 0.25rem; }
    .ticks-inline { grid-template-columns: 1fr; }
    .trust-cols { grid-template-columns: 1fr; }
    .credits { grid-template-columns: 1fr; }
    .docket .docket-entry { display: none; }
    .docket-entry-m { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--c-ink); }
    .data td, .data tbody th { padding: 0.8rem 0.75rem; }
    .data thead th { padding: 0.6rem 0.75rem; }
    .rejections td:nth-child(3) { min-width: 9rem; }
    .rejections { min-width: 30rem; }
    .close-inner { text-align: left; }
    .close-inner img { margin-left: 0; }
    .close h2 { margin-inline: 0; }
    .close .hero-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .proposal-card .mark-ins { animation: none !important; }
}
