/* ============================================================
   CEO — Shared Design System
   Single stylesheet loaded by every page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    --orange:        #FF6B35;
    --orange-dark:   #CC5228;
    --orange-light:  #FFF5F2;
    --orange-mid:    #FFE0D4;
    --orange-glow:   rgba(255, 107, 53, 0.12);

    --text-dark:     #2D2D2D;
    --text-body:     #444444;
    --text-gray:     #666666;
    --text-muted:    #999999;

    --bg:            #FAFAFA;
    --bg-white:      #FFFFFF;
    --border:        #EEEEEE;
    --border-focus:  #FF6B35;

    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;

    --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.10);
    --shadow-orange: 0 4px 20px rgba(255, 107, 53, 0.25);

    --transition:    0.2s ease;
    --font:          'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ── Layout ───────────────────────────────────────────────── */
.ceo-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ── Navigation ───────────────────────────────────────────── */
.ceo-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.ceo-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.ceo-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ceo-nav__logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.ceo-nav__logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
}

.ceo-nav__logo-wordmark strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.3px;
}

.ceo-nav__logo-wordmark small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: #111;
    letter-spacing: 0.2px;
}

.ceo-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ceo-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
}

.ceo-nav__link:hover {
    color: var(--orange);
    background: var(--orange-light);
    text-decoration: none;
}

/* ── Page Header (orange gradient block — inner pages) ────── */
.ceo-page-header {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}

.ceo-page-header__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ceo-page-header__subtitle {
    font-size: 14px;
    opacity: 0.88;
    font-weight: 400;
}

/* ── Footer ───────────────────────────────────────────────── */
.ceo-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-white);
}

.ceo-footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-bottom: 16px;
}

.ceo-footer__link {
    font-size: 13px;
    color: var(--text-gray);
    transition: color var(--transition);
    text-decoration: none;
}

.ceo-footer__link:hover {
    color: var(--orange);
    text-decoration: none;
}

.ceo-footer__copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Buttons ──────────────────────────────────────────────── */
.ceo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.ceo-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.ceo-btn:active {
    transform: translateY(0);
}

.ceo-btn--primary {
    background: var(--orange);
    color: #fff;
    box-shadow: var(--shadow-orange);
}

.ceo-btn--primary:hover {
    background: var(--orange-dark);
    color: #fff;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.35);
}

.ceo-btn--secondary {
    background: var(--bg-white);
    color: var(--orange);
    border: 2px solid var(--orange);
    box-shadow: var(--shadow-sm);
}

.ceo-btn--secondary:hover {
    background: var(--orange-light);
    color: var(--orange-dark);
    border-color: var(--orange-dark);
}

.ceo-btn--ghost {
    background: transparent;
    color: var(--text-gray);
    padding: 12px 20px;
}

.ceo-btn--ghost:hover {
    background: var(--bg);
    color: var(--text-dark);
}

.ceo-btn--sm {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.ceo-btn--loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ── Cards ────────────────────────────────────────────────── */
.ceo-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.ceo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── Callout Boxes ────────────────────────────────────────── */
.highlight-box {
    background: var(--orange-glow);
    border-left: 4px solid var(--orange);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 32px 0;
}

.highlight-box p {
    margin: 0;
    font-size: 14px;
    color: var(--text-body);
}

.commitment-box {
    background: rgba(76, 175, 80, 0.07);
    border-left: 4px solid #4CAF50;
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 32px 0;
}

.commitment-box p {
    margin: 0;
    font-size: 14px;
    color: var(--text-body);
}

.commitment-box strong {
    color: #2E7D32;
}

.commitment-box ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 8px;
    margin-bottom: 0;
}

.commitment-box li {
    margin-bottom: 4px;
}

/* ── Form Elements ────────────────────────────────────────── */
.ceo-form-group {
    margin-bottom: 20px;
}

.ceo-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.ceo-label .required {
    color: var(--orange);
    margin-left: 2px;
}

.ceo-input,
.ceo-select,
.ceo-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.ceo-input:focus,
.ceo-select:focus,
.ceo-textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.ceo-input::placeholder,
.ceo-textarea::placeholder {
    color: var(--text-muted);
}

.ceo-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.ceo-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.ceo-char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ceo-char-counter.warning {
    color: #F59E0B;
}

.ceo-char-counter.danger {
    color: #EF4444;
}

/* Feedback messages */
.ceo-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}

.ceo-alert--success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2E7D32;
}

.ceo-alert--error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #B91C1C;
}

/* ── Legal Page Styles ────────────────────────────────────── */
.ceo-legal-content {
    padding: 48px 0;
}

.ceo-legal-content .last-updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 40px;
}

.ceo-legal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.ceo-legal-content h2:first-of-type {
    margin-top: 0;
}

.ceo-legal-content p {
    margin-bottom: 14px;
    color: var(--text-body);
    font-size: 15px;
}

.ceo-legal-content ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 14px;
}

.ceo-legal-content li {
    margin-bottom: 6px;
    color: var(--text-body);
    font-size: 15px;
}

.sub-heading {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 12px;
    display: block;
}

/* ── Error Pages ──────────────────────────────────────────── */
.ceo-error-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ceo-error-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.ceo-error-code {
    font-size: 96px;
    font-weight: 800;
    color: var(--orange-mid);
    line-height: 1;
    margin-bottom: 16px;
}

.ceo-error-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.ceo-error-message {
    font-size: 15px;
    color: var(--text-gray);
    max-width: 400px;
    margin: 0 auto 32px;
}

/* ── Cookie Consent Banner ────────────────────────────────── */
.ceo-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--text-dark);
    color: #fff;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease;
}

.ceo-cookie-banner--hiding {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

.ceo-cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ceo-cookie-banner__text {
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.ceo-cookie-banner__link {
    color: var(--orange);
    font-weight: 600;
}

.ceo-cookie-banner__link:hover {
    color: #FFB38A;
}

.ceo-cookie-banner__btn {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .ceo-cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ceo-cookie-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }

.honeypot { display: none !important; visibility: hidden !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .ceo-nav__links .ceo-nav__link:not(.ceo-nav__link--cta) {
        display: none;
    }

    .nav-join-beta {
        display: none;
    }

    .ceo-page-header {
        padding: 40px 24px;
    }

    .ceo-page-header__title {
        font-size: 22px;
    }

    .ceo-legal-content h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ceo-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .ceo-error-code {
        font-size: 72px;
    }
}
