/* public/assets/site.css */

:root {
    color-scheme: light;

    --navy: #061426;
    --teal: #14B8A6;
    --teal-dark: #0F766E;
    --teal-hover: #2DD4BF;
    --green: #16A34A;
    --white: #FFFFFF;

    --canvas: #F8FAFC;
    --surface: #FFFFFF;
    --ink: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --control-border: #8795A5;

    --dark-surface: #0D2032;
    --dark-border: #25384A;
    --dark-muted: #94A3B8;
    --dark-text: #E2E8F0;

    --state-planned: #9CA3AF;
    --state-progress: #F59E0B;
    --state-input: #2563EB;
    --state-completed: #14B8A6;
    --state-verified: #16A34A;
    --state-failed: #DC2626;

    --font-sans: "Source Sans 3", system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    --font-mono: "IBM Plex Mono", ui-monospace,
        SFMono-Regular, Consolas, monospace;

    --radius-control: 6px;
    --radius-panel: 8px;
    --container-width: 1280px;
    --page-gutter: 32px;
    --transition: 160ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    font-size: clamp(40px, 4.4vw, 56px);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(30px, 3.1vw, 36px);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 23px;
    letter-spacing: -0.015em;
}

h4 {
    font-size: 19px;
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

button,
input,
select {
    font: inherit;
}

button,
summary,
select {
    cursor: pointer;
}

button,
a,
input,
select,
summary {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--state-input);
    outline-offset: 4px;
}

.site-header :focus-visible,
.hero :focus-visible,
.signup-section :focus-visible,
.site-footer :focus-visible,
.response-header :focus-visible {
    outline-color: var(--teal-hover);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    display: block;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--teal);
    color: var(--navy);
}

.container {
    width: min(
        var(--container-width),
        calc(100% - var(--page-gutter) * 2)
    );
    margin-inline: auto;
    min-width: 0;
}

.section {
    padding-block: 88px;
}

.section-muted {
    background: var(--canvas);
    border-block: 1px solid var(--border);
}

.section-intro {
    max-width: 760px;
    margin-bottom: 40px;
}

.section-intro p {
    max-width: 660px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--teal-dark);
    border-radius: var(--radius-control);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.button-primary {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--navy);
}

.button-primary:hover {
    background: var(--teal-hover);
    border-color: var(--teal-hover);
}

.button-outline {
    background: var(--white);
    border-color: var(--control-border);
    color: var(--ink);
}

.button-outline:hover {
    background: var(--canvas);
    border-color: var(--teal-dark);
    color: var(--teal-dark);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition:
        color var(--transition),
        text-decoration-color var(--transition);
}

.text-link:hover {
    text-decoration-color: currentColor;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--navy);
    color: var(--white);
    border-bottom: 1px solid var(--dark-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 104px;
    padding-block: 8px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    overflow: visible;
}

.brand img {
    display: block;
    width: 300px;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left center;
    aspect-ratio: auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    flex-shrink: 0;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: clamp(16px, 2vw, 28px);
    min-width: 0;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--dark-text);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.desktop-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 0 0 auto;
}

.header-actions .button {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 15px;
    white-space: nowrap;
}

.sign-in {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--dark-text);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.sign-in:hover {
    color: var(--white);
    text-decoration: underline;
}

.mobile-nav {
    display: none;
    position: relative;
    flex: 0 0 auto;
}

.mobile-nav > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--dark-muted);
    border-radius: var(--radius-control);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    list-style: none;
}

.mobile-nav > summary::-webkit-details-marker {
    display: none;
}

.mobile-nav nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    min-width: 224px;
    max-width: calc(100vw - 40px);
    padding: 8px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-panel);
    box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
}

.mobile-nav nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--white);
    text-decoration: none;
}

.mobile-nav nav a:hover {
    background: var(--dark-border);
}

.hero {
    position: relative;
    padding-block: 64px;
    background: var(--navy);
    color: var(--white);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero-layout > * {
    min-width: 0;
}

.hero-copy {
    width: 100%;
    max-width: 660px;
}

.hero-tagline {
    margin-bottom: 20px;
    color: var(--dark-text);
    font-size: 17px;
    font-weight: 500;
}

.hero h1 {
    max-width: 660px;
    color: var(--white);
    line-height: 1.13;
}

.hero-description {
    max-width: 540px;
    margin-top: 24px;
    color: var(--dark-text);
    font-size: 21px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
}

.hero .button {
    min-height: 48px;
    padding-inline: 22px;
}

.hero .text-link {
    color: var(--white);
    font-size: 16px;
}

.hero-details {
    margin-top: 24px;
    color: var(--dark-muted);
    font-size: 15px;
    line-height: 1.6;
}

.hero-figure {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 620px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
}

.workflow-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.workflow-animation {
    position: static;
    display: block;
    width: 70%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    transform: none;
    filter: none;
    flex: 0 1 auto;
}

.workflow-static {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 320px;
    padding: 24px;
    margin: 0;
}

.static-stack {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.hero-figure figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    color: var(--dark-muted);
    font-size: 14px;
    line-height: 1.5;
}

.motion-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    background: transparent;
    border: 0;
    color: var(--dark-text);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.motion-toggle:hover {
    color: var(--white);
}

.principles {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.principles-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    min-height: 80px;
    gap: 24px;
    padding-block: 20px;
}

.principles-inner > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.principles-inner > span + span {
    border-left: 1px solid var(--border);
}

.principles .icon {
    color: var(--teal-dark);
}

.explanation-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(40px, 5vw, 72px);
}

.explanation-layout > * {
    min-width: 0;
}

.process {
    min-width: 0;
}

.process > h3 {
    margin-bottom: 28px;
}

.process-list {
    padding: 0;
    list-style: none;
    counter-reset: process;
}

.process-list > li {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding-bottom: 32px;
    counter-increment: process;
}

.process-list > li:last-child {
    padding-bottom: 0;
}

.process-list > li::before {
    content: counter(process, decimal-leading-zero);
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--teal-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}

.process-list > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    bottom: 0;
    left: 17px;
    width: 1px;
    background: var(--border);
}

.process-list h4 {
    padding-top: 5px;
}

.process-list p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.process-list .secondary-copy {
    font-size: 15px;
}

.tally-example {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    overflow: hidden;
}

.tally-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 24px 28px;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
}

.example-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.tally-header h3 {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    text-wrap: wrap;
    overflow-wrap: anywhere;
    word-break: normal;
}

.tally-reference {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tally-request {
    min-width: 0;
    margin-inline: 28px;
    padding-block: 20px;
    border-bottom: 1px solid var(--border);
}

.field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tally-request p {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.trace-list {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 24px 28px;
    margin: 0;
    list-style: none;
}

.trace-step {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 0 0 24px;
    margin: 0;
    list-style: none;
}

.trace-step:last-child {
    padding-bottom: 0;
}

.trace-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 32px;
    bottom: -4px;
    left: 17px;
    width: 2px;
    background: var(--border);
    pointer-events: none;
}

.trace-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 5px;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
}

.trace-icon .icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.trace-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: 100%;
    min-width: 0;
    padding-top: 2px;
}

.trace-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    width: 100%;
    min-width: 0;
}

.trace-heading strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.trace-heading time {
    flex: 0 0 auto;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trace-content p {
    width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.trace-state {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.state-planned {
    color: var(--state-planned);
}

.state-progress {
    color: var(--state-progress);
}

.state-input {
    color: var(--state-input);
}

.state-completed {
    color: var(--state-completed);
}

.state-verified {
    color: var(--state-verified);
}

.state-failed {
    color: var(--state-failed);
}

.trace-icon.state-planned .icon {
    stroke: #6B7280;
}

.trace-icon.state-progress .icon {
    stroke: #B45309;
}

.trace-icon.state-completed .icon {
    stroke: var(--teal-dark);
}

.trace-icon.state-input .icon {
    stroke: var(--state-input);
}

.trace-icon.state-verified .icon {
    stroke: var(--state-verified);
}

.trace-icon.state-failed .icon {
    stroke: var(--state-failed);
}

.trace-icon.state-progress {
    animation: active-step 1.8s ease-in-out infinite;
}

@keyframes active-step {
    0%,
    100% {
        border-color: var(--border);
    }

    50% {
        border-color: var(--state-progress);
    }
}

.tally-outcome {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
    margin-inline: 28px;
    padding-block: 20px;
    border-top: 1px solid var(--border);
}

.tally-outcome > .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.tally-outcome > div {
    min-width: 0;
}

.tally-outcome strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tally-outcome p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.tally-example > figcaption {
    display: block;
    width: 100%;
    padding: 12px 28px;
    background: var(--canvas);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.trace-reference {
    margin-top: 40px;
    border-block: 1px solid var(--border);
}

.trace-reference > summary,
.faq-list summary {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-block: 20px;
    list-style: none;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.trace-reference > summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
    display: none;
}

.trace-reference > summary::after,
.faq-list summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--teal-dark);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1;
}

.trace-reference[open] > summary::after,
.faq-list details[open] > summary::after {
    content: "−";
}

.trace-reference > summary:hover,
.faq-list summary:hover {
    color: var(--teal-dark);
}

.reference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 8px 24px;
}

.reference-layout > * {
    min-width: 0;
}

.reference-layout h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.icon-reference {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 0;
    list-style: none;
}

.icon-reference li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 15px;
}

.icon-reference .icon {
    color: var(--muted);
}

.state-reference {
    display: grid;
    gap: 12px;
    font-size: 15px;
}

.state-reference dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.state-reference dd {
    margin-left: 22px;
    color: var(--muted);
    font-size: 14px;
}

.state-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 50%;
}

.reference-note {
    max-width: 760px;
    padding-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.audience-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(40px, 7vw, 104px);
}

.audience-layout .section-intro {
    margin-bottom: 0;
}

.audience-layout .text-link {
    margin-top: 24px;
}

.use-cases {
    min-width: 0;
    border-top: 1px solid var(--border);
}

.use-case {
    padding-block: 24px;
    border-bottom: 1px solid var(--border);
}

.use-case:first-child {
    padding-top: 20px;
}

.use-case h3 {
    font-size: 22px;
}

.use-case p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 16px;
}

.use-case ul {
    margin-top: 12px;
    padding-left: 20px;
    font-size: 16px;
}

.use-case li + li {
    margin-top: 4px;
}

.use-case li::marker {
    color: var(--teal-dark);
}

.capability-groups {
    border-top: 1px solid var(--border);
}

.capability-group {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(40px, 7vw, 104px);
    padding-block: 36px;
    border-bottom: 1px solid var(--border);
}

.capability-heading h3 {
    font-size: 24px;
}

.capability-heading p {
    max-width: 320px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 16px;
}

.capability-list {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.capability-list dt {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.capability-list dd {
    margin-top: 6px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.pricing-table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    scrollbar-color: var(--control-border) var(--canvas);
}

.pricing-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.pricing-table th,
.pricing-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    overflow-wrap: break-word;
}

.pricing-table th:first-child {
    width: 28%;
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
    border-left: 1px solid var(--border);
}

.pricing-table thead th {
    padding-block: 28px;
    vertical-align: top;
    font-weight: 400;
}

.pricing-table thead th:nth-child(3) {
    box-shadow: inset 0 3px 0 var(--teal);
}

.pricing-table thead th:first-child {
    vertical-align: bottom;
}

.comparison-label {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
}

.currency-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.plan-name {
    display: block;
    font-size: 21px;
    font-weight: 600;
}

.plan-price {
    display: block;
    margin-top: 12px;
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}

.billing-period {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.plan-audience {
    display: block;
    margin-top: 20px;
    color: var(--ink);
    font-size: 15px;
}

.pricing-table tbody th {
    background: var(--canvas);
    font-size: 15px;
    font-weight: 500;
}

.pricing-table tbody td {
    color: var(--ink);
}

.pricing-table .pricing-actions td {
    padding-block: 24px;
    border-bottom: 0;
}

.pricing-actions .button {
    width: 100%;
    padding-inline: 10px;
    font-size: 15px;
}

.mobile-table-note {
    display: none;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.pricing-terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 32px;
}

.pricing-terms h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.pricing-terms p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.pricing-terms p + p {
    margin-top: 8px;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: clamp(40px, 7vw, 104px);
}

.faq-layout .section-intro {
    margin-bottom: 0;
}

.faq-list {
    min-width: 0;
    border-top: 1px solid var(--border);
}

.faq-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list details p {
    max-width: 680px;
    padding-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.faq-list details p + p {
    margin-top: -8px;
}

.signup-section {
    background: var(--navy);
    color: var(--white);
}

.signup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: start;
    gap: clamp(48px, 9vw, 128px);
}

.signup-copy h2 {
    max-width: 480px;
    color: var(--white);
    font-size: clamp(32px, 3.6vw, 44px);
}

.signup-copy > p {
    max-width: 460px;
    margin-top: 20px;
    color: var(--dark-text);
    font-size: 18px;
    line-height: 1.65;
}

.signup-copy .signup-tagline {
    margin-top: 36px;
    color: var(--teal-hover);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.signup-form {
    display: grid;
    align-content: start;
    gap: 20px;
    min-width: 0;
}

.form-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.form-field label {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
}

.optional {
    color: var(--dark-muted);
    font-size: 14px;
    font-weight: 400;
}

.form-field input,
.form-field select {
    display: block;
    width: 100%;
    min-height: 48px;
    min-width: 0;
    padding: 12px 14px;
    background: var(--dark-surface);
    border: 1px solid var(--control-border);
    border-radius: var(--radius-control);
    color: var(--white);
    color-scheme: dark;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color var(--transition);
}

.form-field input::placeholder {
    color: var(--dark-muted);
    opacity: 1;
}

.form-field select option {
    background: var(--dark-surface);
    color: var(--white);
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--teal);
}

.signup-form > .button {
    justify-content: space-between;
    min-height: 48px;
    margin-top: 4px;
}

.form-note {
    color: var(--dark-muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-note a {
    color: var(--dark-text);
}

.form-note a:hover {
    color: var(--white);
}

.site-footer {
    padding-block: 32px 24px;
    background: var(--navy);
    border-top: 1px solid var(--dark-border);
    color: var(--dark-muted);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
}

.footer-brand img {
    width: 240px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.footer-main nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-main nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--dark-text);
    font-size: 14px;
    text-decoration: none;
}

.footer-main nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
    color: var(--dark-muted);
    font-size: 13px;
}

.response-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--white);
}

.response-header {
    background: var(--navy);
    border-bottom: 1px solid var(--dark-border);
}

.response-header .container {
    display: flex;
    align-items: center;
    min-height: 104px;
    padding-block: 8px;
}

.response-main {
    display: flex;
    align-items: center;
    flex: 1;
    padding-block: 72px;
}

.response-content {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}

.response-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
}

.response-status .icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.response-content h1 {
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.025em;
}

.response-content > p {
    max-width: 560px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.response-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.response-content .support-note {
    margin-top: 28px;
    font-size: 15px;
}

.support-note a {
    color: var(--teal-dark);
    overflow-wrap: anywhere;
}

.response-footer {
    padding-block: 24px;
    background: var(--canvas);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.response-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.response-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.response-footer a {
    color: var(--muted);
    text-decoration: none;
}

.response-footer a:hover {
    color: var(--ink);
    text-decoration: underline;
}

@media (max-width: 1240px) {
    .header-inner {
        gap: 24px;
    }

    .brand img {
        width: 260px;
    }

    .desktop-nav {
        gap: 16px;
    }

    .header-actions {
        gap: 14px;
    }

    .footer-brand img {
        width: 220px;
    }
}

@media (max-width: 1080px) {
    :root {
        --page-gutter: 28px;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .mobile-nav {
        display: block;
    }

    .header-inner {
        min-height: 96px;
    }

    .hero-layout {
        gap: 32px;
        display: flex;
        flex-direction: row;
    }

    .hero {
        padding-block: 56px;
    }

    .section {
        padding-block: 72px;
    }

    .hero-description {
        font-size: 19px;
    }

    .hero-actions {
        gap: 16px;
    }

    .explanation-layout {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 32px;
    }

    .audience-layout,
    .capability-group,
    .faq-layout {
        gap: 40px;
    }

    .principles-inner {
        gap: 12px;
    }

    .principles-inner > span {
        font-size: 15px;
    }

    .pricing-table th,
    .pricing-table td {
        padding-inline: 16px;
    }

    .signup-layout {
        gap: 48px;
    }

    .tally-header {
        padding-inline: 20px;
    }

    .tally-request {
        margin-inline: 20px;
    }

    .trace-list {
        padding-inline: 20px;
    }

    .tally-outcome {
        margin-inline: 20px;
    }

    .tally-example > figcaption {
        padding-inline: 20px;
    }
}

@media (max-width: 840px) {
    .hero-layout,
    .explanation-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-layout {
        gap: 32px;
    }

    .hero-figure {
        max-width: 560px;
        margin-inline: auto;
    }

    .hero-copy {
        max-width: 660px;
    }

    .hero-description {
        max-width: 580px;
    }

    .explanation-layout {
        gap: 40px;
    }

    .tally-example {
        max-width: 680px;
    }

    .tally-header {
        padding-inline: 28px;
    }

    .tally-request {
        margin-inline: 28px;
    }

    .trace-list {
        padding-inline: 28px;
    }

    .tally-outcome {
        margin-inline: 28px;
    }

    .tally-example > figcaption {
        padding-inline: 28px;
    }
}

@media (max-width: 760px) {
    :root {
        --page-gutter: 24px;
    }

    body {
        font-size: 16px;
    }

    .header-inner {
        min-height: 84px;
        gap: 16px;
    }

    .brand img {
        width: 220px;
    }

    .audience-layout,
    .capability-group,
    .faq-layout,
    .signup-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-block: 48px 36px;
    }

    .hero-figure {
        max-width: 480px;
    }

    .hero-description {
        font-size: 19px;
    }

    .hero-actions {
        align-items: center;
        gap: 16px 24px;
    }

    .hero-tagline {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .hero-details {
        margin-top: 20px;
    }

    .section {
        padding-block: 56px;
    }

    .section-intro {
        margin-bottom: 28px;
    }

    .section-intro p {
        font-size: 17px;
    }

    .principles-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-block: 8px;
    }

    .principles-inner > span {
        justify-content: flex-start;
        padding-block: 12px;
    }

    .principles-inner > span + span {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .reference-layout {
        gap: 28px;
    }

    .audience-layout,
    .faq-layout,
    .signup-layout {
        gap: 32px;
    }

    .capability-group {
        gap: 24px;
        padding-block: 28px;
    }

    .capability-heading p {
        max-width: 540px;
    }

    .pricing-terms {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .mobile-table-note {
        display: block;
    }

    .signup-copy .signup-tagline {
        margin-top: 20px;
    }

    .signup-form {
        max-width: 560px;
    }

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .response-main {
        padding-block: 56px;
    }
}

@media (max-width: 600px) {
    .header-actions {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .brand {
        flex: 0 1 auto;
    }

    .brand img {
        width: 240px;
    }

    .footer-brand img {
        width: 210px;
    }

    .hero-figure {
        max-width: 100%;
    }

    .tally-example {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --page-gutter: 20px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    .brand img {
        width: 220px;
        max-width: 100%;
        height: auto;
    }

    .header-inner {
        min-height: 76px;
        gap: 12px;
        padding-block: 8px;
    }

    .mobile-nav > summary {
        padding-inline: 12px;
    }

    .hero h1 {
        font-size: clamp(35px, 9.4vw, 43px);
        letter-spacing: -0.035em;
    }

    .hero-description {
        margin-top: 20px;
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 24px;
    }

    .hero-figure {
        max-width: 100%;
    }

    .hero-figure figcaption {
        justify-content: space-between;
        text-align: left;
        font-size: 13px;
    }

    .workflow-static {
        min-height: 240px;
        padding: 20px;
    }

    .static-stack {
        max-width: 240px;
    }

    .section {
        padding-block: 48px;
    }

    .process-list > li {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 28px;
    }

    .process-list > li::before {
        width: 32px;
        height: 32px;
    }

    .process-list > li:not(:last-child)::after {
        top: 32px;
        left: 15px;
    }

    .tally-header {
        padding: 20px;
    }

    .tally-header h3 {
        font-size: 20px;
    }

    .tally-request {
        margin-inline: 20px;
    }

    .trace-list {
        padding: 20px;
    }

    .trace-step {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 12px;
        padding-bottom: 24px;
    }

    .trace-step:not(:last-child)::after {
        top: 28px;
        left: 15px;
    }

    .trace-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        flex-basis: 32px;
        padding: 5px;
    }

    .trace-icon .icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .trace-heading strong,
    .trace-content p {
        font-size: 14px;
    }

    .trace-heading time {
        font-size: 11px;
    }

    .trace-state {
        font-size: 12px;
    }

    .tally-outcome {
        margin-inline: 20px;
    }

    .tally-example > figcaption {
        padding-inline: 20px;
    }

    .reference-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .icon-reference {
        gap: 12px;
    }

    .use-case h3 {
        font-size: 21px;
    }

    .use-case li,
    .use-case p {
        font-size: 15px;
    }

    .faq-list summary {
        font-size: 16px;
    }

    .signup-form {
        gap: 18px;
    }

    .signup-form > .button {
        width: 100%;
    }

    .footer-main nav {
        gap: 8px 20px;
    }

    .footer-brand img {
        width: 200px;
    }

    .response-header .container {
        min-height: 76px;
    }

    .response-content h1 {
        font-size: 34px;
    }

    .response-content > p {
        font-size: 17px;
    }

    .response-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .response-actions .button {
        width: 100%;
    }

    .response-footer .container {
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    :root {
        --page-gutter: 16px;
    }

    .brand img {
        width: 200px;
    }

    .header-inner {
        gap: 8px;
    }

    .hero-figure figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .tally-header,
    .trace-list {
        padding-inline: 16px;
    }

    .tally-request,
    .tally-outcome {
        margin-inline: 16px;
    }

    .tally-example > figcaption {
        padding-inline: 16px;
    }

    .trace-step {
        column-gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .trace-icon.state-progress {
        animation: none;
        border-color: var(--state-progress);
    }
}

@media print {
    .site-header,
    .hero-figure,
    .hero-actions,
    .signup-section,
    .site-footer,
    .button,
    .mobile-table-note,
    .pricing-actions,
    .skip-link {
        display: none !important;
    }

    body,
    .hero,
    .section-muted {
        background: #FFFFFF;
        color: #000000;
    }

    .hero h1,
    .hero-description,
    .hero-details,
    .hero-tagline {
        color: #000000;
    }

    .container {
        width: 100%;
    }

    .section,
    .hero {
        padding-block: 24px;
    }

    .hero-layout,
    .explanation-layout,
    .audience-layout,
    .capability-group,
    .faq-layout {
        display: block;
    }

    .pricing-table-wrap {
        overflow: visible;
    }

    .pricing-table {
        min-width: 0;
        font-size: 12px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 8px;
    }

    .tally-example,
    .capability-group,
    .use-case {
        break-inside: avoid;
    }
}