:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #1f2a37;
    --muted: #6b7280;
    --line: #e6eaf2;

    --primary: #2563eb;
    --primary-2: #1d4ed8;
    --danger: #ef4444;

    --shadow: 0 10px 28px rgba(10, 20, 45, .10);
    --radius: 14px;

    --container: 1050px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* ===== Header Base ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

/* 3-column layout */
.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 0;
}

/* LEFT */
.header-left {
    justify-self: start;
}

.brand-logo {
    height: 62px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* CENTER */
.header-center {
    justify-self: center;
}

.tutorial-link {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    padding: 8px 14px;
    border-radius: 10px;
}

.tutorial-link:hover {
    background: #f3f4f6;
}

/* RIGHT */
.header-right {
    justify-self: end;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    filter: brightness(0.95);
}

.btn-primary {
    background: #24d366;
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-2);
}

.btn-outline {
    background: #0095ff;
    border: 1px solid #cfd7ea;
    color: #0f172a;
}

.btn-outline:hover {
    background: #f8fafc;
}

/* ===== Layout ===== */
.page {
    padding: 18px 0 40px;
}

/* ===== Hero ===== */
.hero-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    border: 1px solid var(--line);
}

.hero-media {
    position: relative;
    min-height: 240px;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps banner aspect ratio */
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .45));
}

.hero-content {
    position: relative;
    padding: 98px 40px;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: .2px;
}

.hero-sub {
    margin: 0 auto 14px;
    max-width: 78ch;
    font-size: 14px;
    line-height: 1.6;
    opacity: .95;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    backdrop-filter: blur(6px);
    font-size: 13px;
}

.hero-badge .spark {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}

.hero-badge .muted {
    opacity: .7;
}

.hero-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ===== Desktop (default) ===== */
/* Always show full text on desktop */
.hero-more {
    display: inline;
}

.hero-ellipsis,
.read-toggle {
    display: none;
}

/* Inline toggle text style */
.read-toggle {
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.read-toggle:hover {
    text-decoration: underline;
}

.hero-ellipsis {
    color: inherit;
}

/* ===== Mobile only (≤768px) ===== */
@media (max-width: 768px) {

    /* Collapse extra content */
    .hero-more {
        display: none;
    }

    /* Show ellipsis + toggle */
    .hero-ellipsis,
    .read-toggle {
        display: inline;
    }
}

/* Download section wrapper (light grey background) */
.download-section {
    margin-top: 18px;
}

/* Inner black box with 3 columns */
.download-inner {
    background: var(--card);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 24px;
    box-shadow: 0 10px 28px rgba(10, 20, 45, 0.10);
    border: 1px solid #e6eaf2;
}

/* Each card */
.download-card {
    flex: 1;
    position: relative;
    padding: 22px 20px 26px;
    background: #f1f6ff;
    border-radius: 14px;
    color: #1f2a37;
}

/* Vertical separators between columns */
.download-card+.download-card {
    border-left: none;
}

/* Faint background icon inside each card */
.download-card::before {
    content: "";
    position: absolute;
    inset: 40px 24px 44px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
    opacity: 0.2;
    /* much softer */
    pointer-events: none;
    z-index: 0;
}


/* Point these to your own background images */
.card-android::before {
    background-image: url("/assets/android.png");
}

.card-ios::before {
    background-image: url("/assets/ios.png");
}

.card-pc::before {
    background-image: url("/assets/window.png");
}

/* Title + divider */
.download-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-divider {
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 auto 18px;
}

/* Text */
.card-body {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.6;
}

.download-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Download buttons */
.btn-download {
    position: relative;
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 999px;
    background: #24d366;
    /* default, overridden per platform */
    color: #111;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* Platform-specific button colors */
.btn-android {
    background: #24d366;
}

.btn-ios {
    background: #f5f5f7;
    color: #111;
}

.btn-pc {
    background: #0095ff;
    color: #fff;
}

.btn-download:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Icon in button */
.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .download-inner {
        display: flex;
        flex-direction: row;
        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        /* remove left/right padding so first card can start nicely */
        padding: 20px 0;

        /* snap padding feel */
        scroll-padding-left: 16px;

        /* show scrollbar */
        scrollbar-width: thin;
        /* Firefox */
        scrollbar-color: #cbd5e1 transparent;
        /* Firefox */
    }

    .download-card {
        flex: 0 0 75%;
        scroll-snap-align: start;
    }

    /* breathing room at edges */
    .download-card:first-child {
        margin-left: 16px;
    }

    .download-card:last-child {
        margin-right: 16px;
    }

    /* Remove separators completely on mobile */
    .download-card+.download-card {
        border: none;
    }

    /* WebKit scrollbar (Chrome/Safari) */
    .download-inner::-webkit-scrollbar {
        height: 6px;
    }

    .download-inner::-webkit-scrollbar-track {
        background: transparent;
    }

    .download-inner::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 999px;
    }
}



/* Meta line under hero */
.meta-line {
    margin: 10px 0 14px;
    font-size: 12px;
    color: var(--muted);
}

/* ===== Cards ===== */
.card {
    margin-top: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 16px rgba(10, 20, 45, .06);
    overflow: hidden;
}

.soft-card {
    background: linear-gradient(180deg, #eef2ff, #ffffff);
}

.card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.card p {
    padding: 0 18px;
    margin: 14px 0;
    color: #111827;
    line-height: 1.75;
    font-size: 14px;
}

.card a {
    color: #1d4ed8;
}

.card h3 {
    margin: 8px 18px 0;
    font-size: 14px;
    color: #0f172a;
}

.card h4 {
    margin: 8px 18px 0;
    font-size: 14px;
    color: #0f172a;
}

.bullet {
    margin: 0;
    padding: 14px 34px 18px;
    color: #111827;
    font-size: 14px;
    line-height: 1.75;
}

.bullet li {
    margin: 8px 0;
}

.toc {
    margin: 0;
    padding: 14px 34px 18px;
    color: #0f172a;
    font-size: 14px;
}

.toc li {
    margin: 8px 0;
}

.toc a {
    color: #1d4ed8;
}

.toc a:hover {
    text-decoration: underline;
}

.steps {
    margin: 10px 0 18px;
    padding: 0 34px 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.75;
}

.steps li {
    margin: 8px 0;
}

.note {
    color: var(--muted);
}

/* ===== Table ===== */
.table-wrap {
    padding: 10px 18px 18px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.info-table thead th {
    background: #f3f6ff;
    font-weight: 800;
    color: #0f172a;
    text-align: left;
}

.info-table tbody tr:last-child td {
    border-bottom: 0;
}

.info-table td {
    color: #111827;
}

/* ===== FAQ ===== */
.faq .card-head {
    border-bottom: 2px solid #e2e8ff;
}

.faq-list {
    padding: 6px 18px 18px;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

details:last-child {
    border-bottom: 0;
}

summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: #ef4444;
    /* red like screenshot */
    font-size: 14px;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    padding: 8px 0 0;
    margin: 0;
    color: #111827;
    font-size: 13.5px;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 32px;
    padding: 28px 0 22px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

/* LEFT */
.footer-left {
    justify-self: start;
}

.footer-logo {
    display: block;
    height: 30px;
    width: auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.footer-tagline {
    font-size: 13px;
    color: #6b7280;
    max-width: 320px;
    line-height: 1.6;
}

/* CENTER */
.footer-center {
    justify-self: center;
    display: flex;
    gap: 18px;
}

.footer-center a {
    font-size: 13px;
    color: #111827;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
}

.footer-center a:hover {
    background: #f3f4f6;
}

/* RIGHT */
.footer-right {
    justify-self: end;
    text-align: right;
    font-size: 13px;
    color: #111827;
}

.footer-muted {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-self: center;
    }

    .footer-right {
        text-align: center;
    }

    .footer-tagline {
        max-width: none;
    }
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-content {
        padding: 22px 16px 18px;
    }

    .card-head {
        padding: 12px 14px;
    }

    .card p {
        padding: 0 14px;
    }

    .table-wrap {
        padding: 10px 14px 16px;
    }
}

@media (max-width: 768px) {
    .btn-register {
        font-size: 12px;
    }
}