/* ===================================================================
   VRJiraChrono — style.css
   Clean, professional, responsive. No external libraries.
   =================================================================== */
*/

/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #f5f7fa;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-primary: #0052cc;
    --color-primary-h: #003d99;
    --color-accent: #0065ff;
    --color-text: #1a202c;
    --color-muted: #64748b;
    --color-success: #16a34a;
    --color-error: #dc2626;
    --color-warning: #d97706;
    --radius: 8px;
    --shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .06);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-w: 1100px;
    --header-h: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-h);
    text-decoration: underline;
}

h1,
h2,
h3 {
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    padding-left: 1.4rem;
}

li {
    margin-bottom: .4rem;
}

/* ── Layout ────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.site-main {
    flex: 1;
    padding-bottom: 4rem;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link img {
    display: block;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    font-weight: 500;
    color: var(--color-text);
    font-size: .95rem;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0a2463 0%, #1a56db 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: .9;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.badge {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
}

/* ── Sections ──────────────────────────────────────────────────── */
.section {
    padding: 3.5rem 0;
}

.section:nth-child(even) {
    background: var(--color-surface);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    margin-bottom: .5rem;
}

.section-title p {
    color: var(--color-muted);
    max-width: 560px;
    margin-inline: auto;
}

/* ── Cards grid ────────────────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.section:nth-child(even) .card {
    background: var(--color-bg);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
    display: block;
}

.card h3 {
    margin-bottom: .5rem;
}

.card p {
    color: var(--color-muted);
    font-size: .93rem;
}

/* ── Steps ─────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    counter-reset: steps;
}

.step {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    box-shadow: var(--shadow);
    counter-increment: steps;
}

.step::before {
    content: counter(steps);
    position: absolute;
    left: 1rem;
    top: 1.4rem;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}

/* ── Status banner ─────────────────────────────────────────────── */
.status-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.status-banner .icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.status-banner h3 {
    color: #92400e;
    margin-bottom: .35rem;
}

.status-banner p {
    color: #78350f;
    font-size: .93rem;
}

/* ── CTA ───────────────────────────────────────────────────────── */
.cta-box {
    background: linear-gradient(135deg, #0a2463 0%, #1a56db 100%);
    border-radius: var(--radius);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
}

.cta-box h2 {
    color: #fff;
    margin-bottom: .75rem;
}

.cta-box p {
    opacity: .9;
    margin-bottom: 1.5rem;
    max-width: 520px;
    margin-inline: auto;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .65rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-h);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
}

.btn-white:hover {
    background: #e8f0fe;
    color: var(--color-primary);
}

/* ── Alert boxes (privacy/support/callback) ────────────────────── */
.alert {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: .93rem;
}

.alert-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.alert-success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
}

.alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
}

/* ── Content pages (privacy, support) ──────────────────────────── */
.content-page {
    padding: 3rem 0 4rem;
}

.content-page h1 {
    margin-bottom: 2rem;
}

.content-page h2 {
    font-size: 1.25rem;
    margin: 2rem 0 .75rem;
    color: var(--color-primary);
}

.content-page ul {
    margin-bottom: 1rem;
}

.page-hero {
    background: linear-gradient(135deg, #0a2463 0%, #1a56db 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}

.page-hero h1 {
    color: #fff;
}

.page-hero p {
    opacity: .85;
    margin-top: .5rem;
}

/* ── OAuth callback ────────────────────────────────────────────── */
.callback-card {
    max-width: 560px;
    margin: 4rem auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.callback-card .big-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.callback-card h1 {
    font-size: 1.6rem;
    margin-bottom: .75rem;
}

.callback-card p {
    color: var(--color-muted);
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 1.75rem 0;
    font-size: .875rem;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer strong {
    color: #e2e8f0;
}

.site-footer a {
    color: #94a3b8;
}

.site-footer a:hover {
    color: #e2e8f0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* ── Support form hints ─────────────────────────────────────────── */
.support-info dt {
    font-weight: 600;
    color: var(--color-text);
    margin-top: .75rem;
}

.support-info dd {
    color: var(--color-muted);
    margin-left: 0;
    font-size: .93rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .header-inner {
        gap: .75rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-banner {
        flex-direction: column;
    }

    .step {
        padding-left: 1rem;
        padding-top: 3.5rem;
    }

    .step::before {
        top: .9rem;
        left: 1rem;
    }

    .dl-grid {
        grid-template-columns: 1fr;
    }

    .dl-mac-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dl-mac-divider {
        width: 100%;
        height: 1px;
    }
}

/* ── Download section ───────────────────────────────────────────── */
.section-download {
    background: var(--color-surface);
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin-inline: auto;
}

.dl-card {
    border: 2px solid var(--color-border);
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--color-bg);
    transition: border-color .15s, box-shadow .15s;
}

.dl-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 82, 204, .12);
}

.dl-card-header {
    background: linear-gradient(135deg, #0a2463 0%, #1a56db 100%);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.dl-os-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, .15);
    border-radius: 14px;
    margin-bottom: .75rem;
    color: #fff;
}

.dl-card-header h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: .2rem;
}

.dl-subtitle {
    opacity: .8;
    font-size: .85rem;
    margin: 0;
}

.dl-card-body {
    padding: 1.5rem;
    text-align: center;
}

.dl-btn {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: .75rem 1.25rem;
}

.dl-soon {
    display: inline-block;
    background: var(--color-border);
    color: var(--color-muted);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

.dl-note {
    color: var(--color-muted);
    font-size: .82rem;
    margin-top: .75rem;
    margin-bottom: 0;
}

/* macOS two-option row */
.dl-mac-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.dl-mac-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

.dl-mac-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.dl-mac-label small {
    display: block;
    font-weight: 400;
    color: var(--color-muted);
    font-size: .8rem;
}

.dl-mac-divider {
    width: 1px;
    background: var(--color-border);
    align-self: stretch;
}