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

:root {
    color-scheme: light;
    --ink: #22241f;
    --muted: #777a70;
    --line: #d9dbd2;
    --paper: #f5f5f5;
    --surface: #ffffff;
    --surface-soft: #faf9f7;
    --accent: #b85c38;
    --accent-deep: #8f3f25;
    --accent-soft: #f8e9e2;
    --success: #5b806a;
    --mono: "DM Mono", Consolas, monospace;
    --sans: "Poppins", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.topbar {
    height: 68px;
    padding: 0 5.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font: 700 15px var(--sans); }
.brand-light { color: var(--muted); font-weight: 500; }
.brand-mark { width: 22px; height: 22px; display: flex; align-items: end; gap: 2px; padding: 4px; background: var(--accent); }
.brand-mark i { display: block; width: 3px; background: #fff; }
.brand-mark i:nth-child(1) { height: 6px; }
.brand-mark i:nth-child(2) { height: 10px; }
.brand-mark i:nth-child(3) { height: 13px; }
.top-nav { display: flex; align-items: center; gap: 31px; height: 100%; color: var(--muted); font-size: 12px; }
.top-nav a { height: 100%; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid transparent; }
.top-nav .nav-current { color: var(--accent-deep); border-color: var(--accent); }
.nav-count { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font: 10px var(--mono); }
.top-status, .page-kicker, .workspace-head, .panel-title, .format-label, .preview-state, .preview-label, .preview-footnote, .page-footer { font: 10px var(--mono); letter-spacing: 0.7px; }
.top-status { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #5b806a22; }

.page-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.page-kicker { display: flex; justify-content: space-between; padding: 24px 0 0; color: #7f8278; }
.page-kicker b { padding: 0 7px; color: var(--accent); font-weight: 400; }
.page-kicker i { display: inline-block; width: 28px; height: 1px; margin: 0 5px 3px; background: #9da094; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 44px 0 32px; animation: arrive 550ms ease-out both; }
.overline { margin: 0 0 11px; color: var(--accent); font: 10px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 700 clamp(40px, 5vw, 58px)/1.08 var(--sans); letter-spacing: 0; }
h1 em { color: var(--accent); font-style: normal; }
.intro-copy { max-width: 310px; margin: 0 0 5px; color: #676a61; font-size: 14px; line-height: 1.7; }

.setup-notice, .error-notice { display: flex; align-items: center; gap: 13px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid #e4cc9d; background: #fff7e8; }
.notice-symbol { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d49332; font: 700 13px var(--sans); }
.setup-notice div { display: grid; gap: 3px; }
.setup-notice strong { font-size: 12px; }
.setup-notice span:not(.notice-symbol) { color: #767064; font-size: 11px; line-height: 1.5; }
.setup-notice code { color: #514b3f; font: 11px var(--mono); }
.error-notice { display: block; border-color: #e7b4a8; color: #9e4333; background: #fff0eb; font-size: 13px; }

.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 14px 35px rgba(66, 51, 42, 0.07); animation: arrive 650ms 80ms ease-out both; }
.workspace-head { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: #74786d; border-bottom: 1px solid var(--line); }
.workspace-index { color: #979a90; }
.workspace-index b { padding: 0 7px; color: var(--accent); font-size: 15px; font-weight: 400; }
.workbench { display: grid; grid-template-columns: minmax(285px, 0.82fr) minmax(0, 1.5fr); min-height: 365px; }
.source-panel { padding: 22px; border-right: 1px solid var(--line); }
.preview-panel { min-width: 0; padding: 22px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #6c7066; }
.panel-title b { margin-right: 8px; color: var(--accent); font-weight: 500; }
.format-label, .preview-state { color: #a1a398; font-size: 9px; }
.drop-zone { position: relative; min-height: 215px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #c7beb7; border-radius: 4px; background: var(--surface-soft); cursor: pointer; transition: border-color 160ms, background 160ms, transform 160ms; }
.drop-zone:hover, .drop-zone.is-over { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.drop-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; color: #fff; background: var(--accent); font: 24px/1 var(--sans); }
.drop-zone strong { font: 600 14px var(--sans); }
.drop-subtitle { margin-top: 5px; color: #777a70; font-size: 11px; }
.drop-subtitle u { color: var(--accent-deep); text-underline-offset: 3px; }
.selected-file { max-width: 90%; margin-top: 18px; overflow: hidden; color: #8b8e83; font: 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.drop-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.upload-limits { display: flex; justify-content: space-between; padding: 12px 1px 15px; color: #85887e; font-size: 10px; }
.upload-limits span:last-child { color: #55594f; font-family: var(--mono); }
.process-button, .download-button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-radius: 3px; color: #fff; background: var(--accent); font: 600 12px var(--sans); cursor: pointer; transition: background 150ms, transform 150ms; }
.process-button:hover:not(:disabled) { background: var(--accent-deep); transform: translateY(-1px); }
.process-button span:last-child, .download-button span:last-child { color: #fff; font-size: 18px; }
.process-button:disabled { color: #a8aa9f; background: #dadbd4; cursor: not-allowed; }
.process-button:disabled span:last-child { color: #999c91; }
.privacy-note { margin: 12px 0 0; color: #92958b; font-size: 9px; text-align: center; }

.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.preview-cell { min-width: 0; }
.preview-label { display: block; margin-bottom: 8px; color: #92958b; font-size: 9px; }
.preview-image, .preview-empty { width: 100%; height: 235px; display: block; object-fit: contain; background-color: #eeefe9; }
.preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #999c91; font-size: 11px; }
.empty-cross { color: #b5b8ad; font-size: 26px; font-weight: 300; }
.checkerboard { background-color: #f7f8f3; background-image: linear-gradient(45deg, #e6e8df 25%, transparent 25%), linear-gradient(-45deg, #e6e8df 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e8df 75%), linear-gradient(-45deg, transparent 75%, #e6e8df 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; }
.result-spark { color: var(--accent); font-size: 25px; }
.download-button { margin-top: 14px; color: #fff; background: var(--accent-deep); }
.download-button:hover { background: #71311f; }
.download-button span:last-child { color: #fff; }
.result-error { margin: 12px 0 0; color: #a34f40; font-size: 11px; line-height: 1.5; }
.preview-footnote { display: flex; justify-content: space-between; margin-top: 14px; color: #9b9e94; font-size: 8px; }

.recent-section { padding: 45px 0 0; animation: arrive 700ms 150ms ease-out both; }
.recent-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #cfd1c7; }
.recent-heading .overline { margin-bottom: 7px; }
h2 { margin-bottom: 0; font: 600 23px var(--sans); letter-spacing: 0; }
.recent-heading > span { padding-bottom: 4px; color: #86897e; font: 10px var(--mono); }
.recent-list { border-bottom: 1px solid #cfd1c7; }
.recent-row { min-height: 68px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 130px 105px; align-items: center; gap: 14px; border-bottom: 1px solid #e0e1da; }
.recent-row:last-child { border-bottom: 0; }
.recent-thumb { width: 42px; height: 42px; object-fit: cover; background: #e7e8e0; }
.recent-name { min-width: 0; display: grid; gap: 4px; }
.recent-name strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.recent-name span { color: #92958b; font: 9px var(--mono); }
.job-status { display: inline-flex; align-items: center; gap: 6px; color: #777a70; font-size: 10px; }
.job-status i { width: 6px; height: 6px; border-radius: 50%; background: #a5a89e; }
.status-completed i { background: var(--success); }
.status-failed i { background: var(--accent); }
.recent-download { justify-self: end; color: var(--accent-deep); font-size: 10px; }
.recent-download span { padding-left: 4px; }
.muted-download { color: #a0a398; }
.recent-empty { display: flex; justify-content: space-between; padding: 21px 0; color: #888b81; font-size: 11px; border-bottom: 1px solid #cfd1c7; }
.page-footer { display: flex; justify-content: space-between; padding: 23px 0 28px; color: #93968c; font-size: 9px; }

@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
    .topbar { height: 60px; padding: 0 20px; }
    .top-nav { gap: 14px; font-size: 10px; }
    .top-nav a:last-child, .top-status { display: none; }
    .page-shell { width: min(100% - 36px, 560px); }
    .page-kicker { padding-top: 19px; font-size: 9px; }
    .intro { display: block; padding: 35px 0 23px; }
    h1 { font-size: 43px; }
    .intro-copy { max-width: 390px; margin-top: 16px; font-size: 13px; }
    .workbench { grid-template-columns: 1fr; }
    .source-panel { border-right: 0; border-bottom: 1px solid var(--line); }
    .drop-zone { min-height: 185px; }
    .preview-panel { padding-top: 20px; }
    .preview-image, .preview-empty { height: min(39vw, 220px); min-height: 150px; }
    .recent-section { padding-top: 34px; }
}

/* Public navbar */
.topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(66, 51, 42, 0.05);
}
.topbar .brand { justify-self: start; }
.top-nav { justify-content: center; gap: 28px; height: 72px; }
.top-nav a { color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.top-nav .nav-current { color: var(--accent-deep); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.login-link { color: var(--ink); font-size: 12px; font-weight: 500; }
.header-cta { padding: 10px 16px; border-radius: 4px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 600; transition: background 150ms, transform 150ms; }
.header-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.menu-toggle { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; cursor: pointer; }
.menu-toggle span { width: 16px; height: 1.5px; background: currentColor; transition: transform 150ms, opacity 150ms; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
    .topbar { grid-template-columns: 1fr auto auto; }
    .menu-toggle { display: flex; order: 2; margin-left: 8px; }
    .header-actions { order: 3; }
    .header-actions .login-link { display: none; }
    .top-nav { position: absolute; top: 100%; left: 20px; right: 20px; z-index: 20; display: none; height: auto; padding: 8px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 14px 30px rgba(66, 51, 42, 0.12); }
    .top-nav.is-open { display: flex; }
    .top-nav a { height: 44px; justify-content: flex-start; padding: 0 13px; border: 0; border-radius: 3px; }
    .top-nav a:hover, .top-nav .nav-current { color: var(--accent-deep); background: var(--accent-soft); }
}

@media (max-width: 430px) {
    .topbar { min-height: 64px; padding: 0 14px; }
    .top-nav { left: 14px; right: 14px; }
    .header-cta { padding: 9px 12px; font-size: 11px; }
    .menu-toggle { width: 34px; height: 34px; }
}

/* Keep the upload card centered while the result panel is hidden. */
.workbench.workbench-empty {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}
.workbench.workbench-empty .source-panel {
    width: 100%;
}

/* Select, confirm, then reveal the result workspace. */
.preview-panel-hidden { display: none; }
#uploadForm .upload-limits, #uploadForm .privacy-note { display: none; }
#uploadForm.has-selection .upload-limits, #uploadForm.has-selection .privacy-note { display: flex; }
#uploadForm.has-selection .privacy-note { display: block; }
.image-modal { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 22px; background: rgba(43, 41, 39, 0.48); backdrop-filter: blur(5px); }
.image-modal.is-open { display: grid; }
.image-modal > * { position: relative; }
.modal-preview, .modal-content { width: min(100%, 510px); background: var(--surface); }
.modal-preview { overflow: hidden; border-radius: 7px 7px 0 0; background: #eeeae6; }
.modal-preview img { display: block; width: 100%; max-height: min(46vh, 360px); object-fit: contain; background: #eeeae6; }
.modal-content { padding: 24px; border-radius: 0 0 7px 7px; }
.modal-content .overline { margin-bottom: 8px; }
.modal-content h3 { margin: 0 0 7px; color: var(--ink); font-size: 21px; font-weight: 600; }
.modal-content p:not(.overline) { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-content .process-button { min-height: 46px; }
.modal-close { position: absolute !important; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 50%; color: #fff; background: rgba(43, 41, 39, 0.62); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--accent); }

@media (max-width: 520px) {
    .image-modal { padding: 14px; }
    .modal-content { padding: 20px; }
    .modal-content h3 { font-size: 19px; }
}

/* Public landing refinements */
.topbar { position: sticky; top: 0; z-index: 10; min-height: 72px; padding: 0 clamp(20px, 6vw, 84px); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); }
.page-shell { width: min(1180px, calc(100% - 48px)); }
.intro { display: block; max-width: 800px; margin: 0 auto; padding: 82px 0 42px; text-align: center; }
.intro .overline { margin-bottom: 16px; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.08; }
.intro-copy { max-width: 570px; margin: 23px auto 0; font-size: 15px; line-height: 1.8; }
.workspace { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.workspace-head { max-width: 920px; height: auto; margin: 0 auto 12px; padding: 0 2px 11px; border-bottom: 1px solid var(--line); }
.workbench { grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.35fr); gap: 20px; min-height: 0; }
.workbench-empty { grid-template-columns: minmax(0, 560px); justify-content: center; }
.source-panel, .preview-panel { padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 18px 40px rgba(66, 51, 42, 0.06); }
.source-panel { border-right: 1px solid var(--line); }
.source-panel { display: flex; flex-direction: column; align-items: center; }
.source-panel .panel-title, .source-panel form { width: 100%; }
.source-panel .drop-zone { width: min(100%, 390px); margin-right: auto; margin-left: auto; }
.drop-zone { min-height: 260px; }
.preview-image, .preview-empty { height: 270px; }
.benefits, .recent-section { max-width: 920px; margin: 0 auto; }
.benefits { padding-top: 78px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.benefit-grid article { min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.benefit-grid article > span { color: var(--accent); font: 10px var(--mono); }
.benefit-grid h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 600; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.recent-section { padding-top: 74px; }
.page-footer { max-width: 920px; margin: 0 auto; padding-top: 44px; }
.setup-notice, .error-notice { max-width: 920px; margin-right: auto; margin-left: auto; }

@media (max-width: 720px) {
    .topbar { position: static; }
    .page-shell { width: min(100% - 28px, 560px); }
    .intro { padding: 54px 0 30px; }
    .intro-copy { font-size: 13px; }
    .workbench { gap: 14px; }
    .source-panel, .preview-panel { padding: 18px; }
    .workspace-head { padding-left: 0; padding-right: 0; }
    .preview-pair { grid-template-columns: 1fr; gap: 24px; }
    .preview-image, .preview-empty { width: 100%; max-width: 100%; height: min(72vw, 300px); }
    .benefits { padding-top: 48px; }
    .benefit-grid { grid-template-columns: 1fr; gap: 10px; }
    .benefit-grid article { min-height: 0; padding: 18px; }
    .benefit-grid h3 { margin-top: 12px; }
    .recent-section { padding-top: 48px; }
    .page-footer { padding-top: 34px; }
}

@media (max-width: 430px) {
    .brand { font-size: 13px; }
    .top-nav { font-size: 9px; }
    .page-shell { width: calc(100% - 28px); }
    h1 { font-size: 38px; }
    .workspace-head, .source-panel, .preview-panel { padding-left: 15px; padding-right: 15px; }
    .recent-row { grid-template-columns: 38px minmax(0, 1fr) 72px; gap: 9px; }
    .recent-thumb { width: 36px; height: 36px; }
    .job-status { justify-self: end; font-size: 9px; }
    .recent-download { display: none; }
    .recent-empty { flex-direction: column; gap: 5px; }
    .page-footer { font-size: 8px; }
}

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

/* Public landing layout */
.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 72px;
    padding: 0 clamp(20px, 6vw, 84px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}
.page-shell { width: min(1180px, calc(100% - 48px)); }
.page-kicker { display: none; }
.intro {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    padding: 82px 0 42px;
    text-align: center;
}
.intro .overline { margin-bottom: 16px; }
h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.08; }
.intro-copy { max-width: 560px; margin: 23px auto 0; font-size: 15px; line-height: 1.8; }
.workspace { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.workspace-head { max-width: 920px; height: auto; margin: 0 auto 12px; padding: 0 2px 11px; border-bottom: 1px solid var(--line); }
.workbench { grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.35fr); gap: 20px; min-height: 0; }
.source-panel, .preview-panel { padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 18px 40px rgba(66, 51, 42, 0.06); }
.source-panel { border-right: 1px solid var(--line); }
.drop-zone { min-height: 260px; }
.preview-image, .preview-empty { height: 270px; }
.recent-section { max-width: 920px; margin: 0 auto; padding-top: 74px; }
.recent-heading { border-bottom-color: var(--line); }
.page-footer { max-width: 920px; margin: 0 auto; padding-top: 44px; }
.setup-notice, .error-notice { max-width: 920px; margin-right: auto; margin-left: auto; }

@media (max-width: 720px) {
    .topbar { position: static; }
    .page-shell { width: min(100% - 28px, 560px); }
    .intro { padding: 54px 0 30px; }
    .intro-copy { font-size: 13px; }
    .workbench { gap: 14px; }
    .source-panel, .preview-panel { padding: 18px; }
    .workspace-head { padding-left: 0; padding-right: 0; }
    .recent-section { padding-top: 48px; }
    .page-footer { padding-top: 34px; }
}

/* Empty state uses one centered column instead of the two-column result grid. */
.workbench.workbench-empty { grid-template-columns: minmax(0, 560px); justify-content: center; }
.workbench.workbench-empty .source-panel { width: 100%; }

@media (max-width: 720px) {
    .topbar { min-height: 64px; padding: 0 14px; }
    .page-shell { width: calc(100% - 28px); }
    .workbench, .workbench.workbench-empty { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .source-panel, .preview-panel { width: 100%; min-width: 0; }
    .preview-panel { display: block; }
    .preview-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .preview-image, .preview-empty { width: 100%; max-width: 100%; height: min(72vw, 300px); }
}

/* Public landing footer */
.site-footer {
    max-width: 1180px;
    margin: 88px auto 0;
    padding: 54px 0 24px;
    border-top: 1px solid var(--line);
}
.footer-main {
    display: grid;
    grid-template-columns: minmax(250px, 1.7fr) repeat(3, minmax(120px, 1fr));
    gap: 42px;
}
.footer-brand { font-size: 16px; }
.footer-tagline { margin: 20px 0 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
.footer-description { max-width: 245px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-links-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-links-column h3 { margin: 1px 0 9px; color: var(--ink); font-size: 12px; font-weight: 600; }
.footer-links-column a { color: var(--muted); font-size: 11px; transition: color 150ms; }
.footer-links-column a:hover { color: var(--accent-deep); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--soft-muted); font: 9px var(--mono); letter-spacing: 0.5px; }

@media (max-width: 760px) {
    .site-footer { margin-top: 58px; padding: 38px 0 22px; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
    .footer-brand-column { grid-column: 1 / -1; }
    .footer-brand-column, .footer-links-column { text-align: center; }
    .footer-description { margin-right: auto; margin-left: auto; }
    .footer-links-column { align-items: center; }
    .footer-bottom { align-items: center; justify-content: center; margin-top: 36px; text-align: center; }
}

@media (max-width: 430px) {
    .site-footer { margin-top: 44px; }
    .footer-main { gap: 28px 16px; }
    .footer-links-column a { font-size: 10px; }
    .footer-bottom { flex-direction: column; gap: 9px; font-size: 8px; }
}

/* Keep the public navbar visible while scrolling at every breakpoint. */
.topbar { position: sticky !important; top: 0; z-index: 100; }
