/* FounderZA — Trust Infrastructure for SA Business Transitions
   Aesthetic: Private equity / fintech. Deep slate, mint accent, editorial serif headings.
*/

:root {
    /* Core palette */
    --ink: #0B1220;            /* deep slate ink */
    --ink-2: #131C2E;          /* card surface dark */
    --slate-900: #1A2438;
    --slate-700: #2E3A52;
    --slate-500: #5A6786;
    --slate-300: #9AA5BD;
    --slate-100: #E6E9F0;
    --bone: #F5F4EF;           /* warm off-white */
    --paper: #FAFAF7;
    --line: #DCDFE6;
    --line-dark: #2A3550;

    /* Accents */
    --mint: #0F8A6A;           /* primary action — confident, financial */
    --mint-bright: #14B98C;
    --mint-soft: #E6F4EE;
    --gold: #C9A95B;           /* trust accent */
    --danger: #B23A48;
    --warning: #C97B1B;

    /* Type */
    --serif: 'Fraunces', 'Tiempos Headline', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Geometry */
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(11,18,32,.06);
    --shadow: 0 4px 16px rgba(11,18,32,.08);
    --shadow-lg: 0 24px 60px rgba(11,18,32,.16);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin-bottom: 1rem; color: var(--slate-700); }

a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-bright); }

.eyebrow {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    line-height: 1;
    min-height: 44px;
}
.btn-primary {
    background: var(--mint);
    color: white;
}
.btn-primary:hover { background: var(--ink); color: white; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: .5rem 1rem; font-size: .8125rem; min-height: 36px; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--ink);
    text-decoration: none;
}
.logo span { color: var(--mint); font-weight: 400; }
.nav-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-main a {
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
}
.nav-main a:hover { color: var(--mint); }
.header-cta { display: flex; align-items: center; gap: .75rem; }

/* Hero */
.hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(11,18,32,0.96) 0%, rgba(11,18,32,0.82) 45%, rgba(11,18,32,0.55) 100%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 0 5rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(15, 138, 106, 0.30), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(201, 169, 91, 0.12), transparent 50%);
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--mint-bright); margin-bottom: 1.5rem; }
.hero h1 {
    color: white;
    max-width: 800px;
    margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--mint-bright); }
.hero-lead {
    font-size: 1.125rem;
    color: var(--slate-300);
    max-width: 640px;
    margin-bottom: 2.5rem;
}

/* Live metrics ribbon */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
}
.metric { padding: .5rem 1.5rem; border-left: 1px solid rgba(255,255,255,.08); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric-value {
    font-family: var(--serif);
    font-size: 2rem;
    color: white;
    font-weight: 500;
    line-height: 1;
    margin-bottom: .25rem;
}
.metric-label {
    font-size: .75rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* Section */
section { padding: 5rem 0; }
.section-head {
    max-width: 720px;
    margin-bottom: 3rem;
}
.section-head .eyebrow { margin-bottom: 1rem; }

/* Choose your path */
.paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.path-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.path-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 138, 106, 0.04));
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.path-card:hover {
    border-color: var(--mint);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.path-card:hover::after { opacity: 1; }
.path-card .path-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--mint-soft);
    color: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.path-card h3 { margin-bottom: .75rem; }
.path-card p { color: var(--slate-500); margin-bottom: 1.5rem; font-size: .9375rem; }

/* Cards / listings */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.listing-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .25s ease;
}
.listing-card:hover { border-color: var(--slate-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.listing-card-media {
    aspect-ratio: 16 / 10;
    background: var(--slate-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60"><rect fill="%23E6E9F0" width="100" height="60"/><path d="M0 50 L30 30 L55 45 L75 25 L100 40 L100 60 L0 60Z" fill="%23DCDFE6"/></svg>') center/cover;
    position: relative;
}
.listing-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.listing-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .5rem;
    border-radius: 2px;
    background: var(--slate-100);
    color: var(--slate-700);
}
.tag.verified { background: var(--mint-soft); color: var(--mint); }
.tag.self-declared { background: #FDF6E3; color: var(--warning); }
.tag.under-review { background: #EEF1F8; color: var(--slate-500); }
.tag.locked { background: var(--ink); color: white; }
.listing-card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: .5rem;
}
.listing-card .listing-location { font-size: .8125rem; color: var(--slate-500); margin-bottom: 1rem; }
.listing-card .listing-financials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
}
.financial-item .label {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--slate-500);
    margin-bottom: .125rem;
}
.financial-item .value { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.financial-item.locked .value {
    background: linear-gradient(90deg, var(--slate-100) 0%, var(--slate-100) 100%);
    color: transparent;
    border-radius: 2px;
    user-select: none;
    filter: blur(4px);
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .875rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .9375rem;
    background: white;
    color: var(--ink);
    transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(15,138,106,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .8125rem; color: var(--slate-500); margin-top: .375rem; }
.form-error { color: var(--danger); font-size: .8125rem; margin-top: .375rem; }

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--paper);
}
.auth-form-side {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}
.auth-visual {
    background: var(--ink);
    color: white;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(15,138,106,0.2), transparent 60%);
}
.auth-visual blockquote {
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.4;
    color: white;
    position: relative;
    z-index: 1;
}
.auth-visual cite { font-family: var(--sans); font-size: .875rem; color: var(--slate-300); font-style: normal; margin-top: 1rem; display: block; }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.role-option {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s;
    text-align: left;
}
.role-option:hover { border-color: var(--mint); }
.role-option input { display: none; }
.role-option .role-title { font-weight: 600; font-size: .9375rem; margin-bottom: .25rem; color: var(--ink); }
.role-option .role-desc { font-size: .75rem; color: var(--slate-500); }
.role-option.selected,
.role-option:has(input:checked) {
    border-color: var(--mint);
    background: var(--mint-soft);
}

/* Dashboard */
.dash {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.dash-sidebar {
    background: var(--ink);
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.dash-sidebar .logo { display: block; padding: 0 2rem 2rem; color: white; }
.dash-sidebar .logo span { color: var(--mint-bright); }
.dash-nav { list-style: none; }
.dash-nav li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 2rem;
    color: var(--slate-300);
    font-size: .9375rem;
    border-left: 3px solid transparent;
}
.dash-nav li a:hover, .dash-nav li a.active { color: white; border-left-color: var(--mint-bright); background: rgba(255,255,255,.03); }

.dash-main { padding: 2.5rem 3rem; background: var(--paper); }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.dash-header h1 { font-size: 2rem; margin-bottom: .25rem; }
.dash-header .subtitle { color: var(--slate-500); }

/* Status panels */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.status-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
}
.status-panel .status-label {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--slate-500);
    margin-bottom: .75rem;
}
.status-panel .status-value {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: .5rem;
}
.status-panel .status-action {
    font-size: .8125rem;
    color: var(--mint);
    text-decoration: none;
}
.status-panel.locked { border-left: 3px solid var(--warning); }
.status-panel.active { border-left: 3px solid var(--mint); }
.status-panel.pending { border-left: 3px solid var(--slate-500); }

/* Locked / NDA gate */
.locked-block {
    background: var(--ink);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.locked-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 12px,
            rgba(255,255,255,.02) 12px,
            rgba(255,255,255,.02) 24px
        );
}
.locked-block-content { position: relative; }
.locked-block .lock-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.locked-block h4 { color: white; margin-bottom: .5rem; }
.locked-block p { color: var(--slate-300); font-size: .9375rem; margin-bottom: 1.25rem; }

/* Wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}
.wizard-progress::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 18px;
    height: 1px;
    background: var(--line);
    z-index: 0;
}
.wizard-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}
.wizard-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .5rem;
    font-weight: 600;
    color: var(--slate-500);
    font-size: .875rem;
}
.wizard-step.complete .step-num { background: var(--mint); border-color: var(--mint); color: white; }
.wizard-step.active .step-num { background: var(--ink); border-color: var(--ink); color: white; }
.wizard-step .step-label { font-size: .75rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; }
.wizard-step.active .step-label { color: var(--ink); font-weight: 600; }

.wizard-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.price-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}
.price-card.featured {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}
.price-card.featured h3 { color: white; }
.price-card.featured p, .price-card.featured li { color: var(--slate-300); }
.price-card h3 { margin-bottom: .25rem; font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.price-card .price-amount { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 1rem 0 .25rem; }
.price-card .price-period { font-size: .8125rem; color: var(--slate-500); margin-bottom: 1.5rem; }
.price-card.featured .price-period { color: var(--slate-300); }
.price-card ul { list-style: none; margin-bottom: 1.5rem; }
.price-card ul li { padding: .5rem 0; font-size: .9375rem; border-bottom: 1px dashed var(--line); }
.price-card.featured ul li { border-color: rgba(255,255,255,.1); }

/* Trust badges row */
.trust-strip {
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
}
.trust-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--slate-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* Footer */
.site-footer {
    background: var(--ink);
    color: var(--slate-300);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-grid h5 { color: white; font-family: var(--sans); font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: .5rem; }
.footer-grid ul li a { color: var(--slate-300); font-size: .875rem; }
.footer-grid ul li a:hover { color: var(--mint-bright); }
.site-footer .logo { color: white; display: inline-block; margin-bottom: 1rem; }
.site-footer .logo span { color: var(--mint-bright); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .8125rem;
    color: var(--slate-500);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .9375rem;
    border-left: 3px solid;
}
.alert-info { background: #EEF4F9; border-color: #4A7AAF; color: #234870; }
.alert-success { background: var(--mint-soft); border-color: var(--mint); color: #0D6B53; }
.alert-warning { background: #FDF6E3; border-color: var(--warning); color: #8B5A12; }
.alert-danger { background: #FBE9EC; border-color: var(--danger); color: #842833; }

/* Mobile */
@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .dash { grid-template-columns: 1fr; }
    .dash-sidebar { position: relative; height: auto; }
    .dash-main { padding: 1.5rem; }
    .nav-main { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 4rem 0 3rem; }
}
