/* ============================================================
   SEND FLEET BRAND GUIDELINES – COMPLETE STYLES v2.0
   ============================================================ */
:root {
    --bg: #0a0a0a;
    --bg-1: #111111;
    --bg-2: #181818;
    --bg-3: #222222;
    --bg-4: #2a2a2a;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.13);
    --text: #f0ede8;
    --text-2: #8a8480;
    --text-3: #555250;
    --accent: #f5a623;
    --accent-dim: #7a5112;
    --accent-bg: rgba(245, 166, 35, 0.08);
    --accent-border: rgba(245, 166, 35, 0.22);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.08);
    --green-border: rgba(34, 197, 94, 0.2);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.08);
    --red-border: rgba(239, 68, 68, 0.2);
    --blue: #60a5fa;
    --blue-bg: rgba(96, 165, 250, 0.08);
    --blue-border: rgba(96, 165, 250, 0.2);
    --r: 6px;
    --rl: 10px;
    --rxl: 16px;
    --sans: "Instrument Sans", sans-serif;
    --display: "Syne", sans-serif;
    --mono: "JetBrains Mono", monospace;
    --nav-h: 60px;
    --sb-w: 256px;
    --transition-fast: 0.15s;
    --transition-smooth: 0.2s;
    --wm-size: clamp(1.8rem, 6.5vw, 2.5rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: rgba(245, 166, 35, 0.22);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-3);
    border-radius: 99px;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

code {
    font-family: var(--mono);
    font-size: 0.875em;
    color: var(--accent);
}

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

hr {
    border: none;
    border-bottom: 1px solid var(--line);
}

/* ── Progress bar ── */
.prog-bar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: 2px;
    background: var(--line);
    z-index: 150;
}

.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f7ba58);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.5);
}

/* ── Top nav ── */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 200;
    background: var(--bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
}

.top-nav-items {
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    width: 34px;
    height: 34px;
    color: var(--text-2);
    cursor: pointer;
    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    color: var(--text);
    background: var(--bg-2);
    border-color: var(--accent);
}

.sidebar-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo-mark {
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-logo-fleet {
    color: var(--accent);
}

.nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--rl);
    padding: 6px 14px;
    cursor: text;
    width: 220px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    position: relative;
}

.nav-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.nav-search input {
    background: none;
    border: none;
    outline: none;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--text);
    width: 100%;
}

.nav-search input::placeholder {
    color: var(--text-3);
}

.nav-search svg {
    color: var(--text-3);
    flex-shrink: 0;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--rl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 300;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    /* hidden by default */
    flex-direction: column;
}

.search-suggestions.active {
    display: flex;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.suggestion-item:first-child {
    border-radius: var(--rl) var(--rl) 0 0;
}

.suggestion-item:last-child {
    border-radius: 0 0 var(--rl) var(--rl);
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background: var(--accent-bg);
    color: var(--accent);
}

.suggestion-icon {
    opacity: 0.6;
    flex-shrink: 0;
    color: var(--text-3);
    display: flex;
    align-items: center;
}

.suggestion-item:hover .suggestion-icon,
.suggestion-item.highlighted .suggestion-icon {
    color: var(--accent);
}

.suggestion-name {
    font-weight: 500;
    color: var(--text);
}

.suggestion-item:hover .suggestion-name,
.suggestion-item.highlighted .suggestion-name {
    color: var(--accent);
}

.suggestion-hint {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    margin-left: auto;
}


.nav-pills {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
}

.nav-pill {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    padding: 4px 10px;
    border: 1px solid var(--line-2);
    border-radius: 99px;
    white-space: nowrap;
}

.nav-pill span {
    color: var(--accent);
}

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

.nav-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--r);
    background: var(--accent);
    color: #0a0a0a;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition:
        opacity 0.15s,
        transform 0.1s;
    white-space: nowrap;
}

.nav-dl-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.nav-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r);
    background: none;
    border: 1px solid var(--line-2);
    cursor: pointer;
    color: var(--text-2);
    transition: all 0.15s;
}

.nav-theme-btn:hover {
    color: var(--text);
    background: var(--bg-2);
    border-color: var(--accent);
}

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    width: var(--sb-w);
    background: var(--bg-1);
    border-right: 1px solid var(--line);
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition-smooth) ease;
    transform: translateX(-100%);
    padding: 16px 0 60px;
}

body.sidebar-expanded .sidebar {
    transform: translateX(0) !important;
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-3);
    border-radius: 4px;
}

.sb-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 10px 18px 4px;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 18px;
    font-size: 12.5px;
    color: var(--text-3);
    border-left: 2px solid transparent;
    transition:
        color 0.12s,
        background 0.12s,
        border-color 0.12s;
    cursor: pointer;
}

.sb-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
}

.sb-link.active {
    color: var(--accent);
    background: var(--accent-bg);
    border-left-color: var(--accent);
}

.sb-num {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-3);
    width: 20px;
    flex-shrink: 0;
}

.sb-link.active .sb-num {
    color: var(--accent);
}

.sb-sep {
    height: 1px;
    background: var(--line);
    margin: 8px 14px;
}

/* ── Main ── */
.main {
    padding-top: var(--nav-h);
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 64px 64px;
    scroll-margin-top: var(--nav-h);
    min-height: 480px;
}

.hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.07) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.03) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hero-body {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    padding: 5px 13px;
    border-radius: 99px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s ease both;
}

.hero-badge::before {
    content: "●";
    font-size: 6px;
}

.hero-h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(42px, 5.5vw, 76px);
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 0.97;
    margin-bottom: 20px;
    max-width: 16ch;
    animation: fadeSlideUp 0.6s 0.1s ease both;
}

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

.hero-desc {
    font-size: 16px;
    color: var(--text-2);
    max-width: 520px;
    line-height: 1.75;
    animation: fadeSlideUp 0.6s 0.2s ease both;
}

.hero-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 44px;
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    overflow: hidden;
    animation: fadeSlideUp 0.6s 0.3s ease both;
}

.hero-stat {
    padding: 16px 24px;
    border-right: 1px solid var(--line);
    transition: background 0.15s;
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat:hover {
    background: var(--accent-bg);
}

.hero-stat-val {
    font-family: var(--display);
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.hero-stat-val.amber {
    color: var(--accent);
}

.hero-stat-key {
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Section ── */
.section {
    max-width: 1400px;
    padding: 64px 64px;
    margin: 0 auto;
    scroll-margin-top: var(--nav-h);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 12px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--accent);
}

.sec-h2 {
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.sec-sub {
    font-size: 14.5px;
    color: var(--text-2);
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: 40px;
}

/* ── Section actions bar ── */
.section-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.section-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r);
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.section-btn:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-bg);
}

.section-btn.primary {
    background: var(--accent);
    color: #0a0a0a;
    border-color: transparent;
    font-weight: 600;
}

.section-btn.primary:hover {
    opacity: 0.87;
    transform: translateY(-1px);
}

/* ── Logo grid ── */
.logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    overflow: hidden;
    margin-bottom: 40px;
}

.logo-tile {
    padding: clamp(28px, 8vw, 56px) clamp(20px, 6vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s;
    cursor: default;
}

.logo-tile:hover {
    z-index: 1;
}

.logo-tile.t-dark {
    background: var(--bg);
}

.logo-tile.t-light {
    background: #f8f5ef;
}

.logo-tile.t-amber {
    background: #f5a623;
}

.logo-tile.t-mono {
    background: #050507;
}

.tile-lbl {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
}

.logo-tile.t-light .tile-lbl {
    color: #888;
}

.logo-tile.t-amber .tile-lbl {
    color: rgba(10, 10, 10, 0.45);
}

/* Tile action bar */
.tile-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    display: flex;
    gap: 0;
    opacity: 0;
    transition: opacity 0.2s;
    overflow: hidden;
}

.logo-tile.t-light .tile-actions {
    background: rgba(248, 245, 239, 0.92);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.logo-tile.t-amber .tile-actions {
    background: rgba(245, 166, 35, 0.85);
}

.logo-tile:hover .tile-actions {
    opacity: 1;
}

.tile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    background: none;
    border: none;
    border-right: 1px solid var(--line);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition:
        background 0.12s,
        color 0.12s;
    white-space: nowrap;
}

.tile-action-btn:last-child {
    border-right: none;
}

.tile-action-btn:hover {
    background: rgba(245, 166, 35, 0.12);
    color: var(--accent);
}

.logo-tile.t-light .tile-action-btn {
    color: #555;
    border-right-color: rgba(0, 0, 0, 0.1);
}

.logo-tile.t-light .tile-action-btn:hover {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.08);
}

.logo-tile.t-amber .tile-action-btn {
    color: rgba(10, 10, 10, 0.6);
    border-right-color: rgba(0, 0, 0, 0.1);
}

.logo-tile.t-amber .tile-action-btn:hover {
    color: #0a0a0a;
    background: rgba(0, 0, 0, 0.08);
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wm-text {
    font-family: var(--display);
    font-weight: 800;
    font-size: var(--wm-size);
    letter-spacing: -0.03em;
    color: var(--text);
}

.wm-text .fleet {
    color: var(--accent);
}

.wm-text.on-light {
    color: #111;
}

.wm-text.on-light .fleet {
    color: #f5a623;
}

.wm-text.on-amber {
    color: #0a0a0a;
}

.wm-text.on-amber .fleet {
    color: rgba(10, 10, 10, 0.42);
}

.wm-text.on-mono {
    color: #f0ede8;
}

.wm-text.on-mono .fleet {
    color: #f5a623;
}

/* Mark sizes */
.mark-sizes {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 32px;
}

.mark-sz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rl);
    padding: 16px 14px;
    transition: border-color 0.15s;
    cursor: pointer;
}

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

.mark-sz-lbl {
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--text-3);
}

.mark-sz-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    margin-top: 2px;
}

.mark-sz:hover .mark-sz-actions {
    opacity: 1;
}

.mark-action-btn {
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.12s;
}

.mark-action-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Anatomy ── */
.anatomy-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 52px 48px;
    margin-bottom: 32px;
}

.anatomy-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.anatomy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-2);
}

.anatomy-item::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.anatomy-item strong {
    color: var(--text);
    font-weight: 500;
}

/* ── Clearspace ── */
.clearspace-demo {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.cs-inner {
    position: relative;
    display: inline-block;
}

.cs-box {
    position: absolute;
    inset: -28px;
    border: 1px dashed rgba(245, 166, 35, 0.4);
    border-radius: 18px;
    pointer-events: none;
}

.cs-lbl-h {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 9px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0.75;
}

.cs-lbl-v {
    position: absolute;
    right: -58px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: var(--mono);
    font-size: 9px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0.75;
}

/* ── Do / Don't grid ── */
.dd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.dd-card {
    border-radius: var(--rxl);
    overflow: hidden;
    border: 1px solid var(--line);
}

.dd-preview {
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-1);
    min-height: 130px;
    gap: 12px;
}

.dd-footer {
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
}

.dd-footer.do {
    background: var(--green-bg);
    color: var(--green);
    border-top: 1px solid var(--green-border);
}

.dd-footer.dont {
    background: var(--red-bg);
    color: var(--red);
    border-top: 1px solid var(--red-border);
}

.dd-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.dd-dot.do {
    background: var(--green);
    color: #fff;
}

.dd-dot.dont {
    background: var(--red);
    color: #fff;
}

/* ── Color swatches ── */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
    margin-bottom: 44px;
}

.swatch {
    border-radius: var(--rl);
    overflow: hidden;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    cursor: pointer;
    transition:
        border-color 0.15s,
        transform 0.15s;
}

.swatch:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.swatch-block {
    height: 90px;
    position: relative;
    flex-shrink: 0;
}

.swatch-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-family: var(--mono);
    font-size: 9px;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.swatch:hover .swatch-copy {
    opacity: 1;
}

.swatch-info {
    padding: 11px 14px;
    background: var(--bg-2);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.swatch-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.swatch-hex {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}

.swatch-role {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 4px;
    line-height: 1.45;
}

/* ── Amber / Green / Red / Blue ramps ── */
.ramp-section {
    margin-bottom: 32px;
}

.ramp-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.ramp-wrap {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 20px 24px;
    overflow-x: auto;
}

.ramp-stops {
    display: flex;
    gap: 3px;
    min-width: max-content;
}

.ramp-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 4px;
    transition:
        transform 0.15s,
        background 0.15s;
    border-radius: var(--r);
    min-width: 64px;
    flex: 1;
}

.ramp-stop:hover {
    transform: scaleY(1.08);
    background: rgba(255, 255, 255, 0.03);
}

.ramp-stop .color {
    width: 100%;
    height: 44px;
    border-radius: var(--r);
    min-width: 56px;
}

.ramp-stop .stop-hex {
    font-family: var(--mono);
    font-size: 8.5px;
    color: var(--text-3);
    text-align: center;
    white-space: nowrap;
}

.ramp-stop .stop-name {
    font-family: var(--mono);
    font-size: 8px;
    color: var(--text-3);
    text-align: center;
}

.ramp-stop .stop-name.star {
    color: var(--accent);
}

.use-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.use-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rl);
    padding: 18px;
}

.use-head {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.use-head.green {
    color: var(--green);
}

.use-head.red {
    color: var(--red);
}

.use-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.use-list li {
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    gap: 8px;
}

.use-list li::before {
    content: "→";
    flex-shrink: 0;
}

.use-list.red li::before {
    content: "✕";
    color: var(--red);
}

.use-list.green li::before {
    content: "✓";
    color: var(--green);
}

/* ── Typography ── */
.font-trio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}

.font-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 28px;
    transition: border-color 0.15s;
}

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

.font-tag {
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.font-glyph {
    line-height: 1;
    margin-bottom: 12px;
}

.font-abc {
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.6;
    word-break: break-all;
}

.font-meta {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    line-height: 1.8;
}

.font-card-actions {
    margin-top: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.font-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 9px;
    cursor: pointer;
    transition: all 0.12s;
}

.font-card-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.type-scale {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 44px;
}

.type-spec {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.type-spec:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.type-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.type-tag {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
}

/* ── Grid ── */
.grid-demo {
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    background: var(--bg-1);
    padding: 28px;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grid-cols {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    min-width: 500px;
}

.grid-col {
    height: 36px;
    border-radius: 4px;
    background: rgba(245, 166, 35, 0.07);
    border: 1px solid rgba(245, 166, 35, 0.15);
}

.grid-col.on {
    background: rgba(245, 166, 35, 0.2);
    border-color: rgba(245, 166, 35, 0.45);
}

/* ── Spacing ── */
.spacing-scale {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding: 20px 0;
}

.sp-row {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    min-width: max-content;
}

.sp-name {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    width: 110px;
    flex-shrink: 0;
}

.sp-bar-wrap {
    flex: 1;
    max-width: 380px;
    min-width: 80px;
}

.sp-bar {
    background: var(--accent);
    opacity: 0.65;
    height: 7px;
    border-radius: 2px;
}

.sp-val {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-2);
    width: 56px;
    flex-shrink: 0;
}

.sp-use {
    font-size: 11.5px;
    color: var(--text-3);
}

.radii-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.radius-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s;
}

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

.radius-demo {
    width: 48px;
    height: 48px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    margin: 0 auto 10px;
}

.radius-val {
    font-family: var(--display);
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    display: block;
}

.radius-tok {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
}

/* ── Motion ── */
.motion-stage {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 52px 44px;
    display: flex;
    gap: 36px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.motion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.motion-box {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--rl);
    cursor: pointer;
}

.motion-box.m1 {
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.motion-box.m2 {
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.motion-box.m3 {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-box.m4 {
    transition:
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease;
}

.motion-box.m5 {
    transition:
        transform 0.15s ease,
        border-radius 0.15s ease,
        opacity 0.15s ease;
}

.motion-box.m1:hover {
    opacity: 0.68;
    transform: translateY(-4px);
}

.motion-box.m2:hover {
    transform: translateY(-7px);
    background: #e8961a;
}

.motion-box.m3:hover {
    transform: translateY(-12px);
}

.motion-box.m4:hover {
    transform: translateY(-16px) rotate(8deg);
    background: #e8961a;
}

.motion-box.m5:hover {
    transform: scale(1.15);
    opacity: 0.8;
    border-radius: 50%;
}

.motion-lbl {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    text-align: center;
}

/* ── Icons ── */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}

.icon-cell {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rl);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-3);
    text-align: center;
    transition:
        border-color 0.12s,
        background 0.12s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.icon-cell:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.icon-cell svg {
    color: var(--text-2);
    transition:
        color 0.12s,
        transform 0.15s;
}

.icon-cell:hover svg {
    color: var(--accent);
    transform: scale(1.1);
}

.icon-cell-name {
    transition: color 0.12s;
}

.icon-cell:hover .icon-cell-name {
    color: var(--text);
}

/* Icon action overlay */
.icon-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    opacity: 0;
    transition: opacity 0.15s;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
}

.icon-cell:hover .icon-actions {
    opacity: 1;
}

.icon-action-btn {
    flex: 1;
    padding: 5px 4px;
    background: none;
    border: none;
    border-right: 1px solid var(--line);
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 8px;
    cursor: pointer;
    transition:
        color 0.12s,
        background 0.12s;
}

.icon-action-btn:last-child {
    border-right: none;
}

.icon-action-btn:hover {
    color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

/* Icon filter tabs */
.icon-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.icon-filter-btn {
    padding: 5px 14px;
    border-radius: 99px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.icon-filter-btn:hover {
    color: var(--text);
    border-color: var(--line);
}

.icon-filter-btn.active {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

/* Icon search */
.icon-search-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--rl);
    padding: 8px 14px;
    margin-bottom: 16px;
    max-width: 320px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.icon-search-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.icon-search-wrap input {
    background: none;
    border: none;
    outline: none;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text);
    width: 100%;
}

.icon-search-wrap input::placeholder {
    color: var(--text-3);
}

/* ── Imagery grid ── */
.imagery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.img-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 22px;
    margin-bottom: 20px;
    transition: border-color 0.15s;
}

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

.img-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 12px;
}

.img-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.img-desc {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── Components ── */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin-bottom: 44px;
}

.comp-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    overflow: hidden;
    transition: border-color 0.15s;
    display: flex;
    flex-direction: column;
}

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

.comp-preview {
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-grow: 1;
    border-bottom: 1px solid var(--line);
    min-height: 96px;
    overflow-x: auto;
}

.comp-lbl {
    padding: 11px 18px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 17px;
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    transition:
        opacity 0.15s,
        transform 0.1s,
        background 0.15s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
}

.btn-primary:hover {
    opacity: 0.87;
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--line-2);
}

.btn-ghost:hover {
    background: var(--bg-2);
    color: var(--text);
}

.btn-danger {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.btn-sm {
    padding: 5px 11px;
    font-size: 12px;
}

.btn-lg {
    padding: 11px 22px;
    font-size: 14.5px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-green {
    background: var(--green-bg);
    color: var(--green);
}

.badge-green .badge-dot {
    background: var(--green);
}

.badge-red {
    background: var(--red-bg);
    color: var(--red);
}

.badge-red .badge-dot {
    background: var(--red);
}

.badge-amber {
    background: var(--accent-bg);
    color: var(--accent);
}

.badge-amber .badge-dot {
    background: var(--accent);
}

.badge-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.badge-blue .badge-dot {
    background: var(--blue);
}

/* Input */
.input-demo {
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text);
    font-family: var(--sans);
    outline: none;
    width: 200px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.input-demo:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

/* ── Tokens table ── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.token-table {
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 28px;
    width: 100%;
    min-width: max-content;
}

.token-table th {
    padding: 9px 14px;
    text-align: left;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 1px solid var(--line);
}

.token-table td {
    padding: 10px 14px;
    color: var(--text-2);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.token-table tr:last-child td {
    border-bottom: none;
}

.token-table tr {
    transition: background 0.1s;
    cursor: pointer;
}

.token-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.tk {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--accent);
}

.tv {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-3);
}

.token-copy-btn {
    opacity: 0;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-3);
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.12s;
}

.token-table tr:hover .token-copy-btn {
    opacity: 1;
}

.token-copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Code block ── */
.code-block {
    background: #0c0c0c;
    border: 1px solid var(--line);
    border-radius: var(--rl);
    padding: 20px 22px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.8;
    color: #c8bfaf;
    overflow-x: auto;
    margin-top: 16px;
    white-space: nowrap;
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.15s;
}

.code-copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.code-block .cm {
    color: var(--text-3);
    font-style: italic;
}

.code-block .ck {
    color: #e07070;
}

.code-block .cs {
    min-width: max-content;
    color: #a0c890;
    white-space: nowrap;
}

.code-block .cv {
    color: var(--accent);
}

.code-block .cn {
    color: #7db8d0;
}

/* ── Voice ── */
.voice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.voice-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 22px;
    transition: border-color 0.15s;
}

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

.voice-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

.voice-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 7px;
}

.voice-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 14px;
}

.voice-eg {
    background: var(--bg-2);
    border-radius: var(--r);
    padding: 11px 15px;
    font-size: 12.5px;
    color: var(--text-2);
    font-style: italic;
}

/* ── Rewrite pairs ── */
.rw-pair {
    margin-bottom: 18px;
}

.rw-dont {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: var(--rl) var(--rl) 0 0;
    padding: 13px 17px;
    font-size: 13px;
    color: #fca5a5;
    line-height: 1.65;
}

.rw-do {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-top: none;
    border-radius: 0 0 var(--rl) var(--rl);
    padding: 13px 17px;
    font-size: 13px;
    color: #86efac;
    line-height: 1.65;
}

.rw-tag {
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    opacity: 0.7;
}

.callout {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-left: 3px solid var(--accent);
    border-radius: var(--rl);
    padding: 16px 20px;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.7;
    margin-top: 20px;
}

.callout strong {
    color: var(--accent);
}

/* ── Mini table ── */
.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rl);
    overflow: hidden;
    margin-bottom: 28px;
}

.mini-table th {
    padding: 9px 16px;
    text-align: left;
    background: var(--bg-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 1px solid var(--line);
}

.mini-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
}

.mini-table tr:last-child td {
    border-bottom: none;
}

.mini-table .good {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
}

.mini-table .bad {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--red);
}

/* ── Footer ── */
.brand-footer {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-left {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
}

.footer-copy {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-3);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-3);
    transition: color 0.12s;
}

.footer-links a:hover {
    color: var(--text-2);
}

/* ── Toast system ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--rl);
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: toastIn 0.25s ease both;
    max-width: 320px;
}

.toast.success {
    border-color: var(--green-border);
}

.toast.success .toast-icon {
    color: var(--green);
}

.toast.info {
    border-color: var(--accent-border);
}

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

.toast.removing {
    animation: toastOut 0.25s ease both;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-msg {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.4;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
}

/* ── Color contrast checker ── */
.contrast-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.contrast-card {
    border-radius: var(--rxl);
    overflow: hidden;
    border: 1px solid var(--line);
}

.contrast-preview {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contrast-info {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
}

.contrast-ratio {
    font-size: 15px;
    font-weight: 700;
}

.contrast-ratio.pass {
    color: var(--green);
}

.contrast-ratio.fail {
    color: var(--red);
}

.contrast-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.contrast-badge.pass {
    background: var(--green-bg);
    color: var(--green);
}

.contrast-badge.fail {
    background: var(--red-bg);
    color: var(--red);
}

/* ── Asset export panel ── */
.export-panel {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rxl);
    padding: 28px;
    margin-bottom: 32px;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.export-item {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--rl);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.export-item:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.export-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.export-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
}

.export-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.export-btn {
    flex: 1;
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.12s;
    text-align: center;
}

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

/* ── Color palette export ── */
.palette-export-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--rl);
    margin-bottom: 24px;
}

.palette-export-label {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    margin-right: 4px;
}

/* ── Light theme override ── */
body.light-theme {
    --bg: #f8f5ef;
    --bg-1: #f0ede8;
    --bg-2: #e8e4dc;
    --bg-3: #ddd8ce;
    --line: rgba(0, 0, 0, 0.08);
    --line-2: rgba(0, 0, 0, 0.13);
    --text: #111111;
    --text-2: #555250;
    --text-3: #8a8480;
}

/* ── Keyboard shortcut indicator ── */
.kbd {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-3);
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: 3px;
    padding: 1px 5px;
}

/* ── Scroll-to-top button ── */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 24px;
    z-index: 500;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    :root {
        --nav-h: 60px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 256px;
    }

    body.sidebar-expanded .sidebar {
        transform: translateX(0);
    }

    .section,
    .hero {
        padding: 48px 24px;
    }

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

    .dd-grid,
    .voice-grid,
    .font-trio,
    .imagery-grid {
        grid-template-columns: 1fr;
    }

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

    .contrast-demo {
        grid-template-columns: 1fr;
    }

    .brand-footer {
        padding: 24px;
    }

    .nav-search {
        display: none;
    }

    .nav-pills {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 48px 20px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .hero-stat {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .nav-dl-btn p {
        display: none;
    }

    .hero-stat:last-child {
        border-bottom: none;
    }

    .swatch-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .radii-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

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