/* ─── Tokens ────────────────────────────────────────────────────── */
:root {
    /* Brand palette — same family as the desktop app but a touch brighter
       so the marketing site reads as a separate product page. */
    --brand-ink:       #1e3a5f;   /* primary text accent, logo, deep nav */
    --brand-blue:      #1f6feb;   /* CTA buttons, links, accents */
    --brand-blue-hov:  #1a5fc9;
    --brand-soft:      #eef4fb;   /* soft tinted backgrounds */
    --ink:             #1d2433;
    --ink-soft:        #4a5568;
    --muted:           #6b7280;
    --line:            #e4e8ee;
    --bg:              #ffffff;
    --bg-alt:          #e7eef8;
    --card-bg:         #ffffff;   /* testimonial / pricing card surface */
    --topbar-bg:       rgba(255, 255, 255, 0.92);
    --screenshot-frame:#1e3a5f;
    --shadow-sm:       0 1px 2px rgba(20, 30, 50, 0.06);
    --shadow-md:       0 10px 30px rgba(20, 30, 50, 0.08);
    --radius:          10px;
    --radius-lg:       14px;
}

/* ─── Dark theme overrides ──────────────────────────────────────── */
[data-theme="dark"] {
    --brand-ink:       #e8eef7;
    --brand-blue:      #3b87ff;
    --brand-blue-hov:  #5798ff;
    --brand-soft:      #18243d;
    --ink:             #dde4ef;
    --ink-soft:        #98a3b8;
    --muted:           #707a8f;
    --line:            #232e44;
    --bg:              #0f1726;
    --bg-alt:          #141d30;
    --card-bg:         #18233a;
    --topbar-bg:       rgba(15, 23, 38, 0.86);
    --screenshot-frame:#1a2740;
    --shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:       0 12px 36px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-hov); }

h1, h2, h3, h4 {
    color: var(--brand-ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}
h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ─── Topbar ────────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--topbar-bg);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--brand-ink);
    font-size: 1.05rem;
}
.brand:hover { color: var(--brand-ink); }

.nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.nav a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav a:hover { color: var(--brand-ink); }

.topbar-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }

.btn-primary {
    background: var(--brand-blue);
    color: white;
}
.btn-primary:hover { background: var(--brand-blue-hov); color: white; }

.btn-secondary {
    background: var(--card-bg);
    color: var(--brand-ink);
    border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg-alt); color: var(--brand-ink); }

.btn-ghost {
    background: transparent;
    color: var(--brand-ink);
    border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--brand-ink); }

.btn-ghost-on-dark {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-on-dark:hover { background: rgba(255, 255, 255, 0.12); color: white; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
    background:
        radial-gradient(ellipse 60% 50% at 30% 0%, rgba(31, 111, 235, 0.08), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding: 72px 0 88px;
}
.hero-inner {
    display: grid;
    /* 3:5 ratio gives the screenshot ~25% more width than the original 1.05:1. */
    grid-template-columns: 3fr 5fr;
    gap: 56px;
    align-items: center;
}
.hero-text h1 .accent { color: var(--brand-blue); }
.hero-text .lede {
    font-size: 1.12rem;
    color: var(--ink-soft);
    margin: 16px 0 28px;
    max-width: 540px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.hero-marks {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}
.hero-marks li {
    position: relative;
    padding-left: 18px;
}
.hero-marks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: 700;
}

.hero-screenshot {
    background: var(--screenshot-frame);
    border-radius: var(--radius-lg);
    padding: 3px;
    box-shadow: var(--shadow-md);
}
.hero-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    background: var(--card-bg);
}

/* ─── Section heads ─────────────────────────────────────────────── */
.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin: 0;
}

/* ─── Features ──────────────────────────────────────────────────── */
.features { padding: 88px 0; background: var(--bg); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d6dde6;
}
.feature-icon {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-blue);
    border-radius: 10px;
    margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; }
.feature p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

/* ─── Testimonials ──────────────────────────────────────────────── */
.testimonials {
    padding: 80px 0;
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin: 0;
}
.testimonial p {
    color: var(--ink);
    font-size: 1rem;
    margin: 0 0 18px;
    line-height: 1.6;
}
.testimonial footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
    color: var(--muted);
}
.testimonial footer strong { color: var(--brand-ink); font-weight: 600; }

/* ─── Pricing ───────────────────────────────────────────────────── */
.pricing { padding: 88px 0; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 760px;
    margin: 0 auto;
}
.price-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}
.price-card-feature {
    border-color: var(--brand-blue);
    box-shadow: 0 8px 24px rgba(31, 111, 235, 0.12);
}
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-blue);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}
.price-name {
    display: block;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    margin-bottom: 14px;
}
.price-amount {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--brand-ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.price-amount .dollar {
    font-size: 1.4rem;
    vertical-align: top;
    margin-right: 4px;
    font-weight: 700;
}
.price-amount .per {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    margin-left: 6px;
}
.price-amount-custom { font-size: 1.9rem; }
.price-sub {
    color: var(--ink-soft);
    margin: 12px 0 22px;
    font-size: 0.92rem;
}
.price-feats {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    flex: 1;
}
.price-feats li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.94rem;
    color: var(--ink);
}
.price-feats li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6feb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ─── CTA bar ───────────────────────────────────────────────────── */
.cta-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #1f6feb 100%);
    color: white;
    padding: 56px 0;
}
.cta-bar h2 { color: white; margin-bottom: 6px; }
.cta-bar p { margin: 0; opacity: 0.85; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding-top: 56px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
}
.footer-brand p {
    color: var(--muted);
    max-width: 320px;
    margin: 14px 0 0;
    font-size: 0.9rem;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav h4 {
    color: var(--brand-ink);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.footer-nav a {
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--brand-ink); }
.footer-bottom {
    margin-top: 44px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .hero { padding: 56px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 18px 28px; border-bottom: 1px solid var(--line); }
    .nav.open { display: flex; }
    .topbar-cta .btn-ghost { display: none; }
    .nav-toggle { display: inline-flex; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ─── Active topbar link (e.g. "About" when on about.html) ──────── */
.nav a.active { color: var(--brand-ink); font-weight: 600; }

/* ─── Sub-pages (about.html, future docs / privacy / etc.) ───────── */
.hero-compact { padding: 56px 0 36px; }
.hero-compact .hero-text h1 { font-size: 2.2rem; }

.page-section {
    padding: 36px 0 88px;
    background: var(--bg);
}
.container-narrow {
    max-width: 760px;
    padding: 0 28px;
    margin: 0 auto;
}
.page-section h2 {
    font-size: 1.4rem;
    margin: 36px 0 12px;
}
.page-section h2:first-child { margin-top: 0; }
.page-section h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
    color: var(--brand-ink);
}
.page-section p {
    color: var(--ink-soft);
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.65;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.value-list li {
    padding: 12px 0 12px 26px;
    position: relative;
    color: var(--ink-soft);
    line-height: 1.6;
}
.value-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6feb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.value-list strong { color: var(--brand-ink); }

/* Responsive 16:9 video embed for the tutorial page */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 9 / 16 */
    margin: 0 0 28px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── Theme toggle button ───────────────────────────────────────── */
.theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover {
    background: var(--bg-alt);
    color: var(--brand-ink);
    border-color: var(--brand-ink);
}
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline-flex; }

/* ─── FAQ accordion (uses native <details>/<summary>) ───────────── */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}
.faq-item:last-of-type {
    border-bottom: none;
}

.faq-question {
    list-style: none;             /* hide default disclosure arrow */
    cursor: pointer;
    padding: 18px 36px 18px 0;
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand-ink);
    line-height: 1.45;
    transition: color 0.15s ease;
}
.faq-question::-webkit-details-marker { display: none; }   /* Safari */
.faq-question:hover { color: var(--brand-blue); }

/* Chevron, right-aligned, rotates when the item is open */
.faq-question::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.18s ease;
}
.faq-item[open] > .faq-question::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
    padding: 0 36px 18px 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
    margin: 6px 0 12px;
    padding-left: 22px;
}
.faq-answer ul li { margin-bottom: 4px; }
.faq-answer code {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.88em;
}
