/* ═══════════════════════════════════════════════════════════
   Fix202 · style.css
   Sistema de diseño completo — compartido por todas las vistas
   ═══════════════════════════════════════════════════════════ */

/* ── Imports ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
    --green:         #00a884;
    --green-dark:    #008069;
    --green-light:   #25d366;
    --green-dim:     rgba(0,168,132,0.10);
    --green-glow:    rgba(0,168,132,0.20);
    --bg:            #f7f3ec;
    --bg-white:      #ffffff;
    --bg-section:    #eae6df;
    --border:        rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.15);
    --text:          #111b21;
    --text-muted:    #54656f;
    --warn-bg:       #fef9ec;
    --warn:          #a07500;
    --warn-border:   rgba(160,117,0,0.18);
    --radius:        14px;
    --radius-sm:     9px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR  (base.html)
══════════════════════════════════════════════════════════ */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247,243,236,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex; align-items: center;
    transition: box-shadow 0.3s;
}
/* override Bootstrap padding */
.navbar .container { display: flex; align-items: center; }

.navbar-brand {
    font-family: "DM Serif Display";
    display: flex; align-items: center; gap: 3px;
    text-decoration: none;
    font-size: 1.2rem; font-weight: 700;
    color: #008069 !important;
    letter-spacing: 1px;
}
.navbar-brand .logo-icon {
    width: 32px; height: 32px;
    background: var(--green);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: white;
}

/* Nav links */
.navbar .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.88rem; font-weight: 500;
    transition: color 0.2s;
    padding: 0 !important;
}
.navbar .nav-link:hover { color: var(--text) !important; }

/* Pill CTA button */
.btn-nav,
.navbar .btn-nav {
    background: var(--green) !important;
    color: white !important;
    border: none !important;
    padding: 0.42rem 1.1rem;
    border-radius: 100px;
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.btn-nav:hover {
    background: var(--green-dark) !important;
    color: white !important;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Logout / secondary */
.btn-nav-ghost {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: 1.5px solid var(--border-strong) !important;
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem; font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-nav-ghost:hover {
    border-color: var(--green) !important;
    color: var(--green-dark) !important;
    text-decoration: none;
}

/* Navbar user email */
.navbar .user-email {
    font-size: 0.8rem; color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   ALERTS  (messages)
══════════════════════════════════════════════════════════ */
.alert {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    font-size: 0.88rem;
}
.alert-success { background: rgba(0,168,132,0.08) !important; color: var(--green-dark) !important; border-color: rgba(0,168,132,0.2) !important; }
.alert-danger   { background: rgba(220,53,69,0.07) !important; color: #b02a37 !important; }
.alert-warning  { background: var(--warn-bg) !important; color: var(--warn) !important; border-color: var(--warn-border) !important; }
.alert-info     { background: rgba(37,99,235,0.07) !important; color: #1d4ed8 !important; }

/* ══════════════════════════════════════════════════════════
   FOOTER  (base.html)
══════════════════════════════════════════════════════════ */
.site-footer {
    margin-top: 60px;
    background: #1f2c34;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.site-footer a:hover { color: var(--green-light); }

/* ══════════════════════════════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════════════════════════════ */

/* Page header */
.page-header {
    margin-top: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.page-header-label {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--green-dark); margin-bottom: 0.3rem;
}
.page-header h1 {
    font-size: 1.75rem; font-weight: 700;
    color: var(--text); letter-spacing: -0.4px;
    margin: 0 0 0.2rem; line-height: 1.15;
}
.page-header p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* Fix202 card (overrides Bootstrap .card) */
.f-card {
    background: var(--bg-white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    transition: box-shadow 0.25s, transform 0.25s;
}
.f-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.07) !important;
    transform: translateY(-2px);
}

/* Card icon */
.f-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.f-card-icon.green { background: var(--green-dim);         color: var(--green-dark); }
.f-card-icon.blue  { background: rgba(37,99,235,0.08);     color: #1d4ed8; }
.f-card-icon.amber { background: rgba(160,117,0,0.08);     color: var(--warn); }
.f-card-icon.red   { background: rgba(220,53,69,0.08);     color: #b02a37; }

/* Card typography */
.f-card-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.7px;
    color: var(--text-muted); margin-bottom: 0.2rem;
}
.f-card-value {
    font-size: 1.9rem; font-weight: 700;
    color: var(--text); line-height: 1;
    letter-spacing: -0.5px; margin-bottom: 0.45rem;
}
.f-card-value.sm {
    font-size: 1.1rem; font-weight: 600; letter-spacing: 0;
}

/* Pill action link */
.f-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.73rem; font-weight: 600;
    color: var(--green-dark); background: var(--green-dim);
    padding: 0.22rem 0.7rem; border-radius: 100px;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.2s;
}
.f-pill:hover { background: rgba(0,168,132,0.18); color: var(--green-dark); text-decoration: none; }

/* Panel */
.f-panel {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.f-panel-head {
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 11px;
}
.f-panel-head-icon {
    width: 34px; height: 34px;
    background: var(--green-dim); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-dark); font-size: 0.9rem; flex-shrink: 0;
}
.f-panel-head h2 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 0 0 1px; }
.f-panel-head p  { font-size: 0.76rem; color: var(--text-muted); margin: 0; }
.f-panel-body { padding: 1.8rem 1.6rem; }

/* Banner (no-credits) */
.f-banner {
    background: var(--green-dark);
    border-radius: var(--radius);
    padding: 1.4rem 1.8rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 1.5rem;
    position: relative; overflow: hidden;
}
.f-banner::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
}
.f-banner::after {
    content: ''; position: absolute; bottom: -60px; left: 30%;
    width: 130px; height: 130px;
    background: rgba(0,0,0,0.06); border-radius: 50%;
}
.f-banner-copy { position: relative; z-index: 1; }
.f-banner-copy h5 {
    font-size: 0.97rem; font-weight: 700; color: white;
    margin: 0 0 0.2rem; display: flex; align-items: center; gap: 7px;
}
.f-banner-copy p  { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin: 0; }
.f-banner-btn {
    position: relative; z-index: 1; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    background: white; color: var(--green-dark);
    font-size: 0.85rem; font-weight: 700;
    padding: 0.55rem 1.2rem; border-radius: 100px;
    text-decoration: none; white-space: nowrap;
    transition: box-shadow 0.2s, transform 0.2s;
}
.f-banner-btn:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transform: translateY(-1px); color: var(--green-dark); text-decoration: none;
}

/* ── Form elements ──────────────────────────────────────── */
.f-label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-muted); display: block; margin-bottom: 0.4rem;
}
.f-input {
    background: var(--bg) !important;
    border: 1.5px solid var(--border-strong) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.6rem 0.85rem !important;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem !important; color: var(--text) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100%;
}
.f-input:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(0,168,132,0.12) !important;
    outline: none !important;
}

/* Dropzone */
.f-dropzone {
    position: relative;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg); padding: 2rem 1rem;
    text-align: center; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.f-dropzone:hover,
.f-dropzone.over   { border-color: var(--green); background: var(--green-dim); }
.f-dropzone.filled { border-color: var(--green); border-style: solid; background: rgba(0,168,132,0.05); }
.f-dropzone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.f-dz-icon {
    width: 50px; height: 50px; background: var(--green-dim);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: var(--green-dark); margin: 0 auto 0.8rem;
}
.f-dz-icon.ok   { background: rgba(0,168,132,0.15); color: var(--green-dark); }
.f-dz-title     { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.f-dz-sub       { font-size: 0.8rem; color: var(--text-muted); }
.f-dz-link      { color: var(--green-dark); font-weight: 600; cursor: pointer; }
.f-dz-name      { font-weight: 700; font-size: 0.92rem; color: var(--green-dark); margin-bottom: 0.25rem; }

/* Submit button */
.f-btn-submit {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--green-dark); color: white; border: none;
    border-radius: 100px; padding: 0.85rem 1.5rem;
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    margin-top: 1.5rem;
}
.f-btn-submit:hover:not(:disabled) {
    background: var(--green);
    box-shadow: 0 10px 28px var(--green-glow); transform: translateY(-1px);
}
.f-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.f-credit-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 2px 9px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 700;
}

/* Spinner */
@keyframes f-spin { to { transform: rotate(360deg); } }
.f-spinner {
    display: none; width: 17px; height: 17px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: f-spin 0.65s linear infinite;
}

/* ══════════════════════════════════════════════════════════
   FILES TABLE
══════════════════════════════════════════════════════════ */
.f-table-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
}
.f-table {
    width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.f-table thead tr {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
}
.f-table thead th {
    padding: 0.85rem 1.1rem;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.7px;
    color: var(--text-muted); white-space: nowrap;
}
.f-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.f-table tbody tr:last-child { border-bottom: none; }
.f-table tbody tr:hover { background: rgba(0,0,0,0.018); }
.f-table td { padding: 0.9rem 1.1rem; color: var(--text); vertical-align: middle; }
.f-table .td-muted { color: var(--text-muted); font-size: 0.82rem; }
.f-table .td-empty { text-align: center; color: var(--text-muted); padding: 2.5rem 1rem; }

/* File badges */
.f-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 600; padding: 3px 9px;
    border-radius: 6px; white-space: nowrap;
}
.f-badge.original {
    background: var(--warn-bg); color: var(--warn);
    border: 1px solid var(--warn-border);
}
.f-badge.processed {
    background: var(--green-dim); color: var(--green-dark);
    border: 1px solid rgba(0,168,132,0.2);
}

/* Status badges */
.f-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 700; padding: 3px 9px;
    border-radius: 100px;
}
.f-status.ok      { background: var(--green-dim);          color: var(--green-dark); }
.f-status.pending { background: var(--warn-bg);            color: var(--warn); }
.f-status.error   { background: rgba(220,53,69,0.08);      color: #b02a37; }

/* Table action buttons */
.f-btn-action {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.8rem;
    border-radius: 100px; border: 1.5px solid; cursor: pointer;
    text-decoration: none; transition: all 0.2s; background: transparent;
}
.f-btn-action.txt {
    border-color: var(--border-strong); color: var(--text-muted);
}
.f-btn-action.txt:hover {
    border-color: var(--text); color: var(--text); text-decoration: none;
}
.f-btn-action.excel {
    border-color: rgba(0,168,132,0.4); color: var(--green-dark);
}
.f-btn-action.excel:hover {
    background: var(--green-dim); border-color: var(--green); text-decoration: none;
}
.f-btn-action:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   PRECIOS
══════════════════════════════════════════════════════════ */
.price-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 2rem;
    transition: all 0.3s; height: 100%;
    display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.price-card.featured {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(0,168,132,0.12), 0 20px 50px rgba(0,168,132,0.1);
}
.price-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--green); color: white;
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
    letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 0.8rem;
}
.price-badge.muted {
    background: var(--green-dim); color: var(--green-dark);
}
.price-amount {
    font-size: 2.4rem; font-weight: 700;
    color: var(--green-dark); letter-spacing: -0.5px; line-height: 1;
    margin: 0.8rem 0 0.2rem;
}
.price-period { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.price-features { list-style: none; padding: 0; margin-bottom: 1.5rem; flex: 1; }
.price-features li {
    display: flex; align-items: center; gap: 8px;
    padding: 0.55rem 0; font-size: 0.87rem; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features .fi { color: var(--green); font-size: 0.8rem; }
.btn-price {
    display: block; text-align: center; padding: 0.8rem;
    border-radius: 100px; font-size: 0.92rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s; border: 1.5px solid var(--green);
    color: var(--green-dark); background: transparent; cursor: pointer; width: 100%;
}
.btn-price:hover {
    background: var(--green-dim); color: var(--green-dark); text-decoration: none;
}
.btn-price.solid { background: var(--green); color: white; border-color: var(--green); }
.btn-price.solid:hover {
    background: var(--green-dark); border-color: var(--green-dark);
    box-shadow: 0 8px 25px var(--green-glow); color: white;
}

/* ══════════════════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════════════════ */
.login-wrap {
    min-height: calc(100vh - 64px - 60px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
}
.login-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 2.5rem 2rem;
    width: 100%; max-width: 380px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    text-align: center;
}
.login-logo {
    width: 60px; height: 60px;
    background: var(--green-dim);
    border: 1px solid rgba(0,168,132,0.25);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--green-dark);
    margin: 0 auto 1.2rem;
}
.login-title   { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.login-sub     { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 0.75rem 1rem;
    background: var(--bg-white); color: var(--text);
    border: 1.5px solid var(--border-strong);
    border-radius: 100px; font-size: 0.92rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.btn-google:hover {
    border-color: var(--green); color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08); text-decoration: none;
}
.login-terms {
    font-size: 0.78rem; color: var(--text-muted); margin-top: 1.5rem;
}
.login-terms a { color: var(--green-dark); text-decoration: none; }
.login-terms a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   HOME (landing) — secciones
══════════════════════════════════════════════════════════ */

/* Hero */
.hero {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 5rem 2rem; background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
    content: ""; position: absolute; top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,168,132,0.07) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-bg::after {
    content: ""; position: absolute; bottom: -200px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,168,132,0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.055) 1px, transparent 1px);
    background-size: 28px 28px; opacity: 0.7;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green-dim); border: 1px solid rgba(0,168,132,0.25);
    color: var(--green-dark); font-size: 0.78rem; font-weight: 600;
    padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1.5rem;
    letter-spacing: 0.4px; text-transform: uppercase;
}
.hero-badge::before {
    content: ""; width: 6px; height: 6px;
    background: var(--green); border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.8); } }

.hero h1 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.6rem,5vw,4rem); font-weight: 400;
    line-height: 1.1; color: var(--text); letter-spacing: -0.5px; margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--green-dark); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 480px; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-proof { display: flex; align-items: center; gap: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.hero-proof span { display: flex; align-items: center; gap: 5px; }
.hero-proof i { color: var(--green); font-size: 0.75rem; }

/* Shared buttons (landing) */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green); color: white; text-decoration: none;
    padding: 0.85rem 1.8rem; border-radius: 100px;
    font-size: 1rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.25s;
}
.btn-primary:hover {
    background: var(--green-dark); transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--green-glow); color: white; text-decoration: none;
}
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--text); text-decoration: none;
    padding: 0.85rem 1.8rem; border-radius: 100px;
    font-size: 1rem; font-weight: 500; border: 1.5px solid var(--border-strong);
    cursor: pointer; transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-dim); text-decoration: none; }

/* Mockup card */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.mockup-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 20px;
    padding: 2rem; width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06); position: relative;
}
.mockup-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: 21px;
    background: linear-gradient(135deg, rgba(0,168,132,0.12), transparent 60%); z-index: -1;
}
.mockup-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.mockup-header .file-icon { width: 38px; height: 38px; background: var(--green-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--green); }
.mockup-header .file-meta { flex: 1; }
.mockup-header .file-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.mockup-header .file-size { font-size: 0.78rem; color: var(--text-muted); }
.mockup-progress { margin-bottom: 1.5rem; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.progress-bar-track { height: 6px; background: rgba(0,0,0,0.07); border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 10px; animation: progressAnim 2s ease-in-out infinite; }
@keyframes progressAnim { 0%{width:0%;opacity:1;} 80%{width:100%;opacity:1;} 100%{width:100%;opacity:0.5;} }
.mockup-results { display: flex; flex-direction: column; gap: 8px; }
.result-row { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.025); border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.82rem; }
.result-row.ok   { border-left: 3px solid var(--green); }
.result-row.warn { border-left: 3px solid #c9940a; }
.result-row .tag { font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: 0.3px; }
.result-row.ok   .tag { background: rgba(0,168,132,0.1); color: var(--green-dark); }
.result-row.warn .tag { background: rgba(201,148,10,0.12); color: #8a6200; }
.result-row .desc { flex: 1; color: var(--text-muted); }
.mockup-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mockup-footer .summary { font-size: 0.8rem; color: var(--text-muted); }
.mockup-footer .download-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: white; padding: 0.45rem 1rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.float-badge { position: absolute; bottom: -16px; right: -16px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px; padding: 0.8rem 1.1rem; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
.float-badge .number { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); }
.float-badge .label  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }

/* Stats strip */
.stats-strip { background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; display: grid; grid-template-columns: repeat(3,1fr); }
.stat-item { text-align: center; padding: 1rem 2rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: "DM Serif Display", serif; font-size: 2.4rem; font-weight: 400; color: var(--green-dark); letter-spacing: -0.5px; line-height: 1; margin-bottom: 0.4rem; }
.stat-label  { font-size: 0.88rem; color: var(--text-muted); }

/* Sections */
.section { padding: 6rem 2rem; }
.section-inner  { max-width: 1200px; margin: 0 auto; }
.section-label  { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-dark); margin-bottom: 1rem; }
.section-title  { font-family: "DM Serif Display", serif; font-size: clamp(1.9rem,3vw,2.7rem); font-weight: 400; color: var(--text); letter-spacing: -0.3px; margin-bottom: 1rem; line-height: 1.2; }
.section-sub    { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

/* Problems */
.problems-section { background: var(--bg-section); }
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.problem-card { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 16px; padding: 1.8rem; transition: transform 0.3s, box-shadow 0.3s; }
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.07); }
.problem-card .p-icon { width: 48px; height: 48px; background: rgba(160,117,0,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--warn); margin-bottom: 1.2rem; }
.problem-card h4 { font-size: 1rem; font-weight: 600; color: var(--warn); margin-bottom: 0.6rem; }
.problem-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Features */
.features-section { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.feat-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.3s; cursor: default; }
.feat-card:hover { border-color: rgba(0,168,132,0.3); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }
.feat-icon { width: 52px; height: 52px; background: var(--green-dim); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--green); margin-bottom: 1.3rem; }
.feat-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.7rem; }
.feat-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* How it works */
.how-section { background: var(--bg-section); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3.5rem; position: relative; }
.steps-grid::before { content: ""; position: absolute; top: 40px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem); height: 2px; background: linear-gradient(90deg, var(--green), var(--green-light), var(--green)); opacity: 0.25; }
.step-card { text-align: center; padding: 2rem 1rem; }
.step-num { width: 72px; height: 72px; background: var(--bg-white); border: 2px solid rgba(0,168,132,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "DM Serif Display", serif; font-size: 1.8rem; font-weight: 400; color: var(--green-dark); margin: 0 auto 1.5rem; position: relative; z-index: 1; box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.step-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.7rem; }
.step-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; max-width: 260px; margin: 0 auto; }

/* FAQ */
.faq-section { background: var(--bg-section); }
.faq-list { max-width: 720px; margin: 3.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-family: "DM Sans", sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; transition: color 0.2s; }
.faq-question:hover { color: var(--green-dark); }
.faq-question .chevron { font-size: 0.75rem; color: var(--text-muted); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-question { color: var(--green-dark); }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); color: var(--green); }
.faq-answer { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.4rem; }

/* Trust */
.trust-section { background: var(--bg-white); padding: 4rem 2rem; }
.trust-inner { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.trust-item i { width: 32px; height: 32px; background: var(--green-dim); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 0.85rem; flex-shrink: 0; }

/* CTA final */
.cta-final { padding: 7rem 2rem; text-align: center; position: relative; overflow: hidden; background: var(--green-dark); }
.cta-final::before { content: ""; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.cta-final::after  { content: ""; position: absolute; bottom: -40%; left: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.cta-final h2 { font-family: "DM Serif Display", serif; font-size: clamp(2rem,4vw,3rem); font-weight: 400; color: white; letter-spacing: -0.3px; max-width: 600px; margin: 0 auto 1rem; position: relative; }
.cta-final p  { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 2.5rem; position: relative; }
.cta-final .cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.cta-final .btn-primary { background: white; color: var(--green-dark); }
.cta-final .btn-primary:hover { background: rgba(255,255,255,0.92); color: var(--green-dark); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.cta-final .btn-ghost { border-color: rgba(255,255,255,0.4); color: white; }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: white; }

/* Landing footer */
.landing-footer { background: #1f2c34; border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 2rem 1.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.5); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--green-light); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════
   PROCESSING OVERLAY (dashboard)
══════════════════════════════════════════════════════════ */
#processingOverlay {
    display: none; position: fixed; inset: 0;
    z-index: 9999; align-items: center; justify-content: center; padding: 1rem;
}
#processingOverlay.active { display: flex; }
.po-backdrop {
    position: absolute; inset: 0;
    background: rgba(247,243,236,0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.po-backdrop::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.055) 1px, transparent 1px);
    background-size: 26px 26px; opacity: 0.7;
}
.po-backdrop::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,168,132,0.08) 0%, transparent 65%);
    border-radius: 50%;
}
.po-panel {
    position: relative; z-index: 1; width: 100%; max-width: 460px;
    background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
    animation: panelIn 0.4s ease;
}
@keyframes panelIn { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
.po-logo-icon {
    width: 58px; height: 58px; background: rgba(0,168,132,0.10);
    border: 1px solid rgba(0,168,132,0.25); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.55rem; color: #008069;
    animation: logoPulse 2.2s ease-in-out infinite;
}
@keyframes logoPulse {
    0%,100% { box-shadow: 0 0 0 0   rgba(0,168,132,0.3); }
    50%      { box-shadow: 0 0 0 10px rgba(0,168,132,0); }
}
.po-title   { font-size: 1.3rem; font-weight: 700; color: #111b21; margin: 0; letter-spacing: -0.3px; }
.po-subtitle { font-size: 0.84rem; color: #54656f; margin: -0.8rem 0 0; min-height: 1.2em; transition: opacity 0.3s; text-align: center; }
.po-ring-wrap { position: relative; width: 140px; height: 140px; }
.po-ring-svg  { width: 140px; height: 140px; transform: rotate(-90deg); }
.po-ring-track { fill: none; stroke: rgba(0,0,0,0.07); stroke-width: 8; }
.po-ring-fill  { fill: none; stroke: url(#rGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 0.35s ease; }
.po-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.po-pct  { font-size: 2rem; font-weight: 700; color: #008069; line-height: 1; }
.po-vcnt { font-size: 0.7rem; color: #54656f; margin-top: 2px; font-weight: 600; letter-spacing: 0.3px; }
.po-log-outer { width: 100%; position: relative; height: 130px; overflow: hidden; background: #f7f3ec; border: 1px solid rgba(0,0,0,0.07); border-radius: 10px; }
.po-log       { padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 5px; }
.po-log-fade  { position: absolute; bottom: 0; left: 0; right: 0; height: 44px; background: linear-gradient(transparent,#f7f3ec); pointer-events: none; }
.log-line { display: flex; align-items: center; gap: 7px; font-size: 0.76rem; color: #54656f; animation: logIn 0.22s ease; flex-shrink: 0; }
@keyframes logIn { from{opacity:0;transform:translateX(-6px);} to{opacity:1;transform:translateX(0);} }
.log-tag  { font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; letter-spacing: 0.3px; flex-shrink: 0; }
.log-line.ok   .log-tag { color: #008069; background: rgba(0,168,132,0.12); }
.log-line.fix  .log-tag { color: #1d4ed8; background: rgba(37,99,235,0.10); }
.log-line.warn .log-tag { color: #a07500; background: rgba(160,117,0,0.12); }
.log-var  { color: #111b21; font-weight: 600; }
.log-desc { flex: 1; }
.po-bar-track { width: 100%; height: 5px; background: rgba(0,0,0,0.07); border-radius: 100px; overflow: hidden; }
.po-bar-fill  { height: 100%; width: 0%; background: linear-gradient(90deg,#008069,#25d366); border-radius: 100px; transition: width 0.35s ease; }
.po-bar-label { font-size: 0.76rem; color: #54656f; align-self: flex-start; margin-top: -0.6rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-sub, .hero-cta, .hero-proof { justify-content: center; margin-left: auto; margin-right: auto; }
    .stats-inner { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .f-banner { flex-direction: column; align-items: flex-start; }
    .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .section { padding: 4rem 1.25rem; }
    .hero    { padding: 3rem 1.25rem; }
}
