/* ============================================
   OMNIVIBE CORE DESIGN SYSTEM
   Warm utilitarian. Quiet competence.
   ============================================ */

:root {
    /* Brand Colors */
    --ov-pine-dark:    #1A2F23;
    --ov-green-deep:   #2D4F3C;
    --ov-green-mid:    #3D6B52;
    --ov-green-sage:   #7A9E8E;
    --ov-green-forest: #4A7C5F;
    --ov-rust:         #BC4736;
    --ov-rust-light:   #D4614F;
    --ov-bone:         #F5F0E8;
    --ov-bone-dark:    #EAE3D2;
    --ov-charcoal:     #2C2C2C;
    --ov-gold:         #D4A373;
    --ov-gold-light:   #E8C99A;

    /* Text */
    --text-main:       #2C2C2C;
    --text-muted:      #666;
    --text-light:      #999;

    /* Borders & Shadows */
    --ov-border:       1px solid rgba(44, 44, 44, 0.12);
    --ov-border-strong: 1px solid rgba(44, 44, 44, 0.25);
    --ov-shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
    --ov-shadow-md:    0 8px 32px rgba(0,0,0,0.10);
    --ov-shadow-lg:    0 20px 60px rgba(0,0,0,0.14);
    --ov-glass:        blur(12px) saturate(1.3);

    /* Typography */
    --font-heading:    'Outfit', system-ui, sans-serif;
    --font-body:       'Inter', system-ui, sans-serif;
    --font-mono:       'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  8rem;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--ov-bone);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 1rem;
    /* Subtle paper texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ov-green-deep);
    line-height: 1.1;
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1rem; }

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

a { color: var(--ov-green-deep); }

/* ============ LAYOUT ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

/* ============ NAVIGATION ============ */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: var(--ov-glass);
    border-bottom: var(--ov-border);
    transition: box-shadow 0.3s ease;
}

.sticky-nav.scrolled {
    box-shadow: var(--ov-shadow-sm);
}

.nav-content {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-wordmark {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: var(--ov-green-deep);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--ov-green-deep); }

/* ============ CARDS ============ */
.rugged-card {
    background: rgba(255, 255, 255, 0.75);
    border: var(--ov-border);
    padding: 2rem;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.2s;
    backdrop-filter: blur(8px);
}

.rugged-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ov-shadow-md);
    border-color: rgba(188, 71, 54, 0.35);
}

/* ============ BUTTONS ============ */
.rugged-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: var(--ov-green-deep);
    color: white;
    border: 2px solid var(--ov-green-deep);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    border-radius: 2px;
    line-height: 1;
    white-space: nowrap;
}

.rugged-btn:hover {
    background-color: var(--ov-rust);
    border-color: var(--ov-rust);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(188, 71, 54, 0.25);
}

.rugged-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.rugged-btn.secondary {
    background-color: transparent;
    color: var(--ov-green-deep);
    border: 2px solid var(--ov-green-deep);
}

.rugged-btn.secondary:hover {
    background-color: var(--ov-green-deep);
    color: white;
}

.rugged-btn.large {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

.rugged-btn.full { width: 100%; }

/* ============ FORM ELEMENTS ============ */
.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ov-green-deep);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.rugged-input,
.rugged-textarea,
.rugged-select {
    width: 100%;
    background: white;
    border: var(--ov-border-strong);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.rugged-input:focus,
.rugged-textarea:focus,
.rugged-select:focus {
    outline: none;
    border-color: var(--ov-green-deep);
    box-shadow: 0 0 0 3px rgba(45, 79, 60, 0.1);
}

.rugged-textarea {
    resize: vertical;
    line-height: 1.6;
    min-height: 120px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

/* ============ UTILITY ============ */
.label-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ov-rust);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: var(--ov-border);
    gap: 1rem;
    flex-wrap: wrap;
}

.divider {
    border: none;
    border-top: var(--ov-border);
    margin: 3rem 0;
}

/* ============ ANIMATIONS ============ */
.animate-fade {
    animation: fadeUp 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

/* ============ TOOL LAYOUT ============ */
.app-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .app-layout { grid-template-columns: 1fr; }
}

/* ============ RESULTS PANEL ============ */
#results-container {
    min-height: 500px;
    background: rgba(255,255,255,0.4);
    border: var(--ov-border);
    padding: 2.5rem;
    position: relative;
    border-radius: 2px;
}

/* ============ LOADING ============ */
.loading-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(245, 240, 232, 0.92);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    gap: 1.25rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(45, 79, 60, 0.15);
    border-top-color: var(--ov-rust);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ov-green-deep);
}

/* ============ EMPTY STATE ============ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    gap: 1rem;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: var(--ov-bone-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ov-green-sage);
    margin-bottom: 0.5rem;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--ov-green-deep);
    margin: 0;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 280px;
    margin: 0;
    line-height: 1.5;
}

/* ============ RESULT CARDS ============ */
.result-card {
    background: white;
    border: var(--ov-border);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    box-shadow: var(--ov-shadow-sm);
    border-radius: 2px;
}

.result-card-label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--ov-rust);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-content {
    font-size: 0.95rem;
    white-space: pre-wrap;
    color: var(--text-main);
    line-height: 1.7;
}

.copy-trigger {
    color: var(--ov-green-sage);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.copy-trigger:hover { color: var(--ov-rust); }

/* ============ UPLOAD ZONE ============ */
.upload-zone {
    border: 2px dashed rgba(45, 79, 60, 0.2);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1.25rem;
    background: rgba(45, 79, 60, 0.02);
    border-radius: 2px;
}

.upload-zone:hover {
    border-color: var(--ov-rust);
    background: rgba(188, 71, 54, 0.03);
}

.upload-zone-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ov-green-deep);
    margin-top: 0.5rem;
}

.upload-zone-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ============ COPY BUTTON SMALL ============ */
.copy-btn-tiny {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ov-green-sage);
    padding: 0.15rem 0.3rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.copy-btn-tiny:hover { color: var(--ov-rust); }

/* ============ FIELD OUTPUT ============ */
.listing-field { margin-bottom: 1.5rem; }

.field-label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--ov-rust);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-content {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    padding: 0.875rem 1rem;
    background: var(--ov-bone);
    border: var(--ov-border);
    min-height: 2rem;
    border-radius: 2px;
}

/* ============ AUTH MODAL ============ */
.ov-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 47, 35, 0.45);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ov-modal-card {
    background: var(--ov-bone);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border: 2px solid var(--ov-green-deep);
    box-shadow: 16px 16px 0 var(--ov-green-deep);
    position: relative;
}

/* ============ TOAST ============ */
.ov-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--ov-green-deep);
    color: white;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2px;
    box-shadow: var(--ov-shadow-md);
    z-index: 9999;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ov-toast.hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* ============ STATUS DOT ============ */
.status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.status-line {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ov-green-forest);
    margin-bottom: 1.25rem;
}

/* ============ PRICING CARDS ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card {
    background: white;
    border: var(--ov-border-strong);
    padding: 2rem;
    position: relative;
    border-radius: 2px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pricing-card:hover {
    box-shadow: var(--ov-shadow-md);
}

.pricing-card.featured {
    border-color: var(--ov-rust);
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ov-green-deep);
    line-height: 1;
    margin: 0.75rem 0 0.25rem;
}

.pricing-card .price-period {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-card .price-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.75rem 0 1.5rem;
    line-height: 1.5;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-card ul li {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--ov-green-deep);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.best-value-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: var(--ov-rust);
    color: white;
    padding: 0.2rem 0.75rem;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 3rem 0 2.5rem;
    border-top: var(--ov-border);
    margin-top: 6rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--ov-green-deep); }

/* ============ LEGAL NOTE ============ */
.legal-note {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.6;
    padding: 1.25rem 1.5rem;
    background: var(--ov-bone-dark);
    border-left: 3px solid var(--ov-green-sage);
    margin-top: 3rem;
    border-radius: 0 2px 2px 0;
}

/* ============ MOBILE ============ */
@media (max-width: 600px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.6rem; }

    .rugged-btn { font-size: 0.875rem; padding: 0.875rem 1.25rem; }
    .rugged-btn.large { padding: 1rem 1.5rem; font-size: 0.95rem; }

    #results-container { padding: 1.5rem; }

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

    .section-header { flex-direction: column; align-items: flex-start; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
}
