/* Trix Optimizer — "The Diff". System rules live in DESIGN.md.
   Colour is semantic: it encodes what happened to a value, never mood. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --paper: #f1f3f5;
    --paper-raised: #ffffff;
    --ink: #14161a;
    --ink-soft: #5b6673;

    --kept: #5b6673;
    --kept-wash: #e3e7eb;
    --applied: #0f7a4d;
    --applied-wash: #e2f1e9;
    --caution: #8a5200;
    --caution-wash: #f7eddc;
    --rule: #d3d8de;

    --sans: 'Archivo', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --shell: 1180px;
    --gutter: 56px;
    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

a {
    color: inherit;
}

code,
kbd,
samp {
    font-family: var(--mono);
}

::selection {
    background: var(--applied-wash);
}

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 28px;
}

.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;
}

/* The gutter spine: a rule the page hangs from, with a mono marker. */
.spine {
    position: relative;
    padding-left: var(--gutter);
}

.spine::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 23px;
    width: 1px;
    background: var(--rule);
}

.spine-mark {
    position: absolute;
    left: 0;
    top: 0;
    width: 47px;
    text-align: right;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--paper);
    padding: 2px 0 6px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(241, 243, 245, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.wordmark {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.03em;
    text-decoration: none;
    white-space: nowrap;
}

.wordmark .plus {
    font-family: var(--mono);
    color: var(--applied);
    margin-right: 6px;
    font-weight: 700;
}

.wordmark .soft {
    color: var(--ink-soft);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.nav-link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--applied);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule);
}

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

.btn-text {
    background: none;
    color: var(--ink-soft);
    padding: 13px 4px;
}

.btn-text:hover {
    color: var(--ink);
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--applied);
    outline-offset: 3px;
}

/* ---------- Change set: the core component ---------- */

.changeset {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 3px;
    overflow: hidden;
}

.cs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
}

.cs-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.cs-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.cs-risk[data-risk="2"] {
    color: var(--caution);
}

.cs-risk[data-risk="3"] {
    color: #a32b1c;
}

/* Registry paths are long by nature. Wrap them rather than hiding the tail
   behind a scrollbar — a truncated path is exactly the thing being disclosed. */
.cs-path {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-soft);
    padding: 9px 20px;
    border-bottom: 1px solid var(--rule);
    word-break: break-all;
}

.cs-rows {
    list-style: none;
}

.row {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: start;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.5;
    border-bottom: 1px solid var(--rule);
}

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

.row .g {
    text-align: center;
    padding: 10px 0;
    font-weight: 700;
    color: var(--ink-soft);
    border-right: 1px solid var(--rule);
    user-select: none;
}

.row .val {
    padding: 10px 16px;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}

.row-kept {
    background: var(--kept-wash);
    color: var(--kept);
}

.row-applied {
    background: var(--applied-wash);
    color: var(--applied);
}

.row-applied .g {
    color: var(--applied);
}

/* Signature motion: applying strikes the prior row and writes the new one in.
   Toggling back reverses it exactly — the page proves reversibility by being reversible. */
/* The strike is drawn across the value itself, never the whole row. */
.row-kept .val > span {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 56%;
    background-size: 0% 1px;
    transition: background-size 0.45s var(--ease);
}

.changeset.is-applied .row-kept .val > span {
    background-size: 100% 1px;
}

/* Pending values stay readable at rest — a blank row reads as broken, not as "not yet". */
.row-applied .val > span {
    display: inline-block;
    opacity: 0.4;
    transition: opacity 0.3s var(--ease);
}

.changeset.is-applied .row-applied .val > span {
    opacity: 1;
    animation: write-in 0.5s var(--ease) 0.12s both;
}

@keyframes write-in {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

.cs-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 20px;
    border-top: 1px solid var(--rule);
    background: var(--paper);
}

.cs-note {
    font-size: 13.5px;
    color: var(--ink-soft);
    max-width: 34ch;
    flex: 1 1 220px;
}

.cs-toggle {
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 16px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    white-space: nowrap;
}

.changeset.is-applied .cs-toggle {
    background: transparent;
    color: var(--ink);
}

.cs-toggle:hover {
    background: var(--applied);
    border-color: var(--applied);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {

    .row-kept .val::after,
    .row-applied .val > span {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Sections ---------- */

section {
    padding: 96px 0;
    border-top: 1px solid var(--rule);
}

section:first-of-type {
    border-top: 0;
}

.sec-mark {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.sec-title {
    font-size: clamp(28px, 3.4vw, 40px);
    max-width: 20ch;
    margin-bottom: 18px;
}

.sec-lede {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 62ch;
}

/* ---------- Hero ---------- */

.hero {
    padding: 76px 0 88px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 66px);
    margin-bottom: 22px;
}

.hero h1 .struck {
    position: relative;
    color: var(--kept);
    white-space: nowrap;
}

.hero h1 .struck::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 54%;
    height: 3px;
    background: currentColor;
}

.hero p {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 48ch;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero p.hero-fine {
    margin: 18px 0 0;
    max-width: none;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-soft);
}

.synthetic {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--caution);
    background: var(--caution-wash);
    border: 1px solid rgba(178, 106, 0, 0.3);
    border-radius: 2px;
    padding: 4px 8px;
    margin-bottom: 12px;
}

/* ---------- Sequence ---------- */

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 56px;
    border-top: 1px solid var(--rule);
}

.step {
    padding: 26px 24px 8px 0;
    border-right: 1px solid var(--rule);
    padding-right: 24px;
}

.step:last-child {
    border-right: 0;
}

.step-n {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--applied);
    margin-bottom: 12px;
}

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

.step p {
    font-size: 14.5px;
    color: var(--ink-soft);
}

.step + .step {
    padding-left: 24px;
}

/* ---------- Catalog ---------- */

.cat-list {
    list-style: none;
    margin-top: 48px;
    border-top: 1px solid var(--rule);
}

.cat {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
}

.cat h3 {
    font-size: 19px;
}

.cat-say {
    font-size: 15.5px;
    color: var(--ink);
    margin-bottom: 8px;
    max-width: 58ch;
}

.cat-eg {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.cat-eg span {
    white-space: nowrap;
}

.cat-eg span::after {
    content: " · ";
    color: var(--rule);
}

.cat-eg span:last-child::after {
    content: "";
}

/* ---------- Price ---------- */

.price-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    margin-top: 48px;
    border: 1px solid var(--rule);
    background: var(--paper-raised);
}

.price-col {
    padding: 34px;
}

.price-col + .price-col {
    border-left: 1px solid var(--rule);
}

.price-tag {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.price-fig {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.price-fig small {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0;
}

.price-list {
    list-style: none;
    margin: 20px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.price-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    font-size: 15px;
    color: var(--ink-soft);
}

.price-list .g {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--applied);
}

.plan-note {
    font-size: 14px;
    color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--rule);
    padding: 56px 0 40px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.foot-grid p {
    color: var(--ink-soft);
    font-size: 14.5px;
    max-width: 40ch;
    margin-top: 12px;
}

.foot-col h4 {
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 14px;
}

.foot-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.foot-links a {
    font-size: 14.5px;
    text-decoration: none;
    color: var(--ink);
}

.foot-links a:hover {
    color: var(--applied);
}

.foot-bottom {
    border-top: 1px solid var(--rule);
    padding-top: 22px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
}

/* ---------- Plain-language change card ----------
   The human explanation leads. The registry detail is real and stays on the
   page, but it sits behind a disclosure so it never taxes a first read. */

.card {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 3px;
    overflow: hidden;
}

.card-head {
    padding: 20px 22px 18px;
}

.card-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.card-what {
    color: var(--ink-soft);
    font-size: 15.5px;
}

.card-facts {
    list-style: none;
    border-top: 1px solid var(--rule);
}

.card-facts li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px;
    padding: 11px 22px;
    font-size: 14.5px;
    border-bottom: 1px solid var(--rule);
}

.card-facts .g {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--applied);
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 16px 22px;
    background: var(--paper);
}

.card-note {
    font-size: 14px;
    color: var(--ink-soft);
    flex: 1 1 200px;
}

details.detail {
    border-top: 1px solid var(--rule);
    background: var(--paper);
}

details.detail > summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 22px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

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

details.detail > summary::before {
    content: "+ ";
    color: var(--applied);
    font-weight: 700;
}

details.detail[open] > summary::before {
    content: "− ";
}

details.detail > summary:hover {
    color: var(--ink);
}

details.detail .detail-body {
    border-top: 1px solid var(--rule);
}

/* ---------- Outcomes ---------- */

.gains {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 52px;
    border-top: 1px solid var(--rule);
}

.gains li {
    padding: 28px 26px 26px 0;
    border-right: 1px solid var(--rule);
}

.gains li:last-child {
    border-right: 0;
}

.gains li + li {
    padding-left: 26px;
}

.gains h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.gains p {
    color: var(--ink-soft);
    font-size: 15px;
}

@media (max-width: 860px) {
    .gains {
        grid-template-columns: 1fr;
    }

    .gains li {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
        padding: 22px 0;
    }

    .gains li + li {
        padding-left: 0;
    }

    .gains li:last-child {
        border-bottom: 0;
    }
}

/* ---------- Auth surfaces ---------- */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-aside {
    border-right: 1px solid var(--rule);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-main {
    background: var(--paper-raised);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 404px;
    margin: 0 auto;
}

.auth-aside .wordmark {
    margin-bottom: 44px;
    display: inline-block;
}

.auth-claim {
    font-size: clamp(28px, 3vw, 38px);
    max-width: 15ch;
    margin-bottom: 16px;
}

.auth-claim .struck {
    position: relative;
    color: var(--kept);
    white-space: nowrap;
}

.auth-claim .struck::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 55%;
    height: 2px;
    background: currentColor;
}

.auth-sub {
    color: var(--ink-soft);
    max-width: 44ch;
}

.assure {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--rule);
    padding-top: 28px;
}

.assure li {
    display: grid;
    grid-template-columns: 26px 1fr;
}

.assure .g {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--applied);
    line-height: 1.5;
}

.assure strong {
    display: block;
    font-size: 15.5px;
    margin-bottom: 3px;
}

.assure .t {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.5;
}

.auth-title {
    font-size: 26px;
    margin-bottom: 6px;
}

.auth-intro {
    color: var(--ink-soft);
    font-size: 15px;
    margin-bottom: 28px;
}

.field {
    margin-bottom: 18px;
}

.label {
    display: block;
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-bottom: 7px;
}

.input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 2px;
}

.input::placeholder {
    color: #8d97a3;
}

.input:focus {
    outline: none;
    border-color: var(--applied);
    box-shadow: 0 0 0 3px var(--applied-wash);
}

.field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field-row a {
    font-size: 13px;
    color: var(--applied);
    text-decoration: none;
    font-weight: 600;
}

.field-row a:hover {
    text-decoration: underline;
}

.hint {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 7px;
}

.btn-block {
    width: 100%;
    margin-top: 6px;
}

.notice {
    padding: 12px 14px;
    border-radius: 2px;
    font-size: 14.5px;
    line-height: 1.5;
    margin-top: 18px;
    border: 1px solid;
}

.notice-ok {
    background: var(--applied-wash);
    border-color: rgba(15, 122, 77, 0.35);
    color: var(--applied);
}

.notice-bad {
    background: #fbecea;
    border-color: rgba(163, 43, 28, 0.3);
    color: #a32b1c;
}

.sep {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
}

.sep::before,
.sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.btn-google {
    width: 100%;
    background: var(--paper-raised);
    color: var(--ink);
    border-color: var(--rule);
}

.btn-google:hover {
    border-color: var(--ink);
    background: var(--paper-raised);
}

.auth-foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    font-size: 14.5px;
    color: var(--ink-soft);
}

.auth-foot a {
    color: var(--applied);
    font-weight: 600;
    text-decoration: none;
}

.auth-foot a:hover {
    text-decoration: underline;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 26, 0.72);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--mono);
    font-size: 13px;
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
        padding: 40px 24px;
    }

    .auth-main {
        padding: 40px 24px;
    }

    .assure {
        margin-top: 28px;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .step:nth-child(2) {
        border-right: 0;
    }

    .step:nth-child(3) {
        padding-left: 0;
        border-top: 1px solid var(--rule);
    }

    .step:nth-child(4) {
        border-top: 1px solid var(--rule);
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .nav-menu {
        display: none;
    }

    section {
        padding: 64px 0;
    }

    .spine {
        padding-left: 38px;
    }

    .spine::before {
        left: 14px;
    }

    .spine-mark {
        width: 29px;
        font-size: 11px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        border-right: 0;
        border-top: 1px solid var(--rule);
        padding: 22px 0 14px;
    }

    .step:first-child {
        border-top: 0;
    }

    .step + .step {
        padding-left: 0;
    }

    .cat {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .price-wrap {
        grid-template-columns: 1fr;
    }

    .price-col + .price-col {
        border-left: 0;
        border-top: 1px solid var(--rule);
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cs-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── The film ──────────────────────────────────────────────────────────── */

/* Self-hosted under frontend/media/: the CSP is default-src 'self' with no
   external host, so an embed from a video platform would be blocked. */
#demo-film { border-top: 1px solid var(--rule); }

.film {
    margin: var(--s7) 0 0;
    border: 1px solid var(--rule);
    border-radius: 3px;
    overflow: hidden;
    background: var(--ink);
}

.film-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--ink);
}

.film-cap {
    padding: var(--s3) var(--s4);
    border-top: 1px solid var(--rule);
    background: var(--paper);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ---------- Landing page v3: a numbered teardown of the real product ---------- */

.home {
    --shell: 1280px;
    font-size: 16px;
    overflow-x: hidden;
}

.home .shell {
    padding-inline: clamp(22px, 4vw, 58px);
}

.home .site-header {
    background: rgba(241, 243, 245, 0.94);
    backdrop-filter: blur(18px);
}

.home .nav-wrap {
    height: 76px;
}

.home .nav-menu {
    margin-left: auto;
}

.home .btn {
    min-height: 46px;
    padding-inline: 22px;
    border-radius: 3px;
}

.hero-v3 {
    position: relative;
    padding: clamp(54px, 6vw, 84px) 0 70px;
    border: 0;
}

.hero-v3::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: var(--rule);
}

.hero-v3-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(42px, 8vw, 110px);
    align-items: end;
    margin-bottom: 46px;
}

.hero-kicker {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    margin: 0 0 -18px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-kicker span {
    padding: 6px 9px;
    border: 1px solid var(--rule);
    background: var(--paper-raised);
}

.hero-v3 h1 {
    max-width: 10ch;
    font-size: clamp(52px, 6.7vw, 88px);
    line-height: 0.91;
    letter-spacing: -0.04em;
}

.hero-v3 h1 em {
    color: var(--applied);
    font-style: normal;
}

.hero-v3-intro {
    padding-bottom: 5px;
}

.hero-v3-intro > p:first-child {
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-size: clamp(17px, 1.55vw, 20px);
    line-height: 1.55;
}

.home .hero-cta {
    margin-bottom: 16px;
}

.home .hero-fine {
    margin: 0;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-soft);
}

.teardown {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 0.28fr) minmax(0, 0.72fr);
    background: var(--ink);
    color: var(--paper);
    min-height: 620px;
    border: 1px solid var(--ink);
    box-shadow: 0 22px 60px rgba(20, 22, 26, 0.16);
}

.teardown-ledger {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(30px, 4vw, 54px);
    border-right: 1px solid #343941;
}

.ledger-index {
    display: block;
    margin-bottom: auto;
    font-family: var(--mono);
    font-size: clamp(62px, 8vw, 110px);
    line-height: 0.85;
    color: var(--applied);
}

.ledger-title {
    margin-bottom: 12px;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.ledger-copy {
    color: #aeb6c1;
    line-height: 1.55;
    max-width: 30ch;
}

.app-plate {
    position: relative;
    align-self: center;
    margin: clamp(32px, 4vw, 58px);
    border: 1px solid #343941;
    background: #0b0e11;
    box-shadow: 18px 22px 0 #0b0d10, 18px 22px 0 1px #343941;
}

.app-plate img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.82;
    transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}

.app-plate:has(.plate-pin:hover) img {
    opacity: 0.66;
    filter: saturate(0.78);
}

.plate-pin {
    position: absolute;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 7px rgba(20,22,26,0.72);
    transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.plate-pin.is-active {
    background: var(--applied);
    color: #fff;
    transform: scale(1.12);
    outline: none;
}

.pin-1 { left: 15%; top: 23%; }
.pin-2 { left: 27%; top: 65%; }
.pin-3 { left: 42%; top: 70%; }
.pin-4 { right: 6%; top: 10%; }

.teardown-tabs {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 28%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #343941;
    background: rgba(20,22,26,0.96);
}

.teardown-tab {
    min-height: 62px;
    padding: 12px 14px;
    border: 0;
    border-right: 1px solid #343941;
    background: transparent;
    color: #aeb6c1;
    font: 500 12px/1.25 var(--sans);
    text-align: left;
    cursor: pointer;
}

.teardown-tab:last-child { border-right: 0; }
.teardown-tab span { display: block; margin-bottom: 4px; color: var(--applied); font-family: var(--mono); font-size: 10px; }
.teardown-tab:hover,
.teardown-tab.is-active { background: #23272e; color: #fff; }

.hero-caption {
    margin-top: 14px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 11px;
}

.honesty {
    padding: 30px 0;
    border-block: 1px solid var(--rule);
    background: var(--paper-raised);
}

.honesty-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
}

.honesty-row p { margin: 0; }
.honesty-lead { font-size: 18px; font-weight: 700; }
.honesty-row p:nth-child(2) { max-width: 72ch; color: var(--ink-soft); }
.honesty-row a { color: var(--applied); font-weight: 700; text-decoration: none; white-space: nowrap; }

.home section:not(.hero-v3):not(.honesty) {
    padding: clamp(82px, 10vw, 138px) 0;
}

.section-label {
    margin-bottom: 24px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.proof-section {
    background: var(--paper-raised);
}

.proof-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(70px, 10vw, 150px);
}

.proof-heading {
    position: sticky;
    top: 120px;
    align-self: start;
}

.proof-heading h2,
.try-copy h2,
.film-copy h2,
.catalog-head h2,
.price-v3-copy h2 {
    margin-bottom: 24px;
    font-size: clamp(38px, 4.7vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.proof-heading > p:last-child,
.try-copy > p:last-child,
.film-copy > p,
.catalog-head > p,
.price-v3-copy > p:last-child {
    max-width: 48ch;
    color: var(--ink-soft);
    font-size: 18px;
}

.proof-track {
    list-style: none;
    border-top: 1px solid var(--rule);
}

.proof-track li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    padding: 28px 0 34px;
    border-bottom: 1px solid var(--rule);
}

.proof-n { padding-top: 4px; color: var(--applied); font: 700 12px var(--mono); }
.proof-track h3 { margin-bottom: 8px; font-size: 23px; }
.proof-track p { max-width: 48ch; color: var(--ink-soft); }
.proof-state { padding: 6px 9px; font: 600 10px var(--mono); text-transform: uppercase; white-space: nowrap; }
.kept-state { background: var(--kept-wash); color: var(--kept); }
.applied-state { background: var(--applied-wash); color: var(--applied); }

.try-section {
    background: var(--ink);
    color: var(--paper);
}

.try-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(60px, 9vw, 130px);
    align-items: center;
}

.try-section .section-label,
.try-copy > p:last-child { color: #aeb6c1; }

.try-changeset {
    border-color: #343941;
    background: #1d2026;
    color: #fff;
    box-shadow: 18px 18px 0 #0b0d10;
}

.try-changeset .cs-head,
.try-changeset .cs-path,
.try-changeset .row,
.try-changeset .cs-foot { border-color: #343941; }
.try-changeset .cs-head > span:first-child { display: flex; flex-direction: column; gap: 5px; }
.try-changeset .cs-head small { color: #aeb6c1; font-size: 13px; font-weight: 400; }
.try-changeset .cs-meta span:first-child { color: #d5dbe2; }
.try-changeset .row-kept { background: #252a31; color: #b6bec8; }
.try-changeset .row-applied { background: #16241d; color: #3fbf84; }
.try-changeset .cs-foot { background: #14161a; }
.try-changeset .cs-note { color: #aeb6c1; }
.try-changeset .cs-toggle { border-color: #fff; background: #fff; color: var(--ink); }
.try-changeset.is-applied .cs-toggle { border-color: #3fbf84; background: transparent; color: #3fbf84; }

.real-app-section {
    background: var(--paper-raised);
}

.film-grid {
    display: grid;
    grid-template-columns: 0.46fr minmax(0, 1.54fr);
    gap: clamp(54px, 8vw, 110px);
    align-items: center;
}

.film-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font: 12px/1.55 var(--mono); }
.film-v3 { margin: 0; border: 1px solid var(--rule); background: var(--ink); box-shadow: 16px 18px 0 var(--kept-wash); }
.film-v3 .film-cap { background: var(--paper); }

.catalog-v3 { background: var(--paper); }
.catalog-head { display: grid; grid-template-columns: minmax(0, 1fr) 0.7fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.catalog-head h2 { max-width: 13ch; margin-bottom: 0; }
.catalog-table { border-top: 2px solid var(--ink); }
.catalog-row { display: grid; grid-template-columns: 0.75fr 1fr 1fr; gap: 36px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.catalog-row p:first-child { font-size: 19px; font-weight: 700; }
.catalog-row p:first-child span { margin-right: 12px; color: var(--applied); font: 700 11px var(--mono); }
.catalog-row p:nth-child(2) { color: var(--ink); }
.catalog-row p:last-child { color: var(--ink-soft); font-size: 14px; }
.catalog-caution { display: flex; gap: 16px; align-items: flex-start; max-width: 84ch; margin: 32px 0 0 auto; color: var(--caution); }
.catalog-caution span { display: inline-grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 1px solid currentColor; font: 700 12px var(--mono); }

.price-v3 {
    background: var(--applied-wash);
}

.price-v3-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 0.85fr);
    gap: clamp(70px, 11vw, 160px);
    align-items: center;
}

.price-receipt {
    padding: clamp(30px, 4vw, 48px);
    background: var(--paper-raised);
    border: 1px solid rgba(15, 122, 77, 0.28);
    box-shadow: 14px 16px 0 rgba(15, 122, 77, 0.12);
}

.receipt-head { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px dashed var(--rule); font: 11px var(--mono); color: var(--ink-soft); }

/* Billing period picker. Sits between the receipt head and the amount so the
   number below it visibly answers whichever period is selected. */
.plan-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 22px; padding: 5px; background: var(--paper); border: 1px solid var(--rule); }
.plan-option {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 8px; border: 1px solid transparent; background: none; cursor: pointer;
    font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.plan-option:hover { color: var(--ink); }
.plan-option.is-active { background: var(--paper-raised); border-color: rgba(15, 122, 77, 0.34); color: var(--ink); }
.plan-option:focus-visible { outline: 2px solid var(--applied); outline-offset: 2px; }
.plan-save { padding: 3px 6px; background: rgba(15, 122, 77, 0.12); color: var(--applied); font-size: 10px; letter-spacing: 0.04em; }
.price-reassure { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--applied); color: var(--ink-soft); }

.receipt-price { margin-top: 28px; font-size: clamp(78px, 9vw, 112px); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; }
.receipt-price sup { font-size: 24px; vertical-align: top; }
.receipt-once { margin: 14px 0 30px; color: var(--ink-soft); font: 12px var(--mono); }
.price-receipt ul { margin-bottom: 28px; list-style: none; border-top: 1px solid var(--rule); }
.price-receipt li { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.price-receipt li span:last-child { color: var(--applied); font: 11px var(--mono); text-transform: uppercase; }
.receipt-button { width: 100%; }
.receipt-fine { margin-top: 14px; color: var(--ink-soft); text-align: center; font: 11px/1.5 var(--mono); }
.receipt-manage { width: 100%; margin-top: 10px; padding: 8px 0; border: 0; background: none; color: var(--ink-soft); font: 11px/1.5 var(--mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.receipt-manage:hover:not(:disabled) { color: var(--applied); }
.receipt-manage:disabled { opacity: 0.5; cursor: default; }
.receipt-manage:focus-visible { outline: 2px solid var(--applied); outline-offset: 2px; }

.home-footer { padding: 48px 0 34px; background: var(--ink); color: var(--paper); border: 0; }
.footer-v3 { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: start; }
.footer-v3 > div:first-child p { margin-top: 10px; color: #98a2b0; }
.footer-links-v3 { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 26px; }
.footer-links-v3 a { color: #c8cfd8; text-decoration: none; font-size: 14px; }
.footer-links-v3 a:hover { color: #3fbf84; }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #343941; color: #7d8794; font: 11px var(--mono); }

@media (max-width: 980px) {
    .home .nav-menu { display: none; }
    .hero-v3-copy,
    .proof-grid,
    .try-grid,
    .film-grid,
    .price-v3-grid { grid-template-columns: 1fr; }
    .hero-v3-copy { gap: 32px; }
    .hero-kicker { margin-bottom: 0; }
    .hero-v3 h1 { max-width: 12ch; }
    .hero-v3-intro { max-width: 620px; }
    .teardown { grid-template-columns: 1fr; min-height: 0; }
    .teardown-ledger { min-height: 240px; border-right: 0; border-bottom: 1px solid #343941; }
    .ledger-index { margin-bottom: 45px; font-size: 72px; }
    .app-plate { margin-bottom: 100px; }
    .teardown-tabs { left: 0; }
    .proof-heading { position: static; }
    .catalog-head { grid-template-columns: 1fr; gap: 22px; }
    .film-grid { gap: 48px; }
}

@media (max-width: 720px) {
    .home .nav-actions .btn-text { display: none !important; }
    .home .nav-wrap { height: 66px; }
    .home .wordmark .soft { display: none; }
    .home .nav-actions .btn { min-height: 44px; padding-inline: 14px; font-size: 13px; }
    .hero-v3 { padding-top: 54px; }
    .hero-v3 h1 { font-size: clamp(48px, 15vw, 70px); }
    .hero-v3-copy { margin-bottom: 40px; }
    .teardown-ledger { padding: 26px; min-height: 250px; }
    .ledger-copy { max-width: none; }
    .app-plate { margin: 26px 18px 175px; box-shadow: 8px 10px 0 #0b0d10; }
    .plate-pin { width: 44px; height: 44px; box-shadow: 0 0 0 4px rgba(20,22,26,0.72); }
    .teardown-tabs { grid-template-columns: 1fr 1fr; }
    .teardown-tab { min-height: 58px; }
    .honesty-row { grid-template-columns: 1fr; gap: 10px; }
    .honesty-row a { margin-top: 8px; }
    .proof-track li { grid-template-columns: 38px 1fr; }
    .proof-state { grid-column: 2; justify-self: start; }
    .catalog-row { grid-template-columns: 1fr; gap: 9px; padding: 23px 0; }
    .catalog-row p:last-child { margin-top: 5px; }
    .price-v3-grid { gap: 48px; }
    .price-receipt { min-width: 0; }
    .footer-v3 { grid-template-columns: 1fr; }
    .footer-links-v3 { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .app-plate img,
    .plate-pin,
    .row-kept .val > span,
    .row-applied .val > span { transition: none; animation: none; }
}
