/* ============================================================
   TheGeniusFunnel — Brand CSS
   Source of truth: /identidad/skills/tgf-brand-design/DESIGN.md
   One accent color (emerald). Dark-first. Solid chrome.
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

:root{
    --ink:#000000;
    --ink-surface:#09090B;
    --ink-raised:#18181B;
    --emerald:#2CDFA4;
    --emerald-hover:#1FC48D;
    --emerald-pressed:#16A376;
    --emerald-soft:rgba(44,223,164,.12);
    --status-risky:#F2B84B;
    --status-invalid:#E5484D;
    --border-subtle:#27272A;
    --border-strong:rgba(44,223,164,.3);
    --text-primary:#FAFAFA;
    --text-secondary:#A1A1AA;
    --text-muted:#71717A;
    --font-sans:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
    --font-heading:'Inter',ui-sans-serif,system-ui,sans-serif;
    --font-mono:'JetBrains Mono','Fira Code',ui-monospace,SFMono-Regular,Menlo,monospace;
}

body{
    font-family:var(--font-sans);
    background:var(--ink);
    color:var(--text-primary);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    overflow-x:hidden;
}

h1,h2,h3,h4{
    font-family:var(--font-heading);
    font-weight:500;
    letter-spacing:-.015em;
    line-height:1.15;
    color:var(--text-primary);
}
h4{font-weight:600;letter-spacing:0}
p{color:var(--text-secondary)}
a{color:var(--emerald);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--emerald-hover)}

/* ============ Layout ============ */
.container{max-width:1100px;margin:0 auto;padding:0 1.5rem}
.container-wide{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.container-md{max-width:820px;margin:0 auto;padding:0 1.5rem}
.container-sm{max-width:640px;margin:0 auto;padding:0 1.5rem}
section{padding:5rem 0;position:relative}
@media(max-width:768px){section{padding:3.5rem 0}}

/* ============ Utilities ============ */
.text-center{text-align:center}
.accent{color:var(--emerald)}
.muted{color:var(--text-muted)}
.secondary{color:var(--text-secondary)}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.nowrap{white-space:nowrap}
.hidden{display:none!important}

/* Legacy class — was a cyan/purple gradient in the old palette.
   Mapped to solid emerald to keep existing markup working. */
.gradient-text{color:var(--emerald)}

/* ============ Badge / tag ============ */
.badge,.section-tag,.article-tag{
    display:inline-flex;align-items:center;gap:.5rem;
    padding:.35rem .9rem;border-radius:999px;
    font-family:var(--font-mono);font-size:.72rem;font-weight:500;
    letter-spacing:.1em;text-transform:uppercase;
    color:var(--emerald);
    background:var(--emerald-soft);
    border:1px solid rgba(44,223,164,.25);
}
.badge-dot{width:6px;height:6px;border-radius:50%;background:var(--emerald)}
.badge-risky{color:var(--status-risky);background:rgba(242,184,75,.08);border-color:rgba(242,184,75,.25)}

/* ============ Buttons ============ */
.btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
    font-family:var(--font-sans);font-weight:600;font-size:.95rem;
    padding:.75rem 1.5rem;border-radius:8px;border:none;
    cursor:pointer;text-decoration:none;position:relative;
    transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease,border-color .2s ease,color .2s ease;
    -webkit-tap-highlight-color:transparent;
}
.btn-primary{background:var(--emerald);color:var(--ink);box-shadow:none}
.btn-primary:hover{background:var(--emerald-hover);transform:translateY(-1px);box-shadow:0 8px 24px rgba(44,223,164,.22);color:var(--ink)}
.btn-primary:active{background:var(--emerald-pressed);transform:translateY(0)}
.btn-primary:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(44,223,164,.35)}
.btn-primary:disabled{opacity:.4;cursor:not-allowed;transform:none;box-shadow:none}

.btn-secondary{background:transparent;color:var(--text-primary);border:1px solid var(--border-subtle)}
.btn-secondary:hover{border-color:rgba(44,223,164,.4);background:rgba(44,223,164,.06);color:var(--text-primary)}

.btn-ghost{background:transparent;color:var(--emerald);border:1px solid rgba(44,223,164,.3);font-size:.85rem;padding:.55rem 1.1rem}
.btn-ghost:hover{background:rgba(44,223,164,.08);color:var(--emerald);border-color:rgba(44,223,164,.5)}

.btn-lg{font-size:1rem;padding:.9rem 1.9rem}

/* ============ Cards ============ */
.card{
    background:var(--ink-surface);
    border:1px solid var(--border-subtle);
    border-radius:12px;
    padding:1.5rem 1.75rem;
    transition:border-color .2s ease,transform .2s ease;
}
.card-interactive:hover{border-color:var(--border-strong);transform:translateY(-2px)}
.card-emerald{background:rgba(44,223,164,.04);border-color:rgba(44,223,164,.2)}

/* ============ Nav ============ */
.nav{
    position:fixed;top:0;left:0;right:0;z-index:100;
    background:rgba(0,0,0,.85);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border-subtle);
    padding:.75rem 0;
}
.nav-inner{
    max-width:1200px;margin:0 auto;padding:0 1.5rem;
    display:flex;align-items:center;justify-content:space-between;
}
.nav-logo{
    display:flex;align-items:center;gap:.6rem;cursor:pointer;
    font-size:.95rem;font-weight:600;color:var(--text-primary);
    letter-spacing:-.01em;text-decoration:none;
}
.nav-logo:hover{color:var(--text-primary)}
.nav-logo svg{width:28px;height:28px}
.nav-logo img{height:22px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:1.5rem}
.nav-links a{
    font-size:.82rem;color:var(--text-muted);text-decoration:none;
    letter-spacing:.01em;transition:color .2s ease;
}
.nav-links a:hover,.nav-links a.active{color:var(--emerald)}
@media(max-width:820px){
    .nav-links{gap:1rem}
    .nav-links a.nav-link-secondary{display:none}
}
@media(max-width:520px){
    .nav-links a:not(.btn){display:none}
    .nav-links .btn{display:inline-flex}
}

/* ============ Breadcrumb ============ */
.breadcrumb{
    padding:6.5rem 0 1rem;
    font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted);
}
.breadcrumb a{color:var(--text-muted);text-decoration:none}
.breadcrumb a:hover{color:var(--emerald)}
.breadcrumb span{margin:0 .4rem}

/* ============ Hero (marketing pages) ============ */
.hero-page{padding:1.5rem 0 3.5rem}
.hero-page h1{font-size:clamp(2rem,4.5vw,3.2rem);margin-bottom:1.2rem;letter-spacing:-1px}
.hero-page .hero-sub{font-size:1.05rem;color:var(--text-secondary);max-width:680px;margin-bottom:2.5rem;line-height:1.7}

/* ============ Article body (blog posts) ============ */
.article-hero{padding:1.5rem 0 3rem;border-bottom:1px solid var(--border-subtle);margin-bottom:3rem}
.article-meta{display:flex;gap:1.5rem;margin-top:1.2rem;font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted)}
.article-body{padding-bottom:4rem;font-size:1rem;line-height:1.75}
.article-body h2{font-size:1.6rem;margin:2.5rem 0 1rem}
.article-body h3{font-size:1.25rem;margin:2rem 0 .7rem}
.article-body p{margin-bottom:1rem;color:var(--text-secondary)}
.article-body ul,.article-body ol{padding-left:1.25rem;margin-bottom:1rem;color:var(--text-secondary)}
.article-body li{margin-bottom:.4rem}
.article-body strong{color:var(--text-primary);font-weight:600}

/* Highlight boxes in article body — emerald tint, left border */
.highlight-box{
    background:var(--emerald-soft);
    border:1px solid rgba(44,223,164,.25);
    border-left:3px solid var(--emerald);
    border-radius:10px;
    padding:1.2rem 1.5rem;margin:2rem 0;
}
.highlight-box p{color:var(--text-primary);margin:0;font-weight:500}

/* ============ FAQ ============ */
.faq-list{display:flex;flex-direction:column;gap:1rem}
.faq-item{
    background:var(--ink-surface);
    border:1px solid var(--border-subtle);
    border-radius:12px;
    padding:1.5rem 1.75rem;
    transition:border-color .2s ease;
}
.faq-item:hover{border-color:rgba(44,223,164,.25)}
.faq-q{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem;line-height:1.35}
.faq-a{font-size:.9rem;color:var(--text-secondary);line-height:1.7;margin:0}

/* ============ Tables ============ */
.table-wrap{
    overflow-x:auto;margin:2rem 0;
    border:1px solid var(--border-subtle);border-radius:12px;
}
.table-wrap table{width:100%;border-collapse:collapse;font-size:.9rem}
.table-wrap thead th{
    background:var(--ink-surface);
    padding:.9rem 1.1rem;text-align:left;
    font-family:var(--font-mono);font-weight:500;font-size:.7rem;
    letter-spacing:.04em;text-transform:uppercase;
    color:var(--text-secondary);
    border-bottom:1px solid var(--border-subtle);
}
.table-wrap thead th.tgf-col{background:var(--emerald-soft);color:var(--emerald);border-left:1px solid rgba(44,223,164,.25)}
.table-wrap tbody td{
    padding:.9rem 1.1rem;
    border-bottom:1px solid var(--border-subtle);
    color:var(--text-secondary);
    font-variant-numeric:tabular-nums;
}
.table-wrap tbody tr:last-child td{border-bottom:none}
.table-wrap tbody tr:hover{background:rgba(255,255,255,.02)}
.table-wrap tbody td:first-child{color:var(--text-primary);font-weight:500}
.table-wrap tbody td.tgf-col{background:rgba(44,223,164,.04);border-left:1px solid rgba(44,223,164,.15)}
.yes{color:var(--emerald);font-size:1.05rem}
.no{color:var(--status-invalid);font-size:1.05rem}
.partial{color:var(--status-risky);font-size:.9rem}
.tgf-yes{color:var(--emerald);font-size:1.15rem;font-weight:700}
.tgf-note{color:var(--text-muted);font-family:var(--font-mono);font-size:.7rem}

/* ============ CTA box (in-page conversion) ============ */
.cta-box{
    background:var(--emerald-soft);
    border:1px solid rgba(44,223,164,.25);
    border-radius:14px;
    padding:2rem 2.5rem;margin:3rem 0;text-align:center;
}
.cta-box h3{font-size:1.3rem;margin-bottom:.6rem;color:var(--text-primary)}
.cta-box p{font-size:.95rem;margin-bottom:1.5rem;color:var(--text-secondary)}
.cta-badges{
    display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap;
    margin-top:1.25rem;font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted);
}
.cta-badges span{display:flex;align-items:center;gap:.4rem}
.cta-badges span::before{content:'\2713';color:var(--emerald)}

/* ============ CTA final section (full-width) ============ */
.cta-section{text-align:center;padding:4rem 0 6rem}
.cta-section h2{font-size:clamp(1.8rem,4vw,2.8rem);margin-bottom:1rem;letter-spacing:-.5px}
.cta-section p{font-size:1.05rem;color:var(--text-secondary);margin-bottom:2rem;max-width:520px;margin-left:auto;margin-right:auto}

/* ============ Footer ============ */
.footer{
    border-top:1px solid var(--border-subtle);
    padding:2.5rem 1.5rem;text-align:center;
    color:var(--text-muted);font-family:var(--font-mono);font-size:.75rem;letter-spacing:.03em;
}
.footer-inner{
    max-width:1100px;margin:0 auto;
    display:flex;flex-direction:column;gap:1rem;
}
.footer-links{
    display:flex;gap:1.5rem;
    justify-content:center;flex-wrap:wrap;
}
.footer-links a{
    color:var(--text-secondary);text-decoration:none;font-size:.8rem;
    font-family:var(--font-sans);letter-spacing:0;
    transition:color .2s ease;
}
.footer-links a:hover{color:var(--emerald)}
.footer-legal{
    padding-top:1rem;border-top:1px solid var(--border-subtle);
    font-size:.7rem;color:var(--text-muted);
}
