/* ============================================================
   REACHME BRAND COLOR SYSTEM (Matches landing.css)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lora:ital,wght@0,400..700;1,400..700&family=Syne:wght@400..800&display=swap');

:root {
    color-scheme: light;

    /* ── Core Brand Palette ─────────────────────────────────── */
    --color-primary: #F08000;         /* Tangerine Orange */
    --color-primary-vivid: #F06000;   /* Vivid Orange */
    --color-primary-deep: #E03000;    /* Orange-Red */
    --color-primary-burnt: #D02000;   /* Burnt Orange */

    /* ── Button-specific tokens ─────────────────────────────── */
    --color-btn-bg: var(--color-primary-vivid);
    --color-btn-hover: #D05200;
    --color-btn-text: #ffffff;

    /* ── Text & Foreground ──────────────────────────────────── */
    --color-text-base: #0b1120;
    --color-text-muted: #4a5b7a;
    --color-text-faint: #9aabc5;
    --color-text-accent: var(--color-primary);

    /* ── Backgrounds ────────────────────────────────────────── */
    --color-bg-page: #f4f7ff;          /* Sleek Light Blue Tint */
    --color-bg-card: #ffffff;          /* Crisp White Card */
    --color-bg-subtle: #f3f4f6;
    --color-bg-hover: #e9edf5;
    --color-bg-tint: rgba(240, 128, 0, 0.05);
    --color-bg-tint-mid: rgba(240, 128, 0, 0.12);
    --color-success: #10b981;
    --color-success-text: #047857;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-danger: #ef4444;
    --color-danger-text: #b91c1c;
    --color-danger-bg: rgba(239, 68, 68, 0.1);
    --color-warning: #d97706;
    --color-warning-text: #92400e;
    --color-warning-bg: rgba(245, 158, 11, 0.12);
    --color-info: #3b82f6;
    --color-info-text: #1d4ed8;
    --color-info-bg: rgba(59, 130, 246, 0.1);
    --color-bg-input: #ffffff;
    --color-code-bg: rgba(240, 128, 0, 0.05);
    --color-focus-ring: rgba(240, 96, 0, 0.28);
    --shadow-card: 0 15px 40px -10px rgba(11, 17, 32, 0.05), 0 1px 3px rgba(240, 128, 0, 0.02);

    /* ── Borders ────────────────────────────────────────────── */
    --color-border-subtle: rgba(0, 0, 0, 0.06);
    --color-border-medium: rgba(0, 0, 0, 0.12);
    --color-border-orange: rgba(240, 128, 0, 0.22);
    --color-border-orange-faint: rgba(240, 128, 0, 0.10);
    --color-border-orange-step: rgba(240, 128, 0, 0.8);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --color-text-base: #f3f4f6;
    --color-text-muted: #c1c9d6;
    --color-text-faint: #9aa8bd;
    --color-bg-page: #111827;
    --color-bg-card: #1f2937;
    --color-bg-subtle: #273449;
    --color-bg-hover: #374151;
    --color-bg-tint: rgba(240, 128, 0, 0.1);
    --color-bg-tint-mid: rgba(240, 128, 0, 0.18);
    --color-bg-input: #111827;
    --color-code-bg: #111827;
    --color-focus-ring: rgba(255, 153, 77, 0.45);
    --color-border-subtle: rgba(255, 255, 255, 0.12);
    --color-border-medium: rgba(255, 255, 255, 0.2);
    --color-border-orange: rgba(255, 153, 77, 0.35);
    --color-border-orange-faint: rgba(255, 255, 255, 0.12);
    --color-btn-hover: #ff8a3d;
    --color-primary-deep: #ff9a5c;
    --color-success-text: #6ee7b7;
    --color-success-bg: rgba(16, 185, 129, 0.18);
    --color-danger-text: #fca5a5;
    --color-danger-bg: rgba(239, 68, 68, 0.18);
    --color-warning: #fbbf24;
    --color-warning-text: #fcd34d;
    --color-warning-bg: rgba(245, 158, 11, 0.18);
    --color-info-text: #93c5fd;
    --color-info-bg: rgba(59, 130, 246, 0.18);
    --shadow-card: 0 15px 40px -10px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Base Setup & General Styles
   ============================================================ */

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg-page);
    color: var(--color-text-base);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background accent glow */
body::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 128, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}

.content-card {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--color-border-orange-faint);
    box-shadow: var(--shadow-card);
}

.app-promo {
    border: 1px solid var(--color-border-medium);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

:root[data-theme="dark"] .warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

:root[data-theme="dark"] .tip-box {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}

:root[data-theme="dark"] .info-box {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
}

.site-brand-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.theme-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border-medium);
    border-radius: 50%;
    background: var(--color-bg-card);
    color: var(--color-text-base);
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--color-bg-tint-mid);
}

.theme-toggle:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-focus-ring);
    outline-offset: 2px;
}

input,
textarea,
select {
    background: var(--color-bg-input);
    color: var(--color-text-base);
    border-color: var(--color-border-medium);
}

::placeholder {
    color: var(--color-text-faint);
    opacity: 1;
}

/* ============================================================
   Typography
   ============================================================ */

h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text-base);
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary-vivid);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border-orange);
    padding-bottom: 0.5rem;
}

h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-base);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    margin: 1.2rem 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

ul, ol {
    margin: 1.2rem 0 1.2rem 1.75rem;
}

li {
    margin: 0.6rem 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.muted {
    color: var(--color-text-faint);
    font-size: 0.95rem;
}

strong {
    color: var(--color-text-base);
    font-weight: 600;
}

/* ============================================================
   Links & Navigation
   ============================================================ */

a {
    color: var(--color-primary-vivid);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-primary-deep);
    text-decoration: underline;
}

.back-link {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--color-primary-vivid);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Syne', sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(240, 96, 0, 0.12);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text);
}

.btn-primary:hover {
    background-color: var(--color-btn-hover);
    color: var(--color-btn-text);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(240, 96, 0, 0.2);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-bg-subtle);
    color: var(--color-text-base);
    border: 1px solid var(--color-border-medium);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--color-bg-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.btnBlue {
    margin-bottom: 1.25rem;
}

/* ============================================================
   Feature & Info Callouts
   ============================================================ */

.feature-box {
    background: var(--color-bg-tint);
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.75rem;
    margin: 1.75rem 0;
    border-radius: 12px;
    border: 1px solid var(--color-border-orange-faint);
    border-left-width: 4px;
}

.warning-box {
    background: rgba(239, 68, 68, 0.03);
    border-left: 4px solid #ef4444;
    padding: 1.25rem 1.75rem;
    margin: 1.75rem 0;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.08);
    border-left-width: 4px;
}

.tip-box {
    background: rgba(16, 185, 129, 0.03);
    border-left: 4px solid #10b981;
    padding: 1.25rem 1.75rem;
    margin: 1.75rem 0;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-left-width: 4px;
}

.info-box {
    background: rgba(59, 130, 246, 0.03);
    border-left: 4px solid #3b82f6;
    padding: 1.25rem 1.75rem;
    margin: 1.75rem 0;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-left-width: 4px;
}

/* ============================================================
   Code Blocks
   ============================================================ */

code {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border-orange-faint);
    padding: 3px 7px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
    font-size: 0.9em;
    color: var(--color-primary-hover);
    font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-subtle);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--color-text-muted);
    margin: 0 0.5rem;
    font-weight: 500;
}

.footer a:hover {
    color: var(--color-primary-vivid);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary-vivid);
}

/* ============================================================
   Responsive Adaptations
   ============================================================ */

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }
}
