﻿/* ============================================================
   KORVA TRACKER â€” style.css
   Themes: raven (default) | light | forest | amber
   Applied via <html data-theme="...">
   ============================================================ */

/* â”€â”€ Theme tokens â”€â”€ */
/* RAVEN — pure dark, green accent */
[data-theme="raven"] {
    --bg:           #111111;
    --bg2:          #181818;
    --surface:      #1c1c1c;
    --surface2:     #242424;
    --border:       #2a2a2a;
    --border2:      #363636;
    --text:         #e8e4dc;
    --text2:        #b0ab9f;
    --muted:        #888880;
    --accent:       #52b788;
    --accent-dim:   #2d6a4f;
    --accent-bg:    #0d2e1e;
    --amber:        #f4a423;
    --amber-dim:    #b5830a;
    --amber-bg:     #281d06;
    --danger:       #e07070;
    --danger-bg:    #3a1212;
    --purple:       #a78bfa;
    --purple-bg:    #1e1a2e;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

/* LIGHT — warm paper, dark text */
[data-theme="light"] {
    --bg:           #f2ede6;
    --bg2:          #faf8f5;
    --surface:      #faf8f5;
    --surface2:     #e8e2da;
    --border:       #ccc7be;
    --border2:      #b0a89e;
    --text:         #18160f;
    --text2:        #3a3628;
    --muted:        #5e5a50;
    --accent:       #2d6a4f;
    --accent-dim:   #1a4a35;
    --accent-bg:    #d8edd8;
    --amber:        #8c6200;
    --amber-dim:    #6e4e00;
    --amber-bg:     #f0e4b8;
    --danger:       #a81c1c;
    --danger-bg:    #f8d8d8;
    --purple:       #5b21b6;
    --purple-bg:    #ddd8f5;
    --font-body: 'Segoe UI', system-ui, Arial, sans-serif;
    --font-mono: Consolas, 'Courier New', monospace;
}

/* FOREST — deep green, emerald accent */
[data-theme="forest"] {
    --bg:           #0a1a10;
    --bg2:          #0e2216;
    --surface:      #112a1a;
    --surface2:     #163320;
    --border:       #1c4028;
    --border2:      #255438;
    --text:         #cce8d6;
    --text2:        #9ec8ae;
    --muted:        #6ea880;
    --accent:       #3ec87a;
    --accent-dim:   #1f7a45;
    --accent-bg:    #0a2e18;
    --amber:        #e8a020;
    --amber-dim:    #a87010;
    --amber-bg:     #281e04;
    --danger:       #e07070;
    --danger-bg:    #3a1212;
    --purple:       #6ee7a0;
    --purple-bg:    #0a2e18;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

/* AMBER — warm evening, gold accent */
[data-theme="amber"] {
    --bg:           #130e06;
    --bg2:          #1c1508;
    --surface:      #201a0a;
    --surface2:     #2a220c;
    --border:       #342c10;
    --border2:      #483e18;
    --text:         #f0e6c8;
    --text2:        #c8b480;
    --muted:        #a89050;
    --accent:       #f0a020;
    --accent-dim:   #a87010;
    --accent-bg:    #281e04;
    --amber:        #f0a020;
    --amber-dim:    #a87010;
    --amber-bg:     #281e04;
    --danger:       #e07070;
    --danger-bg:    #3a1212;
    --purple:       #fbbf24;
    --purple-bg:    #281e04;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

/* â”€â”€ Base reset â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-body: system-ui, -apple-system, sans-serif;
    --radius: 0px;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Smooth entrance animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* â”€â”€ Diamond pattern background â”€â”€ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(45deg, var(--surface) 25%, transparent 25%),
        linear-gradient(-45deg, var(--surface) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--surface) 75%),
        linear-gradient(-45deg, transparent 75%, var(--surface) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
body.landing::before { opacity: 0.2; }

.landing-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.landing-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--accent);
}
.landing-login {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--muted);
    border: 1px solid var(--border2);
    padding: 8px 16px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.landing-login:hover {
    color: var(--bg);
    border-color: var(--accent);
    background: var(--accent);
}

.hero {
    position: relative;
    z-index: 1;
    padding: 120px 48px 100px;
    max-width: 860px;
    margin: 0 auto;
    animation: fadeUp 0.7s ease both;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: fadeUp 0.6s ease 0.2s both;
}
.hero-sub {
    font-size: 17px;
    color: var(--text2);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 40px;
    animation: fadeUp 0.6s ease 0.3s both;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.4s both;
}

.hero-sigil {
    position: absolute;
    right: 48px;
    top: 80px;
    width: 220px;
    height: 220px;
    color: var(--accent);
    opacity: 0.15;
    pointer-events: none;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    padding: 14px 28px;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(82, 183, 136, 0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-block;
    border: 1px solid var(--border2);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    padding: 14px 28px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 28px;
}

.services {
    position: relative;
    z-index: 1;
    padding: 64px 48px;
    border-top: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
}
.service-card {
    background: var(--bg);
    padding: 28px 24px;
}
.service-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}
.service-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}
.service-card p { font-size: 13px; color: var(--text2); line-height: 1.65; }

.approach {
    position: relative;
    z-index: 1;
    padding: 64px 48px;
    border-top: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}
.approach-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.approach-step {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 10px;
}
.approach-item h4 { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.approach-item p  { font-size: 13px; color: var(--text2); line-height: 1.65; }

.cta-band {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 64px 48px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.cta-band h2 { font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.cta-band p  { font-size: 14px; color: var(--text2); margin-bottom: 24px; }

.landing-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    width: 360px;
    background: var(--surface);
    border: 1px solid var(--border2);
    padding: 44px 40px;
}
.login-sigil {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: var(--accent);
}
.login-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-align: center;
    margin-bottom: 32px;
}
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}
.field input:focus { border-color: var(--accent); }
.btn {
    width: 100%;
    background: var(--accent);
    border: none;
    color: var(--bg);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.15em;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.error {
    color: var(--danger);
    font-size: 11px;
    font-family: var(--font-mono);
    margin-top: 12px;
}
.login-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--muted);
    transition: color 0.15s;
}
.login-back:hover { color: var(--text); }

/* Role picker */
.login-role-pick { width: 100%; }
.login-role-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.login-role-btn {
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 18px 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    width: 100%;
}
.login-role-btn:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
    transform: translateY(-2px);
}
.lrb-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 6px;
}
.lrb-sub {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}
.login-back-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 16px;
    padding: 0;
    display: block;
    transition: color 0.15s;
}
.login-back-btn:hover { color: var(--text); }

/* ============================================================
   APP SHELL â€” sidebar + main
   ============================================================ */
.app {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    min-height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-logo {
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo .mark {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--accent);
    display: block;
}
.sidebar-logo .sub {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-top: 3px;
}
.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}
.nav-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    padding: 0 20px 10px;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 9px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.nav-item:hover        { color: var(--text); background: var(--surface2); padding-left: 24px; }
.nav-item.active       { color: var(--accent); border-left-color: var(--accent); background: var(--surface2); }
.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.user-name { font-size: 13px; color: var(--text); font-weight: 500; }
.user-role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-top: 2px;
}
.logout-btn {
    display: block;
    width: 100%;
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 10px;
    transition: color 0.1s, border-color 0.1s;
}
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }

/* Main area */
.main { flex: 1; overflow: auto; min-width: 0; }
.topbar {
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 5;
}
.page-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted);
}
.page-title span { color: var(--text); }
.clock {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.content { padding: 28px 32px; }

/* ============================================================
   STATS CARDS
   ============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
@media (max-width: 900px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--accent);
}
.stat-card.amber::before  { background: var(--amber); }
.stat-card.purple::before { background: var(--purple); }
.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 8px;
}
.stat-value {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}
.stat-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* ============================================================
   PROJECT GRID CARDS
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 22px;
    display: block;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.project-card:hover {
    border-color: var(--accent);
    background: var(--surface2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.project-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.project-name { font-size: 14px; font-weight: 500; color: var(--text); }
.project-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 14px;
}
.project-progress { display: flex; align-items: center; gap: 10px; }
.progress-track {
    flex: 1;
    height: 2px;
    background: var(--border2);
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.4s ease;
}
.project-pct {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    white-space: nowrap;
}

/* ============================================================
   PHASE ROWS
   ============================================================ */
.section-head {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.phase-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: none;
    display: grid;
    grid-template-columns: 44px 1fr 130px 110px 40px;
    align-items: center;
}
.phase-row:last-child { border-bottom: 1px solid var(--border); }
.phase-row.clickable { cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.phase-row.clickable:hover { background: var(--surface2); border-color: var(--border2); transform: translateX(3px); }
.phase-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    padding: 14px 0 14px 16px;
    text-align: center;
}
.phase-title-cell { padding: 14px 14px; }
.phase-name { font-size: 13px; color: var(--text); }
.phase-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.phase-status { padding: 14px 14px; }
.phase-hours {
    padding: 14px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}
.phase-hours span { color: var(--text); }
.phase-arrow { padding: 14px 12px; color: var(--muted); text-align: right; font-size: 18px; }

/* ============================================================
   STATUS PILLS
   ============================================================ */
.status-pill {
    display: inline-block;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.status-DONE        { background: var(--accent-bg); color: var(--accent); }
.status-IN_PROGRESS { background: var(--amber-bg);  color: var(--amber); }
.status-NOT_STARTED { background: var(--surface2);  color: var(--muted); }

/* ============================================================
   PHASE DETAIL HEADER
   ============================================================ */
.phase-detail-header {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}
.phase-number-big {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 6px;
}
.phase-title-big  { font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.phase-desc-big   { font-size: 13px; color: var(--text2); line-height: 1.6; }
.hours-block      { text-align: right; }
.hours-big {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}
.hours-denom { font-size: 14px; color: var(--muted); }
.hours-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-top: 4px;
}
.hours-bar {
    width: 120px;
    height: 2px;
    background: var(--border2);
    margin-top: 8px;
    margin-left: auto;
}
.hours-bar-fill { height: 100%; background: var(--amber); }
.hours-pct {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 20px;
    transition: color 0.1s;
}
.back-link:hover { color: var(--text); }

/* ============================================================
   PANELS & CONTROLS
   ============================================================ */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.controls-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 14px;
}
.controls-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.ctrl-group { display: flex; flex-direction: column; }
.ctrl-group.grow { flex: 1; min-width: 140px; }
.ctrl-group label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 5px;
}
.ctrl-group input,
.ctrl-group select,
.ctrl-group textarea {
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}
.ctrl-group input:focus,
.ctrl-group select:focus,
.ctrl-group textarea:focus { border-color: var(--accent); }

.ctrl-btn {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-end;
    transition: border-color 0.1s, color 0.1s;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.ctrl-btn.green {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
    color: var(--text);
}
.ctrl-btn.green:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ============================================================
   NOTES
   ============================================================ */
.note-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.note-item:last-of-type { border-bottom: none; }
.note-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.note-author {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}
.note-role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
}
.note-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
}
.note-content {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}
.note-form { margin-top: 20px; }
.note-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    line-height: 1.5;
    transition: border-color 0.15s;
}
.note-form textarea:focus { border-color: var(--accent); }
.note-submit {
    margin-top: 8px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-dim);
    color: var(--text);
    padding: 9px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.note-submit:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
.activity-feed {
    background: var(--surface);
    border: 1px solid var(--border);
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.activity-msg  { color: var(--text); flex: 1; min-width: 0; }
.activity-proj {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    white-space: nowrap;
}
.activity-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

/* ============================================================
   CHIPS
   ============================================================ */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
}
.chip-x {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    transition: color 0.1s;
}
.chip-x:hover { color: var(--danger); }

/* ============================================================
   BANNERS & NOTICES
   ============================================================ */
.banner {
    background: var(--accent-bg);
    border: 1px solid var(--accent-dim);
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.banner::before { content: 'â—†'; font-size: 8px; }
.notice {
    padding: 9px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    margin-top: 10px;
}
.notice.success { background: var(--accent-bg); color: var(--accent); }
.notice.error   { background: var(--danger-bg);  color: var(--danger); }

/* ============================================================
   DATA TABLE
   ============================================================ */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }
.data-table td.muted { color: var(--muted); }
.data-table td.mono  { font-family: var(--font-mono); font-size: 12px; }

/* ============================================================
   THEME SELECTOR (settings page)
   ============================================================ */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 700px) {
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
.theme-option {
    border: 1px solid var(--border);
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s;
    background: var(--surface);
}
.theme-option input[type="radio"] { display: none; }
.theme-option:hover    { border-color: var(--border2); }
.theme-option.selected { border-color: var(--accent); }
.theme-swatch {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
/* Swatch fills */
.raven-swatch  { background: #111111; }
.raven-swatch::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: #52b788; }
.light-swatch  { background: #f2ede6; }
.light-swatch::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: #2d6a4f; }
.forest-swatch { background: #0a1a10; }
.forest-swatch::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: #3ec87a; }
.amber-swatch  { background: #130e06; }
.amber-swatch::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: #f0a020; }

.theme-name {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--text);
}
.theme-desc { font-size: 11px; color: var(--muted); }

/* ============================================================
   UTILITY
   ============================================================ */
.empty {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    padding: 20px 0;
}
.empty-sm {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
    .sidebar { display: none; }
    .content { padding: 20px 16px; }
    .topbar  { padding: 14px 16px; }
    .hero { padding: 48px 20px; }
    .hero-title { font-size: 28px; }
    .hero-sigil { display: none; }
    .landing-nav { padding: 16px 20px; }
    .services, .approach { padding: 40px 20px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .phase-row { grid-template-columns: 44px 1fr 40px; }
    .phase-status, .phase-hours { display: none; }
    .phase-detail-header { grid-template-columns: 1fr; }
}

/* ============================================================
   PHASE BADGES & APPROVAL
   ============================================================ */
.phase-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}
.badge {
    display: inline-block;
    padding: 3px 9px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.badge.overdue  { background: var(--danger-bg);  color: var(--danger); }
.badge.due      { background: var(--amber-bg);   color: var(--amber); }
.badge.approved { background: var(--accent-bg);  color: var(--accent); }

.inline-overdue {
    display: inline-block;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--danger-bg);
    color: var(--danger);
    margin-left: 6px;
    vertical-align: middle;
}
.inline-approved {
    display: inline-block;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--accent-bg);
    color: var(--accent);
    margin-left: 6px;
    vertical-align: middle;
}

.hours-big.over-budget  { color: var(--danger); }
.hours-big.near-budget  { color: var(--amber); }
.hours-bar-fill.over    { background: var(--danger); }
.hours-bar-fill.near    { background: var(--amber); }

.approval-prompt {
    border-color: var(--accent-dim);
    background: var(--accent-bg);
}
.approval-text {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 14px;
    line-height: 1.6;
}
.approve-btn {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--bg) !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
}
.approve-btn:hover { opacity: 0.85; }

/* ============================================================
   PROJECT UPDATES FEED
   ============================================================ */
.updates-feed {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.update-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.update-item:last-child { border-bottom: none; }
.update-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.update-author {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}
.update-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    background: var(--surface2);
    padding: 2px 7px;
}
.update-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-left: auto;
}
.update-content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.65;
}
.update-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    line-height: 1.5;
    transition: border-color 0.15s;
}
.update-textarea:focus { border-color: var(--accent); }
.delete-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    padding: 0 4px;
    transition: color 0.1s;
}
.delete-btn:hover { color: var(--danger); }

/* Public link */
.public-url {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    word-break: break-all;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--border2);
}
.ctrl-btn.danger {
    border-color: var(--danger-bg);
    color: var(--danger);
}
.ctrl-btn.danger:hover {
    border-color: var(--danger);
    background: var(--danger-bg);
}

/* ============================================================
   PUBLIC STATUS PAGE
   ============================================================ */
body.public-page { background: var(--bg); }

.public-nav {
    position: relative; z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.public-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--accent);
}
.public-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--muted);
}
.public-wrap {
    position: relative; z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 32px;
}
.public-hero { margin-bottom: 32px; }
.public-project-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.public-project-desc {
    font-size: 15px;
    color: var(--text2);
    margin-bottom: 14px;
    line-height: 1.6;
}
.public-status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.public-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
@media (max-width: 600px) { .public-stats { grid-template-columns: repeat(2, 1fr); } }
.public-stat {
    background: var(--surface);
    padding: 20px;
    text-align: center;
}
.public-stat-value {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}
.public-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-top: 6px;
}
.public-progress-bar {
    height: 4px;
    background: var(--border2);
    margin-bottom: 32px;
}
.public-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.6s ease;
}
.public-section-head {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-top: 28px;
}
.public-phase {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    align-items: flex-start;
}
.public-phase:last-child { border-bottom: 1px solid var(--border); }
.public-phase-left { flex: 1; }
.public-phase-right { text-align: right; flex-shrink: 0; min-width: 120px; }
.public-phase-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 4px;
}
.public-phase-title { font-size: 14px; font-weight: 500; color: var(--text); }
.public-phase-desc  { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.public-phase-due   { font-family: var(--font-mono); font-size: 12px; color: var(--amber); margin-top: 6px; }
.public-hours       { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

.public-footer {
    position: relative; z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 16px 40px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 40px;
}

/* ============================================================
   LANDING PAGE â€” PRODUCT SECTIONS
   ============================================================ */

/* Nav right group */
.landing-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ts-btn {
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    line-height: 1;
}
.ts-btn:hover          { color: var(--text); border-color: var(--accent); }
.ts-btn[data-theme="raven"]:hover  { border-color: #52b788; color: #52b788; }
.ts-btn[data-theme="light"]:hover  { border-color: #2d6a4f; color: #2d6a4f; }
.ts-btn[data-theme="forest"]:hover { border-color: #52b788; color: #52b788; }
.ts-btn[data-theme="amber"]:hover  { border-color: #f4a423; color: #f4a423; }

/* Nav links */
.landing-nav-links {
    display: flex;
    gap: 28px;
}
.landing-nav-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
    transition: color 0.15s;
}
.landing-nav-links a:hover { color: var(--text); }

/* Social proof bar */
.social-proof {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 48px;
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.proof-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    flex-shrink: 0;
}
.proof-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.proof-stat { text-align: center; }
.proof-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}
.proof-desc {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

/* Features grid */
.features {
    position: relative; z-index: 1;
    padding: 72px 48px;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.feature-card {
    background: var(--bg);
    padding: 32px 28px;
    transition: background 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.feature-card:hover { background: var(--surface); transform: translateY(-2px); }
.feature-card:hover::after { width: 100%; }
.feature-icon {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 14px;
}
.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

/* How it works */
.how-it-works {
    position: relative; z-index: 1;
    padding: 72px 48px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: content-box;
    max-width: 100%;
}
.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}
.step {
    flex: 1;
    min-width: 180px;
    padding: 0 24px;
}
.step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 12px;
}
.step h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.step p { font-size: 13px; color: var(--text2); line-height: 1.65; }
.step-divider {
    font-size: 20px;
    color: var(--border2);
    padding-top: 12px;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Differentiator comparison */
.differentiator {
    position: relative; z-index: 1;
    padding: 72px 48px;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: content-box;
    max-width: 100%;
}
.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    max-width: 720px;
    margin: 0 auto;
}
.diff-col { padding: 28px 32px; background: var(--bg); }
.diff-us   { background: var(--surface); }
.diff-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 20px;
}
.diff-label.accent { color: var(--accent); }
.diff-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.diff-col li {
    font-size: 13px;
    color: var(--text2);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.diff-col li::before {
    content: 'â€”';
    position: absolute;
    left: 0;
    color: var(--muted);
    font-family: var(--font-mono);
}
.diff-us li { color: var(--text); }
.diff-us li::before { content: 'âœ“'; color: var(--accent); }

/* Pricing */
.pricing {
    position: relative; z-index: 1;
    padding: 72px 48px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-sizing: content-box;
    max-width: 100%;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    max-width: 640px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--bg);
    padding: 36px 32px;
}
.pricing-card.featured { background: var(--surface2); }
.pricing-tier {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 16px;
}
.pricing-tier.accent { color: var(--accent); }
.pricing-price {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.pricing-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    margin-bottom: 24px;
}
.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing-features li {
    font-size: 13px;
    color: var(--text2);
    padding-left: 18px;
    position: relative;
}
.pricing-features li::before {
    content: 'âœ“';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 11px;
}

/* Who is this for */
.who-for {
    position: relative; z-index: 1;
    padding: 72px 48px;
    border-top: 1px solid var(--border);
}
.who-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}
.who-card {
    background: var(--bg);
    padding: 32px 24px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.who-card:hover { background: var(--surface); transform: translateY(-2px); }
.who-icon { font-size: 28px; margin-bottom: 14px; }
.who-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.who-card p  { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* Demo timeline */
.demo-section {
    position: relative; z-index: 1;
    padding: 72px 48px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.demo-intro {
    font-size: 15px;
    color: var(--text2);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
    text-align: center;
}
.demo-timeline {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.demo-step {
    display: flex;
    gap: 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.demo-step.visible { opacity: 1; transform: translateY(0); }
.demo-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}
.demo-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    background: var(--bg);
    flex-shrink: 0;
    margin-top: 4px;
    transition: border-color 0.3s, background 0.3s;
}
.demo-step-dot.active { border-color: var(--amber); background: var(--amber); }
.demo-step-dot.done   { border-color: var(--accent); background: var(--accent); }
.demo-step-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin: 6px 0;
    min-height: 40px;
}
.demo-step-line.short { min-height: 0; }
.demo-step-content {
    padding-bottom: 40px;
    flex: 1;
}
.demo-step-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 6px;
}
.demo-step-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.demo-step-body {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 10px;
}
.demo-step-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.demo-cta { text-align: center; margin-top: 40px; }

/* Landing responsive */
@media (max-width: 900px) {
    .feature-grid  { grid-template-columns: 1fr 1fr; }
    .who-grid      { grid-template-columns: 1fr 1fr; }
    .diff-grid     { grid-template-columns: 1fr; }
    .pricing-grid  { grid-template-columns: 1fr; }
    .steps-row     { flex-direction: column; gap: 24px; }
    .step-divider  { display: none; }
    .social-proof  { flex-direction: column; gap: 20px; }
}
@media (max-width: 600px) {
    .features, .how-it-works, .differentiator, .pricing,
    .who-for, .demo-section { padding: 48px 20px; }
    .feature-grid  { grid-template-columns: 1fr; }
    .who-grid      { grid-template-columns: 1fr; }
    .landing-nav-links { display: none; }
    .theme-switcher .ts-btn { font-size: 8px; padding: 3px 6px; }
}


