/*
 * CleanTably editorial tool pages
 * Shared visual system for the active 25/75 document-to-table pages.
 * Used by the active homepage and document-specific converter pages.
 */

:root {
    color-scheme: light;
    --v12-canvas: #f7f7f0;
    --v12-surface: #fffefa;
    --v12-surface-soft: #eef3ed;
    --v12-surface-strong: #e3ece4;
    --v12-ink: #10251f;
    --v12-muted: #587068;
    --v12-dim: #85968e;
    --v12-line: rgba(16, 37, 31, .15);
    --v12-line-soft: rgba(16, 37, 31, .08);
    --v12-accent: #0b9e6d;
    --v12-accent-dark: #08704f;
    --v12-accent-wash: rgba(11, 158, 109, .11);
    --v12-warm: #e3a05a;
    --v12-shadow: 0 24px 60px -34px rgba(29, 65, 51, .42);

    /* Names consumed by states rendered inside app.js. */
    --text-main: var(--v12-ink);
    --text-muted: var(--v12-muted);
    --text-dim: var(--v12-dim);
}
html[data-theme="dark"] {
    color-scheme: dark;
    --v12-canvas: #0e1915;
    --v12-surface: #15241e;
    --v12-surface-soft: #1b2d25;
    --v12-surface-strong: #243a30;
    --v12-ink: #edf8f0;
    --v12-muted: #aec4b8;
    --v12-dim: #7f9a8d;
    --v12-line: rgba(237, 248, 240, .16);
    --v12-line-soft: rgba(237, 248, 240, .09);
    --v12-accent: #32c38b;
    --v12-accent-dark: #7ae0b5;
    --v12-accent-wash: rgba(50, 195, 139, .13);
    --v12-warm: #e8ae68;
    --v12-shadow: 0 24px 60px -34px rgba(0, 0, 0, .65);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--v12-ink);
    background: var(--v12-canvas);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a,
button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
#drop-zone:focus-visible {
    outline: 3px solid var(--v12-warm);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.v12-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 64px;
    border-bottom: 1px solid var(--v12-line-soft);
    background: rgba(247, 247, 240, .92);
    backdrop-filter: blur(18px);
    transition: box-shadow .2s ease, background-color .2s ease;
}

html[data-theme="dark"] .v12-header {
    background: rgba(14, 25, 21, .92);
}

.v12-header.scrolled {
    box-shadow: 0 14px 28px -24px rgba(16, 37, 31, .8);
}

.v12-header-inner {
    width: min(100% - 3rem, 1240px);
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v12-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--v12-ink);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.v12-brand-logo {
    width: 31px;
    height: 31px;
    object-fit: contain;
    border-radius: 9px;
}

.v12-brand-note {
    color: var(--v12-dim);
    font: 500 .62rem/1 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.v12-header-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.v12-nav-link {
    color: var(--v12-muted);
    font-size: .78rem;
    text-decoration: none;
    transition: color .2s ease;
}

.v12-nav-link:hover {
    color: var(--v12-accent);
}

.theme-toggle {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: var(--v12-muted);
    background: var(--v12-surface);
    border: 1px solid var(--v12-line);
    border-radius: 50%;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
    color: var(--v12-accent);
    border-color: var(--v12-accent);
    transform: rotate(-8deg);
}

.v12-header-cta,
.v12-hero-link,
.tool-upload-btn,
.email-gate-btn,
.preview-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.v12-header-cta {
    min-height: 37px;
    padding: 0 .8rem;
    color: #fff;
    background: var(--v12-accent);
    border-radius: 9px;
    font-size: .76rem;
}

.v12-header-cta:hover,
.tool-upload-btn:hover,
.email-gate-btn:hover,
.preview-download-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -13px var(--v12-accent);
}

.v12-main {
    width: min(100% - 3rem, 1240px);
    margin: 0 auto;
    padding: clamp(1.15rem, 3vh, 2rem) 0 1rem;
}

.v12-hero {
    margin: 0 0 clamp(.9rem, 2vh, 1.35rem);
}

.v12-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .65rem;
    color: var(--v12-accent-dark);
    font: 500 .72rem/1.2 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.v12-kicker::before {
    content: "";
    width: 31px;
    height: 1px;
    background: var(--v12-warm);
}

.v12-kicker-arrow {
    color: var(--v12-warm);
}

.v12-title {
    max-width: 1030px;
    margin: 0;
    color: var(--v12-ink);
    font: 600 clamp(2.55rem, 5vw, 4.55rem)/.91 "Fraunces", Georgia, serif;
    letter-spacing: -.065em;
}

.v12-title em {
    color: var(--v12-accent);
    font-style: normal;
}

.v12-hero-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: .75rem;
}

.v12-subtitle {
    max-width: 720px;
    margin: 0;
    color: var(--v12-muted);
    font-size: clamp(.91rem, 1.3vw, 1.06rem);
    line-height: 1.47;
}

.v12-hero-link {
    flex: 0 0 auto;
    padding: .25rem 0;
    color: var(--v12-accent-dark);
    background: transparent;
    font-size: .83rem;
    white-space: nowrap;
}

.v12-hero-link:hover {
    color: var(--v12-accent);
}

.v12-hero-link i {
    transition: transform .2s ease;
}

.v12-hero-link:hover i {
    transform: translateX(4px);
}

.v12-workbench {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    height: clamp(340px, 42vh, 430px);
    min-height: 340px;
    overflow: hidden;
    background: var(--v12-surface);
    border: 1px solid var(--v12-line);
    border-radius: 22px;
    box-shadow: var(--v12-shadow);
    scroll-margin-top: 82px;
}

.v12-dropzone,
.preview-panel {
    min-width: 0;
    min-height: 0;
}

.v12-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .58rem;
    padding: 1.2rem;
    color: var(--v12-ink);
    background: var(--v12-surface);
    border-right: 1px solid var(--v12-line);
    cursor: pointer;
    text-align: center;
    transition: background-color .22s ease;
}

.v12-dropzone:hover,
.v12-dropzone.drag-over {
    background: var(--v12-accent-wash);
}

.v12-dropzone.drag-over .v12-upload-orbit {
    border-color: var(--v12-accent);
    transform: scale(1.05);
}

.v12-upload-orbit {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--v12-accent);
    background: var(--v12-accent-wash);
    border: 1px dashed var(--v12-accent);
    border-radius: 50%;
    transition: transform .22s ease, border-color .22s ease;
}

.v12-dropzone:hover .v12-upload-orbit {
    transform: translateY(-3px) rotate(-4deg);
}

.v12-drop-title {
    margin: .12rem 0 0;
    color: var(--v12-ink);
    font: 600 clamp(1.1rem, 1.65vw, 1.35rem)/1.08 "Fraunces", Georgia, serif;
}

.v12-drop-copy {
    max-width: 235px;
    margin: 0;
    color: var(--v12-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.v12-drop-formats {
    margin: .1rem 0 .2rem;
    color: var(--v12-dim);
    font: 500 .6rem/1.25 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tool-upload-btn,
.email-gate-btn {
    min-height: 40px;
    padding: 0 .95rem;
    color: #fff;
    background: var(--v12-accent);
    border-radius: 9px;
    font-size: .78rem;
}

.preview-panel {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: clamp(.75rem, 1.4vw, 1.15rem);
    background: var(--v12-surface-soft);
}

.v12-preview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
}

.v12-preview-label {
    margin: 0 0 .18rem;
    color: var(--v12-accent-dark);
    font: 500 .61rem/1.1 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.v12-preview-title {
    margin: 0;
    color: var(--v12-ink);
    font-size: clamp(.95rem, 1.55vw, 1.18rem);
    letter-spacing: -.025em;
}

.v12-preview-note {
    max-width: 220px;
    margin: 0;
    color: var(--v12-dim);
    font-size: .67rem;
    line-height: 1.35;
    text-align: right;
}

.preview-tabs {
    display: flex;
    gap: .3rem;
    min-height: 25px;
    overflow-x: auto;
    border-bottom: 1px solid var(--v12-line);
}

.preview-tab {
    flex: 0 0 auto;
    padding: .3rem .55rem;
    color: var(--v12-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
    font: 500 .65rem/1 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.preview-tab:hover,
.preview-tab.is-active {
    color: var(--v12-accent-dark);
    background: var(--v12-accent-wash);
    border-color: var(--v12-line);
}

.preview-grid-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--v12-surface);
    border: 1px solid var(--v12-line);
    border-radius: 14px;
}

.preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    padding: 1rem;
    color: var(--v12-muted);
    text-align: center;
}

.preview-empty-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    margin-bottom: .12rem;
    color: var(--v12-accent);
    background: var(--v12-accent-wash);
    border: 1px solid rgba(11, 158, 109, .24);
    border-radius: 14px;
}

.preview-empty-title {
    margin: 0;
    color: var(--v12-ink);
    font-size: clamp(.95rem, 1.45vw, 1.14rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.preview-empty-hint {
    max-width: 310px;
    margin: 0;
    color: var(--v12-dim);
    font-size: .75rem;
    line-height: 1.4;
}

.preview-grid-scroll {
    position: absolute;
    inset: 0;
    overflow: auto;
}

.preview-grid-scroll table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    color: var(--v12-ink);
    font: 500 .68rem/1.35 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.preview-grid-scroll th,
.preview-grid-scroll td {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    overflow: hidden;
    padding: .48rem .58rem;
    border: 1px solid var(--v12-line-soft);
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.preview-grid-scroll th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--v12-accent-dark);
    background: var(--v12-surface-strong);
}

.preview-grid-scroll th.pg-rownum,
.preview-grid-scroll td.pg-rownum {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    color: var(--v12-dim);
    text-align: right;
    background: var(--v12-surface-soft);
}

.preview-grid-scroll td.is-selected {
    background: var(--v12-accent-wash);
}

.preview-select-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
    padding: .33rem .55rem;
    color: var(--v12-ink);
    background: var(--v12-surface);
    border: 1px solid var(--v12-line);
    border-radius: 7px;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, color .2s ease, border-color .2s ease;
}

.preview-grid-wrap:hover .preview-select-btn:not([hidden]),
.preview-select-btn:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.preview-select-btn:hover {
    color: var(--v12-accent);
    border-color: var(--v12-accent);
}

.preview-download-btn {
    width: 100%;
    min-height: 40px;
    color: #fff;
    background: var(--v12-accent);
    border-radius: 9px;
    font-size: .77rem;
}

.preview-download-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    box-shadow: none;
}

/* Recovery and success states rendered by app.js after a file is selected. */
.animate-spin {
    animation: v12-spin 1s linear infinite;
}

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

.cta-button,
.lead-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 .8rem;
    color: #fff;
    background: var(--v12-accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.cta-button:hover,
.lead-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -13px var(--v12-accent);
}

.cta-button.secondary {
    color: var(--v12-ink);
    background: transparent;
    border: 1px solid var(--v12-line);
}

.cta-button.secondary:hover {
    color: var(--v12-accent-dark);
    border-color: var(--v12-accent);
    box-shadow: none;
}

.cta-button.small {
    min-height: 34px;
    padding: 0 .7rem;
    font-size: .72rem;
}

.lead-form {
    display: flex;
    width: min(100%, 390px);
    gap: .45rem;
    margin-top: .15rem;
}

.lead-input {
    min-width: 0;
    flex: 1;
    min-height: 40px;
    padding: 0 .75rem;
    color: var(--v12-ink);
    background: var(--v12-canvas);
    border: 1px solid var(--v12-line);
    border-radius: 8px;
}

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

.email-gate {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 1.8rem 1.25rem;
    color: var(--v12-ink);
    background: var(--v12-surface);
    border-top: 1px solid var(--v12-line-soft);
    text-align: center;
}

.email-gate.active {
    display: flex;
}

.email-gate-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: var(--v12-accent);
    background: var(--v12-accent-wash);
    border: 1px solid rgba(11, 158, 109, .22);
    border-radius: 13px;
}

.email-gate h3 {
    margin: 0;
    font: 600 1.2rem/1.1 "Fraunces", Georgia, serif;
}

.email-gate p {
    max-width: 380px;
    margin: 0;
    color: var(--v12-muted);
    font-size: .8rem;
}

.email-gate-form {
    display: flex;
    width: min(100%, 390px);
    gap: .45rem;
    margin-top: .15rem;
}

.email-gate-input {
    min-width: 0;
    flex: 1;
    min-height: 40px;
    padding: 0 .75rem;
    color: var(--v12-ink);
    background: var(--v12-canvas);
    border: 1px solid var(--v12-line);
    border-radius: 8px;
}

.email-gate-input:focus {
    outline: 0;
    border-color: var(--v12-accent);
    box-shadow: 0 0 0 3px var(--v12-accent-wash);
}

.email-gate-privacy {
    color: var(--v12-dim) !important;
    font-size: .68rem !important;
}

.email-gate-privacy a {
    color: var(--v12-accent-dark);
}

.v12-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .7rem;
    color: var(--v12-dim);
    font: 500 .61rem/1.35 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.v12-footer-note span:last-child {
    color: var(--v12-accent-dark);
}

/* A: closest visual translation of the two references. */
.v12-a .v12-title {
    max-width: 1010px;
}

.v12-a .v12-workbench {
    border-radius: 20px;
}

/* B: calmer centered editorial introduction with a more tactile drop panel. */
.v12-b {
    --v12-canvas: #faf8f1;
    --v12-surface-soft: #edf4ec;
}

.v12-b .v12-hero {
    text-align: center;
}

.v12-b .v12-kicker {
    justify-content: center;
}

.v12-b .v12-title {
    max-width: 980px;
    margin-inline: auto;
    font-size: clamp(2.45rem, 4.55vw, 4.3rem);
}

.v12-b .v12-hero-bottom {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .35rem;
    margin-top: .65rem;
}

.v12-b .v12-subtitle {
    max-width: 690px;
}

.v12-b .v12-hero-link {
    padding: .45rem .75rem;
    background: var(--v12-accent-wash);
    border-radius: 999px;
}

.v12-b .v12-workbench {
    border-radius: 18px;
    box-shadow: 0 18px 40px -30px rgba(29, 65, 51, .5);
}

.v12-b .v12-dropzone {
    background: var(--v12-accent-wash);
}

.v12-b .v12-dropzone:hover,
.v12-b .v12-dropzone.drag-over {
    background: rgba(11, 158, 109, .18);
}

/* C: quiet data-desk treatment with the preview as the visual anchor. */
.v12-c {
    --v12-canvas: #f0f6ef;
    --v12-surface-soft: #e4efe6;
    --v12-line: rgba(16, 59, 43, .16);
}

.v12-c .v12-main {
    padding-top: clamp(.9rem, 2vh, 1.5rem);
}

.v12-c .v12-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.2rem 2rem;
}

.v12-c .v12-kicker,
.v12-c .v12-title {
    grid-column: 1 / -1;
}

.v12-c .v12-title {
    max-width: 960px;
    font-size: clamp(2.4rem, 4.65vw, 4.2rem);
}

.v12-c .v12-hero-bottom {
    display: contents;
}

.v12-c .v12-subtitle {
    max-width: 660px;
    margin-top: .15rem;
}

.v12-c .v12-hero-link {
    align-self: end;
    padding: .65rem .8rem;
    color: #fff;
    background: var(--v12-accent);
    border-radius: 9px;
}

.v12-c .v12-hero-link:hover {
    color: #fff;
}

.v12-c .v12-workbench {
    border-color: rgba(16, 59, 43, .2);
    box-shadow: 0 20px 48px -34px rgba(16, 59, 43, .55);
}

.v12-c .v12-preview-title {
    font-size: clamp(1rem, 1.6vw, 1.23rem);
}

@media (max-height: 820px) and (min-width: 901px) {
    .v12-main {
        padding-top: 1rem;
    }

    .v12-hero {
        margin-bottom: .8rem;
    }

    .v12-title {
        font-size: clamp(2.4rem, 4.35vw, 4rem);
    }

    .v12-workbench {
        height: clamp(320px, 40vh, 370px);
        min-height: 320px;
    }
}

@media (max-width: 900px) {
    .v12-main {
        padding-top: 1.45rem;
    }

    .v12-workbench {
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    }

    .v12-dropzone {
        min-height: 350px;
    }

    .preview-panel {
        min-height: 350px;
    }
}

@media (max-width: 700px) {
    .v12-header-inner,
    .v12-main {
        width: min(100% - 2rem, 1240px);
    }

    .v12-brand-note,
    .v12-nav-link {
        display: none;
    }

    .v12-header-actions {
        gap: .4rem;
    }

    .v12-main {
        padding-top: 1.25rem;
    }

    .v12-title {
        font-size: clamp(2.5rem, 12.5vw, 4rem);
        line-height: .94;
    }

    .v12-hero-bottom,
    .v12-c .v12-hero-bottom {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
    }

    .v12-subtitle {
        font-size: .93rem;
    }

    .v12-workbench,
    .v12-b .v12-workbench {
        grid-template-columns: 1fr;
        border-radius: 17px;
    }

    .v12-dropzone {
        min-height: 290px;
        border-right: 0;
        border-bottom: 1px solid var(--v12-line);
    }

    .preview-panel {
        min-height: 360px;
    }

    .v12-preview-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .v12-preview-note {
        max-width: none;
        text-align: left;
    }

    .v12-footer-note {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}

@media (max-width: 430px) {
    .v12-header-cta {
        padding-inline: .65rem;
        font-size: .7rem;
    }

    .v12-kicker {
        font-size: .65rem;
    }

    .v12-title {
        font-size: clamp(2.35rem, 12.5vw, 3.35rem);
    }

    .email-gate-form {
        align-items: stretch;
        flex-direction: column;
    }

    .email-gate-btn {
        width: 100%;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* Active-page content below the workbench. */
.v12-content {
    display: grid;
    gap: clamp(2.4rem, 6vw, 4.8rem);
    padding: clamp(3rem, 7vw, 5.4rem) 0 3rem;
}

.v12-section {
    scroll-margin-top: 88px;
}

.v12-section-head {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: end;
    margin-bottom: 1.25rem;
}

.v12-eyebrow {
    margin: 0 0 .55rem;
    color: var(--v12-accent-dark);
    font: 500 .68rem/1.2 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.v12-section-title {
    max-width: 650px;
    margin: 0;
    color: var(--v12-ink);
    font: 600 clamp(2rem, 4vw, 3.4rem)/.98 "Fraunces", Georgia, serif;
    letter-spacing: -.05em;
}

.v12-section-copy {
    max-width: 620px;
    margin: 0;
    color: var(--v12-muted);
    font-size: clamp(.96rem, 1.3vw, 1.08rem);
    line-height: 1.65;
}

.v12-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--v12-line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--v12-surface);
}

.v12-card {
    min-width: 0;
    padding: clamp(1.2rem, 2.8vw, 2rem);
    border-right: 1px solid var(--v12-line);
}

.v12-card:last-child {
    border-right: 0;
}

.v12-card-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 1.1rem;
    color: var(--v12-accent);
    background: var(--v12-accent-wash);
    border: 1px solid rgba(11, 158, 109, .22);
    border-radius: 11px;
}

.v12-card h3 {
    margin: 0 0 .5rem;
    color: var(--v12-ink);
    font: 600 1.18rem/1.12 "Fraunces", Georgia, serif;
    letter-spacing: -.025em;
}

.v12-card p {
    margin: 0;
    color: var(--v12-muted);
    font-size: .85rem;
    line-height: 1.55;
}

.v12-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: 1rem;
    background: var(--v12-surface-soft);
    border: 1px solid var(--v12-line);
    border-radius: 16px;
}

.v12-field {
    padding: .55rem .72rem;
    color: var(--v12-ink);
    background: var(--v12-surface);
    border: 1px solid var(--v12-line);
    border-radius: 8px;
    font: 500 .7rem/1 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.v12-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.v12-tool-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .62rem .78rem;
    color: var(--v12-ink);
    background: var(--v12-surface);
    border: 1px solid var(--v12-line);
    border-radius: 9px;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.v12-tool-link:hover {
    color: var(--v12-accent-dark);
    border-color: var(--v12-accent);
    transform: translateY(-2px);
}

.v12-faq {
    display: grid;
    border-top: 1px solid var(--v12-line);
}

.v12-faq details {
    border-bottom: 1px solid var(--v12-line);
}

.v12-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0;
    color: var(--v12-ink);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.v12-faq summary::-webkit-details-marker {
    display: none;
}

.v12-faq summary::after {
    content: "+";
    color: var(--v12-accent);
    font: 500 1.3rem/1 "DM Mono", ui-monospace, monospace;
}

.v12-faq details[open] summary::after {
    content: "−";
}

.v12-faq p {
    max-width: 720px;
    margin: -.25rem 0 1rem;
    color: var(--v12-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.v12-site-footer {
    border-top: 1px solid var(--v12-line);
    background: var(--v12-surface);
}

.v12-footer-inner {
    width: min(100% - 3rem, 1240px);
    margin: 0 auto;
    padding: 1.4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v12-footer-brand {
    color: var(--v12-ink);
    font-weight: 700;
}

.v12-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .8rem;
}

.v12-footer-links a {
    color: var(--v12-muted);
    font-size: .72rem;
    text-decoration: none;
}

.v12-footer-links a:hover {
    color: var(--v12-accent);
}

.consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: none;
    width: min(calc(100% - 2rem), 390px);
    align-items: center;
    gap: .8rem;
    padding: .9rem;
    color: var(--v12-muted);
    background: var(--v12-surface);
    border: 1px solid var(--v12-line);
    border-radius: 12px;
    box-shadow: var(--v12-shadow);
    font-size: .72rem;
    line-height: 1.45;
}

.consent-banner p {
    margin: 0;
}

.consent-banner a {
    color: var(--v12-accent-dark);
}

.consent-dismiss {
    flex: 0 0 auto;
    padding: .45rem .65rem;
    color: #fff;
    background: var(--v12-accent);
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .v12-content {
        padding-top: 2.8rem;
    }

    .v12-section-head,
    .v12-card-grid {
        grid-template-columns: 1fr;
    }

    .v12-section-head {
        align-items: start;
        gap: .9rem;
    }

    .v12-card {
        border-right: 0;
        border-bottom: 1px solid var(--v12-line);
    }

    .v12-card:last-child {
        border-bottom: 0;
    }

    .v12-footer-inner {
        width: min(100% - 2rem, 1240px);
        align-items: flex-start;
        flex-direction: column;
    }

    .v12-footer-links {
        justify-content: flex-start;
    }
}
