/* Zendelity concept site
   Palette is drawn from the ZenIcon mark (#527bcc, #72c02c), deepened for text contrast.
   Amber is reserved for escalation and never used decoratively. */

:root {
    --blue: #527bcc;
    --green: #72c02c;

    --ink: #14213d;
    --ink-soft: #46536b;
    --line: #d5dbe5;
    --base: #eef1f5;
    --surface: #ffffff;
    --signal: #2f56a8;
    --signal-soft: #e3eaf8;
    --verified: #3f7f12;
    --verified-soft: #e6f3da;
    --escalate: #b45f00;
    --escalate-soft: #fdf0dc;
    --stop: #b3261e;
    --stop-soft: #fbe4e2;
    --lapsed: #5b6579;
    --lapsed-soft: #e7ebf1;
    --deep: #14213d;
    --on-deep: #e9eef7;
    --on-deep-soft: #a9b6cf;

    --font: "Archivo", system-ui, sans-serif;
    --radius-lg: 18px;
    --radius-sm: 6px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --space-section: clamp(72px, 10vw, 128px);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #e9eef7;
        --ink-soft: #a9b6cf;
        --line: #2a3958;
        --base: #0f1a31;
        --surface: #16233f;
        --signal: #8eaef0;
        --signal-soft: #1f3263;
        --verified: #94d65a;
        --verified-soft: #1c3518;
        --escalate: #f2a640;
        --escalate-soft: #3a2a12;
        --stop: #ff8a80;
        --stop-soft: #3b1d1b;
        --lapsed: #a9b6cf;
        --lapsed-soft: #22304f;
        --deep: #0a1224;
        --on-deep: #e9eef7;
        --on-deep-soft: #a9b6cf;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --ink: #e9eef7;
    --ink-soft: #a9b6cf;
    --line: #2a3958;
    --base: #0f1a31;
    --surface: #16233f;
    --signal: #8eaef0;
    --signal-soft: #1f3263;
    --verified: #94d65a;
    --verified-soft: #1c3518;
    --escalate: #f2a640;
    --escalate-soft: #3a2a12;
    --stop: #ff8a80;
    --stop-soft: #3b1d1b;
    --lapsed: #a9b6cf;
    --lapsed-soft: #22304f;
    --deep: #0a1224;
    --on-deep: #e9eef7;
    --on-deep-soft: #a9b6cf;
    color-scheme: dark;
}

/* Base */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--base);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-variation-settings: "wdth" 100;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

img, svg {
    display: block;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

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

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

/* Type scale: display headings use the expanded width of Archivo to echo the wide wordmark */

h1, h2 {
    font-variation-settings: "wdth" 118;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

h3 {
    font-size: 1.125rem;
    font-weight: 650;
    line-height: 1.3;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-lg {
    min-height: 52px;
    padding: 0 26px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--signal);
    color: var(--surface);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--signal) 85%, #000);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink-soft);
}

.btn-invert {
    background: var(--green);
    color: #10210a;
}

.btn-invert:hover {
    background: #86d140;
}

.text-link {
    color: var(--signal);
    font-weight: 600;
    text-underline-offset: 4px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--base) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 28px;
    height: 28px;
}

.brand-word {
    font-variation-settings: "wdth" 125;
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-right: auto;
}

.site-nav a,
.link-quiet {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
}

.site-nav a:hover,
.link-quiet:hover {
    color: var(--ink);
}

/* Solutions menu: a disclosure button and panel. Desktop drops it below the header;
   inside the mobile menu it opens in place like an accordion. */

.nav-group {
    position: relative;
}

.nav-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
}

.nav-group-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.nav-group-toggle[aria-expanded="true"]::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.nav-group-toggle:hover,
.nav-group-toggle[aria-expanded="true"],
.nav-group-toggle.is-current {
    color: var(--ink);
}

.nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 22px);
    left: -18px;
    z-index: 60;
    width: 760px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 24px 48px -20px rgba(20, 33, 61, 0.35);
    list-style: none;
}

.nav-group-toggle[aria-expanded="true"] + .nav-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
}

.site-nav .nav-menu a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink);
}

.site-nav .nav-menu a:hover,
.site-nav .nav-menu a[aria-current="page"] {
    background: var(--base);
}

.nav-menu-name {
    font-weight: 650;
}

.nav-menu-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    position: relative;
    transition: transform 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */

.hero {
    padding: clamp(48px, 8vw, 96px) 0 var(--space-section);
}

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

.hero-copy h1 {
    max-width: 15ch;
}

.lede {
    margin-top: 24px;
    max-width: 52ch;
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-note {
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Ledger: the hero's live record of a shift */

.ledger {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(20, 33, 61, 0.28);
    overflow: hidden;
}

.ledger-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.ledger-title {
    font-weight: 650;
}

.ledger-sub {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.ledger-clock {
    font-variation-settings: "wdth" 112;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--signal);
}

.ledger-rows {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    min-height: 372px;
}

.row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto 76px 46px;
    align-items: center;
    column-gap: 12px;
    padding: 12px 22px;
    font-size: 0.9rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
    transition: background-color 0.4s ease;
}

.row:last-child {
    border-bottom: 0;
}

.row-status {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--line);
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.row-task {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    min-width: 0;
}

.row-place {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.row-proof {
    font-size: 0.8rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.row-who {
    font-size: 0.8rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.row-time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
}

.row-escalation {
    grid-column: 2 / -1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--escalate);
}

.row-escalation:empty {
    display: none;
}

/* Row states driven by js/site.js */

.row.is-pending:not(.row-watch) .row-proof,
.row.is-pending:not(.row-watch) .row-who,
.row.is-pending:not(.row-watch) .row-time {
    visibility: hidden;
}

.row.is-pending .row-task {
    color: var(--ink-soft);
}

.row.is-closed .row-status {
    background: var(--verified);
    border-color: var(--verified);
}

.row.is-closed .row-status::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.row.is-overdue {
    background: var(--escalate-soft);
}

.row.is-overdue .row-status {
    border-color: var(--escalate);
    background: var(--escalate);
    animation: pulse 1.2s ease-in-out infinite;
}

.row.is-overdue .row-proof {
    color: var(--escalate);
    font-weight: 600;
}

.row.is-resolved {
    background: var(--verified-soft);
}

.row.is-resolved .row-escalation {
    color: var(--verified);
}

@keyframes pulse {
    50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--escalate) 25%, transparent); }
}

.ledger-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.ledger-replay {
    font: inherit;
    font-weight: 600;
    color: var(--signal);
    background: none;
    border: 0;
    padding: 6px 4px;
    cursor: pointer;
}

/* Sections */

.section {
    padding: var(--space-section) 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head p {
    margin-top: 18px;
    max-width: 62ch;
    font-size: 1.125rem;
    color: var(--ink-soft);
}

/* Closure record anatomy */

.record-card {
    border: 1.5px solid var(--verified);
    border-radius: var(--radius-lg);
    background: var(--base);
    overflow: hidden;
}

.record-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--verified-soft);
}

.record-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--verified);
    color: var(--surface);
    font-size: 0.8rem;
    font-weight: 700;
}

.record-name {
    font-weight: 650;
    font-size: 1.1rem;
}

.record-fields {
    padding: 8px 24px 16px;
}

.record-field {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}

.record-field:last-child {
    border-bottom: 0;
}

.record-field dt {
    font-variation-settings: "wdth" 118;
    font-weight: 700;
    color: var(--verified);
}

.record-photo {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(160deg, #c7cdd6 0%, #9aa3b0 100%);
    border: 1px solid var(--line);
}

.panel-screen {
    padding: 10px 14px;
    background: #0d2a1a;
    color: #7cf29a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.4;
    border-radius: 4px;
    box-shadow: inset 0 0 0 3px #3b4250;
}

/* Loop */

.loop {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    counter-reset: none;
}

.loop li {
    position: relative;
    padding: 0 24px 0 0;
}

.loop li::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 44px;
    right: 0;
    height: 2px;
    background: var(--line);
}

.loop li:last-child::before {
    display: none;
}

.loop-step {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid var(--signal);
    color: var(--signal);
    background: var(--base);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.loop p {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.loop-escalate .loop-step {
    border-color: var(--escalate);
    color: var(--escalate);
}

.loop li:last-child .loop-step {
    background: var(--verified);
    border-color: var(--verified);
    color: var(--surface);
}

/* Checklist: a ticked list */

.checklist {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.checklist li {
    position: relative;
    padding-left: 32px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--verified-soft);
    box-shadow: inset 0 0 0 1.5px var(--verified);
}

.checklist li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    width: 4px;
    height: 8px;
    border: solid var(--verified);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Phone mock */

.phone {
    width: 240px;
    padding: 28px 20px 24px;
    border-radius: 32px;
    background: var(--surface);
    border: 8px solid var(--ink);
    font-size: 0.85rem;
}

.phone-title {
    font-weight: 650;
}

.phone-meta {
    color: var(--ink-soft);
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.phone-q {
    margin: 12px 0 8px;
}

.phone-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.phone-choices span,
.phone-input {
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    text-align: center;
}

.phone-choices .is-on {
    border-color: var(--verified);
    background: var(--verified-soft);
    color: var(--verified);
    font-weight: 600;
}

.phone-input {
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.phone-btn {
    margin-top: 20px;
    padding: 10px;
    border-radius: 999px;
    background: var(--signal);
    color: var(--surface);
    text-align: center;
    font-weight: 600;
}

/* Rollout */

.rollout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 72px);
}

.rollout h2 {
    max-width: 12ch;
}

.rollout-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
}

.rollout-facts dt {
    font-weight: 650;
    font-size: 1.1rem;
}

.rollout-facts dd {
    margin-top: 6px;
    color: var(--ink-soft);
}

/* Closing call to action */

.cta-section {
    background: var(--signal);
    color: #fff;
    padding: clamp(64px, 9vw, 112px) 0;
}

:root[data-theme="dark"] .cta-section {
    background: #24448a;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .cta-section {
        background: #24448a;
    }
}

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: end;
}

.cta h2 {
    max-width: 18ch;
}

.cta p {
    margin: 20px 0 32px;
    max-width: 52ch;
    font-size: 1.15rem;
    color: #dce6fa;
}

.cta-contact {
    font-style: normal;
    display: grid;
    gap: 12px;
    padding-left: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.35);
    color: #dce6fa;
}

.cta-contact a {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
}

.cta-contact a:hover {
    text-decoration: underline;
}

/* Footer */

.site-footer {
    padding: 64px 0 32px;
    background: var(--base);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 48px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 32ch;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-nav h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-nav a {
    display: block;
    padding: 4px 0;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--ink);
}

.footer-legal {
    display: flex;
    gap: 24px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.footer-legal p {
    margin-right: auto;
}

.footer-legal a {
    color: var(--ink-soft);
}

/* Solutions overview on the home page */

.solutions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.solution {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.solution > a,
.solution:not(.has-page) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.solution p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.solution.has-page {
    border-top: 3px solid var(--green);
}

.solution.has-page:hover {
    border-color: var(--signal);
}

.solution-more {
    margin-top: auto;
    padding-top: 6px;
    color: var(--signal);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .solutions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .solutions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Responsive */

@media (max-width: 1080px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--base);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
        font-size: 1.05rem;
    }

    .nav-group-toggle {
        padding: 12px 0;
        font-size: 1.05rem;
    }

    .nav-menu {
        position: static;
        width: auto;
        padding: 0 0 8px 12px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .nav-group-toggle[aria-expanded="true"] + .nav-menu {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-nav .nav-menu a {
        padding: 10px 12px;
    }

    .nav-toggle {
        display: block;
    }

    .header-actions .link-quiet {
        display: none;
    }

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

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-copy h1 {
        max-width: 16ch;
    }

    .loop {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 40px;
    }

    .loop li:nth-child(3)::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .rollout,
    .cta,
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .header-actions .btn {
        display: none;
    }

    .row {
        grid-template-columns: 22px minmax(0, 1fr) 46px;
        row-gap: 2px;
        padding: 12px 16px;
    }

    .row-proof,
    .row-who {
        grid-column: 2;
        grid-row: auto;
    }

    .row-time {
        grid-column: 3;
        grid-row: 1;
    }

    .row-proof {
        grid-row: 2;
    }

    .row-who {
        display: none;
    }

    .ledger-rows {
        min-height: 420px;
    }

    .ledger-head,
    .ledger-caption {
        padding-left: 16px;
        padding-right: 16px;
    }

    .record-field {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .record-fields,
    .record-card-head {
        padding-left: 18px;
        padding-right: 18px;
    }

    .loop {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .loop li {
        padding: 0 0 32px 64px;
    }

    .loop li::before {
        top: 44px;
        bottom: 0;
        left: 21px;
        right: auto;
        width: 2px;
        height: auto;
        display: block;
    }

    .loop li:nth-child(3)::before {
        display: block;
    }

    .loop li:last-child::before {
        display: none;
    }

    .loop-step {
        position: absolute;
        left: 0;
        top: 0;
    }

    .rollout-facts,
    .footer-nav {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Home page story sections, on top of the story kit in time.css */

.value-wide {
    grid-column: 1 / -1;
}

.value-wide p {
    max-width: 72ch;
}

.section-head p + p {
    margin-top: 10px;
}

.section-cta {
    margin-top: 40px;
}

.problem-questions {
    font-weight: 600;
    color: var(--on-deep);
}

.proof-section .proof-note + .section-cta {
    margin-top: 32px;
}

.triggers {
    margin-bottom: 40px;
}

.home-strip {
    margin-bottom: 0;
}

.exception-line {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--escalate-soft);
    color: var(--escalate);
    font-weight: 700;
}

.split-copy p.exception-line {
    color: var(--escalate);
}

.state.is-failed {
    background: var(--stop-soft);
    color: var(--stop);
}

.board-rest {
    background: var(--verified-soft);
}

.home-easy {
    margin-top: 48px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-on-signal {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-on-signal:hover {
    border-color: #fff;
}

.cta-copy p:first-of-type:not(:last-of-type) {
    margin-bottom: 0;
}

.cta-copy p + p {
    margin-top: 12px;
}

/* Long button labels wrap on a phone rather than overflow */
.section-cta .btn,
.cta-buttons .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
