/*
Theme Name: SBS
Theme URI: https://example.com/
Description: Branded marketing front for the SBS (Side By Side) visual-regression platform. Matches the dashboard app shell: dark slate navigation, orange actions, and light content canvas.
Version: 1.0.6
Author: 2software
*/

/* ============================ TOKENS ============================ */
:root {
    --sidebar:   #252b33;
    --sidebar-2: #1f262f;
    --paper:     #f5f7fa;
    --surface:   #ffffff;
    --surface-2: #f9fafb;
    --border:    #e5e7eb;
    --border-2:  #d1d5db;

    --text:      #252b33;
    --text-body: #374151;
    --text-dim:  #6b7280;
    --text-mut:  #9ca3af;
    --text-inv:  #f5f5f4;
    --text-inv-dim: #d1d5db;

    --orange:    #FF8C00;
    --orange-2:  #ff9d1f;
    --teal:      #28bdd0;
    --teal-soft: #dff7fb;
    --success:   #059669;
    --danger:    #dc2626;
    --diff:      #ff3d8b;

    --display: "Literata", Georgia, serif;
    --body:    "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --wrap: 1180px;
    --r: 12px;
    --shadow: 0 1px 2px rgba(37,43,51,.04);
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.16; letter-spacing: -.015em; color: var(--text); }
::selection { background: var(--orange); color: #1a1209; }

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--body); font-weight: 700; font-size: .96rem;
    padding: .7em 1.18em; border-radius: 8px;
    border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
    white-space: nowrap;
}
.btn-lg { padding: .9em 1.45em; font-size: 1.03rem; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text-inv-dim); border-color: rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.hero .btn-ghost, .cta .btn-ghost, .page-band .btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.hero .btn-ghost:hover, .cta .btn-ghost:hover, .page-band .btn-ghost:hover { border-color: var(--border-2); }

/* ============================ NAV ============================ */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--sidebar);
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 10px 26px -20px rgba(0,0,0,.75);
}
.nav-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 14px 28px;
    display: flex; align-items: center; gap: 28px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { display: block; width: 150px; max-width: 100%; height: auto; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; flex: 1; }
.nav-links a {
    color: var(--text-inv-dim); font-size: .92rem; font-weight: 600;
    padding: 8px 11px; border-radius: 8px; transition: all .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* --- Mobile nav toggle: pure CSS :checked, no JavaScript.
   The checkbox precedes both the label and .nav-links in the DOM so that
   `:checked + label` and `:checked ~ .nav-links` both resolve. Hidden entirely
   above 980px, where .nav-links is a normal inline row. --- */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: none; }
.nav-toggle-bar { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--text-inv-dim); transition: transform .2s ease, opacity .2s ease; }

/* ============================ LAYOUT ============================ */
.band { padding: clamp(56px, 7vw, 88px) 28px; background: var(--paper); }
.band > * { max-width: var(--wrap); margin-inline: auto; }
.band-dark, .band-teal { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px,4vw,44px); }
.kicker {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-mut); display: inline-block; margin-bottom: 12px; font-weight: 700;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.hl { color: var(--text); }
.lede { color: var(--text-dim); font-size: 1.05rem; max-width: 60ch; }

/* ============================ HERO ============================ */
.hero {
    position: relative; padding: clamp(48px,7vw,84px) 28px clamp(56px,7vw,88px);
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.hero::before { display: none; }
.hero-grid {
    position: relative; max-width: var(--wrap); margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,56px); align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-dim); background: transparent; border: 1px solid var(--border); border-radius: 999px;
    padding: 7px 14px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(5,150,105,.12); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.hero h1 { font-size: clamp(2.35rem, 5vw, 3.85rem); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--text); font-family: var(--display); }
.hero .lede { margin-top: 22px; font-size: 1.08rem; color: var(--text-body); }
.hero .lede strong { color: var(--sidebar); font-weight: 800; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats > div { background: transparent; border-top: 1px solid var(--border); padding: 14px 18px 0 0; min-width: 140px; }
.hero-stats strong { font-family: var(--body); font-size: 1.65rem; font-weight: 700; color: var(--sidebar); line-height: 1; }
.hero-stats span { display: block; margin-top: 5px; font-family: var(--mono); font-size: .7rem; color: var(--text-dim); line-height: 1.45; letter-spacing: .02em; }

/* --- Side-by-side app preview --- */
.hero-visual { perspective: 1400px; }
.diffboard { position: relative; transform: none; }
.frame {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow); overflow: hidden;
}
.frame-base { transform: none; }
.frame-curr { position: absolute; top: 36px; left: 44px; width: 90%; transform: none; box-shadow: 0 4px 12px rgba(37,43,51,.08); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--sidebar); border-bottom: 1px solid rgba(255,255,255,.1); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #4b5563; }
.frame-bar span:first-child { background: #ff5f57; } .frame-bar span:nth-child(2){ background:#febc2e;} .frame-bar span:nth-child(3){background:#28c840;}
.frame-bar em { margin-left: auto; font-family: var(--mono); font-style: normal; font-size: .68rem; color: var(--text-inv-dim); letter-spacing: .1em; text-transform: uppercase; }
.frame-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.sk { background: #e5e7eb; border-radius: 6px; }
.sk-hero { height: 78px; background: linear-gradient(120deg, #dbeafe, #bfdbfe); }
.sk-row { height: 13px; } .sk-row.short { width: 62%; }
.sk-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 4px; }
.sk-grid i { height: 40px; border-radius: 6px; background: #eef2f7; display: block; }
.frame-curr .sk-hero.diff { background: linear-gradient(120deg, #fed7aa, #fecaca); }
.frame-curr .diff { position: relative; }
.frame-curr .diff::after {
    content: ""; position: absolute; inset: -3px; border-radius: 7px;
    background: rgba(220,38,38,.08);
    outline: 1px solid rgba(220,38,38,.55);
}
.diff-badge {
    position: absolute; bottom: -22px; right: -10px; transform: translateZ(110px);
    background: #fff; color: var(--danger); border: 1px solid rgba(220,38,38,.28); font-family: var(--mono); font-weight: 700; font-size: .9rem;
    padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; line-height: 1.15;
}
.diff-badge span { font-weight: 400; font-size: .68rem; opacity: .9; }

/* ============================ CARDS (what) ============================ */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px;
    transition: border-color .2s ease;
}
.card:hover { border-color: var(--border-2); }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .98rem; }
.card-ic { width: 38px; height: 38px; border-radius: 8px; margin-bottom: 16px; background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.card-ic::after { content: ""; position: absolute; inset: 0; margin: auto; }
.ic-diff::after { width:18px;height:18px;border:2px solid var(--teal);border-radius:3px;box-shadow:7px 7px 0 -2px var(--orange);}
.ic-shift::after { width:16px;height:16px;border:2px solid var(--teal);border-radius:50%;}
.ic-console::after{ width:18px;height:13px;border:2px solid var(--teal);border-radius:3px;}
.ic-ai::after { width:14px;height:14px;background:var(--orange);border-radius:50% 50% 50% 0;transform:rotate(45deg);}
.ic-env::after { width:16px;height:16px;border:2px solid var(--teal);border-radius:3px;box-shadow:-5px 5px 0 -1px rgba(255,140,0,.6);}
.ic-vpn::after { width:16px;height:18px;border:2px solid var(--teal);border-radius:8px 8px 4px 4px;}

/* ============================ STEPS (how) ============================ */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps li { position: relative; padding: 24px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.step-n { font-family: var(--mono); font-size: .78rem; color: var(--text-mut); letter-spacing: .1em; font-weight: 700; }
.steps h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.steps p { color: var(--text-dim); font-size: .9rem; }
.steps li::before { display: none; }

/* ============================ FEATURES ============================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; transition: border-color .2s; }
.feat:hover { border-color: var(--border-2); }
.feat h4 { font-size: 1.12rem; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.feat h4::before { content: ""; width: 6px; height: 6px; background: var(--text-mut); border-radius: 50%; flex: none; }
.feat p { color: var(--text-dim); font-size: .95rem; }

/* ============================ TEAMS ============================ */
.teams-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,72px); align-items: center; }
.teams-grid h2 { font-size: clamp(1.9rem,3.6vw,2.8rem); margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-body); font-size: 1.02rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft); border: 1px solid var(--teal); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.role-card { display: grid; gap: 12px; }
.role { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border-2); border-radius: 10px; padding: 18px 20px; }
.role strong { display: block; font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--text); }
.role span { color: var(--text-dim); font-size: .9rem; }
.role-svc { border-left-color: var(--teal); }

/* ============================ CTA ============================ */
.cta { padding: clamp(56px,7vw,88px) 28px; text-align: center; position: relative; overflow: hidden; background: var(--paper); border-top: 1px solid var(--border); }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem,5vw,3.4rem); }
.cta p { color: var(--text-dim); font-size: 1.15rem; margin: 18px 0 32px; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--sidebar); border-top: 1px solid rgba(255,255,255,.1); padding: 56px 28px 30px; color: var(--text-inv-dim); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { width: 150px; max-width: 100%; height: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--text-mut); max-width: 36ch; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px 48px; align-content: start; }
.footer-links a { color: var(--text-inv-dim); font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 130px; }
.footer-col-title {
    font-family: var(--body); font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-mut); margin-bottom: 2px;
}
.footer-base { max-width: var(--wrap); margin: 0 auto; padding-top: 22px; display: flex; justify-content: space-between; color: var(--text-mut); font-family: var(--mono); font-size: .8rem; flex-wrap: wrap; gap: 10px; }
.footer-base a:hover { color: #fff; }

/* ============================ BLOG FALLBACK ============================ */
.post-list { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; }
.post-card h3 a:hover { color: var(--orange); }
.post-meta { font-family: var(--mono); font-size: .76rem; color: var(--text-mut); margin: 6px 0 12px; }
.post-excerpt { color: var(--text-dim); }
.muted { color: var(--text-mut); text-align: center; }

/* ============================ REVEAL ANIMATION ============================ */
.reveal { opacity: 0; transform: translateY(10px); animation: reveal .45s ease forwards; }
.reveal { animation-delay: .05s; }
.card.reveal:nth-child(2){animation-delay:.12s} .card.reveal:nth-child(3){animation-delay:.19s}
.card.reveal:nth-child(4){animation-delay:.26s} .card.reveal:nth-child(5){animation-delay:.33s} .card.reveal:nth-child(6){animation-delay:.4s}
.steps li.reveal:nth-child(2){animation-delay:.1s}.steps li.reveal:nth-child(3){animation-delay:.18s}
.steps li.reveal:nth-child(4){animation-delay:.26s}.steps li.reveal:nth-child(5){animation-delay:.34s}
.hero-visual.reveal { animation-delay: .25s; animation-duration: 1s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } .eyebrow .dot { animation: none; } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 18px; order: 2; }
    .diffboard { transform: none; max-width: 460px; }
    .frame-curr { position: relative; top: -28px; left: 24px; width: 90%; }
    .cards3, .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps li::before { display: none; }
    .teams-grid { grid-template-columns: 1fr; }

    /* --- Mobile navigation. Collapsed by default, revealed by the :checked
       state of #nav-toggle. No JavaScript is involved. --- */
    .nav-inner { flex-wrap: wrap; gap: 12px; }
    .nav-brand { order: 1; }
    .nav-cta { order: 2; margin-left: auto; }
    .nav-toggle-btn {
        order: 3;
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 42px; height: 42px; padding: 10px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
        cursor: pointer; flex: none;
    }
    .nav-toggle-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
    .nav-toggle:focus-visible + .nav-toggle-btn { outline: 2px solid var(--orange); outline-offset: 2px; }
    .nav-toggle:checked + .nav-toggle-btn .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-btn .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-toggle-btn .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-links {
        display: none;
        order: 4; flex: 0 0 100%; flex-direction: column; gap: 2px;
        margin-left: 0; padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: 11px 12px; font-size: .98rem; }
}
@media (max-width: 600px) {
    .nav-inner { padding-inline: 18px; gap: 12px; }
    .nav-logo { width: 132px; }
    .nav-cta .btn-ghost { display: none; }
    .nav-cta .btn-primary { padding: .64em .9em; }
    .cards3, .features, .steps { grid-template-columns: 1fr; }
    .hero-stats { gap: 12px; }
    .hero-stats > div { flex: 1 1 100%; }
}

/* ============================ SINGLE PAGE ============================ */
.page-band { min-height: 60vh; background: var(--paper); }
.page-content { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: clamp(24px,4vw,40px); }
.page-content p { color: var(--text-dim); }
.contact-intro { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 28px; text-align: center; }

/* ---- Ninja Forms — match the SBS dashboard surfaces ---- */
.nf-form-cont { color: var(--text); }
.nf-form-cont .nf-form-title h3 { font-family: var(--display); font-weight: 400; color: var(--text); }
.nf-field-label label, .nf-form-cont label { color: var(--text-dim) !important; font-family: var(--body) !important; font-weight: 600 !important; }
.nf-form-cont input:not([type=button]):not([type=submit]),
.nf-form-cont textarea,
.nf-form-cont select {
    background: #fff !important;
    border: 1px solid var(--border-2) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-family: var(--body) !important;
    box-shadow: none !important;
}
.nf-form-cont input:focus, .nf-form-cont textarea:focus, .nf-form-cont select:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255,140,0,.12) !important;
    outline: none !important;
}
.nf-form-cont input::placeholder, .nf-form-cont textarea::placeholder { color: var(--text-mut) !important; }
.nf-form-cont input[type=button], .nf-form-cont input[type=submit] {
    background: var(--orange) !important; color: #fff !important; border: none !important;
    border-radius: 8px !important; font-family: var(--body) !important; font-weight: 700 !important;
    padding: 12px 24px !important; cursor: pointer; transition: background .2s ease;
}
.nf-form-cont input[type=button]:hover, .nf-form-cont input[type=submit]:hover { background: var(--orange-2) !important; }
.nf-form-cont .nf-error-msg, .nf-form-cont .nf-error.nf-error-required-error { color: var(--danger) !important; }
.nf-form-cont .nf-error input, .nf-form-cont .nf-error textarea { border-color: var(--danger) !important; }
.nf-response-msg, .nf-form-cont .nf-response-msg p { color: var(--success) !important; }
