:root {
    --ink-900: #0c1512;
    --ink-800: #1e2c27;
    --ink-600: #3d4a45;
    --ink-400: #5e6c66;
    --relay-800: #0b5145;
    --relay-700: #0f6b5c;
    --relay-500: #21a38c;
    --relay-tint: #e6f0ec;
    --amber-800: #7a4e06;
    --amber-600: #b5730c;
    --amber-tint: #fff4dd;
    --fault-700: #a32b1c;
    --fault-tint: #fbe9e5;
    --canvas: #f6f4ef;
    --surface: #ffffff;
    --border: #e2ded4;
    --border-strong: #c9c4b6;
    --shadow-sm: 0 1px 2px rgb(12 21 18 / 6%), 0 8px 24px rgb(12 21 18 / 5%);
    --shadow-lg: 0 24px 64px rgb(12 21 18 / 16%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --content: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink-900);
    font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--relay-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--relay-800); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; box-shadow: 0 0 0 5px rgb(15 107 92 / 35%); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.06; }
h1:focus { box-shadow: none; outline: none; }
h1 { font-size: clamp(3.5rem, 7vw, 6.75rem); font-weight: 600; }
h2 { font-size: clamp(2.25rem, 4vw, 4.25rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

.eyebrow {
    color: var(--relay-700);
    display: inline-block;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-pad { padding: 7rem max(2rem, calc((100vw - var(--content)) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 3.5rem; }
.section-heading p { color: var(--ink-600); font-size: 1.15rem; max-width: 620px; }
.section-heading.light, .section-heading.light p { color: var(--surface); }
.section-heading.light .eyebrow { color: #78cdbd; }

.button {
    align-items: center;
    background: var(--relay-700);
    border: 1px solid var(--relay-700);
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: .5rem;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.25rem;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover { background: var(--relay-800); border-color: var(--relay-800); color: white; transform: translateY(-1px); }
.button:disabled { background: #a8b1ad; border-color: #a8b1ad; cursor: not-allowed; transform: none; }
.button-secondary { background: transparent; border-color: var(--border-strong); color: var(--ink-900); }
.button-secondary:hover { background: var(--surface); border-color: var(--ink-600); color: var(--ink-900); }
.button-secondary-light { background: transparent; border-color: #7b8c85; color: white; }
.button-secondary-light:hover { background: white; border-color: white; color: var(--ink-900); }
.button-danger { background: var(--fault-700); border-color: var(--fault-700); }
.button-small { min-height: 40px; padding: .5rem .9rem; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.site-header {
    align-items: center;
    background: rgb(246 244 239 / 92%);
    border-bottom: 1px solid rgb(226 222 212 / 80%);
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr auto 1fr;
    min-height: 76px;
    padding: .75rem max(2rem, calc((100vw - var(--content)) / 2));
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
}

.brand-link, .brand-lockup { align-items: center; display: inline-flex; gap: .7rem; }
.brand-link { color: var(--ink-900); font-size: 1.1rem; font-weight: 600; justify-self: start; text-decoration: none; }
.brand-link img, .brand-lockup img { display: block; }
.brand-lockup-light { color: white; }
.brand-lockup strong { font-size: 1.05rem; letter-spacing: -.015em; }
.site-header nav { display: flex; gap: 1.75rem; }
.site-header nav a { color: var(--ink-600); font-size: .93rem; font-weight: 500; text-decoration: none; }
.site-header nav a:hover { color: var(--ink-900); }
.site-header > .button { justify-self: end; }

.hero {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 6vw, 7rem);
    grid-template-columns: minmax(0, 1fr) minmax(460px, .9fr);
    min-height: calc(100vh - 76px);
    overflow: hidden;
    position: relative;
}

.hero::before {
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    inset: 0 0 0 52%;
    mask-image: linear-gradient(to right, transparent, black);
    opacity: .38;
    pointer-events: none;
    position: absolute;
}

.hero-copy, .hero-proof { position: relative; z-index: 1; }
.hero h1 { margin: 1rem 0 1.5rem; }
.hero-lede { color: var(--ink-600); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; max-width: 660px; }
.trust-line { align-items: center; color: var(--ink-600); display: flex; font-size: .88rem; gap: .6rem; margin: 1.5rem 0 0; }
.status-dot { background: var(--relay-500); border-radius: 50%; box-shadow: 0 0 0 4px var(--relay-tint); height: 8px; width: 8px; }

.proof-window { background: var(--ink-900); border: 1px solid #30413a; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: white; overflow: hidden; transform: rotate(1.2deg); }
.proof-toolbar { align-items: center; border-bottom: 1px solid #2d3a35; display: flex; gap: .45rem; padding: .9rem 1rem; }
.proof-toolbar > span { background: #50615a; border-radius: 50%; height: 8px; width: 8px; }
.proof-toolbar strong { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .7rem; letter-spacing: .08em; margin-left: .5rem; text-transform: uppercase; }
.proof-grid { display: grid; gap: 1px; grid-template-columns: 1.15fr .85fr; background: #2d3a35; }
.mini-panel { background: #15211d; min-height: 340px; padding: 1.4rem; }
.mini-panel .eyebrow { color: #78cdbd; }
.mini-chat { background: var(--surface); border-radius: var(--radius-md); color: var(--ink-900); margin-top: 1rem; padding: 1rem; }
.mini-chat > p { color: var(--ink-600); font-size: .82rem; }
.chat-bubble { background: var(--relay-tint); border-radius: 12px 12px 3px 12px; font-size: .78rem; margin: 1rem 0 0 2rem; padding: .7rem .8rem; }
.chat-bubble.bot { background: #f0eee8; border-radius: 12px 12px 12px 3px; margin-left: 0; margin-right: 1.5rem; }
.metrics-panel { display: flex; flex-direction: column; }
.metric-big { font-size: 2.6rem; margin-top: 2.5rem; }
.metrics-panel > span:not(.eyebrow) { color: #a9b7b1; font-size: .8rem; }
.metric-row { border-top: 1px solid #35443e; display: flex; font-size: .82rem; justify-content: space-between; margin-top: 1.2rem; padding-top: 1.2rem; }
.protected-label { color: #78cdbd; }
.relay-strip { align-items: center; color: #abb8b3; display: flex; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .72rem; gap: .9rem; justify-content: center; padding: 1.1rem; }
.relay-strip strong { color: #78cdbd; }

.proof-points { background: var(--surface); display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); }
.proof-points article { border-left: 1px solid var(--border-strong); padding-left: 1.5rem; }
.proof-number { color: var(--amber-800); font-family: "IBM Plex Mono", monospace; font-size: .75rem; }
.proof-points h2 { font-size: 1.45rem; margin: 1.3rem 0 .8rem; }
.proof-points p { color: var(--ink-600); margin: 0; }

.workflow-section { background: var(--canvas); }
.workflow-steps { counter-reset: none; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.workflow-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); min-height: 260px; padding: 1.5rem; }
.workflow-steps li > span { color: var(--relay-700); font-family: "IBM Plex Mono", monospace; font-size: .72rem; }
.workflow-steps h3 { margin-top: 4rem; }
.workflow-steps p { color: var(--ink-600); font-size: .93rem; }

.relay-section { background: var(--ink-900); color: white; }
.relay-diagram { align-items: center; display: grid; gap: 1.25rem; grid-template-columns: 1fr auto 1.35fr auto 1fr; }
.relay-node, .relay-gate { border: 1px solid #43534d; border-radius: var(--radius-md); min-height: 210px; padding: 1.5rem; }
.relay-node { display: flex; flex-direction: column; justify-content: space-between; }
.relay-node span, .relay-node small { color: #9dadA6; font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase; }
.relay-node strong { font-size: 1.45rem; }
.relay-gate { background: var(--relay-700); border-color: #3da996; }
.relay-gate strong { font-size: 1.45rem; }
.relay-gate ul { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; list-style: none; padding: 2.5rem 0 0; }
.relay-gate li::before { content: "✓"; margin-right: .5rem; }
.relay-arrow { color: #78cdbd; font-size: 1.6rem; }

.feature-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); min-height: 260px; padding: 2rem; }
.feature-card.large { grid-row: span 2; min-height: 536px; }
.feature-card h3 { font-size: 1.8rem; margin-top: 1.5rem; max-width: 400px; }
.feature-card p { color: var(--ink-600); }
.fake-table { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 4rem; overflow: hidden; }
.fake-table > div { display: grid; font-size: .82rem; grid-template-columns: 1.4fr repeat(3, 1fr); padding: .8rem; }
.fake-table > div + div { border-top: 1px solid var(--border); }
.fake-table > div:first-child { background: var(--canvas); color: var(--ink-600); }

.comparison-section { background: var(--surface); }
.comparison-table { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.comparison-table [role=row] { align-items: center; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); min-height: 64px; padding: 0 1.25rem; }
.comparison-table [role=row] + [role=row] { border-top: 1px solid var(--border); }
.comparison-table [role=row]:first-child { background: var(--ink-900); color: white; }
.comparison-table [role=row] > :not(:first-child) { padding-left: 1rem; }
.comparison-table b { color: var(--relay-700); }

.security-section { display: grid; gap: 5rem; grid-template-columns: .8fr 1.2fr; }
.security-list p { border-top: 1px solid var(--border-strong); display: grid; gap: 2rem; grid-template-columns: .75fr 1.25fr; margin: 0; padding: 1.4rem 0; }
.security-list span { color: var(--ink-600); }

.pricing-section { align-items: center; background: var(--relay-tint); display: grid; gap: 6rem; grid-template-columns: 1fr 480px; }
.pricing-copy p { color: var(--ink-600); font-size: 1.1rem; max-width: 540px; }
.price-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2rem; }
.price { align-items: baseline; display: flex; gap: .7rem; margin: 1rem 0; }
.price strong { font-size: 4rem; letter-spacing: -.05em; }
.price span { color: var(--ink-400); font-family: "IBM Plex Mono", monospace; font-size: .73rem; }
.price-card ul { border-block: 1px solid var(--border); list-style: none; margin: 1.5rem 0; padding: 1.25rem 0; }
.price-card li { margin: .7rem 0; }
.price-card li::before { color: var(--relay-700); content: "✓"; margin-right: .7rem; }
.price-card .button { width: 100%; }
.price-card small { color: var(--ink-400); display: block; margin-top: .8rem; text-align: center; }

.faq-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.faq-grid details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem; }
.faq-grid summary { cursor: pointer; font-weight: 600; }
.faq-grid p { color: var(--ink-600); margin: 1rem 0 0; }
.final-cta { background: var(--ink-800); color: white; text-align: center; }
.final-cta .eyebrow { color: #78cdbd; }
.final-cta p { color: #b9c4c0; }

.site-footer { background: var(--ink-900); color: #aebbb5; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; padding: 4rem max(2rem, calc((100vw - var(--content)) / 2)); }
.site-footer .brand-lockup { margin-bottom: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: flex-end; }
.footer-links a { color: white; font-size: .88rem; }
.fine-print { border-top: 1px solid #34423d; font-size: .78rem; grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; }

/* Administration */
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.app-sidebar { background: var(--ink-900); color: white; display: flex; flex-direction: column; padding: 1.5rem; position: sticky; top: 0; height: 100vh; }
.app-brand { display: block; margin: .3rem .4rem 2.5rem; }
.app-brand .brand-lockup { display: inline-flex; }
.app-nav { display: flex; flex-direction: column; gap: .3rem; }
.app-nav a { align-items: center; border-radius: 7px; color: #b9c5c0; display: flex; font-size: .92rem; gap: .8rem; padding: .7rem .8rem; text-decoration: none; }
.app-nav a span { color: #7d9188; display: inline-grid; place-items: center; width: 1rem; }
.app-nav a:hover, .app-nav a.active { background: #1c2a25; color: white; }
.app-nav a.active span { color: #66c6b4; }
.app-nav-footer { border-top: 1px solid #33413c; display: flex; gap: 1rem; margin-top: auto; padding: 1rem .75rem 0; }
.app-nav-footer a, .link-button { background: none; border: 0; color: #aebbb5; cursor: pointer; font-size: .8rem; padding: 0; }
.app-main { min-width: 0; }
.app-topbar { align-items: center; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; min-height: 68px; padding: 0 2rem; }
.account-link { color: var(--ink-600); font-size: .84rem; }
.app-content { margin: 0 auto; max-width: 1450px; padding: 2.5rem; }

.page-header { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.page-header h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: .35rem 0 0; }
.page-header p { color: var(--ink-600); margin: .6rem 0 0; }
.metric-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.5rem; }
.metric-card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 1px 1px rgb(12 21 18 / 3%); }
.metric-card { padding: 1.25rem; }
.metric-card span { color: var(--ink-400); font-size: .8rem; }
.metric-card strong { display: block; font-size: 2rem; letter-spacing: -.04em; margin-top: .7rem; }
.metric-card small { color: var(--ink-400); }
.panel { margin-bottom: 1.5rem; padding: 1.5rem; }
.panel-header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.25rem; }
.panel-header h2 { font-size: 1.3rem; margin: 0; }
.data-table { border-collapse: collapse; width: 100%; }
.data-table th { color: var(--ink-400); font-family: "IBM Plex Mono", monospace; font-size: .68rem; font-weight: 500; letter-spacing: .08em; padding: .75rem; text-align: left; text-transform: uppercase; }
.data-table td { border-top: 1px solid var(--border); padding: 1rem .75rem; vertical-align: middle; }
.data-table tr:hover td { background: #faf9f6; }
.data-table a { color: var(--ink-900); font-weight: 600; }
.badge { align-items: center; background: var(--relay-tint); border-radius: 999px; color: var(--relay-800); display: inline-flex; font-size: .72rem; font-weight: 600; padding: .28rem .55rem; }
.badge.warn { background: var(--amber-tint); color: var(--amber-800); }
.badge.error { background: var(--fault-tint); color: var(--fault-700); }
.table-actions { display: flex; gap: .8rem; justify-content: flex-end; }
.empty-state { padding: 4rem 1.5rem; text-align: center; }
.empty-state p { color: var(--ink-600); }

.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--ink-600); font-size: .82rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea, .form-control {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-900);
    min-height: 45px;
    padding: .7rem .8rem;
    width: 100%;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .form-control:focus { border-color: var(--relay-700); box-shadow: 0 0 0 3px rgb(33 163 140 / 16%); outline: 0; }
.field-help { color: var(--ink-400); font-size: .76rem; }
.validation-message, .validation-errors, .text-danger { color: var(--fault-700); font-size: .8rem; }
.form-actions { align-items: center; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1.25rem; }
.notice { background: var(--relay-tint); border-left: 3px solid var(--relay-700); border-radius: 3px var(--radius-sm) var(--radius-sm) 3px; color: var(--ink-800); padding: 1rem; }
.notice.warning { background: var(--amber-tint); border-color: var(--amber-600); }
.notice.error { background: var(--fault-tint); border-color: var(--fault-700); }
.code-block { background: var(--ink-900); border-radius: var(--radius-sm); color: #d8e4df; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .78rem; overflow: auto; padding: 1rem; white-space: pre-wrap; word-break: break-all; }

.builder-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(320px, .8fr) minmax(360px, 1.2fr); }
.preview-toolbar { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; justify-content: space-between; padding: .8rem 1rem; position: sticky; top: 90px; z-index: 2; }
.preview-toolbar + .widget-preview-shell { border-radius: 0 0 var(--radius-md) var(--radius-md); border-top: 0; top: 154px; }
.widget-preview-shell { align-items: center; background: #e9ede9; border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; justify-content: center; min-height: 680px; padding: 2rem; position: sticky; top: 90px; }
.widget-preview-shell.preview-desktop { align-items: flex-end; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 32px 32px; justify-content: flex-end; }
.widget-preview-shell.preview-desktop .widget-preview { height: 510px; width: min(360px, 48%); }
.widget-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; height: 560px; overflow: hidden; width: min(380px, 100%); }
.widget-preview-header { background: var(--relay-700); color: white; padding: 1rem; }
.widget-preview-body { flex: 1; padding: 1rem; }
.widget-preview-message { background: var(--relay-tint); border-radius: 12px 12px 12px 3px; font-size: .88rem; max-width: 85%; padding: .8rem; }
.widget-preview-input { border-top: 1px solid var(--border); color: var(--ink-400); padding: 1rem; }
.color-row { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.avatar-preview { border-radius: 12px; height: 56px; object-fit: cover; width: 56px; }

.report-shell { background: var(--canvas); min-height: 100vh; padding: 3rem 1.5rem; }
.report-page { margin: 0 auto; max-width: 1000px; }
.report-header { align-items: end; border-bottom: 1px solid var(--border-strong); display: flex; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1.5rem; }
.report-header h1 { font-size: 2.5rem; margin: .4rem 0 0; }
.report-header p { color: var(--ink-600); margin: 0; }
.report-footer { color: var(--ink-400); font-size: .75rem; padding: 2rem 0; text-align: center; }

.content-page { margin: 0 auto; max-width: 860px; padding: 5rem 2rem; }
.content-page h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.content-page h2 { font-size: 1.8rem; margin-top: 3rem; }
.content-page p, .content-page li { color: var(--ink-600); }
.content-page code { background: var(--relay-tint); border-radius: 4px; color: var(--ink-900); padding: .1rem .35rem; }
.auth-page { max-width: 680px; }
.auth-page > p { max-width: 580px; }
.auth-panel { margin-top: 2rem; }
.auth-actions { justify-content: space-between; }
.checkbox-label { align-items: center; display: inline-flex; gap: .55rem; }
.checkbox-label input { min-height: auto; width: auto; }

/* Purchase and delivery */
.purchase-page {
    margin: 0 auto;
    max-width: 1200px;
    padding: 4.5rem 2rem 6rem;
}
.purchase-page h1 { font-size: clamp(2.3rem, 4vw, 2.85rem); margin: .8rem 0 1.1rem; }
.purchase-page p { color: var(--ink-600); }
.purchase-grid {
    display: grid;
    gap: 2rem 4rem;
    grid-template-areas:
        "heading order"
        "includes order";
    grid-template-columns: minmax(0, 1fr) 400px;
}
.purchase-heading { grid-area: heading; padding-top: 1.5rem; }
.purchase-heading p { font-size: 1.07rem; line-height: 1.65; max-width: 610px; }
.purchase-includes { grid-area: includes; }
.purchase-includes ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.purchase-includes li { color: var(--ink-600); display: flex; gap: .7rem; margin: .85rem 0; }
.purchase-includes li::before { color: var(--relay-700); content: "✓"; flex: 0 0 auto; font-weight: 700; }
.purchase-order {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    grid-area: order;
    overflow: hidden;
    padding: 1.7rem;
    position: relative;
}
.purchase-order::before { background: var(--ink-900); content: ""; height: 3px; inset: 0 0 auto; position: absolute; }
.order-line { align-items: baseline; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; justify-content: space-between; margin-top: 1.1rem; padding-bottom: 1rem; }
.order-line strong { font-size: .96rem; }
.order-line-muted { color: var(--ink-400); font-family: "IBM Plex Mono", monospace; font-size: .7rem; margin-top: 0; padding-block: .85rem; text-transform: uppercase; }
.order-total { align-items: baseline; display: flex; justify-content: space-between; padding-top: 1rem; }
.order-total span { font-size: .9rem; font-weight: 600; }
.order-total strong { font-size: 1.55rem; letter-spacing: -.04em; }
.renewal-note { font-family: "IBM Plex Mono", monospace; font-size: .68rem; margin: .3rem 0 1.2rem; }
.purchase-order form, .purchase-action { margin: 0; }
.purchase-order .button { width: 100%; }
.stripe-note { font-size: .73rem; margin: .75rem auto 0; max-width: 290px; text-align: center; }
.purchase-legal { color: var(--ink-400); font-size: .73rem; margin: .9rem 0 0; text-align: center; }
.purchase-trust { border-top: 1px solid var(--border); display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
.purchase-trust > div { display: grid; gap: .15rem; grid-template-columns: 28px 1fr; padding: 1.4rem 1.25rem; }
.purchase-trust > div + div { border-left: 1px solid var(--border); }
.purchase-trust > div > span { align-items: center; background: var(--relay-tint); border-radius: 6px; color: var(--relay-700); display: flex; grid-row: span 2; height: 24px; justify-content: center; width: 24px; }
.purchase-trust strong { font-size: .84rem; }
.purchase-trust small { color: var(--ink-400); font-size: .72rem; }
.status-message { background: var(--amber-tint); border-left: 3px solid var(--amber-600); border-radius: 3px var(--radius-sm) var(--radius-sm) 3px; padding: 1rem; }
.status-message-error { background: var(--fault-tint); border-color: var(--fault-700); }
.purchase-confirmation-page { max-width: 720px; min-height: 620px; padding-top: 5.5rem; text-align: center; }
.purchase-confirmation-page > p { margin-inline: auto; max-width: 600px; }
.license-delivery { background: var(--ink-900); border-radius: var(--radius-md); color: white; margin: 2rem 0; padding: 1.5rem; text-align: left; }
.license-key-header { align-items: center; display: flex; gap: .7rem; }
.license-key-header > span:first-child { color: #aebbb5; font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .08em; margin-right: auto; text-transform: uppercase; }
.license-key-header .badge { background: #d9eee8; color: var(--relay-800); display: inline-flex; }
.license-key-header button { background: transparent; border: 0; color: #78cdbd; cursor: pointer; font-size: .75rem; font-weight: 600; padding: .25rem; }
.license-delivery code { background: transparent; color: #78cdbd; display: block; font-family: "IBM Plex Mono", monospace; font-size: clamp(.82rem, 2.5vw, 1.1rem); margin: 1.25rem 0; overflow-wrap: anywhere; padding: 0; }
.license-meta { align-items: baseline; border-top: 1px solid #35443e; display: flex; gap: 1rem; justify-content: space-between; padding-top: 1rem; }
.license-meta span { color: #aebbb5; font-size: .74rem; }
.license-meta strong { font-size: .85rem; }
.purchase-primary-action .button { width: 100%; }
.download-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 1.5rem 0; padding: 1.2rem; text-align: left; }
.download-summary > strong { display: block; font-size: 1.05rem; margin: .5rem 0 .3rem; }
.download-summary > small { color: var(--ink-400); display: block; }
.purchase-confirmation-page .button-row { display: grid; grid-template-columns: 1fr auto; }
.purchase-confirmation-page .button-row form { margin: 0; }
.purchase-confirmation-page .button-row button { min-width: 150px; width: 100%; }
.quick-start-link { font-weight: 600; margin-top: 1.5rem; }

#blazor-error-ui { background: var(--amber-tint); border-top: 2px solid var(--amber-600); bottom: 0; box-shadow: 0 -1px 8px rgb(0 0 0 / 15%); display: none; left: 0; padding: .8rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { background: none; border: 0; cursor: pointer; position: absolute; right: 1rem; top: .7rem; }

@media (max-width: 980px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-header nav { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-proof { max-width: 680px; }
    .proof-points, .workflow-steps { grid-template-columns: 1fr 1fr; }
    .relay-diagram { grid-template-columns: 1fr; }
    .relay-arrow { transform: rotate(90deg); text-align: center; }
    .security-section, .pricing-section { gap: 3rem; grid-template-columns: 1fr; }
    .pricing-section { justify-items: stretch; }
    .price-card { max-width: 520px; }
    .app-shell { grid-template-columns: 210px 1fr; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .builder-grid { grid-template-columns: 1fr; }
    .widget-preview-shell { position: static; }
    .preview-toolbar { position: static; }
}

@media (max-width: 700px) {
    .section-pad { padding: 5rem 1.25rem; }
    .site-header { padding-inline: 1.25rem; }
    .site-header > .button { display: none; }
    .hero { padding-top: 4rem; }
    .hero::before { inset-inline-start: 0; }
    .proof-grid, .proof-points, .workflow-steps, .feature-grid, .faq-grid, .site-footer { grid-template-columns: 1fr; }
    .mini-panel { min-height: 250px; }
    .feature-card.large { grid-row: auto; min-height: auto; }
    .comparison-table { overflow-x: auto; }
    .comparison-table [role=row] { grid-template-columns: 160px repeat(3, 150px); min-width: 610px; }
    .security-list p { grid-template-columns: 1fr; gap: .6rem; }
    .footer-links { justify-content: flex-start; }
    .fine-print { grid-column: auto; }
    .app-shell { display: block; }
    .app-sidebar { height: auto; padding: .8rem 1rem; position: static; }
    .app-brand { margin: 0 0 .75rem; }
    .app-brand .brand-lockup strong { font-size: .95rem; }
    .app-nav { flex-direction: row; gap: .15rem; overflow-x: auto; }
    .app-nav a { flex: 0 0 auto; padding: .55rem .65rem; }
    .app-nav a span { display: none; }
    .app-nav-footer { margin-top: .65rem; padding: .65rem .65rem 0; }
    .app-topbar { display: none; }
    .app-content { padding: 1.25rem; }
    .page-header { align-items: flex-start; flex-direction: column; }
    .metric-grid, .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .data-table { display: block; overflow-x: auto; }
    .report-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .purchase-page { padding: 3rem 1.25rem 4.5rem; }
    .purchase-page h1 { font-size: clamp(2rem, 8vw, 2.2rem); }
    .purchase-grid {
        gap: 1.75rem;
        grid-template-areas:
            "heading"
            "order"
            "includes";
        grid-template-columns: 1fr;
    }
    .purchase-heading { padding-top: 0; }
    .purchase-order { padding: 1.3rem; }
    .purchase-trust { grid-template-columns: 1fr; }
    .purchase-trust > div + div { border-left: 0; border-top: 1px solid var(--border); }
    .purchase-confirmation-page { min-height: 560px; padding-top: 3.5rem; }
    .license-key-header { align-items: flex-start; flex-wrap: wrap; }
    .license-key-header > span:first-child { flex-basis: 100%; }
    .license-meta { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .purchase-confirmation-page .button-row { grid-template-columns: 1fr; }
    .purchase-confirmation-page .button-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
