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

:root {
    /* Brand — the single brand color: rgb(0, 72, 244) */
    --brand: #0048f4;
    --brand-bright: #3a6dff;
    /* same hue, lifted for legibility on dark grounds */
    --brand-hover: #2a63ff;
    --brand-tint: rgba(0, 72, 244, 0.16);
    --brand-tint-strong: rgba(58, 109, 255, 0.30);

    /* Color Palette — Full dark theme (Mintlify-inspired) */
    --bg-color: #0a0c11;
    --bg-secondary: #12151d;
    --bg-tertiary: #191d27;
    --text-primary: #f3f5fa;
    --text-secondary: #9aa4b4;
    --text-tertiary: #6b7688;

    /* Aliases kept so existing inline styles keep working */
    --accent-color: var(--brand-bright);
    --accent-hover: var(--brand-hover);
    --border-color: #262c38;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Shadows / glows tuned for dark */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.55);
    --shadow-brand: 0 8px 26px rgba(0, 72, 244, 0.45);

    /* Typography */
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-size-base: 16px;
    --font-size-h1: 60px;
    --font-size-h2: 40px;
    --font-size-h3: 28px;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --container-width: 1120px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 980px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--brand-tint-strong);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Header / Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 12, 17, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--brand-bright);
    box-shadow: 0 0 0 3px var(--brand-tint), 0 0 12px rgba(58, 109, 255, 0.55);
}

/* Footer logo: keep the mark subtle */
footer .logo::before {
    box-shadow: none;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 180px 0 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 65% 55% at 50% -8%, var(--brand-tint), transparent 68%),
        linear-gradient(180deg, #10131b 0%, var(--bg-color) 55%);
    border-bottom: 1px solid var(--glass-border);
}

.hero h1 {
    font-size: var(--font-size-h1);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    max-width: 900px;
    color: var(--text-primary);
}

.hero p {
    font-size: 21px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto var(--spacing-lg);
    font-weight: 400;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--brand);
    color: #ffffff;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-brand);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 72, 244, 0.55);
}

/* Store badges side by side when an app ships on both iOS and Android */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* Give the secondary store button an outline treatment for hierarchy */
.store-buttons .cta-button:nth-child(2) {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.store-buttons .cta-button:nth-child(2):hover {
    background-color: var(--bg-tertiary);
    border-color: var(--brand-bright);
    color: var(--brand-bright);
    box-shadow: none;
}

/* Features / Apps Section */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: var(--spacing-lg);
}

.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: inherit;
    text-decoration: none;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-tint-strong);
}

.card h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-links h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--brand-bright);
}

.copyright {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Support Page Styles */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.support-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 18px;
}

.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item p {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form-container {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-bright);
    box-shadow: 0 0 0 3px var(--brand-tint);
}

/* Help Center */
.help-page {
    padding-top: 140px;
    min-height: 70vh;
}

.help-lead {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 620px;
    margin-bottom: 48px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--brand-bright);
}

.breadcrumb .sep {
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* Category cards on the help home */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.help-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: block;
    color: inherit;
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-tint-strong);
}

.help-card h3 {
    font-size: 21px;
    margin-bottom: var(--spacing-sm);
}

.help-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: var(--spacing-md);
}

.help-card .help-card-meta {
    font-size: 13px;
    color: var(--brand-bright);
    font-weight: 600;
}

/* Article list on a category page */
.article-list {
    border-top: 1px solid var(--glass-border);
    max-width: 760px;
}

.article-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 500;
}

.article-list a:hover {
    color: var(--brand-bright);
}

.article-list a .chevron {
    color: var(--text-tertiary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.article-list a:hover .chevron {
    transform: translateX(4px);
    color: var(--brand-bright);
}

/* Article body prose */
.article-body {
    max-width: 720px;
    margin-top: 32px;
}

.article-body h2 {
    font-size: 24px;
    margin: 40px 0 12px;
}

.article-body h3 {
    font-size: 19px;
    margin: 28px 0 10px;
}

.article-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
}

.article-body ul,
.article-body ol {
    color: var(--text-secondary);
    margin: 0 0 16px;
    padding-left: 24px;
    list-style: revert;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body a {
    color: var(--brand-bright);
    font-weight: 500;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-callout {
    background: var(--brand-tint);
    border: 1px solid var(--brand-tint-strong);
    border-left: 3px solid var(--brand-bright);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 24px 0;
}

.article-callout p {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
}

/* Contact prompt at the end of help pages */
.help-cta {
    max-width: 720px;
    margin: 56px 0 0;
    padding: 28px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.help-cta h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.help-cta p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

.help-cta a {
    color: var(--brand-bright);
    font-weight: 500;
}

.help-cta a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 40px;
        --font-size-h2: 32px;
    }

    .hero {
        padding: 140px 0 90px;
    }

    .hero p {
        font-size: 18px;
    }

    .support-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
