/* ============================================
   AUNBOUND — Shared stylesheet for all pages
   ============================================ */

/* === THEME VARIABLES === */
:root {
    --canvas: #100E0C;
    --surface: #1A1714;
    --surface-2: #221E1A;
    --border: #2A2622;
    --coral: #FF5A36;
    --amber: #FFB048;
    --success: #3FD18A;
    --text-main: #F6F1E9;
    --text-muted: #A39C92;

    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--canvas);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--coral);
    margin-bottom: 20px;
}

.text-coral { color: var(--coral); }
.text-muted { color: var(--text-muted); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-coral { background-color: var(--coral); color: var(--canvas); }
.btn-coral:hover { background-color: #ff6e4e; transform: translateY(-1px); }
.btn-ghost { background-color: transparent; color: var(--text-main); border-color: var(--border); }
.btn-ghost:hover { background-color: var(--surface); border-color: var(--text-muted); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* === NAV === */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.4s ease, border-bottom 0.4s ease;
    border-bottom: 1px solid transparent;
    background-color: rgba(16, 14, 12, 0.7);
    backdrop-filter: blur(12px);
}
nav.scrolled { background-color: var(--canvas); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.5px; }
.logo span { color: var(--coral); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-actions { display: flex; gap: 16px; align-items: center; }

/* Mobile menu */
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { background: var(--surface); }
.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.cta { color: var(--coral); font-weight: 500; }

/* === SPLIT PATHS (for you / for business) === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.split-card:hover { border-color: #3A3530; }
.split-card .kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--coral); margin-bottom: 18px; }
.split-card h3 { font-size: 2rem; margin-bottom: 14px; }
.split-card > p { color: var(--text-muted); margin-bottom: 28px; }
.split-card ul { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.split-card ul li { color: var(--text-muted); font-size: 15px; padding-left: 28px; position: relative; }
.split-card ul li::before { content: '→'; color: var(--coral); position: absolute; left: 0; }
.split-card .split-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* === TEMPLATE GRID === */
.tpl-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tpl-filter {
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.tpl-filter:hover { color: var(--text-main); border-color: var(--text-muted); }
.tpl-filter.active { background: var(--coral); border-color: var(--coral); color: var(--canvas); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tpl {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    background: var(--surface);
    transition: var(--transition);
}
.tpl:hover { border-color: #3A3530; background: var(--surface-2); transform: translateY(-2px); }
.tpl .ic { font-size: 24px; margin-bottom: 14px; }
.tpl h4 { font-size: 1.1rem; margin-bottom: 8px; }
.tpl p { color: var(--text-muted); font-size: 14px; }
.tpl .tpl-meta { margin-top: 16px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); opacity: 0.7; }
.tpl[hidden] { display: none; }

/* === SAFETY CHIPS === */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(63, 209, 138, 0.25);
    background: rgba(63, 209, 138, 0.07);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
}

/* === STATS ROW === */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.stat .big { font-family: var(--font-display); font-size: 2.4rem; color: var(--coral); line-height: 1; margin-bottom: 10px; }
.stat .lbl { color: var(--text-muted); font-size: 14px; }

/* === PAGE HERO / HEADER === */
.page-hero {
    padding: 180px 0 80px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(60% 80% at 80% 0%, rgba(255, 90, 54, 0.10), transparent 70%);
    pointer-events: none;
}
.page-hero h1 { font-size: 4rem; margin-bottom: 24px; max-width: 14ch; }
.page-hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 560px; }
.page-hero .container, .page-hero .container-narrow { position: relative; z-index: 1; }

/* === SECTIONS === */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 3rem; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.125rem; max-width: 560px; margin: 0 auto; }

/* === CARDS === */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.card-hover { transition: var(--transition); }
.card-hover:hover { border-color: #3A3530; background: var(--surface-2); }

/* === PROSE (legal / long text) === */
.prose h2 { font-size: 1.75rem; margin: 48px 0 16px; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.prose p { color: var(--text-muted); margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 20px; list-style: disc; }
.prose li { color: var(--text-muted); margin-bottom: 8px; }
.prose a { color: var(--coral); }

/* === FOOTER === */
footer { background: var(--canvas); padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 72px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 24px; color: var(--text-main); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-muted); transition: var(--transition); font-size: 15px; }
.footer-col ul a:hover { color: var(--coral); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 14px; gap: 16px; flex-wrap: wrap; }

/* === FINAL CTA === */
.final-cta { background: var(--coral); padding: 120px 0; text-align: center; color: var(--canvas); }
.final-cta h2 { font-size: 3.5rem; margin-bottom: 16px; color: var(--canvas); max-width: 22ch; margin-left: auto; margin-right: auto; }
.final-cta p { color: rgba(16,14,12,0.7); font-size: 1.2rem; margin-bottom: 40px; }
.final-cta .btn-dark { background: var(--canvas); color: var(--text-main); }
.final-cta .btn-dark:hover { background: #000; }
.final-cta .btn-ghost { border-color: rgba(16,14,12,.45); color: var(--canvas); }
.final-cta .btn-ghost:hover { background: var(--canvas); color: var(--text-main); border-color: var(--canvas); }
.final-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === LIVE CALL CARD (shared) === */
.call-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.call-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pulse-dot { width: 10px; height: 10px; background: var(--coral); border-radius: 50%; animation: pulse 1.6s infinite; flex: none; }
.call-head .who { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.call-head .tag { margin-left: auto; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.waveform { display: flex; gap: 4px; align-items: center; height: 28px; margin-bottom: 20px; }
.wave-bar { width: 4px; background: var(--coral); border-radius: 2px; animation: wave 1s infinite ease-in-out; }
.wave-bar:nth-child(2){animation-delay:.2s}.wave-bar:nth-child(3){animation-delay:.4s}.wave-bar:nth-child(4){animation-delay:.1s}
.wave-bar:nth-child(5){animation-delay:.5s}.wave-bar:nth-child(6){animation-delay:.3s}.wave-bar:nth-child(7){animation-delay:.25s}
.wave-bar:nth-child(8){animation-delay:.45s}.wave-bar:nth-child(9){animation-delay:.15s}.wave-bar:nth-child(10){animation-delay:.35s}
.transcript {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    font-size: 14px;
    line-height: 1.65;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.line { color: var(--text-muted); }
.line .spk { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.line.agent .spk { color: var(--coral); }
.line.them .spk { color: var(--amber); }
.line.agent { color: var(--text-main); }
.outcome {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(63, 209, 138, 0.08);
    color: var(--success);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(63, 209, 138, 0.2);
    font-weight: 500;
    font-size: 14px;
    margin-top: 18px;
    opacity: 0;
    transform: translateY(8px);
    transition: all .5s ease;
}
.outcome.show { opacity: 1; transform: translateY(0); }

@keyframes pulse {
    0% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(255,90,54,.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255,90,54,0); }
    100% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(255,90,54,0); }
}
@keyframes wave { 0%,100% { height: 7px; } 50% { height: 28px; } }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .page-hero h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.25rem; }
    .final-cta h2 { font-size: 2.5rem; }
    .split { grid-template-columns: 1fr; }
    .tpl-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 140px 0 60px; }
    .page-hero h1 { font-size: 2.4rem; }
    .nav-actions .btn-ghost { display: none; }
    .section { padding: 72px 0; }
    .tpl-grid { grid-template-columns: 1fr; }
    .split-card { padding: 32px 24px; }
    .split-card h3 { font-size: 1.6rem; }
}
