/* ============================================================
   BytePad Marketing Site
   ============================================================ */

:root {
    --bg: #07080d;
    --bg-soft: #0c0e16;
    --bg-card: #11141f;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #eef0f7;
    --text-dim: #9aa1b5;
    --text-faint: #6b7185;
    --accent: #7c8cf8;
    --accent-2: #b48cf8;
    --accent-glow: rgba(124, 140, 248, 0.35);
    --pro: #a78bfa;
    --radius: 14px;
    --radius-lg: 20px;
    --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
kbd {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 0.1em 0.45em;
    white-space: nowrap;
}
code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    padding: 0.1em 0.35em;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
h1 em, h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.06em;
}

.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 8, 13, 0.78);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    backdrop-filter: saturate(1.4) blur(18px);
    border-bottom-color: var(--line);
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.nav-logo-img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
    font-size: 0.92rem;
    color: var(--text-dim);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
    color: var(--text);
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--accent-glow);
}
.nav-download {
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--text);
    color: var(--bg);
    border-radius: 99px;
    padding: 0.5em 1.2em;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-download:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18); }

.nav-burger {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    position: relative;
    z-index: 102;
}
.nav-burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 101;
    background: rgba(7, 8, 13, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: none;
    padding: calc(var(--nav-h) + 24px) 32px;
}
.mobile-overlay.open { display: block; }
.mobile-overlay-inner { display: flex; flex-direction: column; gap: 4px; }
.mobile-overlay-inner a {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.55em 0;
    border-bottom: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 99px;
    padding: 0.7em 1.5em;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-lg { font-size: 1.02rem; padding: 0.85em 1.9em; }
.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--accent-glow); }
.btn-ghost {
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--text-dim); background: rgba(255, 255, 255, 0.06); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 84px) 0 40px;
    text-align: center;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: -280px; left: 50%;
    transform: translateX(-50%);
    width: 1100px; height: 700px;
    background:
        radial-gradient(ellipse at 40% 30%, rgba(124, 140, 248, 0.22), transparent 60%),
        radial-gradient(ellipse at 65% 45%, rgba(180, 140, 248, 0.16), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}
.eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(124, 140, 248, 0.1);
    border: 1px solid rgba(124, 140, 248, 0.3);
    border-radius: 99px;
    padding: 0.4em 1.1em;
    margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin-bottom: 22px; }
.lede {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 32px;
}
.lede strong { color: var(--text); font-weight: 600; }
.hero-ctas, .cta-btns, .compare-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.hero-note { font-size: 0.85rem; color: var(--text-faint); margin-top: 16px; }
.hero-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }

.hero-shot {
    margin: 56px auto 0;
    max-width: 1020px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 120px rgba(124, 140, 248, 0.12);
}
.hero-shot img { width: 100%; cursor: zoom-in; }

/* ---------- What's-new strip ---------- */
.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 18px 0;
    margin-top: 72px;
}
.strip-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}
.strip-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}
.strip ul {
    display: flex;
    gap: 10px 22px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.strip li::before { content: '✦'; color: var(--accent-2); margin-right: 7px; font-size: 0.75em; }

/* ---------- Feature sections ---------- */
.feature { padding: 110px 0 20px; }
.feature.alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-bottom: 110px;
    margin-top: 90px;
}
.feature-grid {
    display: grid;
    grid-template-columns: minmax(320px, 5fr) 6fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 90px;
}
.feature-grid.flip { grid-template-columns: 6fr minmax(320px, 5fr); }
.feature-grid.no-shot, .feature-grid.flip.no-shot { grid-template-columns: 1fr; max-width: 740px; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-grid.flip .feature-shot { order: 1; }

.kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #7c8cf8);
    color: var(--accent);
    margin-bottom: 14px;
}
.kicker.center { text-align: center; }
.feature h2, .themes h2, .grid-section h2, .compare h2, .langs h2, .usecases h2, .ai-card h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }
.feature-copy p { color: var(--text-dim); }
.feature-copy p strong { color: var(--text); }
.checks { margin-top: 20px; display: grid; gap: 10px; }
.checks li {
    color: var(--text-dim);
    font-size: 0.95rem;
    padding-left: 28px;
    position: relative;
}
.checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34d399;
    font-weight: 700;
}
.pro-only {
    display: inline-block;
    margin-top: 22px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pro);
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 99px;
    padding: 0.35em 1em;
}

.feature-shot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    background: var(--bg-card);
}
.feature-shot img { width: 100%; cursor: zoom-in; }

/* Per-section kicker accent override */
.kicker[style] { color: var(--accent); }

/* ---------- Themes ---------- */
.themes { padding: 120px 0; text-align: center; }
.themes .lede { margin-bottom: 48px; }
.theme-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.theme-gallery figure {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--bg-card);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-gallery figure:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55); }
.theme-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.theme-gallery figcaption {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

/* ---------- Cards grid ---------- */
.grid-section { padding: 110px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-section h2 { margin-bottom: 48px; }
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }

/* ---------- Comparison ---------- */
.compare { padding: 120px 0; }
.compare .lede { margin-bottom: 44px; }
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    min-width: 640px;
}
.compare th, .compare td {
    padding: 13px 20px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.compare td:first-child, .compare th:first-child {
    text-align: left;
    color: var(--text-dim);
    width: 46%;
}
.compare thead th {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    padding-top: 18px;
    padding-bottom: 14px;
}
.compare thead th span {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
}
.compare .pro-col {
    background: rgba(124, 140, 248, 0.07);
    color: var(--text);
    font-weight: 600;
}
.compare thead .pro-col { color: var(--accent); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tr.hl td:first-child { color: var(--text); font-weight: 600; }
.compare td { color: var(--text-dim); }
.compare-ctas { margin-top: 40px; gap: 20px; }
.compare td.no { color: var(--text-faint); font-size: 0.8rem; }
.appstore-link { display: inline-block; transition: transform 0.2s; }
.appstore-link:hover { transform: translateY(-2px); }
.appstore-badge { height: 56px; width: auto; display: block; }

/* ---------- CTA ---------- */
.cta {
    position: relative;
    text-align: center;
    padding: 140px 0 150px;
    overflow: hidden;
    border-top: 1px solid var(--line);
}
.cta-glow {
    position: absolute;
    bottom: -320px; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 620px;
    background: radial-gradient(ellipse at 50% 70%, rgba(124, 140, 248, 0.2), transparent 65%);
    filter: blur(24px);
    pointer-events: none;
}
.cta h2 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: 18px; }
.cta p { color: var(--text-dim); max-width: 480px; margin: 0 auto 32px; }
.cta .hero-note { margin-top: 22px; }

/* ---------- Footer (shared partial) ---------- */
.footer {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 34px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo-img { width: 28px; height: 28px; border-radius: 7px; }
.footer-copy { font-size: 0.85rem; color: var(--text-faint); }
.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }
.footer-partner-logo { height: 22px; width: auto; opacity: 0.7; }

/* ---------- Lightbox ---------- */
.screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 5, 9, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.screenshot-lightbox.active { opacity: 1; pointer-events: auto; }
.screenshot-lightbox img {
    max-width: 94vw;
    max-height: 90vh;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}
.screenshot-lightbox-close {
    position: absolute;
    top: 18px; right: 26px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}
.screenshot-lightbox-close:hover { opacity: 1; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Generic subpage components ---------- */
.page-head {
    position: relative;
    padding: calc(var(--nav-h) + 76px) 0 30px;
    text-align: center;
    overflow: hidden;
}
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 3.4rem); margin-bottom: 16px; }
.page-body { padding: 30px 0 110px; }

/* ---------- Pricing ---------- */
.pricing-page {
    background:
        radial-gradient(ellipse 760px 520px at 50% 8%, rgba(124, 140, 248, 0.17), transparent 68%),
        radial-gradient(ellipse 620px 500px at 68% 48%, rgba(180, 140, 248, 0.09), transparent 72%),
        var(--bg);
}
.pricing-page .pricing-head {
    padding-top: calc(var(--nav-h) + 92px);
    padding-bottom: 42px;
}
.pricing-page .pricing-head::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 240px;
    left: 50%;
    top: 76px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(124, 140, 248, 0.2), transparent 70%);
    filter: blur(28px);
    pointer-events: none;
}
.pricing-page .pricing-head .container { position: relative; }
.pricing-page .pricing-head h1 {
    font-size: clamp(2.8rem, 6.5vw, 4.25rem);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-page .pricing-head .lede {
    max-width: 690px;
    margin-bottom: 0;
}
.pricing-page .page-body { padding-top: 20px; }
.pricing-page .price-cards {
    grid-template-columns: repeat(2, minmax(300px, 430px));
    gap: 26px;
}
.pricing-page .price-card {
    position: relative;
    overflow: hidden;
    padding: 40px 38px;
    background: linear-gradient(145deg, rgba(20, 23, 37, 0.96), rgba(12, 14, 24, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.pricing-page .price-card::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 180px;
    top: -105px;
    right: -75px;
    border-radius: 50%;
    background: rgba(124, 140, 248, 0.1);
    filter: blur(30px);
    pointer-events: none;
}
.pricing-page .price-card.featured {
    background:
        linear-gradient(145deg, rgba(24, 26, 46, 0.98), rgba(14, 16, 29, 0.98)) padding-box,
        linear-gradient(135deg, #7c8cf8, #b48cf8 65%, rgba(180, 140, 248, 0.35)) border-box;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.42),
        0 18px 70px rgba(124, 140, 248, 0.16);
}
.pricing-page .price-card h3 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}
.pricing-page .price-card .price {
    font-size: clamp(2.75rem, 5vw, 3.55rem);
    line-height: 1.05;
    background: linear-gradient(120deg, var(--text) 25%, #b8c0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pricing-page .price-card .checks { flex: 1; }
.pricing-page .price-card .btn-buy { min-height: 54px; }
.pricing-page .pricing-foot {
    margin-top: 48px;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
}

/* ---------- FAQ ---------- */
.faq-page {
    background:
        radial-gradient(ellipse 780px 500px at 50% 7%, rgba(124, 140, 248, 0.16), transparent 70%),
        radial-gradient(ellipse 620px 520px at 20% 48%, rgba(180, 140, 248, 0.06), transparent 72%),
        var(--bg);
}
.faq-page .faq-head {
    padding-top: calc(var(--nav-h) + 92px);
    padding-bottom: 44px;
}
.faq-page .faq-head::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 250px;
    left: 50%;
    top: 70px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(124, 140, 248, 0.2), transparent 72%);
    filter: blur(30px);
    pointer-events: none;
}
.faq-page .faq-head .container { position: relative; }
.faq-page .faq-head h1 { font-size: clamp(2.8rem, 6.5vw, 4.15rem); }
.faq-page .page-body { padding-top: 10px; }
.faq-page .prose h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2.7em auto 0.85em;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
}
.faq-page .prose h2::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 14px var(--accent-glow);
}
.faq-page .faq-item {
    background: linear-gradient(145deg, rgba(20, 23, 37, 0.92), rgba(12, 14, 24, 0.96));
    border-color: rgba(124, 140, 248, 0.14);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.12);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.faq-page .faq-item:hover {
    border-color: rgba(124, 140, 248, 0.32);
    transform: translateY(-1px);
}
.faq-page .faq-item[open] {
    border-color: rgba(167, 139, 250, 0.48);
    background: linear-gradient(145deg, rgba(28, 30, 52, 0.96), rgba(14, 16, 29, 0.98));
    box-shadow: 0 18px 50px rgba(124, 140, 248, 0.09);
}
.faq-page .faq-item summary { padding: 20px 22px; }
.faq-page .faq-item summary::after {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(124, 140, 248, 0.22);
    border-radius: 50%;
    background: rgba(124, 140, 248, 0.08);
    line-height: 1;
}
.faq-page .faq-item[open] summary::after {
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(167, 139, 250, 0.13);
}
.faq-page .faq-item .faq-a {
    border-top: 1px solid rgba(124, 140, 248, 0.1);
    padding-top: 18px;
}
.faq-page .faq-list + .prose { margin-top: 8px; }
.faq-page .faq-contact {
    margin-top: 72px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(124, 140, 248, 0.24);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 140, 248, 0.16), transparent 58%),
        rgba(17, 20, 31, 0.8);
}
.faq-page .faq-contact h2 {
    justify-content: center;
    margin-top: 0;
    text-transform: none;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
}
.faq-page .faq-contact h2::before { display: none; }

.prose { max-width: 760px; margin: 0 auto; color: var(--text-dim); }
.prose h2 { font-size: 1.4rem; color: var(--text); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.08rem; color: var(--text); margin: 1.6em 0 0.5em; font-weight: 700; }
.prose p { margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn-primary { color: #fff; }
.prose strong { color: var(--text); }
.prose .updated { font-size: 0.85rem; color: var(--text-faint); }

.form-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.form-card h1, .form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 24px; }
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0.65em 0.9em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 140, 248, 0.2);
}
.btn-block { display: block; width: 100%; text-align: center; border: none; cursor: pointer; font-family: inherit; }
.form-foot { margin-top: 18px; font-size: 0.85rem; color: var(--text-faint); text-align: center; }
.form-foot a { color: var(--accent); }
.form-msg { font-size: 0.88rem; margin-top: 12px; }
.form-msg.error { color: #f87171; }
.form-msg.ok { color: #34d399; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-faint);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-dim); font-size: 0.95rem; }
.faq-item .faq-a a { color: var(--accent); }

.price-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 380px));
    gap: 22px;
    justify-content: center;
    align-items: stretch;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(120deg, var(--accent), var(--accent-2)) border-box;
    box-shadow: 0 24px 70px rgba(124, 140, 248, 0.15);
}
.price-card h3 { font-size: 1.15rem; font-weight: 700; }
.price-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.price-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-faint); }
.price-card .price-sub { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 20px; }
.price-card .checks { margin: 0 0 26px; }
.price-card .btn { margin-top: auto; text-align: center; }

@media (max-width: 760px) {
    .price-cards { grid-template-columns: 1fr; }
}

/* ---------- Nav actions ---------- */
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 0.92rem; color: var(--text-dim); transition: color 0.2s; }
.nav-login:hover { color: var(--text); }

/* ---------- Terminal mockup ---------- */
.term-mock {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #0b0f14;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 90px rgba(52, 211, 153, 0.07);
    font-family: var(--font-mono);
}
.term-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--line);
}
.tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot-r { background: #ff5f57; }
.tdot-y { background: #febc2e; }
.tdot-g { background: #28c840; }
.term-title { margin-left: 10px; font-size: 0.75rem; color: var(--text-faint); }
.term-body {
    margin: 0;
    padding: 20px 22px 26px;
    font-size: 0.86rem;
    line-height: 1.75;
    color: #cdd6e4;
    overflow-x: auto;
    white-space: pre;
}
.tc-green { color: #4ade80; }
.tc-cyan { color: #67e8f9; }
.tc-blue { color: #60a5fa; }
.tc-red { color: #f87171; }
.tc-yellow { color: #fbbf24; }
.tc-dim { color: #6b7185; }
.term-cursor {
    display: inline-block;
    width: 0.6em; height: 1.15em;
    vertical-align: text-bottom;
    background: #4ade80;
    animation: term-blink 1.1s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

/* ---------- Theme swatches ---------- */
.theme-swatches {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    text-align: left;
}
.tswatch {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--tbg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tswatch:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.tswatch pre {
    margin: 0;
    padding: 18px 16px 16px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.7;
    color: var(--ttx);
    overflow: hidden;
    white-space: pre;
}
.tswatch .kw { color: var(--tkw); }
.tswatch .str { color: var(--tstr); }
.tswatch .fn { color: var(--tfn); }
.tswatch .tname {
    display: block;
    padding: 9px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ttx);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.22);
}
.themes-foot {
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--text-faint);
    text-align: center;
}

/* ---------- Languages ---------- */
.langs { padding: 120px 0 100px; text-align: center; }
.langs .lede { margin-bottom: 40px; }
.lang-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
}
.lang-chip {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-dim);
    border: 1px solid var(--line-strong);
    background: var(--bg-card);
    border-radius: 10px;
    padding: 0.5em 1em;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.lang-chip:hover { color: var(--text); border-color: var(--text-faint); transform: translateY(-2px); }
.lang-new {
    color: var(--text);
    border-color: rgba(124, 140, 248, 0.5);
    background: rgba(124, 140, 248, 0.1);
}
.lang-new i {
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-left: 8px;
}

/* ---------- Apple Intelligence ---------- */
.ai-section { padding: 30px 0 110px; }
.ai-card {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(120deg, rgba(244, 114, 182, 0.55), rgba(124, 140, 248, 0.55), rgba(52, 211, 153, 0.45)) border-box;
    padding: 52px 56px;
    overflow: hidden;
}
.ai-card::after {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 380px; height: 300px;
    background: radial-gradient(ellipse, rgba(244, 114, 182, 0.14), transparent 65%);
    pointer-events: none;
}
.ai-copy p { color: var(--text-dim); }
.ai-copy .fine { margin-top: 16px; font-size: 0.8rem; color: var(--text-faint); }
.ai-demo {
    justify-self: center;
    width: 230px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.ai-chip {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    background: linear-gradient(120deg, rgba(244, 114, 182, 0.25), rgba(124, 140, 248, 0.25));
    border-radius: 9px;
    margin-bottom: 8px;
}
.ai-row {
    font-size: 0.86rem;
    color: var(--text-dim);
    padding: 8px 12px;
    border-radius: 8px;
}
.ai-row:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* ---------- Use cases ---------- */
.usecases { padding: 100px 0 120px; }
.usecases h2 { margin-bottom: 44px; }
.uc-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.uc-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 30px 26px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.uc-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.uc-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.uc-card p { font-size: 0.93rem; color: var(--text-dim); line-height: 1.6; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.uc-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(124, 140, 248, 0.1);
    border: 1px solid rgba(124, 140, 248, 0.28);
    border-radius: 99px;
    padding: 0.28em 0.85em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .feature-grid, .feature-grid.flip { grid-template-columns: 1fr; gap: 32px; padding-bottom: 70px; }
    .feature-grid.flip .feature-copy { order: 1; }
    .feature-grid.flip .feature-shot { order: 2; }
    .theme-gallery { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .theme-swatches { grid-template-columns: repeat(3, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .ai-card { grid-template-columns: 1fr; padding: 40px 36px; }
    .ai-demo { justify-self: start; }
}

@media (max-width: 720px) {
    .nav-links, .nav-actions { display: none; }
    .nav-burger { display: block; }
    .hero { padding-top: calc(var(--nav-h) + 56px); }
    .cards, .uc-cards { grid-template-columns: 1fr; }
    .theme-swatches { grid-template-columns: repeat(2, 1fr); }
    .feature { padding-top: 80px; }
    .themes, .compare, .grid-section, .langs, .usecases { padding: 80px 0; }
    .cta { padding: 100px 0; }
    .appstore-badge { height: 48px; }
    .pricing-page .pricing-head { padding-top: calc(var(--nav-h) + 62px); }
    .pricing-page .price-cards { grid-template-columns: minmax(0, 1fr); }
    .pricing-page .price-card { padding: 32px 26px; }
    .faq-page .faq-head { padding-top: calc(var(--nav-h) + 62px); }
    .faq-page .faq-item summary { padding: 18px; }
    .faq-page .faq-item .faq-a { padding: 16px 18px 19px; }
    .faq-page .faq-contact { padding: 32px 22px; }
}
