/* ===========================================================================
   Remove Background Free - visual system "Alpha grid"
   Motif: the transparency checkerboard means "nothing here", never decoration.
   Partner motif: marching ants (dashed magenta outline) means "selected".
   =========================================================================== */

/* --- reset ---------------------------------------------------------------
   The page ships no CSS framework, so the few reboot rules the layout relies
   on live here. Margins match what Bootstrap used to provide.
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

img, svg {
    vertical-align: middle;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

button {
    text-transform: none;
}

table {
    border-collapse: collapse;
}

/* --- fonts ---------------------------------------------------------------- */
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('../fonts/public-sans-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* Metric-matched fallback keeps layout shift at zero while the webfont loads. */
@font-face {
    font-family: 'Public Sans Fallback';
    src: local('Helvetica Neue'), local('Arial'), local('Liberation Sans');
    size-adjust: 100%;
    ascent-override: 95%;
    descent-override: 24%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Bricolage Fallback';
    src: local('Helvetica Neue'), local('Arial'), local('Liberation Sans');
    size-adjust: 96%;
    ascent-override: 98%;
    descent-override: 24%;
    line-gap-override: 0%;
}

/* --- tokens --------------------------------------------------------------- */
:root {
    --ink: #10131a;
    --ink-2: #39404e;
    --muted: #566070;
    --canvas: #edf0f5;
    --paper: #ffffff;
    --line: #dbe0e9;
    --line-strong: #c3cbd8;

    --accent: #e5006e;
    --accent-hover: #c2005e;
    --accent-text: #b80058;
    --accent-bright: #ff4d9d;
    --accent-tint: #fff0f6;

    --dark: #10131a;
    --dark-2: #191d26;
    --dark-line: #2b3241;
    --dark-text: #e7eaf0;
    --dark-muted: #a7b0c0;

    --chk-a: #ffffff;
    --chk-b: #e3e8f0;
    --chk-size: 18px;
    --chk-dark-a: #171b23;
    --chk-dark-b: #222835;

    --r-lg: 14px;
    --r: 10px;
    --r-sm: 6px;

    --sh-1: 0 1px 2px rgba(16, 19, 26, 0.06);
    --sh-2: 0 14px 34px -18px rgba(16, 19, 26, 0.45);

    --fast: 140ms;
    --slow: 220ms;
    --ease: cubic-bezier(0.2, 0.6, 0.3, 1);

    --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Public Sans', 'Public Sans Fallback', 'Helvetica Neue', Arial, sans-serif;

    --measure: 68ch;
}

/* --- base ----------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    letter-spacing: 0;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 40;
}

h1 {
    font-size: clamp(2.1rem, 1.25rem + 3.7vw, 3.6rem);
    font-variation-settings: 'opsz' 72;
}

h2 {
    font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.3rem);
    margin-bottom: 0.6em;
}

h3 {
    font-size: 1.1875rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-variation-settings: 'opsz' 20;
}

p {
    max-width: var(--measure);
}

a {
    color: var(--accent-text);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--accent-hover);
}

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

.tnum {
    font-variant-numeric: tabular-nums;
}

.container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* --- the alpha grid (signature) ------------------------------------------- */
.alpha-grid {
    background-color: var(--chk-a);
    background-image:
        conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0);
    background-size: var(--chk-size) var(--chk-size);
    background-position: 0 0;
}

.alpha-grid--dark {
    --chk-a: var(--chk-dark-a);
    --chk-b: var(--chk-dark-b);
}

.alpha-strip {
    height: 10px;
    --chk-size: 10px;
}

/* --- skip link ------------------------------------------------------------ */
.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 10000;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- header --------------------------------------------------------------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    padding: 8px 0;
}

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

.brand svg {
    display: block;
    flex: none;
}

.brand span {
    white-space: nowrap;
}

.nav-toggle {
    margin-left: auto;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink);
}

.nav-toggle:hover {
    border-color: var(--line-strong);
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.site-nav a:hover {
    background: var(--canvas);
    color: var(--ink);
}

.site-nav a[aria-current='page'] {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--accent);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.site-nav .nav-cta a,
a.btn-cut {
    background: var(--accent);
    color: #fff;
}

.site-nav .nav-cta a:hover {
    background: var(--accent-hover);
    color: #fff;
}

.site-nav .nav-cta a {
    padding: 0 18px;
    border-radius: var(--r);
    margin-left: 8px;
}

@media (max-width: 860px) {
    .site-nav {
        display: none;
        width: 100%;
        order: 3;
        margin: 0;
        padding-bottom: 12px;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

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

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        border-top: 1px solid var(--line);
        padding-top: 8px;
    }

    .site-nav a {
        min-height: 48px;
        padding: 0 12px;
    }

    .site-nav .nav-cta a {
        margin: 8px 0 0;
        justify-content: center;
    }
}

@media (min-width: 861px) {
    .nav-toggle {
        display: none;
    }
}

/* --- buttons -------------------------------------------------------------- */
.btn-cut,
.btn-quiet,
.btn-plain {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--r);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.btn-cut {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-cut:hover,
.btn-cut:focus-visible {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-quiet {
    background: var(--paper);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-plain {
    background: none;
    border-color: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 12px;
}

.btn-plain:hover,
.btn-plain:focus-visible {
    color: var(--accent-text);
}

.btn-cut[disabled],
.btn-quiet[disabled],
.btn-plain[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* --- hero ----------------------------------------------------------------- */
.hero {
    padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px);
}

.hero-grid {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 56px;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 6px 6px 0 -3px var(--accent);
}

h1 .cut-word {
    position: relative;
    display: inline-block;
    padding: 0 8px;
    background-color: var(--chk-a);
    background-image:
        conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0);
    background-size: 14px 14px;
    outline: 2px dashed var(--accent);
    outline-offset: 3px;
}

.hero .lead {
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    color: var(--ink-2);
    margin: 18px 0 0;
    max-width: 46ch;
}

.hero .lead strong {
    color: var(--ink);
    font-weight: 700;
}

/* --- facts ---------------------------------------------------------------- */
.facts {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.facts li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    flex: none;
}

/* --- dropzone ------------------------------------------------------------- */
.drop-form {
    margin-top: 26px;
}

.drop {
    --chk-b: #eef1f7;
    --chk-size: 24px;
    position: relative;
    display: block;
    width: 100%;
    min-height: 208px;
    padding: 26px 22px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--r-lg);
    background-color: var(--paper);
    background-image:
        conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0);
    background-size: var(--chk-size) var(--chk-size);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.drop:hover {
    border-color: var(--accent);
}

.drop:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* marching ants: the selection outline the tool is really about */
.drop::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    pointer-events: none;
    opacity: 0;
    background-image:
        repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px),
        repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px),
        repeating-linear-gradient(0deg, var(--accent) 0 8px, transparent 8px 16px),
        repeating-linear-gradient(0deg, var(--accent) 0 8px, transparent 8px 16px);
    background-size: 100% 2px, 100% 2px, 2px 100%, 2px 100%;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: no-repeat;
    animation: ants 520ms linear infinite;
}

.drop.is-drag::after {
    opacity: 1;
}

.drop.is-drag {
    border-color: transparent;
    background-color: var(--accent-tint);
    transform: scale(1.005);
}

@keyframes ants {
    to {
        background-position: 16px 0, -16px 100%, 0 -16px, 100% 16px;
    }
}

.drop.is-busy {
    cursor: progress;
    border-color: var(--accent);
    background-color: var(--paper);
    background-image: none;
}

.drop-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.drop-icon {
    color: var(--accent);
}

.drop-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.375rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: 'opsz' 24;
}

.drop-sub {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.drop-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

/* Without JS the zone holds a plain file input and the form keeps a submit button. */
.drop input[type='file'] {
    max-width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--paper);
    font-size: 0.9375rem;
}

.js .drop input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.fallback {
    margin-top: 16px;
}

.js .fallback,
html:not(.js) #paste-hint {
    display: none;
}

/* selected-file state */
.drop-picked {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
}

.drop-picked img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--r-sm);
    background: var(--canvas);
    flex: none;
}

.drop-picked-name {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9375rem;
    word-break: break-all;
}

.drop-picked-meta {
    font-size: 0.875rem;
    color: var(--muted);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 720ms linear infinite;
    flex: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* error, shared by client and server validation */
.upload-error {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0 0;
    padding: 14px 16px;
    background: var(--accent-tint);
    border: 1px solid var(--accent);
    border-left-width: 5px;
    border-radius: var(--r);
    color: var(--ink);
    font-size: 0.9375rem;
    max-width: none;
}

.upload-error b {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent-text);
}

.upload-error-mark {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    margin-top: 2px;
}

.drop-note {
    margin: 14px 0 0;
    font-size: 0.875rem;
    color: var(--muted);
}

/* --- compare slider ------------------------------------------------------- */
.compare {
    margin: 0;
}

.compare-frame {
    --pos: 50%;
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-2);
    isolation: isolate;
}

.compare-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cmp-before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
    z-index: 2;
}

.cmp-range {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.cmp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 56px;
    height: 100%;
}

.cmp-range::-moz-range-thumb {
    width: 56px;
    height: 100%;
    border: 0;
    background: transparent;
}

.cmp-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: var(--accent);
    z-index: 3;
    pointer-events: none;
}

.cmp-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 10px rgba(16, 19, 26, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 7.5L6.5 12l4 4.5M13.5 7.5l4 4.5-4 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.cmp-range:focus-visible ~ .cmp-handle::after {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.cmp-tag {
    position: absolute;
    bottom: 12px;
    z-index: 3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    pointer-events: none;
}

.cmp-tag-l {
    left: 12px;
    background: rgba(16, 19, 26, 0.72);
    color: #fff;
}

.cmp-tag-r {
    right: 12px;
    background: var(--accent);
    color: #fff;
}

.compare figcaption {
    margin-top: 14px;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 42ch;
}

/* --- sections ------------------------------------------------------------- */
.section {
    padding: clamp(44px, 6vw, 84px) 0;
}

.section--tight {
    padding: clamp(32px, 4vw, 56px) 0;
}

.section + .section--tight {
    padding-top: 0;
}

.section-head {
    max-width: 54ch;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

/* steps: a real sequence, so the numbers carry meaning */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
    counter-reset: step;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}

/* the bar above each step loses its solid ink and turns into transparency,
   which is exactly what happens to the background across the three steps */
.steps li {
    position: relative;
    padding-top: 26px;
}

.steps li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 2px;
    background-color: var(--chk-a);
    background-image:
        conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0);
    background-size: 8px 8px;
    box-shadow: inset 0 0 0 1px var(--line);
}

.steps li:nth-child(1)::before {
    background-image: none;
    background-color: var(--ink);
    box-shadow: none;
}

.steps li:nth-child(2)::before {
    background-image:
        linear-gradient(90deg, var(--ink) 0 45%, transparent 45%),
        conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0);
    background-size: 100% 100%, 8px 8px;
}

.steps .step-n {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: block;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.steps h3 {
    margin: 0 0 8px;
}

.steps p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

/* --- dark band ------------------------------------------------------------ */
.band {
    background: var(--dark);
    color: var(--dark-text);
    overflow: hidden;
}

.band h2,
.band h3 {
    color: #fff;
}

.band a {
    color: var(--accent-bright);
}

.band a:hover {
    color: #fff;
}

.band-grid {
    display: grid;
    gap: 32px;
    align-items: end;
}

@media (min-width: 992px) {
    .band-grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 56px;
    }
}

.band-figure {
    position: relative;
    margin: 0;
    align-self: end;
}

.band-figure img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
}

.band-figure figcaption {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-muted);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    max-width: 22ch;
    margin-bottom: 18px;
}

.band-copy {
    padding: clamp(44px, 6vw, 84px) 0;
}

.band-copy p {
    color: var(--dark-muted);
}

.promises {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

@media (min-width: 640px) {
    .promises {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 32px;
    }
}

.promises li {
    padding-top: 14px;
    border-top: 1px solid var(--dark-line);
}

.promises b {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.0625rem;
    color: #fff;
    margin-bottom: 4px;
}

.promises span {
    font-size: 0.9375rem;
    color: var(--dark-muted);
}

/* --- two honest lists ----------------------------------------------------- */
.split {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 56px;
    }
}

.tick-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.tick-list li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-2);
}

.tick-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--accent);
}

.tick-list--muted li::before {
    background: var(--line-strong);
}

.note-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--sh-1);
}

.note-card h3 {
    margin-top: 0;
}

.note-card p:last-child {
    margin-bottom: 0;
}

/* --- closing strip -------------------------------------------------------- */
.closer {
    display: grid;
    gap: 20px;
    align-items: center;
    padding: clamp(28px, 4vw, 40px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

@media (min-width: 768px) {
    .closer {
        grid-template-columns: 1fr auto;
        gap: 32px;
    }
}

.closer h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
}

.closer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* --- prose pages ---------------------------------------------------------- */
.page-head {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 36px);
}

.page-head p {
    margin: 12px 0 0;
    color: var(--muted);
}

.prose {
    padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
}

.prose .container {
    max-width: 780px;
}

.prose h2 {
    font-size: 1.375rem;
    margin: 40px 0 10px;
}

.prose h2:first-of-type {
    margin-top: 0;
}

.prose p,
.prose li {
    color: var(--ink-2);
}

.prose ul {
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.prose ul li {
    position: relative;
    padding-left: 26px;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

.prose .lead {
    font-size: 1.125rem;
    color: var(--ink);
}

.prose-updated {
    margin-top: 32px;
    font-size: 0.875rem;
    color: var(--muted);
}

/* --- landing pages -------------------------------------------------------- */
.crumbs {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.crumbs a {
    color: var(--accent-text);
}

.crumbs span[aria-hidden] {
    margin: 0 6px;
    color: var(--line-strong);
}

/* The upload tool sits inside the text flow on landing pages, not in a hero
   grid, so it needs its own width limit. */
.tool-inline {
    max-width: 780px;
}

.tool-inline .drop-form {
    margin: 0;
}

.faq-list {
    margin: 0 0 20px;
    display: grid;
    gap: 18px;
}

.faq-list dt {
    font-family: var(--font-display, inherit);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.faq-list dd {
    margin: 0;
    color: var(--ink-2);
}

.answer-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 28px;
}

.answer-box p:last-child {
    margin-bottom: 0;
}

.compare-table {
    width: 100%;
    margin: 0 0 12px;
    font-size: 0.9375rem;
}

.table-scroll {
    overflow-x: auto;
    margin-bottom: 8px;
}

.compare-table th,
.compare-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.compare-table th {
    color: var(--ink);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.compare-table td {
    color: var(--ink-2);
}

.compare-table tr.is-us td {
    background: var(--accent-tint);
    color: var(--ink);
}

.compare-table .src {
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* --- examples gallery ----------------------------------------------------- */
.ex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.ex {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.ex-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ex-shot {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
}

.ex-shot + .ex-shot {
    border-left: 1px solid var(--line);
}

.ex-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.ex-tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(16, 19, 26, 0.82);
    color: #fff;
}

.ex-tag--clean {
    background: #0f6b3f;
}

.ex-tag--partial {
    background: #8a5200;
}

.ex-tag--failed {
    background: var(--accent-hover);
}

.ex figcaption {
    padding: 14px 16px 16px;
    display: grid;
    gap: 6px;
    border-top: 1px solid var(--line);
}

.ex figcaption b {
    font-family: var(--font-display);
    color: var(--ink);
}

.ex figcaption span {
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ex-meta {
    color: var(--muted) !important;
    font-size: 0.8125rem !important;
}

@media (max-width: 420px) {
    .ex-imgs {
        grid-template-columns: 1fr;
    }

    .ex-shot + .ex-shot {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* --- work screens (processing / result) ----------------------------------- */
.work {
    padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
}

.work-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    padding: clamp(20px, 3vw, 32px);
}

.work-narrow {
    max-width: 620px;
    margin-inline: auto;
}

.stage-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.stage-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--muted);
}

.stage-list .mark {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--line-strong);
    display: grid;
    place-items: center;
}

.stage-list li.is-done {
    color: var(--ink-2);
}

.stage-list li.is-done .mark {
    background: var(--ink);
    border-color: var(--ink);
}

.stage-list li.is-done .mark::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.stage-list li.is-active {
    color: var(--ink);
    font-weight: 700;
}

.stage-list li.is-active .mark {
    border-color: var(--accent);
    background: var(--accent-tint);
}

.stage-list li.is-active .mark::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    animation: pulse 1200ms ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.7);
    }
}

.track {
    position: relative;
    height: 6px;
    margin-top: 22px;
    border-radius: 999px;
    background: var(--canvas);
    overflow: hidden;
}

.track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38%;
    border-radius: 999px;
    background: var(--accent);
    animation: sweep 1600ms var(--ease) infinite;
}

@keyframes sweep {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

.work-thumb {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.work-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    flex: none;
}

.work-thumb .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.elapsed {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 14px 0 0;
}

/* result layout */
.result-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .result-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        gap: 32px;
    }
}

.stage {
    position: relative;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 16px;
}

.stage img {
    max-width: 100%;
    max-height: min(62vh, 560px);
    height: auto;
    width: auto;
    display: block;
}

.stage canvas {
    display: none;
}

.grounds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.grounds .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 4px;
}

.ground {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 12px 6px 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    color: var(--ink-2);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.ground .swatch {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    box-shadow: inset 0 0 0 1px rgba(16, 19, 26, 0.16);
    flex: none;
}

.ground[aria-pressed='true'] {
    border-color: var(--accent);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--accent);
}

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

.ground-custom input[type='color'] {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    border-radius: var(--r-sm);
    cursor: pointer;
}

.result-actions {
    display: grid;
    gap: 12px;
}

.result-actions .btn-cut,
.result-actions .btn-quiet {
    width: 100%;
}

.meta-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    font-size: 0.9375rem;
}

.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.meta-list b {
    color: var(--ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.feedback {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.feedback-q {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
}

.feedback-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.vote {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--r);
    border: 1px solid var(--line-strong);
    background: var(--paper);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink-2);
    cursor: pointer;
}

.vote:hover:not([disabled]) {
    border-color: var(--ink);
    color: var(--ink);
}

.vote[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.field {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--paper);
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
}

.field::placeholder {
    color: var(--muted);
}

.small-note {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 10px 0 0;
}

.small-note.is-ok {
    color: var(--accent-text);
    font-weight: 600;
}

.small-note.is-bad {
    color: var(--accent-text);
    font-weight: 600;
}

.ad-slot {
    margin-top: 28px;
    min-height: 300px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.ad-slot .label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.ad-slot ins {
    display: block;
    min-height: 280px;
    width: 100%;
}

/* --- footer --------------------------------------------------------------- */
.site-footer {
    flex: none;
    background: var(--dark);
    color: var(--dark-muted);
    margin-top: auto;
}

.site-footer .inner {
    padding: 44px 0 32px;
    display: grid;
    gap: 28px;
}

@media (min-width: 768px) {
    .site-footer .inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        gap: 48px;
    }
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand:hover {
    color: #fff;
}

.site-footer p {
    font-size: 0.9375rem;
    margin: 12px 0 0;
    max-width: 34ch;
}

.site-footer a {
    color: var(--dark-text);
}

.site-footer a:hover {
    color: var(--accent-bright);
}

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

@media (min-width: 560px) {
    .footer-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.footer-nav h2 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-muted);
    margin: 0 0 10px;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.footer-nav a {
    display: inline-block;
    padding: 8px 0;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9375rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--dark-line);
    padding: 18px 0 28px;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
}

/* --- cookie banner -------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: none;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 720px;
    margin-inline: auto;
    padding: 16px 18px;
    background: var(--dark-2);
    color: var(--dark-text);
    border: 1px solid var(--dark-line);
    border-radius: var(--r-lg);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    font-size: 0.9375rem;
}

.cookie-banner.is-open {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 260px;
    max-width: none;
}

.cookie-banner a {
    color: var(--accent-bright);
}

.cookie-banner .actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-banner button {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--r);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
}

.cookie-accept {
    background: var(--accent);
    color: #fff;
}

.cookie-accept:hover {
    background: var(--accent-hover);
}

.cookie-decline {
    background: transparent;
    border-color: var(--dark-line);
    color: var(--dark-text);
}

.cookie-decline:hover {
    border-color: var(--dark-muted);
}

/* --- utilities ------------------------------------------------------------ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.stack-sm > * + * {
    margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .track::after {
        left: 0;
        width: 100%;
        opacity: 0.5;
    }
}
