/* MarketParquet -- Terminal Aesthetic, Polished */

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

:root {
    --bg: #0a0e14;
    --bg-subtle: #0d1117;
    --bg-card: #111820;
    --fg: #b3b1ad;
    --fg-bright: #e6e1cf;
    --accent: #39bae6;
    --green: #7fd962;
    --amber: #e6b450;
    --red: #f07178;
    --dim: #4d5566;
    --border: #1f2430;
    --border-bright: #2a3040;
    --glow: rgba(57, 186, 230, 0.08);
}

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.nav-left, .nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.logo {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.02em;
}

nav a {
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
}

nav a:hover {
    color: var(--accent);
}

.separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.75rem 0;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--fg-bright);
}

/* Hero */
.hero {
    margin: 2.5rem 0;
    text-align: center;
}

.ascii-art {
    color: var(--green);
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    display: inline-block;
    text-align: left;
}

.tagline {
    color: var(--dim);
    margin: 0.3rem 0;
    font-size: 13px;
}

/* Hero CTA */
.hero-cta {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-cta-sub {
    font-size: 12px;
}

.btn-lg {
    font-size: 15px;
    padding: 0.75rem 2rem;
}

/* Sections */
section {
    margin: 3rem 0;
}

h2 {
    color: var(--amber);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

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

.card-accent {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--glow);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    color: var(--dim);
    text-align: left;
    padding: 0.6rem 1rem 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

tbody td {
    padding: 0.5rem 1rem 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: var(--bg-subtle);
}

.highlight {
    color: var(--green);
}

.active-plan {
    background: var(--bg-card);
}

.active-plan td:first-child {
    color: var(--amber);
}

/* Pricing cards */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--glow);
    position: relative;
}

.plan-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -10px;
    left: 1.5rem;
    background: var(--accent);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.08em;
}

.plan-card.active {
    border-color: var(--amber);
    box-shadow: 0 0 20px rgba(230, 180, 80, 0.08);
}

.plan-card.active::before {
    content: 'CURRENT PLAN';
    position: absolute;
    top: -10px;
    left: 1.5rem;
    background: var(--amber);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.08em;
}

.plan-name {
    color: var(--fg-bright);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.plan-price {
    color: var(--green);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.plan-price span {
    color: var(--dim);
    font-size: 13px;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.plan-features li {
    color: var(--fg);
    font-size: 13px;
}

.plan-features li::before {
    content: '> ';
    color: var(--dim);
}

.plan-action {
    margin-top: 0.5rem;
}

/* Pre/code */
pre {
    color: var(--fg);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
}

section.schema pre,
section.usage pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
}

/* Info block (account details, billing info) */
.info-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    font-size: 13px;
    line-height: 1.8;
}

/* Forms */
.auth-form {
    max-width: 420px;
}

.field {
    margin: 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.field.inline {
    flex-wrap: wrap;
}

label {
    color: var(--dim);
    white-space: nowrap;
    font-size: 13px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--fg-bright);
    font-family: inherit;
    font-size: 14px;
    padding: 0.6rem 0.85rem;
    flex: 1;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    border-radius: 4px;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--glow);
}

button, .btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: inherit;
    font-size: 13px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.btn-solid {
    background: var(--accent);
    color: var(--bg);
    font-weight: 500;
}

.btn-solid:hover {
    background: var(--fg-bright);
    border-color: var(--fg-bright);
    color: var(--bg);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Google OAuth button */
.btn-google {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--fg-bright);
    font-size: 14px;
    padding: 0.7rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
    font-family: inherit;
}

.btn-google:hover {
    background: var(--bg-subtle);
    border-color: var(--fg);
    color: var(--fg-bright);
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}

.auth-divider span {
    color: var(--dim);
    font-size: 12px;
}

/* Utility */
.dim {
    color: var(--dim);
}

.error {
    color: var(--red);
    margin-top: 0.5rem;
    font-size: 13px;
}

.text-center {
    text-align: center;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Footer */
footer {
    margin-top: 4rem;
}

.footer-text {
    display: flex;
    justify-content: space-between;
    color: var(--dim);
    font-size: 12px;
    padding: 0.75rem 0;
}

/* File list specific */
.file-list td:first-child {
    font-variant-numeric: tabular-nums;
}

/* Stats table */
.stats-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.stats-table table {
    margin: 0;
}

.stats-table thead th {
    padding: 0.75rem 1rem 0.75rem 1rem;
    background: var(--bg-subtle);
}

.stats-table tbody td {
    padding: 0.65rem 1rem;
}

/* Browse table */
.browse-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.browse-table table {
    margin: 0;
}

.browse-table thead th {
    padding: 0.75rem 1rem 0.75rem 1rem;
    background: var(--bg-subtle);
}

.browse-table tbody td {
    padding: 0.55rem 1rem;
}

.browse-table tbody td:last-child {
    padding-right: 1rem;
}

/* Browse nav */
.browse-nav {
    margin-bottom: 1.25rem;
    font-size: 13px;
}

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

/* Section labels */
h3.section-label {
    color: var(--dim);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Gating */
.gate-notice {
    background: var(--bg-card);
    border: 1px solid var(--amber);
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 13px;
    color: var(--amber);
}

.locked-row td {
    opacity: 0.4;
}

.locked-row td:last-child {
    opacity: 1;
}

.locked-link {
    color: var(--amber) !important;
    font-size: 12px;
}

/* FAQ */
.faq {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
}

.faq-item h3 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.faq-item ul {
    list-style: none;
    margin: 0.5rem 0;
}

.faq-item ul li {
    padding: 0.2rem 0;
}

.faq-item ul li::before {
    content: '- ';
    color: var(--dim);
}

.faq-item pre {
    margin: 0.75rem 0;
    background: var(--bg-subtle);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-text {
        flex-direction: column;
        gap: 0.25rem;
    }

    .ascii-art {
        font-size: 7px;
    }

    table {
        font-size: 12px;
    }

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

    .plan-card {
        padding: 1.5rem 1.25rem;
    }

    pre {
        font-size: 12px;
        padding: 1rem;
    }
}
