/*
 * Convematik product UI stylesheet.
 * Static HTML first, API-backed where available.
 */

:root {
    --color-ink: #111827;
    --color-ink-soft: #374151;
    --color-muted: #667085;
    --color-faint: #eef2f6;
    --color-border: #d9e0ea;
    --color-page: #f4f7fb;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafc;
    --color-nav: #101828;
    --color-nav-muted: #cbd5e1;
    --color-primary: #0f766e;
    --color-primary-strong: #0b5f59;
    --color-action: #2563eb;
    --color-action-strong: #1d4ed8;
    --color-warning: #b45309;
    --color-danger: #b42318;
    --color-success: #047857;
    --product-navy-950: #041326;
    --product-navy-900: #061734;
    --product-navy-800: #08214a;
    --product-blue: #116fe7;
    --product-cyan: #22d4ff;
    --product-line: rgba(125, 183, 255, 0.24);
    --product-glow: 0 24px 70px rgba(0, 0, 0, 0.26);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-panel: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --header-height: 64px;
    --max-width: 1180px;
    --font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-family);
    color: var(--color-ink);
    background: var(--color-page);
}

body {
    line-height: 1.5;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--color-action);
    text-decoration: none;
}

a:hover {
    color: var(--color-action-strong);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.26);
    outline-offset: 2px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    min-height: 40px;
}

.site-header,
header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    background: var(--color-nav);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav,
header nav {
    width: min(100%, calc(var(--max-width) + 32px));
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand,
header nav > a:first-child {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand:hover,
header nav > a:first-child:hover {
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

header nav a:not(:first-child),
.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    color: var(--color-nav-muted);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0;
    white-space: nowrap;
}

header nav a:not(:first-child):hover,
.nav-link:hover,
.nav-link[aria-current="page"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.container {
    width: min(100%, calc(var(--max-width) + 32px));
    margin: 0 auto;
    padding: 24px 16px 0;
}

.page-shell {
    padding-bottom: 32px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.22;
}

h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
}

p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.lead {
    color: var(--color-ink-soft);
    font-size: 1.06rem;
    max-width: 760px;
}

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

.page-hero,
.tool-hero {
    padding: 34px 0 18px;
}

.page-hero h1,
.tool-hero h1 {
    max-width: 860px;
}

.page-hero p,
.tool-hero p {
    margin-top: 12px;
    max-width: 760px;
    font-size: 1.02rem;
}

.home-workbench {
    min-height: calc(100vh - var(--header-height) - 24px);
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 292px;
    gap: 16px;
    align-items: stretch;
    padding-bottom: 18px;
}

.workspace-main {
    min-width: 0;
    display: grid;
    gap: 16px;
    align-content: start;
}

.workspace-copy {
    padding: 10px 0 2px;
}

.workspace-copy h1 {
    max-width: 790px;
}

.workspace-copy .lead {
    margin-top: 14px;
}

.rail,
.side-preview,
.task-panel,
.tool-panel,
.content-section,
.panel,
.directory-shell,
.converter-workbench,
.developer-console {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rail,
.side-preview {
    padding: 14px;
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.rail h2,
.side-preview h2,
.panel h2,
.task-panel h2,
.tool-panel h2,
.content-section h2 {
    font-size: 1rem;
}

.rail-list,
.status-list,
.workflow-list,
.resource-list,
.guide-list,
.endpoint-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rail-link,
.workflow-link,
.resource-link,
.guide-card,
.tool-link,
.tool-card {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    color: var(--color-ink);
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.rail-link:hover,
.workflow-link:hover,
.resource-link:hover,
.guide-card:hover,
.tool-link:hover,
.tool-card:hover {
    color: var(--color-ink);
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.55);
    text-decoration: none;
    transform: translateY(-1px);
}

.rail-link strong,
.workflow-link strong,
.tool-card strong {
    font-size: 0.94rem;
}

.rail-link span,
.workflow-link span,
.tool-card span,
.resource-link span,
.guide-card p {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.hero-search {
    display: grid;
    gap: 10px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--color-ink);
}

.search-results {
    display: grid;
    gap: 6px;
    min-height: 28px;
}

.search-results a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    background: #ffffff;
}

.search-results a:hover {
    border-color: var(--color-action);
    text-decoration: none;
}

.search-results span {
    color: var(--color-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.task-panel,
.tool-panel,
.content-section,
.panel {
    padding: 18px;
}

.converter-form,
.tool-form,
.batch-form {
    display: grid;
    gap: 12px;
}

.quick-converter-grid,
.converter-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 1fr) auto minmax(150px, 1fr);
    gap: 10px;
    align-items: end;
}

.converter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

label,
.field-label {
    display: grid;
    gap: 6px;
    color: var(--color-ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    color: var(--color-ink);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

textarea {
    min-height: 132px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #b8c2d1;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 9px 14px;
    color: #ffffff;
    background: var(--color-action);
    border: 1px solid var(--color-action);
    border-radius: var(--radius-sm);
    font-weight: 750;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

button:hover,
.button:hover {
    color: #ffffff;
    background: var(--color-action-strong);
    border-color: var(--color-action-strong);
    text-decoration: none;
}

button:active,
.button:active {
    transform: translateY(1px);
}

button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.button-secondary,
.swap-button {
    color: var(--color-ink);
    background: #ffffff;
    border-color: var(--color-border);
}

.button-secondary:hover,
.swap-button:hover {
    color: var(--color-ink);
    background: var(--color-surface-soft);
    border-color: #aab6c6;
}

.swap-button {
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 1.05rem;
}

.result-box,
.result-panel,
.api-output {
    min-height: 58px;
    margin-top: 14px;
    padding: 14px;
    color: var(--color-ink);
    background: #f9fbfd;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow-wrap: anywhere;
}

.result-value {
    display: block;
    color: var(--color-ink);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.05;
    font-weight: 800;
}

.result-meta {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.status-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    font-size: 0.78rem;
    font-weight: 800;
}

.status-pill[data-state="ok"],
.status-badge[data-state="ok"] {
    color: var(--color-success);
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.status-pill[data-state="error"],
.status-badge[data-state="error"] {
    color: var(--color-danger);
    background: #fff1f2;
    border-color: #fecdd3;
}

.status-pill[data-state="warn"],
.status-badge[data-state="warn"] {
    color: var(--color-warning);
    background: #fffbeb;
    border-color: #fde68a;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.metric {
    padding: 10px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.metric strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.metric span {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.status-list li,
.endpoint-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-faint);
}

.status-list li:last-child,
.endpoint-list li:last-child {
    border-bottom: 0;
}

.workflow-grid,
.tool-link-grid,
.tool-grid,
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.directory-shell {
    padding: 16px;
}

.directory-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.directory-heading-row h2 {
    margin-bottom: 0;
}

.directory-heading-row span {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.directory-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.summary-metric {
    min-height: 74px;
    padding: 12px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.summary-metric strong {
    display: block;
    color: var(--color-ink);
    font-size: 1.55rem;
    line-height: 1;
}

.summary-metric span {
    display: block;
    margin-top: 7px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.directory-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
    gap: 10px;
    margin-bottom: 14px;
}

.directory-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.tool-card {
    min-height: 146px;
    align-content: start;
}

.tool-card-topline,
.tool-badge-row,
.tool-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tool-badge-row {
    margin-top: 14px;
}

.tool-card-topline {
    justify-content: space-between;
    min-height: 24px;
}

.tool-card .tool-category {
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    color: #0f4f47;
    background: #ddf7ef;
    border: 1px solid #a7ead6;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.tool-pair {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    padding: 3px 7px;
    color: #1e3a5f;
    background: #eef6ff;
    border: 1px solid #c9ddf6;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
}

.converter-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    padding: 18px;
}

.converter-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
}

.tool-panel-primary {
    display: grid;
    gap: 14px;
}

.tool-panel-primary h2 {
    margin-bottom: 0;
}

.result-box-large {
    display: grid;
    align-content: center;
    min-height: 116px;
    padding: 18px;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-ink);
    font-size: 0.92rem;
}

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

.example-table th {
    color: var(--color-ink-soft);
    background: var(--color-surface-soft);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

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

.api-param-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--color-ink-soft);
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.api-param-list code {
    color: #0f4fa8;
    font-weight: 850;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.segmented button {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--color-ink-soft);
    background: #ffffff;
    border-color: var(--color-border);
    font-size: 0.84rem;
}

.segmented button[aria-pressed="true"] {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-faint);
}

.favorite-item:last-child {
    border-bottom: 0;
}

.favorite-item button {
    min-height: 30px;
    padding: 4px 8px;
    color: var(--color-danger);
    background: #ffffff;
    border-color: #fecdd3;
    font-size: 0.78rem;
}

.panel-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.compact-button {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.78rem;
}

.history-item,
.instant-result {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--color-faint);
}

.history-item:last-child,
.instant-result:last-child {
    border-bottom: 0;
}

.instant-result {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fbff;
}

.developer-console {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    padding: 18px;
}

.batch-converter-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.batch-input-panel,
.batch-output-panel {
    min-width: 0;
}

.file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.batch-result-wrap {
    margin-top: 14px;
    max-height: 520px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.batch-result-table tr[data-state="error"] td {
    background: #fff7ed;
}

.batch-result-table td:last-child {
    color: var(--color-danger);
}

.widget-builder-grid,
.endpoint-doc-grid {
    display: grid;
    gap: 10px;
}

.widget-builder-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 12px;
}

.endpoint-doc-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.endpoint-doc-grid article {
    min-width: 0;
    padding: 12px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.endpoint-doc-grid h3 {
    margin-bottom: 8px;
}

.endpoint-doc-grid p {
    margin-bottom: 8px;
}

.endpoint-doc-grid code,
.page-hero code,
.content-body code {
    overflow-wrap: anywhere;
}

.code-block {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    padding: 14px;
    color: #dbeafe;
    background: #0b1220;
    border: 1px solid #1f2a44;
    border-radius: var(--radius-md);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre;
}

.content-page {
    display: grid;
    grid-template-columns: minmax(0, 720px) 280px;
    gap: 24px;
    align-items: start;
}

.content-body {
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.content-body h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.content-body h2 {
    margin-top: 24px;
}

.content-body p,
.content-body li {
    color: var(--color-ink-soft);
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    display: grid;
    gap: 12px;
}

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-list details {
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
}

.faq-list summary {
    cursor: pointer;
    color: var(--color-ink);
    font-weight: 800;
}

.faq-list p {
    margin: 10px 0 0;
}

.empty-state {
    padding: 16px;
    color: var(--color-muted);
    background: var(--color-surface-soft);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
}

footer {
    margin-top: 40px;
    padding: 24px 16px;
    color: var(--color-muted);
    background: #e9eef5;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Dark Convematik product shell for secondary pages */

body:not(.home-snapshot) {
    color: #e8f3ff;
    background:
        radial-gradient(circle at 12% 6%, rgba(22, 111, 231, 0.2), transparent 26%),
        radial-gradient(circle at 86% 0%, rgba(34, 212, 255, 0.13), transparent 24%),
        linear-gradient(180deg, var(--product-navy-950) 0%, var(--product-navy-900) 48%, #031020 100%);
}

body:not(.home-snapshot) .site-header {
    background: rgba(3, 16, 36, 0.94);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--product-line);
}

body:not(.home-snapshot) .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

body:not(.home-snapshot) .brand::before {
    content: "";
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    background: url("../assets/brand-mark.svg") center / contain no-repeat;
}

body:not(.home-snapshot) .container {
    padding-top: 30px;
}

body:not(.home-snapshot) .page-hero,
body:not(.home-snapshot) .tool-hero {
    padding: 34px 0 22px;
}

body:not(.home-snapshot) .page-hero h1,
body:not(.home-snapshot) .tool-hero h1,
body:not(.home-snapshot) .content-body h1 {
    color: #ffffff;
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

body:not(.home-snapshot) .page-hero p,
body:not(.home-snapshot) .tool-hero p,
body:not(.home-snapshot) .lead {
    color: #b8c8de;
}

body:not(.home-snapshot) .eyebrow {
    color: #59e8ad;
}

body:not(.home-snapshot) .rail,
body:not(.home-snapshot) .side-preview,
body:not(.home-snapshot) .task-panel,
body:not(.home-snapshot) .tool-panel,
body:not(.home-snapshot) .content-section,
body:not(.home-snapshot) .panel,
body:not(.home-snapshot) .directory-shell,
body:not(.home-snapshot) .converter-workbench,
body:not(.home-snapshot) .developer-console,
body:not(.home-snapshot) .batch-converter-shell,
body:not(.home-snapshot) .content-body {
    background: #f8fbff;
    border-color: rgba(191, 220, 255, 0.78);
    box-shadow: var(--product-glow);
}

body:not(.home-snapshot) .converter-workbench,
body:not(.home-snapshot) .developer-console,
body:not(.home-snapshot) .batch-converter-shell {
    border-radius: 8px;
}

body:not(.home-snapshot) .content-section,
body:not(.home-snapshot) .panel,
body:not(.home-snapshot) .tool-panel,
body:not(.home-snapshot) .directory-shell {
    box-shadow: 0 8px 24px rgba(15, 35, 70, 0.1);
}

body:not(.home-snapshot) .content-body p,
body:not(.home-snapshot) .content-body li,
body:not(.home-snapshot) .panel p {
    color: #37465a;
}

body:not(.home-snapshot) .status-list li,
body:not(.home-snapshot) .endpoint-list li,
body:not(.home-snapshot) .api-param-list li {
    color: #344256;
}

body:not(.home-snapshot) .endpoint-list code,
body:not(.home-snapshot) .api-param-list code {
    color: #0f4fa8;
}

body:not(.home-snapshot) .content-body h1,
body:not(.home-snapshot) .content-body h2,
body:not(.home-snapshot) .panel h2,
body:not(.home-snapshot) .tool-panel h2,
body:not(.home-snapshot) .directory-shell h2,
body:not(.home-snapshot) .converter-workbench h2,
body:not(.home-snapshot) .developer-console h2,
body:not(.home-snapshot) .batch-converter-shell h2 {
    color: #10243d;
    text-shadow: none;
}

body:not(.home-snapshot) .summary-metric,
body:not(.home-snapshot) .api-param-list li,
body:not(.home-snapshot) .example-table th {
    background: #eef6ff;
}

body:not(.home-snapshot) .summary-metric strong,
body:not(.home-snapshot) .example-table {
    color: #10243d;
}

body:not(.home-snapshot) footer {
    color: #aebdd3;
    background: rgba(2, 11, 28, 0.46);
    border-top: 1px solid rgba(95, 157, 235, 0.15);
}

@media (max-width: 1040px) {
    .home-workbench {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .side-preview {
        position: static;
        grid-column: 1 / -1;
    }

    .converter-workbench,
    .developer-console,
    .batch-converter-shell,
    .content-page {
        grid-template-columns: 1fr;
    }

    .widget-builder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header,
    header {
        position: static;
    }

    .site-nav,
    header nav {
        min-height: 0;
        padding: 10px 12px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    header nav a:not(:first-child),
    .nav-link {
        flex: 0 0 auto;
    }

    .container {
        padding-top: 16px;
    }

    .home-workbench {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .rail,
    .side-preview {
        position: static;
    }

    .quick-converter-grid,
    .converter-grid,
    .directory-controls,
    .directory-summary,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .swap-button {
        width: 100%;
    }

    .converter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button,
    .converter-actions button,
    .batch-form button {
        width: 100%;
    }

    .workflow-grid,
    .tool-link-grid,
    .tool-grid,
    .features {
        grid-template-columns: 1fr;
    }

    .task-panel,
    .tool-panel,
    .content-section,
    .panel,
    .directory-shell,
    .converter-workbench,
    .developer-console,
    .batch-converter-shell,
    .content-body {
        padding: 14px;
    }

    .file-row {
        grid-template-columns: 1fr;
    }

    .widget-builder-grid {
        grid-template-columns: 1fr;
    }
}

/* Screenshot-matched Convematik homepage */

.home-snapshot {
    color: #eef6ff;
    background:
        radial-gradient(circle at 22% 18%, rgba(23, 117, 255, 0.22), transparent 28%),
        radial-gradient(circle at 76% 28%, rgba(0, 194, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #051226 0%, #061a35 44%, #041326 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

.home-snapshot a {
    color: inherit;
}

.snapshot-shell {
    width: min(100%, 1536px);
    margin: 0 auto;
    padding: 22px 34px 18px;
}

.snapshot-top {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 182px;
    gap: 24px;
    align-items: center;
    margin-bottom: 12px;
}

.snapshot-brand,
.footer-brand,
.mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.snapshot-brand:hover,
.footer-brand:hover,
.mini-brand:hover {
    text-decoration: none;
}

.snapshot-brand strong {
    display: block;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0;
}

.snapshot-brand small,
.footer-brand small {
    display: block;
    margin-top: 4px;
    color: #bac9e4;
    font-size: 13px;
    line-height: 1.2;
}

.brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    transform: rotate(-45deg);
    flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
    content: "";
    position: absolute;
    border: 4px solid #1998ff;
    border-radius: 10px;
    width: 22px;
    height: 30px;
}

.brand-mark::before {
    left: 4px;
    top: 9px;
    border-right-color: transparent;
    border-bottom-color: #2ee0ff;
}

.brand-mark::after {
    right: 4px;
    bottom: 9px;
    border-left-color: transparent;
    border-top-color: #705dff;
}

.brand-mark span::before {
    left: 15px;
    top: 4px;
    width: 14px;
    height: 20px;
    border-color: #22d4ff;
    border-left-color: transparent;
}

.brand-mark span::after {
    right: 15px;
    bottom: 4px;
    width: 14px;
    height: 20px;
    border-color: #387dff;
    border-right-color: transparent;
}

.brand-mark.mini {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.brand-mark.mini::before,
.brand-mark.mini::after,
.brand-mark.mini span::before,
.brand-mark.mini span::after {
    border-width: 2.8px;
    border-radius: 7px;
    width: 15px;
    height: 21px;
}

.brand-mark.mini::before {
    left: 3px;
    top: 6px;
}

.brand-mark.mini::after {
    right: 3px;
    bottom: 6px;
}

.brand-mark.mini span::before {
    left: 11px;
    top: 3px;
    width: 10px;
    height: 14px;
}

.brand-mark.mini span::after {
    right: 11px;
    bottom: 3px;
    width: 10px;
    height: 14px;
}

.snapshot-title {
    text-align: center;
    min-width: 0;
}

.snapshot-title h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 1.55vw, 28px);
    line-height: 1.08;
    font-weight: 880;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

.snapshot-title p {
    margin: 5px 0 8px;
    color: #aebbd2;
    font-size: 12px;
    font-weight: 650;
}

.snapshot-badges {
    display: flex;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.snapshot-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    min-width: 142px;
    padding: 5px 11px;
    color: #e8f3ff;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(126, 175, 255, 0.18);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 10.5px;
    font-weight: 720;
}

.badge-icon,
.feature-icon,
.metric-icon,
.card-icon {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    font-style: normal;
    font-weight: 850;
}

.badge-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
}

.badge-green,
.feature-icon.green,
.metric-icon.green {
    background: linear-gradient(135deg, #31cc78, #6de181);
}

.badge-blue,
.feature-icon.blue,
.metric-icon.blue {
    background: linear-gradient(135deg, #0d83ff, #38ccff);
}

.badge-purple,
.feature-icon.purple,
.metric-icon.purple {
    background: linear-gradient(135deg, #705cff, #a855f7);
}

.badge-orange,
.feature-icon.orange,
.metric-icon.orange {
    background: linear-gradient(135deg, #ff8a1f, #ffb13d);
}

.feature-icon.cyan,
.metric-icon.sky {
    background: linear-gradient(135deg, #0ea5e9, #35d0ff);
}

.metric-icon.mint {
    background: linear-gradient(135deg, #47b86f, #8bea96);
}

.metric-icon.rose {
    background: linear-gradient(135deg, #ef4876, #ff91a6);
}

.ready-panel {
    padding-top: 0;
}

.ready-panel h2 {
    margin: 0 0 8px;
    color: #65dd6f;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 850;
}

.ready-panel ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ready-panel li {
    position: relative;
    padding-left: 22px;
    color: #c6d4e8;
    font-size: 13px;
    font-weight: 640;
}

.ready-panel li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6ee17b;
    font-weight: 900;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr) 242px;
    gap: 28px;
    align-items: start;
}

.feature-panel,
.mobile-panel,
.api-panel,
.batch-panel {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 64, 131, 0.94), rgba(7, 32, 68, 0.92));
    border: 1px solid rgba(51, 144, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-panel h2,
.mobile-panel h2,
.api-panel h2,
.batch-panel h2,
.preview-card h3 {
    margin: 0;
    min-height: 34px;
    display: grid;
    place-items: center;
    color: #f8fbff;
    background: linear-gradient(180deg, rgba(18, 85, 169, 0.88), rgba(11, 51, 112, 0.96));
    border-bottom: 1px solid rgba(112, 183, 255, 0.24);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 880;
    text-transform: uppercase;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f8fbff;
}

.feature-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 55px;
    padding: 11px 13px;
    color: #10243c;
    border-bottom: 1px solid #e5ecf5;
}

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

.popular-converter-list li {
    display: block;
    min-height: 0;
    padding: 0;
}

.popular-converter-list a {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 9px;
    align-items: center;
    min-height: 38px;
    padding: 6px 10px;
    color: #10243c;
    text-decoration: none;
}

.popular-converter-list a:hover {
    background: #eef6ff;
}

.feature-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.feature-list strong {
    display: block;
    margin-bottom: 3px;
    color: #0e243f;
    font-size: 11.5px;
    line-height: 1.15;
    font-weight: 850;
}

.feature-list small {
    display: block;
    color: #5c6c7e;
    font-size: 8.8px;
    line-height: 1.28;
    font-weight: 600;
}

.popular-converter-list .feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 8px;
    line-height: 1;
}

.popular-converter-list strong {
    margin-bottom: 1px;
    font-size: 9.8px;
}

.popular-converter-list small {
    font-size: 7.4px;
    line-height: 1.2;
}

.popular-category-panel {
    padding: 12px 11px 13px;
    background:
        linear-gradient(180deg, rgba(8, 37, 82, 0.98), rgba(5, 25, 57, 0.98));
    border-top: 1px solid rgba(112, 183, 255, 0.24);
}

.popular-category-panel h3 {
    margin: 0 0 10px;
    color: #dcecff;
    font-size: 9.6px;
    line-height: 1;
    font-weight: 880;
    text-transform: uppercase;
}

.popular-category-panel div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.popular-category-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 7px;
    color: #dbeaff;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(126, 175, 255, 0.22);
    border-radius: 6px;
    font-size: 8.2px;
    font-weight: 760;
    text-align: center;
    text-decoration: none;
}

.popular-category-panel a:hover {
    color: #ffffff;
    background: rgba(28, 126, 255, 0.26);
    border-color: rgba(126, 206, 255, 0.46);
}

.popular-category-panel .popular-all-link {
    margin-top: 9px;
    width: 100%;
    color: #08223d;
    background: linear-gradient(180deg, #77f5c2, #47d58c);
    border-color: rgba(138, 255, 208, 0.86);
    font-weight: 850;
}

.browser-panel {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(191, 220, 255, 0.78);
    border-radius: 7px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.browser-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 50px;
    padding: 0 20px;
    color: #10243c;
    border-bottom: 1px solid #d9e5f4;
    background: #ffffff;
}

.mini-brand strong {
    color: #0e2037;
    font-size: 20px;
    line-height: 1;
    font-weight: 860;
}

.browser-topbar nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 28px);
    min-width: 0;
    overflow: hidden;
}

.browser-topbar nav a {
    color: #1b2d45;
    font-size: 13px;
    line-height: 1;
    font-weight: 790;
    white-space: nowrap;
    text-decoration: none;
}

.browser-topbar nav a:hover {
    color: #1169da;
    text-decoration: none;
}

.browser-hero {
    position: relative;
    min-height: clamp(520px, 42vw, 650px);
    padding: 32px clamp(22px, 4vw, 64px) 34px;
    text-align: center;
    background:
        radial-gradient(circle at 82% 56%, rgba(45, 154, 255, 0.34), transparent 24%),
        radial-gradient(circle at 23% 4%, rgba(28, 121, 255, 0.28), transparent 30%),
        linear-gradient(135deg, #052052 0%, #073887 47%, #0064c7 100%);
    overflow: hidden;
}

.wave-grid {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background:
        repeating-linear-gradient(10deg, transparent 0 34px, rgba(62, 171, 255, 0.08) 35px 36px),
        radial-gradient(ellipse at 17% 22%, rgba(45, 153, 255, 0.45), transparent 30%),
        radial-gradient(ellipse at 74% 54%, rgba(45, 153, 255, 0.35), transparent 28%);
    pointer-events: none;
}

.browser-hero h2,
.browser-hero p,
.hero-tool-focus,
.hero-tool-head,
.hero-converter,
.popular-searches {
    position: relative;
    z-index: 1;
}

.browser-hero h2 {
    margin: 0 auto 8px;
    color: #ffffff;
    font-size: clamp(34px, 3.1vw, 54px);
    line-height: 1.06;
    font-weight: 890;
    letter-spacing: 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.browser-hero p {
    margin: 0;
    color: #e0efff;
    font-size: 12.5px;
    font-weight: 650;
}

.browser-hero .hero-subtitle {
    margin-bottom: 0;
    color: #55e8a7;
    font-size: 16px;
    font-weight: 820;
}

.hero-tool-focus {
    width: min(100%, 930px);
    margin: 31px auto 0;
    padding: clamp(18px, 2.4vw, 31px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96)),
        rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(190, 221, 255, 0.95);
    border-radius: 18px;
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.78) inset,
        0 0 42px rgba(42, 193, 255, 0.18);
}

.hero-tool-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    text-align: left;
}

.hero-tool-head span {
    color: #6a7b90;
    font-size: 12px;
    font-weight: 820;
    text-transform: uppercase;
}

.hero-tool-head strong {
    color: #0d2038;
    font-size: clamp(25px, 2.4vw, 38px);
    line-height: 0.92;
    font-weight: 900;
}

.hero-converter {
    width: 100%;
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(136px, 0.85fr) minmax(136px, 0.85fr) 140px;
    gap: 8px;
    min-height: 82px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(196, 214, 236, 0.98);
    border-radius: 13px;
    box-shadow: 0 14px 34px rgba(13, 47, 91, 0.2);
}

.hero-converter input,
.hero-converter select,
.hero-converter button {
    min-height: 66px;
    border-radius: 8px;
    border: 0;
    box-shadow: none;
}

.hero-converter input {
    padding-left: 19px;
    color: #12243c;
    font-size: clamp(22px, 2.1vw, 33px);
    font-weight: 850;
}

.hero-converter select {
    padding: 0 14px;
    color: #24384f;
    background: #f5f8fc;
    border: 1px solid #e1e8f1;
    font-size: clamp(12px, 1.05vw, 15px);
    font-weight: 750;
}

.hero-converter button {
    padding: 0 20px;
    background: linear-gradient(180deg, #228cff, #0b65df);
    border: 1px solid #0b65df;
    font-size: clamp(13px, 1.08vw, 16px);
    font-weight: 820;
}

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #65758a;
    font-size: 10px;
    font-weight: 760;
}

.hero-inline-result {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    margin: 0 auto 16px;
    padding: 15px 18px;
    color: #10243d;
    background: #eef6ff;
    border: 1px solid rgba(190, 218, 250, 0.98);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-inline-result .result-value {
    color: #0d1f34;
    font-size: clamp(27px, 2.9vw, 44px);
    line-height: 1;
    font-weight: 900;
}

.hero-inline-result .result-meta {
    margin: 0;
    color: #5b6c80;
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1;
    font-weight: 760;
}

.popular-searches a {
    padding: 6px 11px;
    color: #16304d;
    background: #ffffff;
    border: 1px solid rgba(197, 215, 238, 0.96);
    border-radius: 7px;
    box-shadow: 0 5px 14px rgba(13, 47, 91, 0.08);
    font-weight: 780;
    text-decoration: none;
}

.popular-searches a:first-of-type {
    color: #07233c;
    background: linear-gradient(180deg, #77f5c2, #47d58c);
    border-color: rgba(138, 255, 208, 0.86);
}

.browser-body {
    padding: 28px 122px 20px;
    background: #f8fbff;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.section-row h3 {
    margin: 0;
    color: #0b1e35;
    font-size: 14px;
    font-weight: 850;
}

.section-row a {
    color: #0b5fbf;
    font-size: 9px;
    font-weight: 780;
    text-decoration: none;
}

.converter-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.converter-cards a {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 9px;
    min-height: 70px;
    padding: 11px 10px;
    color: #193049;
    background: #ffffff;
    border: 1px solid #e4ecf6;
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(15, 35, 70, 0.07);
    text-decoration: none;
}

.converter-cards a:hover {
    border-color: #76b7ff;
    transform: translateY(-1px);
}

.card-icon {
    grid-row: 1 / 4;
    width: 24px;
    height: 24px;
    color: #ffffff;
    font-size: 15px;
    align-self: start;
}

.card-icon.teal {
    color: #0cb49c;
    background: rgba(12, 180, 156, 0.1);
}

.card-icon.purple,
.card-icon.violet {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.card-icon.green {
    color: #0f9f72;
    background: rgba(15, 159, 114, 0.11);
}

.card-icon.blue,
.card-icon.cyan {
    color: #0b88dd;
    background: rgba(11, 136, 221, 0.1);
}

.card-icon.yellow {
    color: #e8a100;
    background: rgba(232, 161, 0, 0.13);
}

.card-icon.navy {
    color: #0a44ba;
    background: rgba(10, 68, 186, 0.1);
}

.converter-cards strong {
    color: #10243d;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 860;
}

.converter-cards small {
    margin-top: 3px;
    color: #6b7b8e;
    font-size: 8px;
    line-height: 1.28;
    font-weight: 620;
}

.converter-cards em {
    align-self: end;
    margin-top: 8px;
    color: #7b8b9e;
    font-size: 8px;
    font-style: normal;
    font-weight: 650;
}

.feature-cards a {
    min-height: 76px;
}

.feature-cards .card-icon {
    border-radius: 8px;
    font-size: 13px;
}

.right-stack {
    display: grid;
    gap: 12px;
}

.mobile-panel {
    padding-bottom: 12px;
}

.phone-frame {
    width: 176px;
    margin: 11px auto 0;
    padding: 8px 7px;
    background: #101722;
    border: 2px solid #596b7e;
    border-radius: 31px;
    box-shadow: inset 0 0 0 3px #0b111a, 0 18px 36px rgba(0, 0, 0, 0.35);
}

.phone-screen {
    overflow: hidden;
    min-height: 314px;
    padding: 9px 10px;
    color: #10243c;
    background: #f8fbff;
    border-radius: 23px;
}

.phone-status,
.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.phone-status {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 8px;
    font-weight: 850;
}

.phone-header {
    margin-bottom: 12px;
}

.phone-logo {
    width: 16px;
    height: 16px;
}

.phone-header strong {
    margin-right: auto;
    color: #12263f;
    font-size: 9px;
}

.phone-header button,
.phone-header span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 6px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    font-size: 8px;
}

.phone-screen h3 {
    margin: 0 0 8px;
    color: #0e2035;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 850;
}

.phone-screen label {
    gap: 4px;
    color: #64748b;
    font-size: 8px;
    font-weight: 760;
}

.phone-screen input,
.phone-screen select {
    min-height: 27px;
    margin: 4px 0 7px;
    padding: 5px 7px;
    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 4px;
    color: #26384d;
    font-size: 8px;
}

.phone-result {
    min-height: 43px;
    margin: 7px 0;
    padding: 8px;
    color: #0f172a;
    background: #eef5ff;
    border: 1px solid #d2e2f6;
    border-radius: 5px;
}

.phone-result .result-value {
    font-size: 15px;
    line-height: 1.1;
}

.phone-result .result-meta {
    margin-top: 3px;
    font-size: 8px;
}

.phone-copy {
    color: #334155;
    font-size: 7.2px;
    line-height: 1.35;
}

.phone-copy strong {
    display: block;
    margin: 6px 0 3px;
    color: #1f2d41;
    font-size: 8px;
}

.phone-copy p {
    margin: 0 0 2px;
    color: #475569;
}

.api-panel pre {
    margin: 0;
    min-height: 213px;
    padding: 13px 14px;
    overflow: auto;
    color: #d6eaff;
    background: #061527;
    border-top: 1px solid rgba(91, 169, 255, 0.2);
    font-size: 8.2px;
    line-height: 1.45;
}

.api-panel code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.batch-panel {
    background: #f8fbff;
}

.batch-panel h2 {
    color: #ffffff;
}

.batch-panel table {
    width: calc(100% - 18px);
    margin: 9px;
    color: #22364f;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #dde7f2;
    font-size: 8px;
}

.batch-panel th,
.batch-panel td {
    padding: 6px 7px;
    border: 1px solid #e3ebf5;
    text-align: left;
}

.batch-panel th {
    color: #6b7b8e;
    font-weight: 820;
}

.batch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
    padding: 0 9px 10px;
}

.batch-actions button,
.batch-actions a {
    display: inline-grid;
    place-items: center;
    min-height: 25px;
    padding: 4px 6px;
    border: 1px solid #d9e3ef;
    border-radius: 4px;
    color: #334155;
    background: #ffffff;
    font-size: 7.5px;
    font-weight: 800;
    text-decoration: none;
}

.batch-actions a {
    color: #ffffff;
    background: #116fe7;
    border-color: #116fe7;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0;
    margin-top: 13px;
    overflow: hidden;
    color: #10243d;
    background: #ffffff;
    border: 1px solid rgba(191, 220, 255, 0.78);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.metric-strip div {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
    min-height: 68px;
    padding: 12px 13px;
    border-right: 1px solid #dde6f2;
}

.metric-strip div:last-of-type {
    border-right: 0;
}

.metric-icon {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.metric-strip strong {
    color: #0d1f34;
    font-size: 17px;
    line-height: 1.05;
    font-weight: 850;
}

.metric-strip small {
    color: #596a7e;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.preview-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 33px;
}

.preview-card {
    overflow: hidden;
    color: #10243c;
    background: linear-gradient(180deg, rgba(12, 64, 131, 0.95), rgba(7, 32, 68, 0.95));
    border: 1px solid rgba(72, 159, 255, 0.36);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.preview-card:hover {
    border-color: rgba(125, 198, 255, 0.78);
    text-decoration: none;
}

.mini-window {
    display: grid;
    gap: 5px;
    height: 122px;
    margin: 0;
    padding: 10px 12px;
    color: #1c2f48;
    background: #ffffff;
    border-top: 1px solid #dce7f4;
}

.mini-window small {
    color: #0b5fbf;
    font-size: 6.5px;
    font-weight: 850;
}

.mini-window strong {
    color: #10243d;
    font-size: 9px;
    line-height: 1.2;
}

.mini-window span {
    display: block;
    min-height: 17px;
    padding: 4px 6px;
    color: #526276;
    background: #f8fafc;
    border: 1px solid #e1e8f2;
    border-radius: 3px;
    font-size: 7px;
}

.mini-window b {
    display: block;
    min-height: 26px;
    padding: 6px;
    color: #111827;
    background: #eef5ff;
    border: 1px solid #d5e5f7;
    border-radius: 3px;
    font-size: 13px;
}

.mini-window button,
.mini-window .mock-button {
    display: inline-grid;
    place-items: center;
    min-height: 22px;
    padding: 3px 8px;
    color: #ffffff;
    background: #116fe7;
    border: 1px solid #116fe7;
    border-radius: 3px;
    font-size: 7px;
    font-weight: 800;
}

.chart-window table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7px;
}

.chart-window td {
    padding: 4px;
    border: 1px solid #dce6f2;
}

.article-window {
    grid-template-columns: 1fr 64px;
    grid-template-rows: auto auto 1fr;
}

.article-window strong,
.article-window p {
    grid-column: 1;
}

.article-window p {
    margin: 0;
    color: #65758a;
    font-size: 7px;
}

.article-window span {
    grid-column: 2;
    grid-row: 1 / 4;
    min-height: auto;
    background:
        linear-gradient(135deg, rgba(8, 28, 59, 0.18), rgba(255, 255, 255, 0.24)),
        url("../images/hero.png") center / cover;
    border-radius: 4px;
}

.widget-window code {
    display: block;
    padding: 8px;
    color: #dbeafe;
    background: #061527;
    border-radius: 4px;
    font-size: 7px;
    overflow: hidden;
}

.snapshot-footer {
    display: grid;
    grid-template-columns: 2.2fr repeat(4, 1fr) 1.65fr;
    gap: 34px;
    margin: 18px -34px -18px;
    padding: 22px 34px 34px;
    color: #aebdd3;
    background: rgba(2, 11, 28, 0.46);
    border-top: 1px solid rgba(95, 157, 235, 0.15);
    text-align: left;
}

.snapshot-footer section,
.snapshot-footer nav {
    min-width: 0;
}

.snapshot-footer h2 {
    margin: 0 0 9px;
    color: #f7fbff;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 850;
    text-transform: uppercase;
}

.snapshot-footer p {
    margin: 8px 0 0;
    color: #9fb0c8;
    font-size: 8.5px;
    line-height: 1.55;
}

.snapshot-footer a {
    display: block;
    color: #c6d4e8;
    font-size: 9px;
    line-height: 1.9;
    text-decoration: none;
}

.snapshot-footer a:hover {
    color: #ffffff;
}

.footer-brand {
    display: inline-flex;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
}

.newsletter {
    padding: 13px;
    background: rgba(16, 64, 135, 0.45);
    border: 1px solid rgba(86, 160, 255, 0.2);
    border-radius: 6px;
}

.newsletter form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 7px;
    margin-top: 9px;
}

.newsletter input,
.newsletter button {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 8px;
}

.newsletter input {
    color: #e8f3ff;
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(141, 194, 255, 0.18);
}

.newsletter button {
    background: #116fe7;
    border-color: #116fe7;
}

.newsletter .button {
    display: inline-flex;
    min-height: 28px;
    margin-top: 10px;
    padding: 5px 9px;
    color: #ffffff;
    background: #116fe7;
    border-color: #116fe7;
    font-size: 8px;
}

.snapshot-footer .copyright,
.snapshot-footer .made-with {
    grid-column: 1 / 4;
    align-self: end;
    margin-top: 8px;
}

.snapshot-footer .made-with {
    grid-column: 5 / 7;
    text-align: right;
}

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

@media (max-width: 1180px) {
    .snapshot-shell {
        padding: 20px;
    }

    .snapshot-top,
    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-brand,
    .ready-panel {
        justify-self: center;
        text-align: center;
    }

    .ready-panel li {
        text-align: left;
    }

    .feature-panel,
    .right-stack {
        max-width: 760px;
        width: 100%;
        justify-self: center;
    }

    .feature-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .browser-body {
        padding-left: 42px;
        padding-right: 42px;
    }

    .metric-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .preview-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .snapshot-footer {
        margin-left: -20px;
        margin-right: -20px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .snapshot-footer .copyright,
    .snapshot-footer .made-with {
        grid-column: auto;
        text-align: left;
    }
}

@media (min-width: 1181px) and (max-width: 1360px) {
    .browser-body {
        padding-left: 54px;
        padding-right: 54px;
    }

    .converter-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .snapshot-shell {
        padding: 14px;
    }

    .snapshot-title h1 {
        font-size: 28px;
        white-space: normal;
    }

    .snapshot-badges {
        display: grid;
        grid-template-columns: 1fr;
    }

    .snapshot-badges span {
        min-width: 0;
        justify-content: center;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .browser-topbar {
        grid-template-columns: 1fr auto;
        gap: 7px;
    }

    .browser-topbar nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
    }

    .browser-hero {
        min-height: auto;
        padding: 28px 16px 22px;
    }

    .browser-hero h2 {
        font-size: 34px;
    }

    .hero-tool-focus {
        width: 100%;
        margin-top: 22px;
        padding: 12px;
        border-radius: 14px;
    }

    .hero-tool-head {
        align-items: start;
        gap: 8px;
        margin-bottom: 11px;
    }

    .hero-converter {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: auto;
        padding: 7px;
    }

    .hero-converter input,
    .hero-converter select,
    .hero-converter button {
        min-height: 50px;
    }

    .hero-converter select {
        border: 1px solid #e1e8f1;
    }

    .hero-inline-result {
        min-height: 58px;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .browser-body {
        padding: 16px;
    }

    .converter-cards,
    .metric-strip,
    .preview-strip,
    .snapshot-footer {
        grid-template-columns: 1fr;
    }

    .metric-strip div {
        border-right: 0;
        border-bottom: 1px solid #dde6f2;
    }

    .metric-strip div:last-of-type {
        border-bottom: 0;
    }

    .preview-strip {
        margin-top: 18px;
    }

    .snapshot-footer {
        margin-left: -14px;
        margin-right: -14px;
        margin-bottom: -18px;
        padding: 20px 14px 28px;
        gap: 18px;
    }

    .newsletter form {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1181px) and (max-width: 1360px) {
    .home-snapshot .browser-panel .converter-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
