/* Bry3D homepage: "One record, followed".
   The story column and the sticky record share one grid from the hero
   down to the customer page; everything after runs full width. */

.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-16);
    align-items: start;
}
.story-main { min-width: 0; }

/* Hero */
.hero { padding-block: 20px var(--space-24); }
.hero .display { max-width: 16em; }
.hero .display span { display: block; text-wrap: balance; }
.hero .lead { margin-top: 20px; max-width: 48ch; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: 24px;
}

/* Will Bry3D work for me? The fit check's first question, answered here */
.fit-check { padding-block: var(--space-24); border-top: 1px solid var(--border); }
.fit-check .h2 { max-width: 20ch; }
.fit-panel {
    margin-top: var(--space-12);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
/* The same "Your Bry3D setup" card the questionnaire fills, shown here at its first question */
.fit-panel-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
    background: var(--side);
    color: var(--side-ink);
}
.fit-panel-t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.fit-count {
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    background: var(--side-wash);
    color: var(--side-ink);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.fit-ramp {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: var(--space-3) var(--space-6) 0;
}
.fit-ramp li {
    position: relative;
    padding-top: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fit-ramp li::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    border-radius: var(--radius-xs);
    background: var(--hairline);
}
.fit-ramp li.is-on { color: var(--ink); }
.fit-ramp li.is-on::before { background: var(--stage-1); }
.fit-q {
    padding: var(--space-8) var(--space-6) 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.028em;
}
.fit-tiles {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: var(--space-2);
    padding: var(--space-6) var(--space-6) var(--space-8);
}
.fit-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    min-height: 60px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    transition: border-color 0.15s, background-color 0.25s var(--ease-out);
}
.fit-tile svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform 0.25s var(--ease-out), color 0.15s; }
.fit-tile:hover { border-color: var(--border-strong); }
.fit-tile:hover svg { color: var(--blue-ink); transform: translateX(3px); }
.fit-tile:active { background: var(--plan-select); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.fit-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-6);
    padding: 14px var(--space-6);
    border-top: 1px solid var(--hairline);
    background: var(--ground);
    font-size: 13px;
    color: var(--muted);
}
.fit-foot .arrow-link { font-size: 14px; }
.fit-foot .arrow-link[hidden] { display: none; }

/* Sample configurator */
.cfg {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.cfg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--hairline);
}
.cfg-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.fmt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: var(--hairline);
    color: var(--ink-2);
}
.cfg-tabs [aria-selected="true"] .fmt { background: var(--surface); color: var(--blue-ink); }
.cfg-panel[hidden] { display: none; }
.cfg-body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.cfg-shot {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    background: var(--ground);
    border-right: 1px solid var(--border);
}
/* At least 16:10, keeping the column's width; taller when the options are. */
.cfg-shot::before { content: ""; display: block; padding-top: 62.5%; }
.cfg-shot .shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
}
.cfg-shot .shot.is-front { opacity: 1; }
.cfg-shot figcaption {
    position: absolute;
    left: var(--space-3);
    bottom: var(--space-3);
    padding: 4px 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
}
.cfg-opts { padding: var(--space-6) var(--space-6) var(--space-4); }
.cfg-opts .opt-group + .opt-group { margin-top: var(--space-4); }
.cfg-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-6);
    border-top: 1px solid var(--border);
    background: var(--ground);
}
.estimate { display: flex; align-items: baseline; gap: var(--space-3); }
.estimate span { font-size: 14px; color: var(--muted); }
.estimate b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* Wash when something the visitor chose lands somewhere new */

/* The record */
.record {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.record-h {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-4) var(--space-4) 18px;
    background: var(--side);
    color: var(--side-ink);
}
.record-h > div { display: grid; gap: 1px; margin-right: auto; }
.record-h b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.record-h > div span { font-size: 12.5px; color: var(--side-ink-muted); }
.record-stage {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    background: var(--side-wash);
    color: var(--side-ink);
    white-space: nowrap;
}
.record-peek { display: none; }

.ramp {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: var(--space-4) var(--space-4) var(--space-3);
}
.ramp li {
    /* The bar carries the stage; its name is in the header chip. The label
       stays in the markup for assistive tech and for the chip's text. */
    position: relative;
    height: 6px;
    font-size: 0;
    color: transparent;
    overflow: hidden;
}
.ramp li::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 6px;
    border-radius: var(--radius-xs);
    background: var(--hairline);
    transition: background-color 0.5s var(--ease-out);
}
.ramp li.is-on[data-step="1"]::before { background: var(--stage-1); }
.ramp li.is-on[data-step="2"]::before { background: var(--stage-2); }
.ramp li.is-on[data-step="3"]::before { background: var(--stage-3); }
.ramp li.is-on[data-step="4"]::before { background: var(--stage-4); }
.ramp li.is-on[data-step="5"]::before { background: var(--stage-5); }

.record-body { padding: 0 var(--space-4); }
.rf {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: baseline;
    padding: 9px 6px;
    margin-inline: -6px;
    border-top: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
}
.rf dt { font-size: 12.5px; color: var(--muted); }
.rf dd { font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.rf.is-ghost dd {
    color: var(--muted);
    font-weight: 400;
    font-size: 13px;
}
.rf.is-ghost dd {
    background-image: linear-gradient(90deg, var(--border-strong) 50%, transparent 50%);
    background-size: 6px 1px;
    background-repeat: repeat-x;
    background-position: 0 100%;
    width: fit-content;
    padding-bottom: 2px;
}
.record-f {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border);
    background: var(--ground);
    font-size: 13px;
    color: var(--muted);
}
.record-f .rf-done { display: none; align-items: center; gap: 8px; color: var(--good-ink); font-weight: 500; }
.record.is-complete .rf-progress { display: none; }
.record.is-complete .rf-done { display: inline-flex; }

/* Steps */
.step {
    padding-block: var(--space-24);
    border-top: 1px solid var(--border);
}
.step-text .body-text { margin-top: var(--space-4); }
.step-text .h2 { max-width: 20ch; }
.step-visual { margin-top: var(--space-12); position: relative; }

/* Lane (lead list) */
.lane {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.lane-h {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
}
.lane-h b { font-size: 14px; font-weight: 600; }
.lane-h .tot { font-size: 13px; color: var(--muted); }
.lane-h .sample-tag { margin-left: auto; }
.lane-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
}
.lane-row.is-this { background: var(--blue-tint); }
.av {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-lg);
    background: var(--hairline);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.is-this .av { background: var(--surface); }
.who { min-width: 0; }
.who b { display: block; font-size: 14px; font-weight: 600; }
.who > span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane-row .r { display: flex; align-items: center; gap: var(--space-3); }
.lane-row .r b { font-size: 14px; font-weight: 600; min-width: 64px; text-align: right; }
.lane-row .btn-xs { min-width: 56px; }
.lane-f {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--ground);
}

/* Quote */
.quote-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
}
.quote-doc {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: var(--space-8);
}
.quote-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding-bottom: var(--space-6);
    border-bottom: 1.5px solid var(--ink);
}
.your-logo {
    display: inline-grid;
    place-items: center;
    width: 112px;
    height: 44px;
    border: 1px dashed var(--dash);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--muted);
}
.your-logo.sm { width: 88px; height: 30px; font-size: 11px; }
.quote-id { display: grid; justify-items: end; gap: 6px; }
.quote-id b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.quote-for { margin-top: var(--space-4); font-size: 14px; color: var(--muted); }
.quote-lines { width: 100%; margin-top: var(--space-4); border-collapse: collapse; font-size: 14px; }
.quote-lines th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.quote-lines td { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.quote-lines .amt { text-align: right; white-space: nowrap; }
.quote-lines tfoot td { border-bottom: 0; padding: 6px 0; color: var(--ink-2); }
.quote-lines tfoot .sub td { padding-top: 14px; }
.quote-lines tfoot .total td { padding-top: 10px; border-top: 1.5px solid var(--ink); font-weight: 700; font-size: 16px; color: var(--ink); }
.quote-sign {
    margin-top: var(--space-6);
    padding: var(--space-3) var(--space-4);
    border: 1px dashed var(--dash);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--muted);
    transition: background-color 0.5s var(--ease-out), border-color 0.5s;
}
.quote-sign .is-signed { display: none; align-items: center; gap: 8px; color: var(--good-ink); font-weight: 600; }
.quote-sign svg { width: 18px; height: 18px; }
.quote-sign.is-signed { border-style: solid; border-color: transparent; background: var(--good-tint); }
.quote-sign.is-signed .is-waiting { display: none; }
.quote-sign.is-signed .is-signed { display: inline-flex; }

.rev-list { list-style: none; display: grid; gap: 0; padding-top: var(--space-2); }
.rev-list li {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 0 0 var(--space-6) 26px;
}
.rev-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink-2);
}
.rev-list li::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    bottom: 2px;
    width: 1px;
    background: var(--border);
}
.rev-list li:last-child::after { display: none; }
.rev-list b { font-size: 14px; font-weight: 600; }
.rev-list span { font-size: 13px; color: var(--muted); }
.rev-list .rev-signed.is-signed::before { background: var(--good); }
.rev-signed .when-waiting { display: none; }
.rev-signed:not(.is-signed) .when-signed { display: none; }
.rev-signed:not(.is-signed) .when-waiting { display: block; font-weight: 500; color: var(--muted); }
.rev-signed:not(.is-signed)::before { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--dash); }

/* Follow-up */
.follow-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}
.flow {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.flow-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
}
.flow-h b { font-size: 14px; }
.flow ol { list-style: none; padding: var(--space-2) 16px; }
.flow li {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--space-2);
    padding: 12px 0 12px 22px;
    font-size: 14.5px;
    color: var(--ink);
}
.flow li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--muted);
    background: var(--surface);
}
.flow li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 30px;
    bottom: -10px;
    width: 1px;
    background: var(--border);
}
.flow li:last-child::after { display: none; }
.flow-k { font-weight: 600; color: var(--ink-2); }
.flow-f { padding: 10px 16px; font-size: 13px; color: var(--muted); background: var(--ground); border-top: 1px solid var(--hairline); }

.chat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0 0 var(--space-4);
    display: grid;
    gap: var(--space-2);
}
.chat-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: var(--space-2);
}
.chat-h b { font-size: 14px; }
.msg {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    line-height: 1.45;
    margin-inline: 16px;
}
.msg.in { background: var(--hairline); color: var(--ink); border-bottom-left-radius: 4px; justify-self: start; }
.msg.out { background: var(--blue-tint); color: var(--ink); border-bottom-right-radius: 4px; justify-self: end; }
.chat-note {
    margin: var(--space-2) 16px 0;
    padding-top: var(--space-3);
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--muted);
}

/* Job board */
.board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    align-items: start;
}
.board-col {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-2);
    background: color-mix(in srgb, var(--border) 45%, var(--ground));
    border-radius: var(--radius-xl);
    min-height: 220px;
    align-content: start;
}
.board-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}
.job {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 13px;
}
.job > b { font-size: 14px; font-weight: 600; }
.job > span:not(.chip) { color: var(--muted); }
.job .chip { justify-self: start; margin-top: 4px; }
.job.is-this { background: var(--blue-tint); }
.tasks { list-style: none; display: grid; gap: 6px; margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--hairline); }
.tasks li { display: flex; align-items: center; gap: 6px; color: var(--ink-2); flex-wrap: wrap; }
.tasks svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.tasks .done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dash); }
.tasks .done svg { color: var(--good); }
.tasks .chip { margin: 0 0 0 auto; }
.board-tag { position: absolute; right: 0; top: -28px; }

/* Customer page */
.step-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-12);
    align-items: center;
}
.portal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 10px;
}
.portal-top { padding: 12px 12px 14px; border-bottom: 1px solid var(--hairline); }
.portal-body { padding: 18px 12px 12px; }
.portal-k { font-size: 12.5px; color: var(--muted); }
.portal-t { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.portal-steps { list-style: none; margin-top: var(--space-4); display: grid; }
.portal-steps li {
    position: relative;
    padding: 9px 0 9px 28px;
    font-size: 14px;
    color: var(--muted);
}
.portal-steps li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
}
.portal-steps li::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 27px;
    bottom: -9px;
    width: 1px;
    background: var(--border);
}
.portal-steps li:last-child::after { display: none; }
.portal-steps .done { color: var(--ink-2); }
.portal-steps .done::before { background: var(--good); border-color: var(--good); }
.portal-steps .now { color: var(--ink); font-weight: 600; }
.portal-steps .now::before { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 4px var(--hairline); }

/* Numbers */
.numbers { padding-block: var(--space-24); border-top: 1px solid var(--border); background: var(--surface); }
.numbers-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8) var(--space-16); align-items: end; }
.numbers-head .h2 { max-width: 18ch; }
.strip {
    margin-top: var(--space-12);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 16px 20px 14px;
    background: var(--surface);
}
.strip-t { display: flex; align-items: baseline; gap: var(--space-6); margin-bottom: 12px; flex-wrap: wrap; }
.strip .big { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.strip .big small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.strip .how { font-size: 13px; color: var(--muted); }
.strip .sample-tag { margin-left: auto; }
.segs { display: flex; gap: 2px; height: 48px; }
.segs > div {
    min-width: 0;
    border-radius: var(--radius-xs);
    padding: 7px 10px;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    color: var(--on-blue);
}
.segs b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.segs small { display: block; font-size: 11.5px; }
.segs em { display: none; }
.segs .s1 { --c: var(--stage-1); } .segs .s2 { --c: var(--stage-2); } .segs .s3 { --c: var(--stage-3); } .segs .s4 { --c: var(--stage-4); } .segs .s5 { --c: var(--stage-5); }
.segs .s1 { background: var(--stage-1); color: var(--ink); }
.segs .s2 { background: var(--stage-2); color: var(--ink); }
.segs .s3 { background: var(--stage-3); }
.segs .s4 { background: var(--stage-4); }
.segs .s5 { background: var(--stage-5); }
.quiet { display: flex; gap: 2px; margin-top: 6px; font-size: 12px; color: var(--warn-ink); }
.quiet > div { min-width: 0; display: flex; align-items: center; gap: 6px; padding-left: 10px; white-space: nowrap; overflow: hidden; }
.quiet i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex: none; }

/* Formats and demos */
.formats { padding-block: var(--space-24); border-top: 1px solid var(--border); }
.formats .h2 { max-width: 22ch; }
.fmt-badge {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 28px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    background: var(--blue-tint);
    color: var(--blue-ink);
    font-size: 13px;
    font-weight: 700;
}
.fmt-badge.sm { min-width: 0; height: 22px; font-size: 11.5px; padding: 0 6px; vertical-align: 3px; margin-left: 6px; }

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}
.demo-card {
    display: grid;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.2s;
}
.demo-card:hover { border-color: var(--border-strong); }
.demo-card:hover img { transform: scale(1.015); }
.demo-shot { aspect-ratio: 1440 / 844; overflow: hidden; background: var(--ground); border-bottom: 1px solid var(--border); }
.demo-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.demo-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-6);
    padding: var(--space-6);
}
.demo-body p { margin-top: 6px; color: var(--ink-2); max-width: 40ch; }
.demo-body .btn { flex: none; }
.demo-note { margin-top: var(--space-4); font-size: 14px; color: var(--muted); }
.forms-line {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    max-width: 78ch;
    font-size: 16px;
    color: var(--ink-2);
}
.forms-line .fmt-badge.sm { margin: 0 6px 0 0; vertical-align: 1px; }

/* Trust */
.trust { padding-block: var(--space-24); border-top: 1px solid var(--border); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.trust .h2 { max-width: 16ch; }
.trust .body-text { margin-top: var(--space-4); }
.trust-list { list-style: none; border-top: 1px solid var(--ink); }
.trust-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2) var(--space-6);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}
.trust-list b { font-weight: 500; color: var(--ink); }
.trust-list a { font-size: 14px; white-space: nowrap; }

/* Responsive */
@media (max-width: 1180px) {
    .story { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-12); }
    .rf { grid-template-columns: 88px minmax(0, 1fr); }
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote-visual { grid-template-columns: minmax(0, 1fr); }
    .rev-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
    .rev-list li { padding-bottom: 0; }
    .rev-list li::after { display: none; }
}

@media (max-width: 960px) {
    .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hero { padding-top: var(--space-8); padding-bottom: var(--space-16); }
    .step { padding-block: var(--space-16); }

    /* The record becomes a slim bar at the bottom: stage ramp plus the
       last field that filled in. Tapping it opens the full card above. */
    .record {
        position: fixed;
        left: var(--space-2);
        right: var(--space-2);
        bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
        top: auto;
        margin: 0;
        z-index: 900;
        max-width: 560px;
        margin-inline: auto;
        display: flex;
        flex-direction: column-reverse;
        box-shadow: 0 10px 20px -10px rgba(21, 23, 31, 0.4);
    }
    .record-peek {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) 20px;
        align-items: center;
        gap: var(--space-3);
        width: 100%;
        min-height: 48px;
        padding: 8px 12px;
        border: 0;
        background: var(--surface);
        text-align: left;
        font-size: 13.5px;
    }
    .record-peek svg { width: 18px; height: 18px; color: var(--ink-2); transition: transform 0.3s var(--ease-out); }
    .record.is-expanded .record-peek { border-top: 1px solid var(--border); }
    .record.is-expanded .record-peek svg { transform: rotate(180deg); }
    .peek-ramp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
    .peek-ramp i { height: 6px; border-radius: var(--radius-xs); background: var(--hairline); transition: background-color 0.5s var(--ease-out); }
    .peek-ramp i.is-on:nth-child(1) { background: var(--stage-1); }
    .peek-ramp i.is-on:nth-child(2) { background: var(--stage-2); }
    .peek-ramp i.is-on:nth-child(3) { background: var(--stage-3); }
    .peek-ramp i.is-on:nth-child(4) { background: var(--stage-4); }
    .peek-ramp i.is-on:nth-child(5) { background: var(--stage-5); }
    .peek-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
    .peek-text b { font-weight: 600; color: var(--muted); margin-right: 4px; }
    .record-full { display: none; }
    .record.is-expanded .record-full { display: block; max-height: 62vh; overflow-y: auto; }
    .record-h { padding: 10px 12px 10px 16px; }
    .site-footer { padding-bottom: calc(var(--space-8) + 120px); }

    .numbers-head, .trust-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
    .demo-grid { grid-template-columns: minmax(0, 1fr); }
    .close-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
    .close-mark { width: 120px; height: 120px; }
}

@media (max-width: 720px) {
    .cfg-top { flex-wrap: wrap; }
    .cfg-tabs { width: 100%; }
    .cfg-tabs button { flex: 1; justify-content: center; padding-inline: 6px; }
    .cfg-body { grid-template-columns: minmax(0, 1fr); }
    .cfg-shot { border-right: 0; border-bottom: 1px solid var(--border); }
    .cfg-opts { padding: var(--space-4); }
    .cfg-foot { padding: var(--space-3) var(--space-4); flex-wrap: wrap; }
    .step-split { grid-template-columns: minmax(0, 1fr); }
    .portal { max-width: 320px; }
    .follow-visual { grid-template-columns: minmax(0, 1fr); }
    .lane-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .lane-row .src { display: none; }
    .rev-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .rev-list li { padding-bottom: var(--space-4); }
    .board { grid-template-columns: minmax(0, 1fr); }
    .board-col { min-height: 0; }
    .board-tag { position: static; display: inline-flex; margin-top: var(--space-3); }
    .demo-body { flex-direction: column; align-items: flex-start; }
    .quote-doc { padding: var(--space-6) var(--space-4); }
    .strip-t .how { display: none; }
    .segs { flex-direction: column; height: auto; gap: 12px; }
    .segs > div {
        flex: none !important;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 8px;
        padding: 0;
        background: none !important;
        color: var(--ink) !important;
        overflow: visible;
        white-space: normal;
    }
    .segs > div::after {
        content: "";
        grid-column: 1 / -1;
        order: 1;
        height: 10px;
        width: calc(var(--v) / 720 * 100%);
        min-width: 8px;
        border-radius: var(--radius-xs);
        background: var(--c);
    }
    .segs small { display: block; text-align: right; color: var(--ink-2); font-size: 12.5px; }
    .segs em { display: block; order: 2; grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--warn-ink); }
    .segs em:empty { display: none; }
    .quiet { display: none; }
}

/* Compact option grids for the fence: two per row, prices on a second line */
.opt-row.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-row.two .opt { min-width: 0; }
.opt.stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.opt.stack small { font-size: 12px; }

@media (max-width: 640px) {
    .fit-check { padding-block: var(--space-16); }
    .fit-panel-h { padding: 12px 12px 12px var(--space-4); }
    .fit-ramp { padding-inline: var(--space-4); }
    .fit-q { padding: var(--space-6) var(--space-4) 0; }
    .fit-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: var(--space-4) var(--space-4) var(--space-6); }
    .fit-tile { min-height: 56px; font-size: 14.5px; }
    .fit-foot { padding: 12px var(--space-4); }
}
@media (max-width: 480px) {
    .fit-tiles { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .fit-tile { min-height: 52px; }
}
}
